From adtp at airtelmail.in Thu Apr 1 13:39:52 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 2 Apr 2010 00:09:52 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <00ef01cad1cb$893e05b0$3701a8c0@adtpc> Gustav, Though apparently optimum options amongst various potential alternatives, neither of the two methods, i.e. forward or backward DateAdd() computation can be considered completely perfect. Each represents a degree of compromise inherent in the built-in date arithmetic. This stems from the way VBA handles addition (or subtraction) of given number of months to (or from) a month ending start date. The magic of rounding off the computed finish date to a month end date takes place only if the projected finish date happens to be >= the end date for the finish month. For example, adding 1 month to 31-Jan-2010 gets 28-Feb-2010. On the other hand, adding 1 month to 28-Feb-2010 fetches only 28-Mar-2010 (not 31-Mar-2010). Similarly, adding 1 month to 31-Mar-2010 gets 30-Apr-2010, while addition of 1 month to 30-Apr-2010 gets only 30-May-2010 (not 31-May-2010). Going backwards, subtracting 1 month from 31-Mar-2010 gets 28-Feb-2010, while doing similar subtraction from 28-Feb-2010 fetches 28-Jan-2010 (not 31-Jan-2010). As an interesting example, if 1 month is subtracted from 31-Mar-2010 and then 1 month is added to the result, we get 28-Mar-2010. Thus for net subtraction/addition of zero month, the starting date value stands reduced by 3. This brings out a weird aspect of a set of DateAdd() operations involving positive and negative values for month argument. Considering the fact that time flow is always in forward direction, won't it help simplify matters if it were agreed as a standing practice that elapsed period between any two dates would always be reckoned from lower date to the higher one? Minus qualifier in the result would merely be indicative of the fact that the user has supplied the date arguments in reverse order (inadvertently or by design). That way, the computed difference between any two dates would always be consistent. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, April 01, 2010 00:16 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. Thanks! Your approach is slightly different than mine and it reveals the issues by these calculations caused by "a month is not a month". For example: d1=#2008-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: 1 year(s), 11 month(s), 2 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: 1 Year, 11 Months, 2 Days Both functions assume that a month's length is the length of February. I can still be in doubt if this is correct; if you had: d1=#2008-03-31# d2=#2010-01-31# you will get a count of 1 year 10 months. Reducing d1 by one month (to #2008-02-29#) will increase the count to 1 year 11 months 0 (not 2) days. But this is the way DateAdd works, and as you can't say it is wrong, I find it best - and logical - to accept this behaviour. If you accept this, you accept that a count forward of x months may not equal a count backwards of x months. Thus, you cannot make a reverse calculation by interchanging the variables, d1 and d2. That is why I created the function to handle both forward and backward periods. Taking the same values, now interchanged, as an example: d1=#2010-01-31# d2=#2008-02-29# YearsMonthsDays(d1, d2) returns: -1 year(s), -11 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 1 Year, 11 Months, 2 Days For both examples DateDiff returns a count of 23 months or 702 days. A third example demonstrates the issue: d1=#2012-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: -2 year(s), -1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 2 Years, 1 Month And reversing the parameters: d1=#2010-01-31# d2=#2012-02-29# YearsMonthsDays(d1, d2) 2 year(s), 1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) 2 Years, 1 Month This time both functions return identical results for both directions. Your head gets twisted and you understand why banks operate with a count of 30 days for every month. /gustav From lmrazek at lcm-res.com Thu Apr 1 15:58:36 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 1 Apr 2010 15:58:36 -0500 Subject: [AccessD] DB Comparison tool In-Reply-To: <38411df71003301626n21e3ae04h2e189908fc2d68e@mail.gmail.com> References: <38411df71003301626n21e3ae04h2e189908fc2d68e@mail.gmail.com> Message-ID: <00f901cad1de$1a4f9b10$4eeed130$@com> Hi Folks: Is anyone using or is aware of something like the RedGate SQL DB Compare tool (for SQL Server) that compares two Access DB (table structure only), and allows you to synch the db differences (field names, properties, etc) between them? Thanks in advance. Larry Mrazek ph. 314-432-5886 lmrazek at lcm-res.com http://www.lcm-res.com From Gustav at cactus.dk Fri Apr 2 06:05:12 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Apr 2010 13:05:12 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi A.D. You are right about the behaviour of DateAdd. In- or decrementing by one month will always return a date in the next or prior month. However, it doesn't take into account if the date in question is ultimo of the month. That's by design, though in quite a few cases you would say that in any case adding "one month" to ultimo of one month will return ultimo of the next month and vice versa. This is what my function Months do: Public Function Months( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date) _ As Integer ' Returns the difference in full months between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2000-12-20. Dim intDay1 As Integer Dim intDay2 As Integer Dim intMonths As Integer Dim intDaysDiff As Integer Dim intReversed As Integer ' No special error handling. On Error Resume Next intMonths = DateDiff("m", datDate1, datDate2) If intMonths = 0 Then ' Both dates fall within the same month. Else intDay1 = Day(datDate1) intDay2 = Day(datDate2) If Month(datDate1) < Month(DateAdd("d", 1, datDate1)) Then ' Date datDate1 is ultimo. ' Decrease date datDate2 if day of datDate2 is higher. If intDay2 > intDay1 Then datDate2 = DateAdd("d", intDay1 - intDay2, datDate2) intDay2 = Day(datDate2) End If End If If Month(datDate2) < Month(DateAdd("d", 1, datDate2)) Then ' Date datDate2 is ultimo. ' Decrease date datDate1 if day of datDate1 is higher. If intDay1 > intDay2 Then datDate1 = DateAdd("d", intDay2 - intDay1, datDate1) intDay1 = Day(datDate1) End If End If ' Calculate day difference. intDaysDiff = intDay1 - intDay2 intReversed = Sgn(intMonths) ' Decrease count of months by one if dates are closer than one month. intMonths = intMonths - (intReversed * Abs((intReversed * intDaysDiff) > 0)) End If Months = intMonths End Function One could argue that this is the method to follow. For example, consider the results of DateAdd: DateAdd("m", 1, #2010-01-31#) => 2010-02-28 DateAdd("m", 1, #2010-02-28#) => 2010-03-28 while: DateAdd("m", 2, #2010-01-31#) => 2010-03-31 so adding 1 + 1 month is different from adding 2 months. I think the YMD count should either closely follow the rules of DateAdd or the above method which would return identical results for reversed dates. /gustav >>> adtp at airtelmail.in 01-04-2010 20:39 >>> Gustav, Though apparently optimum options amongst various potential alternatives, neither of the two methods, i.e. forward or backward DateAdd() computation can be considered completely perfect. Each represents a degree of compromise inherent in the built-in date arithmetic. This stems from the way VBA handles addition (or subtraction) of given number of months to (or from) a month ending start date. The magic of rounding off the computed finish date to a month end date takes place only if the projected finish date happens to be >= the end date for the finish month. For example, adding 1 month to 31-Jan-2010 gets 28-Feb-2010. On the other hand, adding 1 month to 28-Feb-2010 fetches only 28-Mar-2010 (not 31-Mar-2010). Similarly, adding 1 month to 31-Mar-2010 gets 30-Apr-2010, while addition of 1 month to 30-Apr-2010 gets only 30-May-2010 (not 31-May-2010). Going backwards, subtracting 1 month from 31-Mar-2010 gets 28-Feb-2010, while doing similar subtraction from 28-Feb-2010 fetches 28-Jan-2010 (not 31-Jan-2010). As an interesting example, if 1 month is subtracted from 31-Mar-2010 and then 1 month is added to the result, we get 28-Mar-2010. Thus for net subtraction/addition of zero month, the starting date value stands reduced by 3. This brings out a weird aspect of a set of DateAdd() operations involving positive and negative values for month argument. Considering the fact that time flow is always in forward direction, won't it help simplify matters if it were agreed as a standing practice that elapsed period between any two dates would always be reckoned from lower date to the higher one? Minus qualifier in the result would merely be indicative of the fact that the user has supplied the date arguments in reverse order (inadvertently or by design). That way, the computed difference between any two dates would always be consistent. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, April 01, 2010 00:16 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. Thanks! Your approach is slightly different than mine and it reveals the issues by these calculations caused by "a month is not a month". For example: d1=#2008-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: 1 year(s), 11 month(s), 2 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: 1 Year, 11 Months, 2 Days Both functions assume that a month's length is the length of February. I can still be in doubt if this is correct; if you had: d1=#2008-03-31# d2=#2010-01-31# you will get a count of 1 year 10 months. Reducing d1 by one month (to #2008-02-29#) will increase the count to 1 year 11 months 0 (not 2) days. But this is the way DateAdd works, and as you can't say it is wrong, I find it best - and logical - to accept this behaviour. If you accept this, you accept that a count forward of x months may not equal a count backwards of x months. Thus, you cannot make a reverse calculation by interchanging the variables, d1 and d2. That is why I created the function to handle both forward and backward periods. Taking the same values, now interchanged, as an example: d1=#2010-01-31# d2=#2008-02-29# YearsMonthsDays(d1, d2) returns: -1 year(s), -11 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 1 Year, 11 Months, 2 Days For both examples DateDiff returns a count of 23 months or 702 days. A third example demonstrates the issue: d1=#2012-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: -2 year(s), -1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 2 Years, 1 Month And reversing the parameters: d1=#2010-01-31# d2=#2012-02-29# YearsMonthsDays(d1, d2) 2 year(s), 1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) 2 Years, 1 Month This time both functions return identical results for both directions. Your head gets twisted and you understand why banks operate with a count of 30 days for every month. /gustav From jwcolby at colbyconsulting.com Fri Apr 2 12:36:42 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 02 Apr 2010 13:36:42 -0400 Subject: [AccessD] Initial start of remote desktop fails - Windows 2003 Message-ID: <4BB62B2A.4090805@colbyconsulting.com> I use RD to work on the servers in my office from my laptop in my office (entirely within my LAN). When I attempt to connect RD, it fails completely and always if I have not first logged in to the server manually, through the keyboard / mouse connected to that machine. IOW I have to use my KVM switch to physically see the machine, AND log in, THEN RD will work from my laptop. If I use the KVM to go to the physical machine and log out, RD from the laptop will continue to work IF ALREADY CONNECTED, but will fail if I close the RD session and try to RD back in. IOW RD simply cannot connect if there is not already a user logged in. Additionally, once I have done that manual / initial login to the physical machine, RD will fail the first time I try it. I have to try to connect, immediately cancel that attempt, then try it again and then it connects right in. I can close the RD session and start it again, no problem (as long as that other user is still connected). So... has anyone seen this behavior? Has anyone seen a solution to that problem such that RD will work first time / every time, regardless of anything? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Apr 3 05:50:13 2010 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 3 Apr 2010 11:50:13 +0100 Subject: [AccessD] How to get MS Word mailmerge to open a query with parameters against an linked SQL Table Message-ID: Hello All, First of all, I hope you are not annoyed by my three cross posts. This question involves MS Word mailmerges, MS Access and MS SQL Server. I have a SQL Server database hosting in a data centre. I have an Access 2003 db with ODBC inked tables to the SQL Server I have a query with hard coded Criteria -- eg Where CustId = 100 I have MS Word Version 2003 with a MailMerge doc Set up and connected to the Query in MS Access. The Mailmerge works well with this setup When I change the above setup to use parmeters instead of hard coded values in the criteria of the query, I can successfully run the query from within access. The params popup and ask for the param value, and then the query executes and returns records as expected. However, the MS Word mailmerge does not work, and the mailmerge doc cannot connect to the data source. If I try to re-establish the data source connection, MS Word does not even see the query as a potential data source within the db. If you have any suggestions, I would really appreciate it. Thank you, as always for your time, Mark From marklbreen at gmail.com Sat Apr 3 06:53:51 2010 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 3 Apr 2010 12:53:51 +0100 Subject: [AccessD] How to get MS Word mailmerge to open a query with parameters against an linked SQL Table In-Reply-To: References: Message-ID: Hello All, I think that the following works perfectly as a solution for my problem posted below. http://support.microsoft.com/kb/214183 if you need this, review it carefully, as I missed out the critical bit in the Word 2007 section where it refers you to the Options button first. Incidentally, in my Word 2003, I also had to go to Options\general to turn on the DDE access. If tech and sql are seeing this for the first time, it is because I mis typed the email on the first pass, so now you get a solution to a problem you did not have ! :) Thanks Mark On 3 April 2010 11:50, Mark Breen wrote: > Hello All, > > First of all, I hope you are not annoyed by my three cross posts. This > question involves MS Word mailmerges, MS Access and MS SQL Server. > > I have a SQL Server database hosting in a data centre. > I have an Access 2003 db with ODBC inked tables to the SQL Server > I have a query with hard coded Criteria -- eg Where CustId = 100 > I have MS Word Version 2003 with a MailMerge doc Set up and connected to > the Query in MS Access. > The Mailmerge works well with this setup > > When I change the above setup to use parmeters instead of hard coded values > in the criteria of the query, I can successfully run the query from within > access. The params popup and ask for the param value, and then the query > executes and returns records as expected. > > However, the MS Word mailmerge does not work, and the mailmerge doc cannot > connect to the data source. If I try to re-establish the data source > connection, MS Word does not even see the query as a potential data source > within the db. > > If you have any suggestions, I would really appreciate it. > > Thank you, as always for your time, > > Mark > > > From R.Griffiths at bury.gov.uk Sat Apr 3 09:53:06 2010 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Sat, 3 Apr 2010 15:53:06 +0100 Subject: [AccessD] DB Comparison tool In-Reply-To: <00f901cad1de$1a4f9b10$4eeed130$@com> References: <38411df71003301626n21e3ae04h2e189908fc2d68e@mail.gmail.com> <00f901cad1de$1a4f9b10$4eeed130$@com> Message-ID: <201004031453.o33Er5G8024778@databaseadvisors.com> Hi Not sure it does Access databases, but for SQL (and others) it's a brilliant tool. Recommended Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: 01 April 2010 21:59 To: 'Access Developers discussion and problem solving' Subject: [AccessD] DB Comparison tool Hi Folks: Is anyone using or is aware of something like the RedGate SQL DB Compare tool (for SQL Server) that compares two Access DB (table structure only), and allows you to synch the db differences (field names, properties, etc) between them? Thanks in advance. Larry Mrazek ph. 314-432-5886 lmrazek at lcm-res.com http://www.lcm-res.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ----------------------------------------------------------------- Why not visit our website www.bury.gov.uk ----------------------------------------------------------------- Incoming and outgoing e-mail messages are routinely monitored for compliance with our information security policy. The information contained in this e-mail and any files transmitted with it is for the intended recipient(s) alone. It may contain confidential information that is exempt from the disclosure under English law and may also be covered by legal,professional or other privilege. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify us immediately by using the reply facility on your e-mail system. If this message is being transmitted over the Internet, be aware that it may be intercepted by third parties. As a public body, the Council may be required to disclose this e-mail or any response to it under the Freedom of Information Act 2000 unless the information in it is covered by one of the exemptions in the Act. Electronic service accepted only at legalservices at bury.gov.uk and on fax number 0161 253 5119 . ************************************************************* From jimdettman at verizon.net Sat Apr 3 10:34:32 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 03 Apr 2010 11:34:32 -0400 Subject: [AccessD] DB Comparison tool In-Reply-To: <201004031453.o33Er5G8024778@databaseadvisors.com> References: <38411df71003301626n21e3ae04h2e189908fc2d68e@mail.gmail.com> <00f901cad1de$1a4f9b10$4eeed130$@com> <201004031453.o33Er5G8024778@databaseadvisors.com> Message-ID: Only thing out there that I'm aware of is Total Access Detective from FMS: http://www.fmsinc.com/MicrosoftAccess/DatabaseCompare.html Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Saturday, April 03, 2010 10:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Comparison tool Hi Not sure it does Access databases, but for SQL (and others) it's a brilliant tool. Recommended Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: 01 April 2010 21:59 To: 'Access Developers discussion and problem solving' Subject: [AccessD] DB Comparison tool Hi Folks: Is anyone using or is aware of something like the RedGate SQL DB Compare tool (for SQL Server) that compares two Access DB (table structure only), and allows you to synch the db differences (field names, properties, etc) between them? Thanks in advance. Larry Mrazek ph. 314-432-5886 lmrazek at lcm-res.com http://www.lcm-res.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ----------------------------------------------------------------- Why not visit our website www.bury.gov.uk ----------------------------------------------------------------- Incoming and outgoing e-mail messages are routinely monitored for compliance with our information security policy. The information contained in this e-mail and any files transmitted with it is for the intended recipient(s) alone. It may contain confidential information that is exempt from the disclosure under English law and may also be covered by legal,professional or other privilege. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify us immediately by using the reply facility on your e-mail system. If this message is being transmitted over the Internet, be aware that it may be intercepted by third parties. As a public body, the Council may be required to disclose this e-mail or any response to it under the Freedom of Information Act 2000 unless the information in it is covered by one of the exemptions in the Act. Electronic service accepted only at legalservices at bury.gov.uk and on fax number 0161 253 5119 . ************************************************************* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Apr 5 09:52:45 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 5 Apr 2010 14:52:45 +0000 Subject: [AccessD] Date Difference As Completed Years-Months-Days In-Reply-To: <003a01cacfec$901be860$3701a8c0@adtpc> References: ,<003a01cacfec$901be860$3701a8c0@adtpc> Message-ID: A.D. Quick question: When you give the example for: "> 30-Apr-2005 (Month End) to 31-Mar-2009 (Month End) should resolve to 3 years, 11 months, 0 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 3 complete months in 2009). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 1 days)" Does 30-Apr-2005 count as a day?...or does each date reflect the end of that date?(0 days vs 1 day) Thanks, Mark A. Matte > From: adtp at airtelmail.in > To: accessd at databaseadvisors.com > Date: Tue, 30 Mar 2010 15:05:39 +0530 > Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days > > Gustav, > > Thanks for such interesting insight. For this thread, let us say that the result is to be returned as a self contained string of completed years, months and days (in style: y years, m months, d days). > > Kevin has provided Chip Pearson's Age function, which we could examine further. Would you be in a position to suggest a suitable function, duly taking into account the various factors outlined in your post. > > Ideally, the proposed function should be able to handle all types of special date combinations that are not straightaway amenable to application of fixed formula. Some examples: > > 30-Apr-2005 (Month End) to 31-Mar-2009 (Month End) should resolve to 3 years, 11 months, 0 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 3 complete months in 2009). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 1 days) > > 30-Apr-2005 (Month End) to 30-Mar-2009 should resolve to 3 years, 10 months, 30 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 2 complete months in 2009, plus 30 elapsed days of Mar-2009). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 0 days) > > 28-Feb-2005 (Month End) to 29-Feb-2008 (Month End) should resolve to 3 years, 0 months, 0 days (10 complete months in 2005, plus 2 complete years 2006 to 2007, plus 2 complete months in 2008). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 0 months 1 days) > > 29-Feb-2008 (Month End) to 28-Feb-2010 (Month End) should resolve to 2 years, 0 months, 0 days (10 complete months in 2008, plus 1 complete year 2009, plus 2 complete months in 2010). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 1 years 11 months 28 days) > > Other interested members might also like to kindly offer their views. > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: Gustav Brock > To: accessd at databaseadvisors.com > Sent: Monday, March 29, 2010 12:36 > Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days > > > Hi A.D. > > <> > > The main problem when calculation age in years is that a month is not a month and a year is not a year. Both have varying count of days. > > This can lead to many worries until you realise that the best method is to turn it upside down - by adding a found interval of years (age) to the first date to prove that the second date is the right. That could lead to a new problem if you should consider how to add years but that is not the case as VBA features the DateAdd function which calculates correctly. Thus: > > Age = Years(Date1, Date2) <=> Date2 = DateAdd("yyyy", Age, Date1) > > So the simple answer to your question is to apply DateAdd to check your calculation and correct when needed. After a lengthy discussion and input from several members at Experts Exchange which also introduced the topic "Linear Age", this is how it turned out: > > <> > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 From adtp at airtelmail.in Mon Apr 5 14:14:05 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 6 Apr 2010 00:44:05 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <004801cad4f5$6c798620$3701a8c0@adtpc> Hi Gustav, I agree. It would be preferable to let VBA's built in date logic take care of all pertinent factors (e.g. month ending dates, leap years as well as varying days in different months and different years), completely eliminating the need for imposing any external logic in this regard. This would provide an output independent of subjective interpretations or preferences across developers. Considering the fact that adding whole number of months to Date1 via DateAdd() function shrink fits the day part of projected date so as not to exceed the maximum available number of days in the target month, it follows that the elapsed period involving month ending dates would conform to the following pattern: 1 - (Day part of Date1) >= (Day part of Date2) ------------------------------------------------ 1.1 - Positive progression (Date2 >= Date1): 1.1.1 - 31-Jan-2003 to 28-Feb-2003 = 1 month 1.1.2 - 31-Mar-2003 to 30-Apr-2003 = 1 month 1.1.3 - 30-Apr-2003 to 30-Sep-2003 = 5 months 1.2 - Negative progression (Date2 < Date1): 1.2.1 - 31-Mar-2003 to 28-Feb-2003 = -1 month 1.2.2 - 31-May-2003 to 30-Apr-2003 = -1 month 1.2.3 - 30-Sep-2003 to 30-Apr-2003 = -5 months 2 - (Day part of Date1) < (Day part of Date2) ----------------------------------------------- 2.1 - Positive progression (Date2 >= Date1): 2.1.1 - 28-Feb-2003 to 31-Mar-2003 = 1 month, 3 days (28-Feb-2003 plus 1 month = 28-Mar-2003) 2.1.2 - 30-Apr-2003 to 31-May-2003 = 1 month, 1 day (30-Apr-2003 plus 1 month = 30-May-2003) 2.2 - Negative progression (Date2 < Date1): 2.2.1 - 28-Feb-2003 to 31-Jan-2003 = -28 days (28-Feb-2003 minus 1 month would have given 28-Jan-2003, which would be out of range - so, DateDiff() applied directly) 2.2.2 - 30-Apr-2003 to 31-Mar-2003 = -30 days (30-Apr-2003 minus 1 month would have given 30-Mar-2003, which would be out of range - so, DateDiff() applied directly) You might like to examine para 2.2 above and confirm so that the YMD function could be fine tuned accordingly. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, April 02, 2010 16:35 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. You are right about the behaviour of DateAdd. In- or decrementing by one month will always return a date in the next or prior month. However, it doesn't take into account if the date in question is ultimo of the month. That's by design, though in quite a few cases you would say that in any case adding "one month" to ultimo of one month will return ultimo of the next month and vice versa. This is what my function Months do: Public Function Months( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date) _ As Integer ' Returns the difference in full months between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2000-12-20. Dim intDay1 As Integer Dim intDay2 As Integer Dim intMonths As Integer Dim intDaysDiff As Integer Dim intReversed As Integer ' No special error handling. On Error Resume Next intMonths = DateDiff("m", datDate1, datDate2) If intMonths = 0 Then ' Both dates fall within the same month. Else intDay1 = Day(datDate1) intDay2 = Day(datDate2) If Month(datDate1) < Month(DateAdd("d", 1, datDate1)) Then ' Date datDate1 is ultimo. ' Decrease date datDate2 if day of datDate2 is higher. If intDay2 > intDay1 Then datDate2 = DateAdd("d", intDay1 - intDay2, datDate2) intDay2 = Day(datDate2) End If End If If Month(datDate2) < Month(DateAdd("d", 1, datDate2)) Then ' Date datDate2 is ultimo. ' Decrease date datDate1 if day of datDate1 is higher. If intDay1 > intDay2 Then datDate1 = DateAdd("d", intDay2 - intDay1, datDate1) intDay1 = Day(datDate1) End If End If ' Calculate day difference. intDaysDiff = intDay1 - intDay2 intReversed = Sgn(intMonths) ' Decrease count of months by one if dates are closer than one month. intMonths = intMonths - (intReversed * Abs((intReversed * intDaysDiff) > 0)) End If Months = intMonths End Function One could argue that this is the method to follow. For example, consider the results of DateAdd: DateAdd("m", 1, #2010-01-31#) => 2010-02-28 DateAdd("m", 1, #2010-02-28#) => 2010-03-28 while: DateAdd("m", 2, #2010-01-31#) => 2010-03-31 so adding 1 + 1 month is different from adding 2 months. I think the YMD count should either closely follow the rules of DateAdd or the above method which would return identical results for reversed dates. /gustav From adtp at airtelmail.in Mon Apr 5 14:19:34 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 6 Apr 2010 00:49:34 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: , <003a01cacfec$901be860$3701a8c0@adtpc> Message-ID: <004901cad4f5$6f63d4d0$3701a8c0@adtpc> Mark, Reckoning the difference as based upon date2 minus date1, the starting date won't get counted. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Monday, April 05, 2010 20:22 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days A.D. Quick question: When you give the example for: "> 30-Apr-2005 (Month End) to 31-Mar-2009 (Month End) should resolve to 3 years, 11 months, 0 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 3 complete months in 2009). > (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 1 days)" Does 30-Apr-2005 count as a day?...or does each date reflect the end of that date?(0 days vs 1 day) Thanks, Mark A. Matte From Gustav at cactus.dk Mon Apr 5 15:48:24 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 05 Apr 2010 22:48:24 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi A.D. This is a tough one because it is not easy to explain what exactly is counted or added. First, giving DateAdd a second thought, I think that we have to conclude - based on your example 2.2.2 - that it is not strictly intended for this purpose, only for a sort of arithmetic handling of dates according to this rule: 1. Add n to the numeric value of the month of the date parameter. 2. Adjust the day of the resulting month if an invalid date is the result. For example, a resulting date of Apr. 31. will be adjusted to Apr. 30. Second, when we count years, months, and days, the day counts of the leading and trailing month should be equal to one month respectively. This simple definition would turn the result of your example 2.2.2 into "1 month 0 days" which I believe is how most people would measure such an interval. I think this could clear up the matter and remove confusion. /gustav >>> adtp at airtelmail.in 05-04-2010 21:14 >>> Hi Gustav, I agree. It would be preferable to let VBA's built in date logic take care of all pertinent factors (e.g. month ending dates, leap years as well as varying days in different months and different years), completely eliminating the need for imposing any external logic in this regard. This would provide an output independent of subjective interpretations or preferences across developers. Considering the fact that adding whole number of months to Date1 via DateAdd() function shrink fits the day part of projected date so as not to exceed the maximum available number of days in the target month, it follows that the elapsed period involving month ending dates would conform to the following pattern: 1 - (Day part of Date1) >= (Day part of Date2) ------------------------------------------------ 1.1 - Positive progression (Date2 >= Date1): 1.1.1 - 31-Jan-2003 to 28-Feb-2003 = 1 month 1.1.2 - 31-Mar-2003 to 30-Apr-2003 = 1 month 1.1.3 - 30-Apr-2003 to 30-Sep-2003 = 5 months 1.2 - Negative progression (Date2 < Date1): 1.2.1 - 31-Mar-2003 to 28-Feb-2003 = -1 month 1.2.2 - 31-May-2003 to 30-Apr-2003 = -1 month 1.2.3 - 30-Sep-2003 to 30-Apr-2003 = -5 months 2 - (Day part of Date1) < (Day part of Date2) ----------------------------------------------- 2.1 - Positive progression (Date2 >= Date1): 2.1.1 - 28-Feb-2003 to 31-Mar-2003 = 1 month, 3 days (28-Feb-2003 plus 1 month = 28-Mar-2003) 2.1.2 - 30-Apr-2003 to 31-May-2003 = 1 month, 1 day (30-Apr-2003 plus 1 month = 30-May-2003) 2.2 - Negative progression (Date2 < Date1): 2.2.1 - 28-Feb-2003 to 31-Jan-2003 = -28 days (28-Feb-2003 minus 1 month would have given 28-Jan-2003, which would be out of range - so, DateDiff() applied directly) 2.2.2 - 30-Apr-2003 to 31-Mar-2003 = -30 days (30-Apr-2003 minus 1 month would have given 30-Mar-2003, which would be out of range - so, DateDiff() applied directly) You might like to examine para 2.2 above and confirm so that the YMD function could be fine tuned accordingly. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, April 02, 2010 16:35 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. You are right about the behaviour of DateAdd. In- or decrementing by one month will always return a date in the next or prior month. However, it doesn't take into account if the date in question is ultimo of the month. That's by design, though in quite a few cases you would say that in any case adding "one month" to ultimo of one month will return ultimo of the next month and vice versa. This is what my function Months do: Public Function Months( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date) _ As Integer ' Returns the difference in full months between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2000-12-20. Dim intDay1 As Integer Dim intDay2 As Integer Dim intMonths As Integer Dim intDaysDiff As Integer Dim intReversed As Integer ' No special error handling. On Error Resume Next intMonths = DateDiff("m", datDate1, datDate2) If intMonths = 0 Then ' Both dates fall within the same month. Else intDay1 = Day(datDate1) intDay2 = Day(datDate2) If Month(datDate1) < Month(DateAdd("d", 1, datDate1)) Then ' Date datDate1 is ultimo. ' Decrease date datDate2 if day of datDate2 is higher. If intDay2 > intDay1 Then datDate2 = DateAdd("d", intDay1 - intDay2, datDate2) intDay2 = Day(datDate2) End If End If If Month(datDate2) < Month(DateAdd("d", 1, datDate2)) Then ' Date datDate2 is ultimo. ' Decrease date datDate1 if day of datDate1 is higher. If intDay1 > intDay2 Then datDate1 = DateAdd("d", intDay2 - intDay1, datDate1) intDay1 = Day(datDate1) End If End If ' Calculate day difference. intDaysDiff = intDay1 - intDay2 intReversed = Sgn(intMonths) ' Decrease count of months by one if dates are closer than one month. intMonths = intMonths - (intReversed * Abs((intReversed * intDaysDiff) > 0)) End If Months = intMonths End Function One could argue that this is the method to follow. For example, consider the results of DateAdd: DateAdd("m", 1, #2010-01-31#) => 2010-02-28 DateAdd("m", 1, #2010-02-28#) => 2010-03-28 while: DateAdd("m", 2, #2010-01-31#) => 2010-03-31 so adding 1 + 1 month is different from adding 2 months. I think the YMD count should either closely follow the rules of DateAdd or the above method which would return identical results for reversed dates. /gustav From Darryl.Collins at anz.com Mon Apr 5 18:53:08 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 6 Apr 2010 09:53:08 +1000 Subject: [AccessD] Excel Forms and Active X issues (for John mostly) Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC993@EXUAU020HWT110.oceania.corp.anz.com> Hi Folks, Slightly OT, but maybe of interest to a few of you, especially John C. A while back I mentioned that Active X controls in Excel or Excel Forms can be buggy and troublesome, even though they are easier work with via the VBE. For this reason Active X controls are not always the best option in Excel. Damon Longworth from the Excel list posted these links today regarding an issue another lister had. They will probably be useful for you to have a quick read is you are still working with Excel forms. '----- start of copied email -------------- Here is an overview with a general list of Forms and ActiveX controls. http://office.microsoft.com/en-us/excel/HA102376631033.aspx Here is some discussion of both, including references to the "buggy" behavior. <> <> ' ---------- end of copied email --------------- 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 BradM at blackforestltd.com Mon Apr 5 19:27:16 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 5 Apr 2010 19:27:16 -0500 Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables Message-ID: Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad From Darryl.Collins at anz.com Mon Apr 5 19:43:56 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 6 Apr 2010 10:43:56 +1000 Subject: [AccessD] Using the Report Writer Features of Access 2007 againstSQL Server Database Tables In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC99A@EXUAU020HWT110.oceania.corp.anz.com> If you pull the data in via ADO and a pass thru query you can specify that always be "read only". '' This code will populate an unbound MS Access form with a recordset from SQL Server '----------------------------------------------------------------------- --------------------- Public Sub RefreshForm(strForm As String, strSql As String) '===================================================================' ' ' ' This procedure opens a recordset and ' ' binds the recordset to an open form ' ' The records will be READ-ONLY when displayed in the form ' ' ' ' ARGUMENTS: Form Name, sql String that returns a recordset ' ' ' ' ' '===================================================================' Dim cnn As New ADODB.Connection Dim rst As New ADODB.Recordset On Error GoTo ErrHandler Application.Echo False, "Loading the data into the form " ' Open the connection cnn.Open DbADOConStr ' Pre built connection string Set rst = New ADODB.Recordset rst.CursorLocation = adUseClient rst.Open strSql, cnn, adOpenForwardOnly, adLockReadOnly ' Bind the form to the recordset Set Forms(strForm).Recordset = rst ExitHere: On Error Resume Next Set cnn = Nothing Set rst = Nothing Application.Echo True Exit Sub ErrHandler: gstrErrMsg = "modSQLServer.RefreshForm: " gstrErrMsg = gstrErrMsg & Err.Number & " - " & Err.Description ErrHandle (gstrErrMsg) Resume ExitHere End Sub ' -------------- Hope that helps a bit Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, 6 April 2010 10:27 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Using the Report Writer Features of Access 2007 againstSQL Server Database Tables Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad -- 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 Mon Apr 5 20:12:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 06 Apr 2010 11:12:01 +1000 Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables In-Reply-To: References: Message-ID: <4BBA8A61.3982.5341FDA@stuart.lexacorp.com.pg> I do it all the time - it is a great combination. It combines the security of SQL Server with ease of use of access reporting. A couple of tips: 1. Whenever possible, create Views in SQL Server that combine tables as required and link to them rather than doing your joins in Access. 2. Use the built in SQL Server security features - Create a user/role with Read-Only access to the data and set up your connections using those credentials. -- Stuart On 5 Apr 2010 at 19:27, Brad Marks wrote: > We have done a little experimenting and things seems to work nicely in > our preliminary tests. Do other firms do this (use Access just for > report writing against SQL-server data). Are we missing a big "gotcha"? > > ~ ~ ~ > Is it possible to force "Read Only" access in the Connection String? We > want to ensure that no one ever updates any of the data in the SQL > Server tables. From ssharkins at gmail.com Mon Apr 5 20:21:36 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 5 Apr 2010 21:21:36 -0400 Subject: [AccessD] Using the Report Writer Features of Access 2007against SQL Server Database Tables References: <4BBA8A61.3982.5341FDA@stuart.lexacorp.com.pg> Message-ID: Guys, this could turn into a really good article, if you can come up with 10 of these tips -- you'll all get the usual credit and contact link. Susan H. >I do it all the time - it is a great combination. It combines the security >of SQL Server with > ease of use of access reporting. > > A couple of tips: > > 1. Whenever possible, create Views in SQL Server that combine tables as > required and link > to them rather than doing your joins in Access. > > 2. Use the built in SQL Server security features - Create a user/role > with Read-Only access > to the data and set up your connections using those credentials. > From jwcolby at colbyconsulting.com Mon Apr 5 22:27:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 05 Apr 2010 23:27:05 -0400 Subject: [AccessD] Anyone need a little storage? Message-ID: <4BBAAA09.4000606@colbyconsulting.com> http://www.smallnetbuilder.com/nas/nas-features/30922-how-to-build-a-cheap-petabyte-server-lessons-learned -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Apr 6 01:54:27 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Apr 2010 08:54:27 +0200 Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables Message-ID: Hi Brad Access is an excellent tool for this - it was almost created for this purpose. But just to add a little noise, you could as well consider using the (free) Reporting Services native to SQL Server. All you need to program this is Visual Studio in one of the (free) Express version of your choice. An example of this combo can be found here: http://northwind.codeplex.com/ VS and Reporting Services do represent a learning experience but it might be worth the efforts. If you pick this route you should sign up to our sister list dba-vb. /gustav >>> BradM at blackforestltd.com 06-04-2010 02:27 >>> Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad From sturner at mseco.com Tue Apr 6 09:07:20 2010 From: sturner at mseco.com (Steve Turner) Date: Tue, 6 Apr 2010 09:07:20 -0500 Subject: [AccessD] Using the Report Writer Features of Access 2007 againstSQL Server Database Tables In-Reply-To: References: Message-ID: Brad, You certainly can use Access reports to get what you want from SQL. SQL has rights to keep you from modifying the tables. But it would be good if someone you could trust and understands the query building process has access to the data. We have a custom timesheet program written and modified over several years which we use to keep time on Jobs for billing purposes. Access is the report writer we use to print all management reports and invoices for billing clients. Build the right query for the data and design a simple report in Access or a complicated one and print it out. Our accounting system has Crystal Reports as the report engine and I find it easier to build reports in Access. I can modify Crystal prewritten reports which is a good thing. Access also lets you pull in data from multiple sources thru ODBC and report on it also. As in our billing invoices we pull from SQL and the accounting data for Expenses to Jobs and build an invoice from that data. I am lucky that I have full access to the tables where I can actually edit the table if I find erroneous data that got entered. Granted it is a learning curve. That's why I read most of the emails on this web site. Always looking for an easier way to get things done. These guys and gals are great to help you out. The limitation I find is that Access can have problems with multiple people in the program on the same database so compiled programs with the reports would be best. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, April 05, 2010 7:27 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Using the Report Writer Features of Access 2007 againstSQL Server Database Tables Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Apr 6 09:38:49 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 6 Apr 2010 14:38:49 +0000 Subject: [AccessD] Date Difference As Completed Years-Months-Days In-Reply-To: References: Message-ID: I'm sure I missed somthing...but worked for the dates/results given as examples. Mark A. Matte '***********END************* Dim s_dt As Date, e_dt As Date s_dt = Me!txtStart e_dt = Me!txtEnd Dim Y_s_compare As Date, Y_e_compare As Date, M_compare As Date Dim y, m, d Y_s_compare = Format(DatePart("m", s_dt) & "/" & DatePart("d", s_dt) & "/1904", "short date") Y_e_compare = Format(DatePart("m", e_dt) & "/" & DatePart("d", e_dt) & "/1904", "short date") If Y_s_compare > Y_e_compare Then y = DateDiff("yyyy", s_dt, e_dt) - 1 Else y = DateDiff("yyyy", s_dt, e_dt) End If If DatePart("d", DateAdd("d", 1, s_dt)) = 1 Then d = 0 m = -1 M_compare = DatePart("m", s_dt) & "/1/" & DatePart("yyyy", s_dt) Do Until M_compare > e_dt M_compare = DateAdd("m", 1, DatePart("m", M_compare) & "/1/" & DatePart("yyyy", M_compare)) M_compare = DateAdd("m", 1, M_compare) - 1 m = m + 1 Loop m = m - y * 12 Else d = DateDiff("d", s_dt, DateAdd("m", 1, DatePart("m", s_dt) & "/1/" & DatePart("yyyy", s_dt))) m = -1 M_compare = DatePart("m", s_dt) & "/1/" & DatePart("yyyy", s_dt) Do Until M_compare >= e_dt M_compare = DateAdd("m", 1, DatePart("m", M_compare) & "/1/" & DatePart("yyyy", M_compare)) M_compare = DateAdd("m", 1, M_compare) - 1 m = m + 1 Loop m = m - y * 12 End If If DatePart("d", DateAdd("d", 1, e_dt)) = 1 Then d = d Else d = d + DateDiff("d", DatePart("m", e_dt) & "/1/" & DatePart("yyyy", e_dt), e_dt) + 1 End If If m = 12 Then m = 0 y = y + 1 End If MsgBox "y=" & y & ",m=" & m & ",d=" & d '***********END************* > Date: Mon, 5 Apr 2010 22:48:24 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days > > Hi A.D. > > This is a tough one because it is not easy to explain what exactly is counted or added. > > First, giving DateAdd a second thought, I think that we have to conclude - based on your example 2.2.2 - that it is not strictly intended for this purpose, only for a sort of arithmetic handling of dates according to this rule: > > 1. Add n to the numeric value of the month of the date parameter. > 2. Adjust the day of the resulting month if an invalid date is the result. For example, a resulting date of Apr. 31. will be adjusted to Apr. 30. > > Second, when we count years, months, and days, the day counts of the leading and trailing month should be equal to one month respectively. > > This simple definition would turn the result of your example 2.2.2 into "1 month 0 days" which I believe is how most people would measure such an interval. > I think this could clear up the matter and remove confusion. > > /gustav > > > >>> adtp at airtelmail.in 05-04-2010 21:14 >>> > Hi Gustav, > > I agree. It would be preferable to let VBA's built in date logic take care of all pertinent factors (e.g. month ending dates, leap years as well as varying days in different months and different years), completely eliminating the need for imposing any external logic in this regard. This would provide an output independent of subjective interpretations or preferences across developers. > > Considering the fact that adding whole number of months to Date1 via DateAdd() function shrink fits the day part of projected date so as not to exceed the maximum available number of days in the target month, it follows that the elapsed period involving month ending dates would conform to the following pattern: > > 1 - (Day part of Date1) >= (Day part of Date2) > ------------------------------------------------ > 1.1 - Positive progression (Date2 >= Date1): > 1.1.1 - 31-Jan-2003 to 28-Feb-2003 = 1 month > 1.1.2 - 31-Mar-2003 to 30-Apr-2003 = 1 month > 1.1.3 - 30-Apr-2003 to 30-Sep-2003 = 5 months > > 1.2 - Negative progression (Date2 < Date1): > 1.2.1 - 31-Mar-2003 to 28-Feb-2003 = -1 month > 1.2.2 - 31-May-2003 to 30-Apr-2003 = -1 month > 1.2.3 - 30-Sep-2003 to 30-Apr-2003 = -5 months > > 2 - (Day part of Date1) < (Day part of Date2) > ----------------------------------------------- > 2.1 - Positive progression (Date2 >= Date1): > 2.1.1 - 28-Feb-2003 to 31-Mar-2003 = 1 month, 3 days > (28-Feb-2003 plus 1 month = 28-Mar-2003) > 2.1.2 - 30-Apr-2003 to 31-May-2003 = 1 month, 1 day > (30-Apr-2003 plus 1 month = 30-May-2003) > > 2.2 - Negative progression (Date2 < Date1): > 2.2.1 - 28-Feb-2003 to 31-Jan-2003 = -28 days > (28-Feb-2003 minus 1 month would have given > 28-Jan-2003, which would be out of range - > so, DateDiff() applied directly) > 2.2.2 - 30-Apr-2003 to 31-Mar-2003 = -30 days > (30-Apr-2003 minus 1 month would have given > 30-Mar-2003, which would be out of range - > so, DateDiff() applied directly) > > You might like to examine para 2.2 above and confirm so that the YMD function could be fine tuned accordingly. > > Best wishes, > A.D. Tejpal > ------------ > _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 From BradM at blackforestltd.com Tue Apr 6 16:39:40 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 6 Apr 2010 16:39:40 -0500 Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables References: Message-ID: All, Thanks for your ideas and insights, I really appreciate it. You folks are great! Brad ~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Tuesday, April 06, 2010 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using the Report Writer Features of Access 2007againstSQL Server Database Tables Brad, You certainly can use Access reports to get what you want from SQL. SQL has rights to keep you from modifying the tables. But it would be good if someone you could trust and understands the query building process has access to the data. We have a custom timesheet program written and modified over several years which we use to keep time on Jobs for billing purposes. Access is the report writer we use to print all management reports and invoices for billing clients. Build the right query for the data and design a simple report in Access or a complicated one and print it out. Our accounting system has Crystal Reports as the report engine and I find it easier to build reports in Access. I can modify Crystal prewritten reports which is a good thing. Access also lets you pull in data from multiple sources thru ODBC and report on it also. As in our billing invoices we pull from SQL and the accounting data for Expenses to Jobs and build an invoice from that data. I am lucky that I have full access to the tables where I can actually edit the table if I find erroneous data that got entered. Granted it is a learning curve. That's why I read most of the emails on this web site. Always looking for an easier way to get things done. These guys and gals are great to help you out. The limitation I find is that Access can have problems with multiple people in the program on the same database so compiled programs with the reports would be best. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, April 05, 2010 7:27 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Using the Report Writer Features of Access 2007 againstSQL Server Database Tables Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From accessd at shaw.ca Tue Apr 6 19:13:30 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 6 Apr 2010 17:13:30 -0700 Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables In-Reply-To: References: Message-ID: <33078D9DE9DB4A95822E9A00977A763F@creativesystemdesigns.com> Hi Brad: Why not check this artcile out. http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRepo rts.asp The code is fully documented and there is even a running smaple you can download. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, April 05, 2010 5:27 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Tue Apr 6 21:03:54 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 6 Apr 2010 21:03:54 -0500 Subject: [AccessD] Using the Report Writer Features of Access 2007against SQL Server Database Tables References: <33078D9DE9DB4A95822E9A00977A763F@creativesystemdesigns.com> Message-ID: Jim, Thanks. I appreciate the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, April 06, 2010 7:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using the Report Writer Features of Access 2007against SQL Server Database Tables Hi Brad: Why not check this artcile out. http://www.databaseadvisors.com/newsletters/newsletter112003/0311Unbound Repo rts.asp The code is fully documented and there is even a running smaple you can download. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, April 05, 2010 5:27 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Using the Report Writer Features of Access 2007 against SQL Server Database Tables Background - Small company, small IT staff, small budget, no report writer like Crystal Reports, etc. We are thinking about using the report writer built into Access 2007 to create reports from data that lives in SQL Server (purchased application system). We have done a little experimenting and things seems to work nicely in our preliminary tests. Do other firms do this (use Access just for report writing against SQL-server data). Are we missing a big "gotcha"? ~ ~ ~ Is it possible to force "Read Only" access in the Connection String? We want to ensure that no one ever updates any of the data in the SQL Server tables. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adtp at airtelmail.in Wed Apr 7 00:27:06 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 7 Apr 2010 10:57:06 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <005201cad613$27da96c0$3701a8c0@adtpc> Hi Gustav, It is observed that if we provide a SnapFit feature for situations where day part of month ending Dt1 is <= day part of Dt2, the results become better streamlined, free of erstwhile irritants. This is because a two way symmetry comes into effect, as VBA already has built-in SnapFit feature for situations where day part of Dt1 is >= day part of month ending Dt2. Some sample results, after incorporation of this feature are placed below: ================================= Dt1 Dt2 YMD ================================= 1 - Positive Progression (Dt2 > Dt1): Day(Dt1) >= Day(MonthEndDt2) (VBA's built-in SnapFit action comes into play) -------------------------------------------------- 28-Jan-2003 28-Feb-2003 1 Month 29-Jan-2003 28-Feb-2003 1 Month 30-Jan-2003 28-Feb-2003 1 Month 31-Jan-2003 28-Feb-2003 1 Month -------------------------------------------------- 2 - Positive Progression (Dt2 > Dt1): Day(MonthEndDt1) <= Day(Dt2) (User defined SnapFit action comes into play) Note: VBA does not provide SnapFit for such date combinations -------------------------------------------------- 28-Feb-2003 28-Mar-2003 1 Month 28-Feb-2003 29-Mar-2003 1 Month 28-Feb-2003 30-Mar-2003 1 Month 28-Feb-2003 31-Mar-2003 1 Month -------------------------------------------------- 3 - Negative Progression (Dt2 < Dt1): Day(Dt1) >= Day(MonthEndDt2) (VBA's built-in SnapFit action comes into play) -------------------------------------------------- 28-Mar-2003 28-Feb-2003 (Minus) 1 Month 29-Mar-2003 28-Feb-2003 (Minus) 1 Month 30-Mar-2003 28-Feb-2003 (Minus) 1 Month 31-Mar-2003 28-Feb-2003 (Minus) 1 Month -------------------------------------------------- 4 - Negative Progression (Dt2 < Dt1): Day(MonthEndDt1) <= Day(Dt2) (User defined SnapFit action comes into play) Note: VBA does not provide SnapFit for such date combinations -------------------------------------------------- 28-Feb-2003 28-Jan-2003 (Minus) 1 Month 28-Feb-2003 29-Jan-2003 (Minus) 1 Month 28-Feb-2003 30-Jan-2003 (Minus) 1 Month 28-Feb-2003 31-Jan-2003 (Minus) 1 Month -------------------------------------------------- As would be seen, the suggested feature not only takes care of adverse date combinations in negative progression, but also gets rid of a prominent irritant in positive progression. Taking the sample date combination cited in one of your earlier posts (of 01-Apr-2010): 31-Mar-2008 to 31-Jan-2010 = 1 Year, 10 Months On reducing the start date by 1 month, we get: (a) As per natural VBA: 29-Feb-2008 31-Jan-2010 1 Year, 11 Months, 2 Days (b) On applying user defined SnapFit feature: 29-Feb-2008 31-Jan-2010 1 Year, 11 Months You might like to examine the pattern of results presented above and confirm whether it can be regarded as meriting greater acceptability. I could then follow up with the code pertaining to SnapFit action. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Tuesday, April 06, 2010 02:18 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. This is a tough one because it is not easy to explain what exactly is counted or added. First, giving DateAdd a second thought, I think that we have to conclude - based on your example 2.2.2 - that it is not strictly intended for this purpose, only for a sort of arithmetic handling of dates according to this rule: 1. Add n to the numeric value of the month of the date parameter. 2. Adjust the day of the resulting month if an invalid date is the result. For example, a resulting date of Apr. 31. will be adjusted to Apr. 30. Second, when we count years, months, and days, the day counts of the leading and trailing month should be equal to one month respectively. This simple definition would turn the result of your example 2.2.2 into "1 month 0 days" which I believe is how most people would measure such an interval. I think this could clear up the matter and remove confusion. /gustav From stuart at lexacorp.com.pg Wed Apr 7 01:37:46 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2010 16:37:46 +1000 Subject: [AccessD] Date Difference As Completed Years-Months-Days In-Reply-To: <005201cad613$27da96c0$3701a8c0@adtpc> References: , <005201cad613$27da96c0$3701a8c0@adtpc> Message-ID: <4BBC283A.13377.B84B91D@stuart.lexacorp.com.pg> So four children born on four different dates are all exactly the same age ( one month old) on 28 Feb 2003? Will they all be the same age on 1 March 2003? Or will one of them suddenly age by four days while another one only ages by one day? The real answer to "How can you calculate a date difference as completed years-months- days" is "You can't!" - At least not consistently - since the units are not consistent multiples of each other. -- Stuart On 7 Apr 2010 at 10:57, A.D. Tejpal wrote: > -------------------------------------------------- > 28-Jan-2003 28-Feb-2003 1 Month > 29-Jan-2003 28-Feb-2003 1 Month > 30-Jan-2003 28-Feb-2003 1 Month > 31-Jan-2003 28-Feb-2003 1 Month > -------------------------------------------------- From Gustav at cactus.dk Wed Apr 7 02:21:40 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 07 Apr 2010 09:21:40 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi Stuart You are right. The catch is, as I have mentioned before, that "a month is not a month". This is why it makes no sense to be too specific about the difference in days. If you need an accurate measurement to the day, you will have to use a pure day count. Going beyond that - taking timezones and daylight saving in account - you need to count hours or even quarter hours, and even further down to take leap seconds into account. /gustav >>> stuart at lexacorp.com.pg 07-04-2010 08:37 >>> So four children born on four different dates are all exactly the same age ( one month old) on 28 Feb 2003? Will they all be the same age on 1 March 2003? Or will one of them suddenly age by four days while another one only ages by one day? The real answer to "How can you calculate a date difference as completed years-months- days" is "You can't!" - At least not consistently - since the units are not consistent multiples of each other. -- Stuart On 7 Apr 2010 at 10:57, A.D. Tejpal wrote: > -------------------------------------------------- > 28-Jan-2003 28-Feb-2003 1 Month > 29-Jan-2003 28-Feb-2003 1 Month > 30-Jan-2003 28-Feb-2003 1 Month > 31-Jan-2003 28-Feb-2003 1 Month > -------------------------------------------------- From adtp at airtelmail.in Wed Apr 7 04:02:45 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 7 Apr 2010 14:32:45 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <007401cad631$38d5aeb0$3701a8c0@adtpc> Hi Gustav, Hi Stuart, Faced with unequal months, the results are bound to depend upon the governing principles deemed acceptable. As an illustration, let it be assumed that the elapsed period between any two dates would be reckoned as whole months (i.e. no residual days), if either of the following two conditions were met: (a) Day parts of both dates are equal. Or (b) Both dates represent end of the month. Based upon the above principles, both the following sets of dates represent an elapsed period of just one month. 28-Jan-2003 to 28-Feb-2003 = 1 month 31-Jan-2003 to 28-Feb-2003 = 1 month As a corollary, elapsed period for following sets of dates has to lie within the range represented by above two results (in other words, it has to be reckoned as just one month): 29-Jan-2003 28-Feb-2003 30-Jan-2003 28-Feb-2003 This brings us back to the original question. Is it feasible to reach a consensus as to the preferred governing principles for calculating YMD elapsed between two dates ? Interested members are welcome to offer their views. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, April 07, 2010 12:51 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi Stuart You are right. The catch is, as I have mentioned before, that "a month is not a month". This is why it makes no sense to be too specific about the difference in days. If you need an accurate measurement to the day, you will have to use a pure day count. Going beyond that - taking timezones and daylight saving in account - you need to count hours or even quarter hours, and even further down to take leap seconds into account. /gustav >>> stuart at lexacorp.com.pg 07-04-2010 08:37 >>> So four children born on four different dates are all exactly the same age ( one month old) on 28 Feb 2003? Will they all be the same age on 1 March 2003? Or will one of them suddenly age by four days while another one only ages by one day? The real answer to "How can you calculate a date difference as completed years-months- days" is "You can't!" - At least not consistently - since the units are not consistent multiples of each other. -- Stuart On 7 Apr 2010 at 10:57, A.D. Tejpal wrote: > -------------------------------------------------- > 28-Jan-2003 28-Feb-2003 1 Month > 29-Jan-2003 28-Feb-2003 1 Month > 30-Jan-2003 28-Feb-2003 1 Month > 31-Jan-2003 28-Feb-2003 1 Month > -------------------------------------------------- From accessd at shaw.ca Wed Apr 7 04:12:04 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 7 Apr 2010 02:12:04 -0700 Subject: [AccessD] Date Difference As Completed Years-Months-Days In-Reply-To: References: Message-ID: <3A211AEB2BEB4F99934F569798541313@creativesystemdesigns.com> Hi All: Another note on leap year; would it not be better to just do your own leap-year calculations? Do not include a leap day in a year divisible by 100 but not divisible by 400, otherwise years by divisible by 4 (all with no remainder of course) and that should be it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, April 07, 2010 12:22 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi Stuart You are right. The catch is, as I have mentioned before, that "a month is not a month". This is why it makes no sense to be too specific about the difference in days. If you need an accurate measurement to the day, you will have to use a pure day count. Going beyond that - taking timezones and daylight saving in account - you need to count hours or even quarter hours, and even further down to take leap seconds into account. /gustav >>> stuart at lexacorp.com.pg 07-04-2010 08:37 >>> So four children born on four different dates are all exactly the same age ( one month old) on 28 Feb 2003? Will they all be the same age on 1 March 2003? Or will one of them suddenly age by four days while another one only ages by one day? The real answer to "How can you calculate a date difference as completed years-months- days" is "You can't!" - At least not consistently - since the units are not consistent multiples of each other. -- Stuart On 7 Apr 2010 at 10:57, A.D. Tejpal wrote: > -------------------------------------------------- > 28-Jan-2003 28-Feb-2003 1 Month > 29-Jan-2003 28-Feb-2003 1 Month > 30-Jan-2003 28-Feb-2003 1 Month > 31-Jan-2003 28-Feb-2003 1 Month > -------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 7 08:56:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 07 Apr 2010 09:56:00 -0400 Subject: [AccessD] Left and right shift Message-ID: <4BBC8EF0.2040904@colbyconsulting.com> I thought we have a >> and << operator in Access - shift left and shift right. When I try to use it I get a compile error. IntPtr = IntPtr >> 2 Do we not have this operator? I can't find it listed in an operator in help. -- John W. Colby www.ColbyConsulting.com From jimdettman at verizon.net Wed Apr 7 10:13:26 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 07 Apr 2010 11:13:26 -0400 Subject: [AccessD] [Spam] Left and right shift In-Reply-To: <4BBC8EF0.2040904@colbyconsulting.com> References: <4BBC8EF0.2040904@colbyconsulting.com> Message-ID: <9BAB5AD154804FC4A36A593361482729@XPS> You want to shift bits or bytes? If bytes, it's LSET/RSET. If bit's you need to use AND and OR with some creative string handling. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 07, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: [Spam] [AccessD] Left and right shift I thought we have a >> and << operator in Access - shift left and shift right. When I try to use it I get a compile error. IntPtr = IntPtr >> 2 Do we not have this operator? I can't find it listed in an operator in help. -- 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 jimdettman at verizon.net Wed Apr 7 10:16:14 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 07 Apr 2010 11:16:14 -0400 Subject: [AccessD] [Spam] Left and right shift In-Reply-To: <4BBC8EF0.2040904@colbyconsulting.com> References: <4BBC8EF0.2040904@colbyconsulting.com> Message-ID: <4AB74636C4EE48EFAC80947F5E65173B@XPS> FYI, Here's a couple routines I found to do bit shifts in VBA: Public Function shr(ByVal Value As Long, ByVal Shift As Byte) As Long Dim i As Byte shr = Value If Shift > 0 Then shr = Int(shr / (2 ^ Shift)) End If End Function Public Function shl(ByVal Value As Long, ByVal Shift As Byte) As Long shl = Value If Shift > 0 Then Dim i As Byte Dim m As Long For i = 1 To Shift m = shl And &H40000000 shl = (shl And &H3FFFFFFF) * 2 If m <> 0 Then shl = shl Or &H80000000 End If Next i End If End Function Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 07, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: [Spam] [AccessD] Left and right shift I thought we have a >> and << operator in Access - shift left and shift right. When I try to use it I get a compile error. IntPtr = IntPtr >> 2 Do we not have this operator? I can't find it listed in an operator in help. -- 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 Lambert.Heenan at chartisinsurance.com Wed Apr 7 10:26:30 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 7 Apr 2010 11:26:30 -0400 Subject: [AccessD] Left and right shift In-Reply-To: <4BBC8EF0.2040904@colbyconsulting.com> References: <4BBC8EF0.2040904@colbyconsulting.com> Message-ID: Nope. Those are C family operators. Try IntPtr = IntPtr * 2 for << And IntPtr = IntPtr \ 2 for >> But are you aware of the impact of these operators on signed integers? See http://en.wikipedia.org/wiki/Arithmetic_shift Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 07, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: [AccessD] Left and right shift I thought we have a >> and << operator in Access - shift left and shift right. When I try to use it I get a compile error. IntPtr = IntPtr >> 2 Do we not have this operator? I can't find it listed in an operator in help. -- 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 drawbridgej at sympatico.ca Wed Apr 7 10:39:06 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 7 Apr 2010 11:39:06 -0400 Subject: [AccessD] Left and right shift In-Reply-To: <4BBC8EF0.2040904@colbyconsulting.com> References: <4BBC8EF0.2040904@colbyconsulting.com> Message-ID: John, For what it's worth http://msdn.microsoft.com/en-us/library/6a71f45d%28VS.71%29.aspx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 07, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: [AccessD] Left and right shift I thought we have a >> and << operator in Access - shift left and shift right. When I try to use it I get a compile error. IntPtr = IntPtr >> 2 Do we not have this operator? I can't find it listed in an operator in help. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.800 / Virus Database: 271.1.1/2792 - Release Date: 04/07/10 02:32:00 From bheid at sc.rr.com Wed Apr 7 14:24:37 2010 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 7 Apr 2010 15:24:37 -0400 Subject: [AccessD] Toolbars... Message-ID: <009901cad687$f6abbe60$e4033b20$@rr.com> Hi all, There is a guy that I help out sometimes with his Access 97 app. The app has several custom toolbars in it that are shown/hidden at different times. He distributes this app via an MDE with the runtime. He uses Sage for the install stuff. The issue is, he gets sporadic reports from users that sometimes the standard toolbar may display twice in the toolbar area. He has not been able to replicate it on his system. I have never seen this behavior in the app either. My initial theory is that the user may have Access installed on their system and had been playing around with the toolbars. Has anyone else seen this behavior and know how to correct it? Thanks, Bobby From stuart at lexacorp.com.pg Wed Apr 7 16:44:29 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 08 Apr 2010 07:44:29 +1000 Subject: [AccessD] [Spam] Left and right shift In-Reply-To: <4AB74636C4EE48EFAC80947F5E65173B@XPS> References: <4BBC8EF0.2040904@colbyconsulting.com>, <4AB74636C4EE48EFAC80947F5E65173B@XPS> Message-ID: <4BBCFCBD.11407.EC2DC19@stuart.lexacorp.com.pg> Since a Shift is mainly used as a machine optimized way to multiply/divided by powers of two those functions seem a bit redundant. I'd just use Value = Value * 2 ^ Shift and Value = Value \ 2 ^ Shift (any decent complier should optimise those to shifts internally) -- Stuart On 7 Apr 2010 at 11:16, Jim Dettman wrote: > FYI, > > Here's a couple routines I found to do bit shifts in VBA: > > > Public Function shr(ByVal Value As Long, ByVal Shift As Byte) As Long > Dim i As Byte > shr = Value > If Shift > 0 Then > shr = Int(shr / (2 ^ Shift)) > End If > End Function > > Public Function shl(ByVal Value As Long, ByVal Shift As Byte) As Long > shl = Value > If Shift > 0 Then > Dim i As Byte > Dim m As Long > For i = 1 To Shift > m = shl And &H40000000 > shl = (shl And &H3FFFFFFF) * 2 > If m <> 0 Then > shl = shl Or &H80000000 > End If > Next i > End If > End Function > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 07, 2010 9:56 AM > To: Access Developers discussion and problem solving > Subject: [Spam] [AccessD] Left and right shift > > I thought we have a >> and << operator in Access - shift left and shift > right. When I try to use it > I get a compile error. > > IntPtr = IntPtr >> 2 > > Do we not have this operator? I can't find it listed in an operator in > help. > > -- > 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 darren at activebilling.com.au Wed Apr 7 19:53:31 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Thu, 8 Apr 2010 10:53:31 +1000 Subject: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc Message-ID: Hi Team At my place of work we write software for our systems - (No not in Access ) Anyway - When we have screens or new features they need to be tested Currently we just use an in-house (Very Basic) Excel doc to keep track of issues/bugs etc The problem we have is it seems impossible to paste screen shots into excel I don't know how to get these screen shots to sit 'within' a cell Thus when sorting the software review items by say.importance the screen shots are not sorted accordingly with the data So - My question to the group is - What do you blokes use? My preferred option is to simply be able to drop screen shots 'into cells' so we can keep using the XL docs we use now Then the XL Doc can sit on our network drive so the OPS team and DEV team can get at it It's just for in-house use so nothing fancy is required. Just functional Thanks heaps Team Darren From garykjos at gmail.com Wed Apr 7 20:02:53 2010 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 7 Apr 2010 20:02:53 -0500 Subject: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc In-Reply-To: References: Message-ID: We use an application called Bugzilla http://www.bugzilla.org/ GK On Wed, Apr 7, 2010 at 7:53 PM, Darren - Active Billing wrote: > Hi Team > > At my place of work we write software for our systems - (No not in Access > ) > > > > Anyway - When we have screens or new features they need to be tested > > Currently we just use an in-house (Very Basic) Excel doc to keep track of > issues/bugs etc > > The problem we have is it seems impossible to paste screen shots into excel > > I don't know how to get these screen shots to sit 'within' a cell > > Thus when sorting the software review items by say.importance > > the screen shots are not sorted accordingly with the data > > > > So - My question to the group is - What do you blokes use? > > My preferred option is to simply be able to drop screen shots > > 'into cells' so we can keep using the XL docs we use now > > Then the XL Doc can sit on our network drive so the OPS team and > > DEV team can get at it > > > > It's just for in-house use so nothing fancy is required. Just functional > > > > Thanks heaps Team > > > > Darren > > -- > 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 darren at activebilling.com.au Wed Apr 7 20:50:17 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Thu, 8 Apr 2010 11:50:17 +1000 Subject: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc In-Reply-To: References: Message-ID: Hi Gary Thanks for the link - WOW!! That's way too fancy for our needs I was hoping for something much much much simpler Our needs are purely in-house and no need for about 95% of the features on that tool. I would rather have it NOT web based - As I know NOTHING of such things If it's web based then that means I would need to get others involved in its install, implementation and maintenance - Yes? Trying to keep this between 4 or 5 people - all in house So when I say nothing fancy I really do mean low key - It can even stay in Excel Thanks heaps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, 8 April 2010 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc We use an application called Bugzilla http://www.bugzilla.org/ GK On Wed, Apr 7, 2010 at 7:53 PM, Darren - Active Billing wrote: > Hi Team > > At my place of work we write software for our systems - (No not in Access > ) > > > > Anyway - When we have screens or new features they need to be tested > > Currently we just use an in-house (Very Basic) Excel doc to keep track of > issues/bugs etc > > The problem we have is it seems impossible to paste screen shots into excel > > I don't know how to get these screen shots to sit 'within' a cell > > Thus when sorting the software review items by say.importance > > the screen shots are not sorted accordingly with the data > > > > So - My question to the group is - What do you blokes use? > > My preferred option is to simply be able to drop screen shots > > 'into cells' so we can keep using the XL docs we use now > > Then the XL Doc can sit on our network drive so the OPS team and > > DEV team can get at it > > > > It's just for in-house use so nothing fancy is required. Just functional > > > > Thanks heaps Team > > > > Darren > > -- > 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 rusty.hammond at cpiqpc.com Wed Apr 7 22:01:26 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Wed, 7 Apr 2010 22:01:26 -0500 Subject: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD33E@CPIEMAIL-EVS1.CPIQPC.NET> We use bugtracker (ifdefined.com). It's free but that sounds like it's more than you want too. Do you have a Windows 2003 or above server? If so Sharepoint services should be on there and I'm pretty sure I've seen a template on Microsoft's sharepoint site for an issue tracking system. It still is more than what you're asking for but may not be too bad to setup. HTH Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active Billing Sent: Wednesday, April 07, 2010 8:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc Hi Gary Thanks for the link - WOW!! That's way too fancy for our needs I was hoping for something much much much simpler Our needs are purely in-house and no need for about 95% of the features on that tool. I would rather have it NOT web based - As I know NOTHING of such things If it's web based then that means I would need to get others involved in its install, implementation and maintenance - Yes? Trying to keep this between 4 or 5 people - all in house So when I say nothing fancy I really do mean low key - It can even stay in Excel Thanks heaps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, 8 April 2010 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc We use an application called Bugzilla http://www.bugzilla.org/ GK On Wed, Apr 7, 2010 at 7:53 PM, Darren - Active Billing wrote: > Hi Team > > At my place of work we write software for our systems - (No not in > Access > ) > > > > Anyway - When we have screens or new features they need to be tested > > Currently we just use an in-house (Very Basic) Excel doc to keep track > of issues/bugs etc > > The problem we have is it seems impossible to paste screen shots into excel > > I don't know how to get these screen shots to sit 'within' a cell > > Thus when sorting the software review items by say.importance > > the screen shots are not sorted accordingly with the data > > > > So - My question to the group is - What do you blokes use? > > My preferred option is to simply be able to drop screen shots > > 'into cells' so we can keep using the XL docs we use now > > Then the XL Doc can sit on our network drive so the OPS team and > > DEV team can get at it > > > > It's just for in-house use so nothing fancy is required. Just > functional > > > > Thanks heaps Team > > > > Darren > > -- > 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 ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From ab-mi at post3.tele.dk Thu Apr 8 02:11:19 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Thu, 8 Apr 2010 09:11:19 +0200 Subject: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc In-Reply-To: References: Message-ID: Darren, You can in fact do this in Excel. I just made a small test and sorting/filtering rows with pictures worked fine. All you have to do is ensure that the cells hosting the pictures are big enough (increase row height and column width until some space is left around the pictures). Also you need to ensure that the property "Don't move or size with cells" is NOT selected for the pictures. HTH Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Darren - Active Billing Sendt: 8. april 2010 02:54 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] OT: Software Testing - Reporting of Bugs/Issues etc Hi Team At my place of work we write software for our systems - (No not in Access ) Anyway - When we have screens or new features they need to be tested Currently we just use an in-house (Very Basic) Excel doc to keep track of issues/bugs etc The problem we have is it seems impossible to paste screen shots into excel I don't know how to get these screen shots to sit 'within' a cell Thus when sorting the software review items by say.importance the screen shots are not sorted accordingly with the data So - My question to the group is - What do you blokes use? My preferred option is to simply be able to drop screen shots 'into cells' so we can keep using the XL docs we use now Then the XL Doc can sit on our network drive so the OPS team and DEV team can get at it It's just for in-house use so nothing fancy is required. Just functional Thanks heaps Team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 8 06:51:07 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 08 Apr 2010 07:51:07 -0400 Subject: [AccessD] This just in Message-ID: <4BBDC32B.9000109@colbyconsulting.com> One SQL Server system on SSD http://www.sqlservercentral.com/articles/SSD+Disks/69693/ -- John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Thu Apr 8 10:08:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 8 Apr 2010 16:08:26 +0100 Subject: [AccessD] This just in In-Reply-To: <4BBDC32B.9000109@colbyconsulting.com> References: <4BBDC32B.9000109@colbyconsulting.com> Message-ID: <0E611BCA976E45E69D3273D7EF3A20F8@Server> This requires registration. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, April 08, 2010 12:51 PM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] This just in One SQL Server system on SSD http://www.sqlservercentral.com/articles/SSD+Disks/69693/ -- 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 Thu Apr 8 10:29:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 08 Apr 2010 11:29:28 -0400 Subject: [AccessD] MySQL questions Message-ID: <4BBDF658.9000708@colbyconsulting.com> I am trying to get MySQL installed and working and a C# project talking to it. I am moving my billing database to C# as a class project and also because it is VERY long in the tooth and time for an upgrade. Because it is a class project I am trying to get it to play with MySQL because I can carry a small server around on my flash drive and work on it at school as well as anywhere else I have Visual Studio installed. So, I get a copy of XAMPLite which other people in the class are using. It fires up and runs from the thumb drive but... On my dev laptop when I run it and then try to go to localhost, I get Microsoft's IIS default web page, not the XAMPLite server control page like I am supposed to. Obviously XAMPLite expects that its server will be the only one running. So how do I deal with this? Does anyone know how to get the apache server instance that XAMPLite loads to point to something other than localhost? TIA, -- John W. Colby www.ColbyConsulting.com From phpons at gmail.com Thu Apr 8 11:23:44 2010 From: phpons at gmail.com (philippe pons) Date: Thu, 8 Apr 2010 18:23:44 +0200 Subject: [AccessD] MySQL questions In-Reply-To: <4BBDF658.9000708@colbyconsulting.com> References: <4BBDF658.9000708@colbyconsulting.com> Message-ID: John, I guess it is because both server are trying to use the same port(80 for web server). The best solution is to modify the apache ini file for him to use a different port. The easiest one, is to shut down IIS when using apache! Philippe 2010/4/8 jwcolby > I am trying to get MySQL installed and working and a C# project talking to > it. I am moving my > billing database to C# as a class project and also because it is VERY long > in the tooth and time for > an upgrade. Because it is a class project I am trying to get it to play > with MySQL because I can > carry a small server around on my flash drive and work on it at school as > well as anywhere else I > have Visual Studio installed. > > So, I get a copy of XAMPLite which other people in the class are using. It > fires up and runs from > the thumb drive but... > > On my dev laptop when I run it and then try to go to localhost, I get > Microsoft's IIS default web > page, not the XAMPLite server control page like I am supposed to. > Obviously XAMPLite expects that > its server will be the only one running. > > So how do I deal with this? Does anyone know how to get the apache server > instance that XAMPLite > loads to point to something other than localhost? > > TIA, > > -- > 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 delam at zyterra.com Thu Apr 8 13:33:34 2010 From: delam at zyterra.com (Debbie) Date: Thu, 8 Apr 2010 13:33:34 -0500 Subject: [AccessD] Deleting record Message-ID: <0E13839D-99B7-452A-95FE-31B6DEF4C507@zyterra.com> I have a database that is deleting a new record when another user enters the same type of new record. If the first user exits the form where the record was created, it will not get deleted, but if they are both creating records, the second is the only one to remain and save. I thought it may be a conflict in trying to save, so I tried multiple methods to make sure the record was saved before user 2 started their record. I have even created a minimal record before even opening the form and then opening the new record I just created, but the delete still happens. We are only getting this while running the app on a terminal services app called Netilla and both users are using the same FE. This is on 2007 and most are using runtime, though a test with the full Access installation had the same problem. Debbie Sent from my iPhone From delam at zyterra.com Thu Apr 8 15:28:12 2010 From: delam at zyterra.com (Debbie) Date: Thu, 8 Apr 2010 15:28:12 -0500 Subject: [AccessD] Deleting record In-Reply-To: <0E13839D-99B7-452A-95FE-31B6DEF4C507@zyterra.com> References: <0E13839D-99B7-452A-95FE-31B6DEF4C507@zyterra.com> Message-ID: After days of beating my head on this one, I discovered the answer after asking the question here. It turns out the culprit was some error handling code to get rid of records that could be saved, but were not complete enough to be good data. Debbie Sent from my iPhone On Apr 8, 2010, at 1:33 PM, Debbie wrote: > I have a database that is deleting a new record when another user > enters the same type of new record. If the first user exits the form > where the record was created, it will not get deleted, but if they are > both creating records, the second is the only one to remain and save. > > I thought it may be a conflict in trying to save, so I tried multiple > methods to make sure the record was saved before user 2 started their > record. I have even created a minimal record before even opening the > form and then opening the new record I just created, but the delete > still happens. > > We are only getting this while running the app on a terminal services > app called Netilla and both users are using the same FE. This is on > 2007 and most are using runtime, though a test with the full Access > installation had the same problem. > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Thu Apr 8 15:36:23 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Apr 2010 15:36:23 -0500 Subject: [AccessD] Deleting record In-Reply-To: References: <0E13839D-99B7-452A-95FE-31B6DEF4C507@zyterra.com> Message-ID: Once again sending to the list gets the problem solved. It's the magic of the list! Glad you got it fixed Debbie. GK On Thu, Apr 8, 2010 at 3:28 PM, Debbie wrote: > After days of beating my head on this one, I discovered the answer > after asking the question here. It turns out the culprit was some > error handling code to get rid of records that could be saved, but > were not complete enough to be good data. > > Debbie > > Sent from my iPhone > > On Apr 8, 2010, at 1:33 PM, Debbie wrote: > >> I have a database that is deleting a new record when another user >> enters the same type of new record. If the first user exits the form >> where the record was created, it will not get deleted, but if they are >> both creating records, the second is the only one to remain and save. >> >> I thought it may be a conflict in trying to save, so I tried multiple >> methods to make sure the record was saved before user 2 started their >> record. I have even created a minimal record before even opening the >> form and then opening the new record I just created, but the delete >> still happens. >> >> We are only getting this while running the app on a terminal services >> app called Netilla and both users are using the same FE. This is on >> 2007 and most are using runtime, though a test with the full Access >> installation had the same problem. >> >> Debbie >> >> Sent from my iPhone >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Thu Apr 8 15:44:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 08 Apr 2010 16:44:13 -0400 Subject: [AccessD] C# Date conversion going in to a stored procedure Message-ID: <4BBE401D.3050308@colbyconsulting.com> I have an issue where I am sending in a date from C# to a stored procedure in SQL Server. I am looking at the data on the C# side, clear down into the parameter object.value and the data is a string which looks like: "12/22/2010 14:23:01". When it gets into the Varchar(100) on the SQL Server side (in the stored procedure) the seconds have been stripped off. I NEED the seconds. It appears that SQL Server is "helpfully" noticing that the string is a date and doing a conversion for me, stripping the seconds in the process. I have passed the date in as a string, as an actual date and so forth and in all cases, SQL Server strips off the seconds. What do I need to do to cause SQL Server to stop "being helpful" and leave my seconds alone? -- John W. Colby www.ColbyConsulting.com From jwelz at hotmail.com Thu Apr 8 17:54:56 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 8 Apr 2010 16:54:56 -0600 Subject: [AccessD] This just in In-Reply-To: <0E611BCA976E45E69D3273D7EF3A20F8@Server> References: <4BBDC32B.9000109@colbyconsulting.com>, <0E611BCA976E45E69D3273D7EF3A20F8@Server> Message-ID: Registration is a pain. I clicked behind the registration message, copied and pasted the web page into Word, killed he 2nd and 3rd columns and then widened the first. The entire article was available that way. It's a bit interesting to know how the big boys play, but even companies like my parent company, that did over 2 billion in construction volume last year, aren't looking at this hardware yet. Even with over 1500 users on their SQL database. What really matters is whether users can get their work completed in a timely fashion. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 8 Apr 2010 16:08:26 +0100 > Subject: Re: [AccessD] This just in > > > This requires registration. > > Max > > > -----Original Message----- > > One SQL Server system on SSD > > http://www.sqlservercentral.com/articles/SSD+Disks/69693/ > > -- > John W. Colby > www.ColbyConsulting.com _________________________________________________________________ Live connected. Get Hotmail & Messenger on your phone. http://go.microsoft.com/?linkid=9724462 From jwcolby at colbyconsulting.com Fri Apr 9 07:29:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 09 Apr 2010 08:29:30 -0400 Subject: [AccessD] SPAM-LOW: Re: [dba-VB] C# Date conversion going in to a stored procedure In-Reply-To: References: Message-ID: <4BBF1DAA.80806@colbyconsulting.com> I have sent it in as a string (varchar(100), and I have sent it in as a date time. Basically in order to check on the format, I immediately send it right back out as an output parameter coming back from the SP. AFAICT it is converted somewhere in the interface between C# and SQL Server. It is a date in the format MMM DD YYYY hh mm AM/PM as soon as I examine it inside of SQl Server (in the stored procedure). The seconds are gone! Nothing that I have tried inside of the stored procedure allows me to see the seconds, or rather I can format it to display seconds but they are always 00. The second information is lost in the trip over to the stored procedure. This is the C# side where I set up the parameters: sCmdLog.Parameters.Add(new SqlParameter("@DteTimeStart", SqlDbType.DateTime)); sCmdLog.Parameters["@DteTimeStart"].Value = pSPStart;//.ToString("MM/dd/yyyy HH:mm:ss"); sCmdLog.Parameters.Add(new SqlParameter("@DteTimeEnd", SqlDbType.DateTime)); sCmdLog.Parameters["@DteTimeEnd"].Value = pSPEnd;//.ToString("MM/dd/yyyy HH:mm:ss"); This is the SP side: ALTER PROCEDURE [dbo].[_sp_LogProcess] -- Add the parameters for the stored procedure here @DBName varchar(50), @TblName varchar(50), @SPName varchar(50), @Process varchar(50), @Memo varchar(4000), @ErrIntOut int, @ErrStrOut varchar(4000), @RecsAffected int, @DteTimeStart datetime, @DteTimeEnd datetime, @ErrorDesc varchar(4000) output, @ErrorNo int output, @SQLStatement varchar(4000) output The @DteTimeStart and @DteTimeEnd are the variables of interest. The following is what I am using to generate the SQL statement that appends a record into the log table: SELECT @SQL = 'INSERT INTO [_aDataMaster].[dbo].[tblProcessLog] ([PL_DBName] ,[PL_TblName] ,[PL_StoredProcName] ,[PL_Process] ,[PL_Memo] ,[PL_ErrInt] ,[PL_ErrStr] ,[PL_DteProc] ,[PL_RecsAffected] ,[PL_DteTimeStart] ,[PL_DteTimeEnd]) SELECT ''' + @DBName + ''' as PL_DBName, ''' + @TblName + ''' as PL_TblName, ''' + @SPName + ''' AS PL_StoredProcName, ''' + @Process + ''' as PL_Process, ''' + @Memo + ''' as PL_Memo, ' + cast(@ErrIntOut as varchar) + ' as PL_ErrInt, ''' + @ErrStrOut + ''' as PL_ErrStr, ''' + cast(getdate() as varchar) + ''' as PL_DteProc, ''' + CAST(@RecsAffected as varchar) + ''' AS PL_RecsAddected, ''' + cast(@DteTimeStart as varchar) + ''' AS PL_DteTimeStart, ''' + cast(@DteTimeEnd as varchar) + ''' AS PL_DteTimeEnd' The following is the record stored by the process: PL_ID PL_DBName PL_TblName PL_Process PL_Memo PL_ErrInt PL_ErrStr PL_DteProc PL_MS2Process PL_RecsAffected PL_StoredProcName PL_DteTimeStart PL_DteTimeEnd 553 PSM11211_test No TblName specified Accuzip Export 0 Success 2010-04-08 17:24:00.000 NULL 0 _aDataMaster.dbo.sp_AZOut_BCPOutOneFile 2010-04-08 17:24:00.000 2010-04-08 17:24:00.000 I have tried every combination I could think of and it is just stripping the seconds each and every time. I have passed in pure varchar at both ends. I have passed in DateTime at both ends. I have looked at the data in the param.value back in C# and it shows the seconds portion. I look in the SP IMMEDIATELY below the function declaration line and the seconds are gone! I am baffled. I NEED the seconds part. I am trying to time how long my other SPs takes to execute, and the start / end times are what is being passed in to this SP to be logged in the table. The whole logging process is ALMOST useless if I cannot capture the timing data. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Why not declare the parameter as Date? That will accept values with seconds and milliseconds. > > /gustav > >>>> jwcolby at colbyconsulting.com 08-04-2010 22:44 >>> > I have an issue where I am sending in a date from C# to a stored procedure in SQL Server. I am > looking at the data on the C# side, clear down into the parameter object.value and the data is a > string which looks like: "12/22/2010 14:23:01". When it gets into the Varchar(100) on the SQL > Server side (in the stored procedure) the seconds have been stripped off. I NEED the seconds. It > appears that SQL Server is "helpfully" noticing that the string is a date and doing a conversion for > me, stripping the seconds in the process. > > I have passed the date in as a string, as an actual date and so forth and in all cases, SQL Server > strips off the seconds. > > What do I need to do to cause SQL Server to stop "being helpful" and leave my seconds alone? > From stuart at lexacorp.com.pg Fri Apr 9 08:09:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 09 Apr 2010 23:09:33 +1000 Subject: [AccessD] SPAM-LOW: Re: [dba-VB] C# Date conversion going in to a stored procedure In-Reply-To: <4BBF1DAA.80806@colbyconsulting.com> References: , <4BBF1DAA.80806@colbyconsulting.com> Message-ID: <4BBF270D.24554.75EE9A9@stuart.lexacorp.com.pg> Are PL_DteTimeStart PL_DteTimeEnd set up as DateTime or SmallDateTime fields. If the latter, they can only store times to the nearest minute. -- Stuart On 9 Apr 2010 at 8:29, jwcolby wrote: > I have sent it in as a string (varchar(100), and I have sent it in as a date time. Basically in > order to check on the format, I immediately send it right back out as an output parameter coming > back from the SP. AFAICT it is converted somewhere in the interface between C# and SQL Server. It > is a date in the format MMM DD YYYY hh mm AM/PM as soon as I examine it inside of SQl Server (in the > stored procedure). > > The seconds are gone! Nothing that I have tried inside of the stored procedure allows me to see the > seconds, or rather I can format it to display seconds but they are always 00. The second > information is lost in the trip over to the stored procedure. > > This is the C# side where I set up the parameters: > > sCmdLog.Parameters.Add(new SqlParameter("@DteTimeStart", SqlDbType.DateTime)); > sCmdLog.Parameters["@DteTimeStart"].Value = pSPStart;//.ToString("MM/dd/yyyy HH:mm:ss"); > > sCmdLog.Parameters.Add(new SqlParameter("@DteTimeEnd", SqlDbType.DateTime)); > sCmdLog.Parameters["@DteTimeEnd"].Value = pSPEnd;//.ToString("MM/dd/yyyy HH:mm:ss"); > > > This is the SP side: > > ALTER PROCEDURE [dbo].[_sp_LogProcess] > -- Add the parameters for the stored procedure here > @DBName varchar(50), @TblName varchar(50), > @SPName varchar(50), > @Process varchar(50), @Memo varchar(4000), > @ErrIntOut int, @ErrStrOut varchar(4000), > @RecsAffected int, > @DteTimeStart datetime, > @DteTimeEnd datetime, > @ErrorDesc varchar(4000) output, > @ErrorNo int output, > @SQLStatement varchar(4000) output > > The @DteTimeStart and @DteTimeEnd are the variables of interest. > > The following is what I am using to generate the SQL statement that appends a record into the log table: > > SELECT @SQL = 'INSERT INTO [_aDataMaster].[dbo].[tblProcessLog] > ([PL_DBName] > ,[PL_TblName] > ,[PL_StoredProcName] > ,[PL_Process] > ,[PL_Memo] > ,[PL_ErrInt] > ,[PL_ErrStr] > ,[PL_DteProc] > ,[PL_RecsAffected] > ,[PL_DteTimeStart] > ,[PL_DteTimeEnd]) > SELECT ''' > + @DBName + ''' as PL_DBName, ''' > + @TblName + ''' as PL_TblName, ''' > + @SPName + ''' AS PL_StoredProcName, ''' > + @Process + ''' as PL_Process, ''' > + @Memo + ''' as PL_Memo, ' > + cast(@ErrIntOut as varchar) + ' as PL_ErrInt, ''' > + @ErrStrOut + ''' as PL_ErrStr, ''' > + cast(getdate() as varchar) + ''' as PL_DteProc, ''' > + CAST(@RecsAffected as varchar) + ''' AS PL_RecsAddected, ''' > + cast(@DteTimeStart as varchar) + ''' AS PL_DteTimeStart, ''' > + cast(@DteTimeEnd as varchar) + ''' AS PL_DteTimeEnd' > > > > The following is the record stored by the process: > > > PL_ID PL_DBName PL_TblName PL_Process PL_Memo PL_ErrInt PL_ErrStr PL_DteProc PL_MS2Process > PL_RecsAffected PL_StoredProcName PL_DteTimeStart PL_DteTimeEnd > 553 PSM11211_test No TblName specified Accuzip Export 0 Success 2010-04-08 17:24:00.000 NULL 0 > _aDataMaster.dbo.sp_AZOut_BCPOutOneFile 2010-04-08 17:24:00.000 2010-04-08 17:24:00.000 > > I have tried every combination I could think of and it is just stripping the seconds each and every > time. I have passed in pure varchar at both ends. I have passed in DateTime at both ends. I have > looked at the data in the param.value back in C# and it shows the seconds portion. I look in the SP > IMMEDIATELY below the function declaration line and the seconds are gone! > > I am baffled. > > I NEED the seconds part. I am trying to time how long my other SPs takes to execute, and the start > / end times are what is being passed in to this SP to be logged in the table. The whole logging > process is ALMOST useless if I cannot capture the timing data. > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: > > Hi John > > > > Why not declare the parameter as Date? That will accept values with seconds and milliseconds. > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 08-04-2010 22:44 >>> > > I have an issue where I am sending in a date from C# to a stored procedure in SQL Server. I am > > looking at the data on the C# side, clear down into the parameter object.value and the data is a > > string which looks like: "12/22/2010 14:23:01". When it gets into the Varchar(100) on the SQL > > Server side (in the stored procedure) the seconds have been stripped off. I NEED the seconds. It > > appears that SQL Server is "helpfully" noticing that the string is a date and doing a conversion for > > me, stripping the seconds in the process. > > > > I have passed the date in as a string, as an actual date and so forth and in all cases, SQL Server > > strips off the seconds. > > > > What do I need to do to cause SQL Server to stop "being helpful" and leave my seconds alone? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Apr 9 10:11:28 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 09 Apr 2010 11:11:28 -0400 Subject: [AccessD] Phantom report printing In-Reply-To: <4BBDC32B.9000109@colbyconsulting.com> References: <4BBDC32B.9000109@colbyconsulting.com> Message-ID: <4BBF0B63.167F.006B.0@niagaracounty.com> I just inherited a program that I've been asked to massage it into working for our needs. It came from another county, and I have to make it work for us. This shouldn't be a big deal, and I actually stated that I could do this pretty quick, but now I am stuck on a simple report. This is calling a MS Word doc. If you click the button to print a "lost certificate" you get an error saying it can't find "\Lost Certificate.doc" This made total sense to me, because the was alien to me, and it came from another county, so I figured I just had to get into the code and change it to our own path and file. But, what I thought was going to be a 5 min. job, is really eating up my time, because I can't find this code anywhere. There isn't a single Module in this program, so it isn't that. There are only 2 macros, and it doesn't look to be either of those. So, it is simply VBA behind the button right? Doesn't look that way. The button on the main form calls a subform... The subform is very small, having only 14 basic fields (name and address stuff...just the basics). On Open this form only does this: Private Sub Form_Open(Cancel As Integer) DoCmd.GoToControl "Certificate" [Certificate] = True Me.Refresh End Sub There is a print button...well it has to be here right? Wrong...here is the code for that: Private Sub WordBtn_Click() Me.Refresh End Sub The only other code for the form is a expiration date, which is 365 days added to a cert date. And, then there is code On Close for the form. I figure it has to be here, but this is all that is there: Private Sub Form_Close() DoCmd.SetWarnings Off DoCmd.OpenQuery "ClearCerticate" End Sub And, the query code is this...it is an update query: UPDATE DISTINCTROW Colleges SET Colleges.Certificate = False WHERE (((Colleges.Certificate)=True)); The only thing that is odd for me...I've never actually printed an MS Word form from Access...is this, at the top of the code for the form: Option Compare Database 'Use database order for string comparisons Dim DocObject As Object 'Holds a reference to a winword object I doubt this is what I am looking for, but what kind of reference are they talking about...is it my path and name? And, where is this thing? The only place I see this reference in this code, is for a non-excitant control...the code hasn't been cleaned up for past controls. I haven't had something stump me like this in quite a while, and I would really appreciate any help given. I can pass along any code or anything that anyone needs. Thanks J Clark From jwcolby at colbyconsulting.com Fri Apr 9 10:15:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 09 Apr 2010 11:15:56 -0400 Subject: [AccessD] This just in In-Reply-To: References: <4BBDC32B.9000109@colbyconsulting.com>, <0E611BCA976E45E69D3273D7EF3A20F8@Server> Message-ID: <4BBF44AC.1090603@colbyconsulting.com> J?rgen Using a SSD really only works if the database is mostly read-only. SSDs will wear out in a heartbeat if they are written to 24/7. OTOH if they are read-only, they can be accessed MUCH faster, they can process thousands or even tens of thousands of IOPS per second. I personally have a need for this, but not the bucks. Sigh. John W. Colby www.ColbyConsulting.com Jurgen Welz wrote: > Registration is a pain. I clicked behind the registration message, copied and pasted the web page into Word, killed he 2nd and 3rd columns and then widened the first. The entire article was available that way. It's a bit interesting to know how the big boys play, but even companies like my parent company, that did over 2 billion in construction volume last year, aren't looking at this hardware yet. Even with over 1500 users on their SQL database. What really matters is whether users can get their work completed in a timely fashion. > > Ciao > > J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > >> From: max.wanadoo at gmail.com >> To: accessd at databaseadvisors.com >> Date: Thu, 8 Apr 2010 16:08:26 +0100 >> Subject: Re: [AccessD] This just in >> >> >> This requires registration. >> >> Max >> >> >> -----Original Message----- >> >> One SQL Server system on SSD >> >> http://www.sqlservercentral.com/articles/SSD+Disks/69693/ >> >> -- >> John W. Colby >> www.ColbyConsulting.com > > _________________________________________________________________ > Live connected. Get Hotmail & Messenger on your phone. > http://go.microsoft.com/?linkid=9724462 From John.Clark at niagaracounty.com Fri Apr 9 10:25:18 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 09 Apr 2010 11:25:18 -0400 Subject: [AccessD] Phantom report printing In-Reply-To: <4BBF0B63.167F.006B.0@niagaracounty.com> References: <4BBDC32B.9000109@colbyconsulting.com> <4BBF0B63.167F.006B.0@niagaracounty.com> Message-ID: <4BBF0EA0.167F.006B.0@niagaracounty.com> I think I've found it...how many times to I find my own answer, only after giving up and writing to the list? Lots is the answer ;o) It turns out, I just need to get out a little more...I was over thinking things greatly it appears. I'm looking all over code, and it looks like it is just a property..."Hyperlink Address" I can't tell you how long I've been going down the wrong road on this one. I am used to doing everything through code...I like code. I'm actually a little embarrassed here. Sorry to bother y'all...carry on! >>> "John Clark" 4/9/2010 11:11 AM >>> I just inherited a program that I've been asked to massage it into working for our needs. It came from another county, and I have to make it work for us. This shouldn't be a big deal, and I actually stated that I could do this pretty quick, but now I am stuck on a simple report. This is calling a MS Word doc. If you click the button to print a "lost certificate" you get an error saying it can't find "\Lost Certificate.doc" This made total sense to me, because the was alien to me, and it came from another county, so I figured I just had to get into the code and change it to our own path and file. But, what I thought was going to be a 5 min. job, is really eating up my time, because I can't find this code anywhere. There isn't a single Module in this program, so it isn't that. There are only 2 macros, and it doesn't look to be either of those. So, it is simply VBA behind the button right? Doesn't look that way. The button on the main form calls a subform... The subform is very small, having only 14 basic fields (name and address stuff...just the basics). On Open this form only does this: Private Sub Form_Open(Cancel As Integer) DoCmd.GoToControl "Certificate" [Certificate] = True Me.Refresh End Sub There is a print button...well it has to be here right? Wrong...here is the code for that: Private Sub WordBtn_Click() Me.Refresh End Sub The only other code for the form is a expiration date, which is 365 days added to a cert date. And, then there is code On Close for the form. I figure it has to be here, but this is all that is there: Private Sub Form_Close() DoCmd.SetWarnings Off DoCmd.OpenQuery "ClearCerticate" End Sub And, the query code is this...it is an update query: UPDATE DISTINCTROW Colleges SET Colleges.Certificate = False WHERE (((Colleges.Certificate)=True)); The only thing that is odd for me...I've never actually printed an MS Word form from Access...is this, at the top of the code for the form: Option Compare Database 'Use database order for string comparisons Dim DocObject As Object 'Holds a reference to a winword object I doubt this is what I am looking for, but what kind of reference are they talking about...is it my path and name? And, where is this thing? The only place I see this reference in this code, is for a non-excitant control...the code hasn't been cleaned up for past controls. I haven't had something stump me like this in quite a while, and I would really appreciate any help given. I can pass along any code or anything that anyone needs. Thanks J Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Fri Apr 9 10:31:13 2010 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Fri, 9 Apr 2010 11:31:13 -0400 Subject: [AccessD] Phantom report printing In-Reply-To: <4BBF0EA0.167F.006B.0@niagaracounty.com> References: <4BBDC32B.9000109@colbyconsulting.com> <4BBF0B63.167F.006B.0@niagaracounty.com> <4BBF0EA0.167F.006B.0@niagaracounty.com> Message-ID: <201004091531.o39FVGRF000560@databaseadvisors.com> Sometimes just talking out loud does the trick, ...knowhutImean? ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, April 09, 2010 11:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Phantom report printing I think I've found it...how many times to I find my own answer, only after giving up and writing to the list? Lots is the answer ;o) It turns out, I just need to get out a little more...I was over thinking things greatly it appears. I'm looking all over code, and it looks like it is just a property..."Hyperlink Address" I can't tell you how long I've been going down the wrong road on this one. I am used to doing everything through code...I like code. I'm actually a little embarrassed here. Sorry to bother y'all...carry on! >>> "John Clark" 4/9/2010 11:11 AM >>> I just inherited a program that I've been asked to massage it into working for our needs. It came from another county, and I have to make it work for us. This shouldn't be a big deal, and I actually stated that I could do this pretty quick, but now I am stuck on a simple report. This is calling a MS Word doc. If you click the button to print a "lost certificate" you get an error saying it can't find "\Lost Certificate.doc" This made total sense to me, because the was alien to me, and it came from another county, so I figured I just had to get into the code and change it to our own path and file. But, what I thought was going to be a 5 min. job, is really eating up my time, because I can't find this code anywhere. There isn't a single Module in this program, so it isn't that. There are only 2 macros, and it doesn't look to be either of those. So, it is simply VBA behind the button right? Doesn't look that way. The button on the main form calls a subform... The subform is very small, having only 14 basic fields (name and address stuff...just the basics). On Open this form only does this: Private Sub Form_Open(Cancel As Integer) DoCmd.GoToControl "Certificate" [Certificate] = True Me.Refresh End Sub There is a print button...well it has to be here right? Wrong...here is the code for that: Private Sub WordBtn_Click() Me.Refresh End Sub The only other code for the form is a expiration date, which is 365 days added to a cert date. And, then there is code On Close for the form. I figure it has to be here, but this is all that is there: Private Sub Form_Close() DoCmd.SetWarnings Off DoCmd.OpenQuery "ClearCerticate" End Sub And, the query code is this...it is an update query: UPDATE DISTINCTROW Colleges SET Colleges.Certificate = False WHERE (((Colleges.Certificate)=True)); The only thing that is odd for me...I've never actually printed an MS Word form from Access...is this, at the top of the code for the form: Option Compare Database 'Use database order for string comparisons Dim DocObject As Object 'Holds a reference to a winword object I doubt this is what I am looking for, but what kind of reference are they talking about...is it my path and name? And, where is this thing? The only place I see this reference in this code, is for a non-excitant control...the code hasn't been cleaned up for past controls. I haven't had something stump me like this in quite a while, and I would really appreciate any help given. I can pass along any code or anything that anyone needs. Thanks J Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dkalsow at yahoo.com Fri Apr 9 11:50:41 2010 From: dkalsow at yahoo.com (Dale_Anne Kalsow) Date: Fri, 9 Apr 2010 09:50:41 -0700 (PDT) Subject: [AccessD] Move to Internet In-Reply-To: <201004091531.o39FVGRF000560@databaseadvisors.com> Message-ID: <235714.62567.qm@web50404.mail.re2.yahoo.com> Good Morning, ? Does anyone have any experience taking an access 2007 database and converting it to be used on an intranet?? Is so I would appreciate knowing how to do it. ? thanks! ? Dale From jwcolby at colbyconsulting.com Fri Apr 9 12:02:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 09 Apr 2010 13:02:11 -0400 Subject: [AccessD] c# interface to webcam Message-ID: <4BBF5D93.8070606@colbyconsulting.com> I bought four little USB no name webcams from Newegg the other day. http://www.newegg.com/Product/Product.aspx?Item=N82E16826717012R http://www.imcorpusa.com/products.asp?id=486 I took a chance just because of the price, I ended up paying $10 each shipped to my door. What peaked my interest is that they are an actual 1280 x 1024 sensor. Getting more than 640 x 480 is tough and usually very expensive. Thus I figure if they worked I win. They work! Windows Vista eventually figures out how to load a driver for them. I say eventually because it takes a good minute before the message pops up. Once that happens I can use them in any application that needs a camera, and the resolution and picture quality is just outstanding! For example, once the driver loads, Skype picks them right up and uses them at max resolution. GREAT picture!. So what I really want to do is experiment with them and use C# to read them and display them. Between now and then, does anyone have a favorite "surveillance" software that isn't too expensive that would allow me to connect these to machines around the house and record video? Movement triggered etc. I have a system in the living room that sits under the TV that I would like to put one of these on just to be able to record a burst of a few seconds when it senses movement. Then wait for no movement before resetting to record another burst. Kind of a poor man's (that would be me) surveillance camera. I actually went looking, found and downloaded a half dozen packages last night. Some worked, all were klunky if they worked. There are a bunch that are designed to publish the video to a web system so that I could see them from outside the house "when I travel", but I don't travel so I really just need them to snap a few seconds every once in a while when there is movement. And someday play with them in C#. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Fri Apr 9 12:18:15 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 9 Apr 2010 12:18:15 -0500 Subject: [AccessD] Move to Internet References: <235714.62567.qm@web50404.mail.re2.yahoo.com> Message-ID: Dale, I work for a small firm that currently has no formal "intranet". We wanted to create several reports (Based on Access 2007 Data) on a daily basis and keep them for historical purposes. We created the reports in Access 2007 and pushed them out in HTML format. We have a little VBA code to build and put a date-time stamp in the file name. Example Sales_Report_Date_2010_04_08_Time_06_01_55.html These reports were all stored in a single folder on our Windows Server. We then wrote a little Windows Script to build an HTML "Index" page that simply lists each .HTML file in the folder. Example (each line is a hyperlink to an actual report) ~~~~~~~~~~~~~~~~~~~ Sales_Report_Date_2010_04_01_Time_05_01_11.html Sales_Report_Date_2010_04_02_Time_07_04_12.html Sales_Report_Date_2010_04_03_Time_03_02_33.html Sales_Report_Date_2010_04_04_Time_09_07_34.html Sales_Report_Date_2010_04_05_Time_03_03_23.html ~~~~~~~~~~~~~~~~~~~ Granted, this is pretty basic, but we are now able to easily view our Access 2007 Reports in HTML format. Down the road, we may build a more sophisticated "Intranet", but for now, this is getting the job done nicely and it did not incur any additional expenses. I am not sure if this is what you had in mind. Please feel free to ask any questions if I didn't explain things clearly. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dale_Anne Kalsow Sent: Friday, April 09, 2010 11:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Move to Internet Good Morning, ? Does anyone have any experience taking an access 2007 database and converting it to be used on an intranet?? Is so I would appreciate knowing how to do it. ? thanks! ? Dale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From stuart at lexacorp.com.pg Fri Apr 9 18:10:44 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 10 Apr 2010 09:10:44 +1000 Subject: [AccessD] Move to Internet In-Reply-To: <235714.62567.qm@web50404.mail.re2.yahoo.com> References: <201004091531.o39FVGRF000560@databaseadvisors.com>, <235714.62567.qm@web50404.mail.re2.yahoo.com> Message-ID: <4BBFB3F4.29434.9855024@stuart.lexacorp.com.pg> You need to be a bit more specific about what you actually want to achieve. Are you talking about an Access database or an Access application. If you want to access the data in a database on web pages on an intranet, it''s no different to using any other database backend. You can use PHP, classic ASP, ASP.net to generate webpages that interact with your database. If are talking about replicating Access forms/reports for use on the Intranet using Data Access Pages, they were depreciated in 2007 and you shouldn't even think about it. -- Stuart On 9 Apr 2010 at 9:50, Dale_Anne Kalsow wrote: > Good Morning, > ? > Does anyone have any experience taking an access 2007 database and converting it to be used on an intranet?? Is so I would appreciate knowing how to do it. > ? > thanks! > ? > Dale > > > > -- > 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 Apr 9 18:25:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 10 Apr 2010 09:25:01 +1000 Subject: [AccessD] [dba-VB] c# interface to webcam In-Reply-To: <4BBF5D93.8070606@colbyconsulting.com> References: <4BBF5D93.8070606@colbyconsulting.com> Message-ID: <4BBFB74D.4826.9926337@stuart.lexacorp.com.pg> Max just posted "YAWCAM" on dba_Tech, I think in a misplaced response to this. Yawcam = Yet Another WebCAM software" http://www.yawcam.com/ On the help page, I noticed this google ad: Add Video Capture and processing to your .NET applications in seconds. http://www.mitov.com/html/videolab.html ("free for non-commercial purpose"!) Might be just what you are looking for for that "someday". -- Stuart On 9 Apr 2010 at 13:02, jwcolby wrote: > I bought four little USB no name webcams from Newegg the other day. > > http://www.newegg.com/Product/Product.aspx?Item=N82E16826717012R > http://www.imcorpusa.com/products.asp?id=486 > > I took a chance just because of the price, I ended up paying $10 each shipped to my door. What > peaked my interest is that they are an actual 1280 x 1024 sensor. Getting more than 640 x 480 is > tough and usually very expensive. Thus I figure if they worked I win. They work! > > Windows Vista eventually figures out how to load a driver for them. I say eventually because it > takes a good minute before the message pops up. Once that happens I can use them in any application > that needs a camera, and the resolution and picture quality is just outstanding! For example, once > the driver loads, Skype picks them right up and uses them at max resolution. GREAT picture!. > > So what I really want to do is experiment with them and use C# to read them and display them. > > Between now and then, does anyone have a favorite "surveillance" software that isn't too expensive > that would allow me to connect these to machines around the house and record video? Movement > triggered etc. I have a system in the living room that sits under the TV that I would like to put > one of these on just to be able to record a burst of a few seconds when it senses movement. Then > wait for no movement before resetting to record another burst. > > Kind of a poor man's (that would be me) surveillance camera. > > I actually went looking, found and downloaded a half dozen packages last night. Some worked, all > were klunky if they worked. There are a bunch that are designed to publish the video to a web > system so that I could see them from outside the house "when I travel", but I don't travel so I > really just need them to snap a few seconds every once in a while when there is movement. > > And someday play with them in C#. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From dkalsow at yahoo.com Fri Apr 9 19:27:57 2010 From: dkalsow at yahoo.com (Dale_Anne Kalsow) Date: Fri, 9 Apr 2010 17:27:57 -0700 (PDT) Subject: [AccessD] Move to Internet In-Reply-To: <4BBFB3F4.29434.9855024@stuart.lexacorp.com.pg> Message-ID: <143829.3731.qm@web50406.mail.re2.yahoo.com> Yes I am looking for a way to use access forms and reports on an internet site or sharepoint. ? Dale --- On Fri, 4/9/10, Stuart McLachlan wrote: From: Stuart McLachlan Subject: Re: [AccessD] Move to Internet To: "Access Developers discussion and problem solving" Date: Friday, April 9, 2010, 6:10 PM You need to be a bit more specific about what you actually want to achieve.? Are you talking about an Access database or an Access application. If you want to access the data in a database on web pages on an intranet,? it''s no different to using any other database backend.? You can use PHP, classic ASP, ASP.net to generate webpages that interact with your database. If are talking about replicating Access forms/reports for use on the Intranet? using? Data Access Pages, they were depreciated in 2007 and you shouldn't even think about it. -- Stuart On 9 Apr 2010 at 9:50, Dale_Anne Kalsow wrote: > Good Morning, > ? > Does anyone have any experience taking an access 2007 database and converting it to be used on an intranet?? Is so I would appreciate knowing how to do it. > ? > thanks! > ? > Dale > > >? ? ??? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 9 20:51:20 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 10 Apr 2010 13:51:20 +1200 Subject: [AccessD] Move to Internet In-Reply-To: <143829.3731.qm@web50406.mail.re2.yahoo.com> References: <143829.3731.qm@web50406.mail.re2.yahoo.com> Message-ID: <3E1199B8B44A413691F33BEFD201677A@stevePC> Dale, If you are talking about a fixed, identified, relatively small number of users, you can have them use the application remotely, via Terminal Services, or something like http://www.thinsoftinc.com/index.aspx which I have used successfully a few times. Another alternative is to wait for Access 2010 and use the new web application functionality. Regards Steve -------------------------------------------------- From: "Dale_Anne Kalsow" Sent: Saturday, April 10, 2010 12:27 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Move to Internet > Yes I am looking for a way to use access forms and reports on an internet > site or sharepoint. > From thewaddles at sbcglobal.net Fri Apr 9 22:02:28 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Fri, 9 Apr 2010 20:02:28 -0700 Subject: [AccessD] Making changes to remote db Message-ID: <014a01cad85a$414975b0$c3dc6110$@net> All, I, in California, am working on a project for a company in Texas (or Baja Oklahoma). As enhancements are requested I need to be able to make updates to their copy of the db without being able to log in to their machines. I seem to remember someone posting code to allow me to send them a file and import the structure (Code, Forms, queries) into their copy. Searched the archives to no avail.Any ideas? Thanks Kevin Waddle thewaddles at sbcglobal.net God's way of answering the Christian's prayer for more patience, experience, hope, and love often is to put him into the furnace of affliction. ~ Richard Cecil From miscellany at mvps.org Fri Apr 9 22:27:02 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 10 Apr 2010 15:27:02 +1200 Subject: [AccessD] Making changes to remote db In-Reply-To: <014a01cad85a$414975b0$c3dc6110$@net> References: <014a01cad85a$414975b0$c3dc6110$@net> Message-ID: <5DBD5A72035D407B8EFD6733D201BDF8@stevePC> Kevin, I think the standard approach here is some variation of sending them the file, and have them simply replace the existing application. Any reason why that won't work for you? Regards Steve -------------------------------------------------- From: "Kevin" Sent: Saturday, April 10, 2010 3:02 PM To: "'ACCESS-L'" ; Subject: [AccessD] Making changes to remote db > All, > > I, in California, am working on a project for a company in Texas (or Baja > Oklahoma). > > As enhancements are requested I need to be able to make updates to their > copy of the db without being able to log in to their machines. > > I seem to remember someone posting code to allow me to send them a file > and > import the structure (Code, Forms, queries) into their copy. > > Searched the archives to no avail.Any ideas? From thewaddles at sbcglobal.net Fri Apr 9 22:54:05 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Fri, 9 Apr 2010 20:54:05 -0700 Subject: [AccessD] Making changes to remote db In-Reply-To: <5DBD5A72035D407B8EFD6733D201BDF8@stevePC> References: <014a01cad85a$414975b0$c3dc6110$@net> <5DBD5A72035D407B8EFD6733D201BDF8@stevePC> Message-ID: <016901cad861$7785b880$66912980$@net> Steve, They are adding data to the db continuously. If I have them overwrite the application they will... ...OK brain dump... I need to split the db!!! Changes made to the front end won't impact the data. This is what happens when you try to substitute caffeine for sleep. Although I still remember someone posting the code. Thanks, Kevin Waddle thewaddles at sbcglobal.net If we rationalize our problems when He points them out, we will spend less and less time meditating because we won't want to face God in that area of our lives. ~ Charles Stanley -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, April 09, 2010 8:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Making changes to remote db Kevin, I think the standard approach here is some variation of sending them the file, and have them simply replace the existing application. Any reason why that won't work for you? Regards Steve -------------------------------------------------- From: "Kevin" Sent: Saturday, April 10, 2010 3:02 PM To: "'ACCESS-L'" ; Subject: [AccessD] Making changes to remote db > All, > > I, in California, am working on a project for a company in Texas (or Baja > Oklahoma). > > As enhancements are requested I need to be able to make updates to their > copy of the db without being able to log in to their machines. > > I seem to remember someone posting code to allow me to send them a file > and > import the structure (Code, Forms, queries) into their copy. > > Searched the archives to no avail.Any ideas? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Apr 10 09:11:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 10 Apr 2010 10:11:39 -0400 Subject: [AccessD] MySQL questions In-Reply-To: References: <4BBDF658.9000708@colbyconsulting.com> Message-ID: <4BC0871B.4060203@colbyconsulting.com> Phillipe, IIS was installed by Visual Studio and / or SQL Server and I am loathe to shut it down since I do not know the impact. John W. Colby www.ColbyConsulting.com philippe pons wrote: > John, > > I guess it is because both server are trying to use the same port(80 for web > server). > The best solution is to modify the apache ini file for him to use a > different port. > The easiest one, is to shut down IIS when using apache! > Philippe > > 2010/4/8 jwcolby > >> I am trying to get MySQL installed and working and a C# project talking to >> it. I am moving my >> billing database to C# as a class project and also because it is VERY long >> in the tooth and time for >> an upgrade. Because it is a class project I am trying to get it to play >> with MySQL because I can >> carry a small server around on my flash drive and work on it at school as >> well as anywhere else I >> have Visual Studio installed. >> >> So, I get a copy of XAMPLite which other people in the class are using. It >> fires up and runs from >> the thumb drive but... >> >> On my dev laptop when I run it and then try to go to localhost, I get >> Microsoft's IIS default web >> page, not the XAMPLite server control page like I am supposed to. >> Obviously XAMPLite expects that >> its server will be the only one running. >> >> So how do I deal with this? Does anyone know how to get the apache server >> instance that XAMPLite >> loads to point to something other than localhost? >> >> TIA, >> >> -- >> 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 Apr 10 10:30:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 10 Apr 2010 11:30:43 -0400 Subject: [AccessD] SPAM-LOW: Making changes to remote db In-Reply-To: <014a01cad85a$414975b0$c3dc6110$@net> References: <014a01cad85a$414975b0$c3dc6110$@net> Message-ID: <4BC099A3.7080900@colbyconsulting.com> The code you are talking about is a db updater wizard that AccessD owns. It is on our web site: http://www.databaseadvisors.com/downloads.asp It is called the BEUpdater and as the name implies, updates the back end. As you pointed out in a more recent post, the FE is taken care of by simply splitting the FE from the BE. John W. Colby www.ColbyConsulting.com Kevin wrote: > All, > > > > I, in California, am working on a project for a company in Texas (or Baja > Oklahoma). > > > > As enhancements are requested I need to be able to make updates to their > copy of the db without being able to log in to their machines. > > > > I seem to remember someone posting code to allow me to send them a file and > import the structure (Code, Forms, queries) into their copy. > > > > Searched the archives to no avail.Any ideas? > > > > Thanks > > Kevin Waddle > thewaddles at sbcglobal.net > > God's way of answering the Christian's prayer for more patience, experience, > hope, and love often is to put him into the furnace of affliction. ~ Richard > Cecil > From accessd at shaw.ca Sat Apr 10 11:09:39 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 10 Apr 2010 09:09:39 -0700 Subject: [AccessD] MySQL questions In-Reply-To: <4BC0871B.4060203@colbyconsulting.com> References: <4BBDF658.9000708@colbyconsulting.com> <4BC0871B.4060203@colbyconsulting.com> Message-ID: Hi John: As noted before, on the VB List, just set the Appache listening address to an address other than 80 that IIS uses... Traditionally, someone running both Appache and IIS on the same network sets the Appache's listening address to 8080. To change apache's default port goto httpd.conf in conf directory of installtion. Open it with editor and change: listen 80 -> listen 8080 (or whatever port you wish) and ServerName your-server-name:80 -> ServerName your-server-name:8080 Save and restart apache services. Now both IIS and Apache will work, on the same computer/network without conflict. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, April 10, 2010 7:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MySQL questions Phillipe, IIS was installed by Visual Studio and / or SQL Server and I am loathe to shut it down since I do not know the impact. John W. Colby www.ColbyConsulting.com philippe pons wrote: > John, > > I guess it is because both server are trying to use the same port(80 for web > server). > The best solution is to modify the apache ini file for him to use a > different port. > The easiest one, is to shut down IIS when using apache! > Philippe > > 2010/4/8 jwcolby > >> I am trying to get MySQL installed and working and a C# project talking to >> it. I am moving my >> billing database to C# as a class project and also because it is VERY long >> in the tooth and time for >> an upgrade. Because it is a class project I am trying to get it to play >> with MySQL because I can >> carry a small server around on my flash drive and work on it at school as >> well as anywhere else I >> have Visual Studio installed. >> >> So, I get a copy of XAMPLite which other people in the class are using. It >> fires up and runs from >> the thumb drive but... >> >> On my dev laptop when I run it and then try to go to localhost, I get >> Microsoft's IIS default web >> page, not the XAMPLite server control page like I am supposed to. >> Obviously XAMPLite expects that >> its server will be the only one running. >> >> So how do I deal with this? Does anyone know how to get the apache server >> instance that XAMPLite >> loads to point to something other than localhost? >> >> TIA, >> >> -- >> 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 robert at servicexp.com Sat Apr 10 11:45:25 2010 From: robert at servicexp.com (Robert) Date: Sat, 10 Apr 2010 12:45:25 -0400 Subject: [AccessD] E-Mail Format Template Function In-Reply-To: References: <4BBDF658.9000708@colbyconsulting.com> <4BC0871B.4060203@colbyconsulting.com> Message-ID: <000001cad8cd$38eafce0$aac0f6a0$@com> Goal: Send E-Mail based on a user adjustable field placement .txt template Example: (variable place holders) [VendorName] [VendorAddress] User can move field anywhere in the .txt document and I would place the information in the variables... What's Needed: An already made function / class that will consume the text document, allowing me to place the correct information in the correct place holder. I don't want to recreate the wheel if it's already "out there" and someone is willing to share it with me... Thanks! WBR Robert From stuart at lexacorp.com.pg Sat Apr 10 18:26:08 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 11 Apr 2010 09:26:08 +1000 Subject: [AccessD] E-Mail Format Template Function In-Reply-To: <000001cad8cd$38eafce0$aac0f6a0$@com> References: <4BBDF658.9000708@colbyconsulting.com>, , <000001cad8cd$38eafce0$aac0f6a0$@com> Message-ID: <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg> Do you mean something like this (aircode - will need debugging!): ? Dim rs as DAO.Recordset Dim strText as String Dim strMessage as String 'Get Template Open "template.txt" for binary as #1 strText = space$(Lof(1)) Get #1, strText Close #1 'Get VendorDetails and send email Set rs = currentdb.openrecordset("qryVendorDetailsForEmail") While not rs.eof strMessage = Replace(strText,"[VendorName]",rs!VendorName) strMessage = Replace(strStrMessage,"[VendorAddress]",rs!VendorAddress) Docmd.SendObject,,,rs!VendorEmail,,,"This Months News From ACME",strMessage,False Wend rs.Close Set rs = Nothing. On 10 Apr 2010 at 12:45, Robert wrote: > Goal: Send E-Mail based on a user adjustable field placement .txt template > Example: (variable place holders) > > [VendorName] > [VendorAddress] > > User can move field anywhere in the .txt document and I would place the > information in the variables... > > What's Needed: An already made function / class that will consume the text > document, allowing me to place the correct information in the correct place > holder. I don't want to recreate the wheel if it's already "out there" and > someone is willing to share it with me... > > Thanks! > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Apr 11 11:12:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 11 Apr 2010 09:12:21 -0700 Subject: [AccessD] Excel Automation Question Message-ID: Dear List: Having trouble getting the right syntax for this - I want to select all the cells in a worksheet and clear those cells. Anyone know the right commands for this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Sun Apr 11 11:18:55 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 11 Apr 2010 09:18:55 -0700 Subject: [AccessD] Excel Automation Question In-Reply-To: References: Message-ID: <94B607DA75EC4CD1A1EC89A7509BA045@HAL9005> P.S. - This is VBA from Access in case that wasn't clear. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Question Dear List: Having trouble getting the right syntax for this - I want to select all the cells in a worksheet and clear those cells. Anyone know the right commands for this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Sun Apr 11 11:37:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 11 Apr 2010 09:37:30 -0700 Subject: [AccessD] Excel Automation Question In-Reply-To: <94B607DA75EC4CD1A1EC89A7509BA045@HAL9005> References: <94B607DA75EC4CD1A1EC89A7509BA045@HAL9005> Message-ID: Too easy. xlSheetBOMs.Activate xlSheetBOMs.Cells.Delete Seems to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Question P.S. - This is VBA from Access in case that wasn't clear. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Question Dear List: Having trouble getting the right syntax for this - I want to select all the cells in a worksheet and clear those cells. Anyone know the right commands for this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.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 Apr 11 19:12:26 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 12 Apr 2010 10:12:26 +1000 Subject: [AccessD] Excel Automation Question In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C7@EXUAU020HWT110.oceania.corp.anz.com> Sheet activation is not required or desirable even. Just "xlSheetBOMs.Cells.Delete" will do fine. Excel does not need the sheet to be active, or even visible for this to work. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, 12 April 2010 2:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Question Too easy. xlSheetBOMs.Activate xlSheetBOMs.Cells.Delete Seems to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Question P.S. - This is VBA from Access in case that wasn't clear. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Question Dear List: Having trouble getting the right syntax for this - I want to select all the cells in a worksheet and clear those cells. Anyone know the right commands for this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Darryl.Collins at anz.com Sun Apr 11 19:46:21 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 12 Apr 2010 10:46:21 +1000 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C9@EXUAU020HWT110.oceania.corp.anz.com> Hi folks, Just a quick note to mention the program I have been working on at ANZ is wrapping up thus the ANZ email address that a few of you have will cease to function. This also means I will be off the list for a week or so until I get my new work email set up after the 19th April. Going to have a few days off between jobs to get in some R&R (well as much as I can with a 2.5 y.o kid and a preggo wife prowling the rooms at home - on second thoughts, it might be more peaceful to stay at work... hmmmm....). Anyway, all good! For those of you who don't care, sorry about the spam. 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 rockysmolin at bchacc.com Sun Apr 11 22:14:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 11 Apr 2010 20:14:31 -0700 Subject: [AccessD] Excel Automation Question In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C7@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C7@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <8C900D1D654A41F69E797B8A89C29187@HAL9005> Thanks. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Sunday, April 11, 2010 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Question Sheet activation is not required or desirable even. Just "xlSheetBOMs.Cells.Delete" will do fine. Excel does not need the sheet to be active, or even visible for this to work. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, 12 April 2010 2:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Question Too easy. xlSheetBOMs.Activate xlSheetBOMs.Cells.Delete Seems to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Question P.S. - This is VBA from Access in case that wasn't clear. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 11, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Question Dear List: Having trouble getting the right syntax for this - I want to select all the cells in a worksheet and clear those cells. Anyone know the right commands for this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Apr 12 03:17:50 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 12 Apr 2010 01:17:50 -0700 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C9@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C9@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: Hi Collin: Enjoy your holiday. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Sunday, April 11, 2010 5:46 PM To: Microsoft Excel Developers List; MS Excel General Q & A List; Access Developers discussion and problem solving Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi folks, Just a quick note to mention the program I have been working on at ANZ is wrapping up thus the ANZ email address that a few of you have will cease to function. This also means I will be off the list for a week or so until I get my new work email set up after the 19th April. Going to have a few days off between jobs to get in some R&R (well as much as I can with a 2.5 y.o kid and a preggo wife prowling the rooms at home - on second thoughts, it might be more peaceful to stay at work... hmmmm....). Anyway, all good! For those of you who don't care, sorry about the spam. 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." -- 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 Apr 12 03:26:53 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 12 Apr 2010 09:26:53 +0100 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. In-Reply-To: References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9C9@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: You too Darryl, - he means well... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, April 12, 2010 9:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi Collin: Enjoy your holiday. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Sunday, April 11, 2010 5:46 PM To: Microsoft Excel Developers List; MS Excel General Q & A List; Access Developers discussion and problem solving Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi folks, Just a quick note to mention the program I have been working on at ANZ is wrapping up thus the ANZ email address that a few of you have will cease to function. This also means I will be off the list for a week or so until I get my new work email set up after the 19th April. Going to have a few days off between jobs to get in some R&R (well as much as I can with a 2.5 y.o kid and a preggo wife prowling the rooms at home - on second thoughts, it might be more peaceful to stay at work... hmmmm....). Anyway, all good! For those of you who don't care, sorry about the spam. 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." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Apr 12 06:22:08 2010 From: robert at servicexp.com (Robert) Date: Mon, 12 Apr 2010 07:22:08 -0400 Subject: [AccessD] E-Mail Format Template Function In-Reply-To: <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg> References: <4BBDF658.9000708@colbyconsulting.com>, , <000001cad8cd$38eafce0$aac0f6a0$@com> <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg> Message-ID: <000601cada32$6439ccd0$2cad6670$@com> Hello Stuart, Kinda, I have all the framework for the e-mail portion. The function needs to copy in the entire template and then scan the line for the placeholders. There could be multiple of the same placeholders (Customer formatting choice). EXAMPLE: (All lines would be copied in) Example Start ******************START PO ORDER ******************* Order Being Placed By: [CompanyName] [CompanyAddress] [CompanyPhone] [CompanyAccount] Order Being Place with: [VendorName] [VendorAddress] [VendorPhone] [RepName] This order's PO NUMBER: Qty ID-Number Description Cost? In-Stock? Order Shipping Costs:? Please return e-mail receipt with associated Cost and In-Stock status. ******************END PO ORDER ******************* Example End -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, April 10, 2010 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] E-Mail Format Template Function Do you mean something like this (aircode - will need debugging!): ? Dim rs as DAO.Recordset Dim strText as String Dim strMessage as String 'Get Template Open "template.txt" for binary as #1 strText = space$(Lof(1)) Get #1, strText Close #1 'Get VendorDetails and send email Set rs = currentdb.openrecordset("qryVendorDetailsForEmail") While not rs.eof strMessage = Replace(strText,"[VendorName]",rs!VendorName) strMessage = Replace(strStrMessage,"[VendorAddress]",rs!VendorAddress) Docmd.SendObject,,,rs!VendorEmail,,,"This Months News From ACME",strMessage,False Wend rs.Close Set rs = Nothing. On 10 Apr 2010 at 12:45, Robert wrote: > Goal: Send E-Mail based on a user adjustable field placement .txt template > Example: (variable place holders) > > [VendorName] > [VendorAddress] > > User can move field anywhere in the .txt document and I would place the > information in the variables... > > What's Needed: An already made function / class that will consume the text > document, allowing me to place the correct information in the correct place > holder. I don't want to recreate the wheel if it's already "out there" and > someone is willing to share it with me... > > Thanks! > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Apr 12 07:20:17 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 12 Apr 2010 22:20:17 +1000 Subject: [AccessD] E-Mail Format Template Function In-Reply-To: <000601cada32$6439ccd0$2cad6670$@com> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg>, <000601cada32$6439ccd0$2cad6670$@com> Message-ID: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> This; Open "template.txt" for binary as #1 strText = space$(Lof(1)) Get #1, strText Close #1 will grab the whole template into strText. This; strMessage = Replace(strText,"[CompanyName]",rs!CompanyName) strMessage = Replace(strMessage,"[CompanyAddress]",rs!CompanyAddress) strMessage = Replace(strMessage,"[CompanyPhone]",rs!CompanyPhone) .... strMessage = Replace(strMessage,"[RepNam]",rs!ReName) will replace all of the required placeholders throughout the whole template even if the appear multiple times Isn't that all that you need to do? -- Stuart On 12 Apr 2010 at 7:22, Robert wrote: > Hello Stuart, > Kinda, > I have all the framework for the e-mail portion. The function needs to > copy in the entire template and then scan the line for the placeholders. > There could be multiple of the same placeholders (Customer formatting > choice). > > > EXAMPLE: (All lines would be copied in) > > Example Start > > ******************START PO ORDER ******************* > > Order Being Placed By: > > [CompanyName] > [CompanyAddress] > [CompanyPhone] > [CompanyAccount] > > Order Being Place with: > [VendorName] > [VendorAddress] > [VendorPhone] > [RepName] > > This order's PO NUMBER: > > > Qty ID-Number Description > Cost? In-Stock? > > > > > > > Order Shipping Costs:? > > Please return e-mail receipt with associated Cost and In-Stock status. > > > > ******************END PO ORDER ******************* > > > Example End > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Saturday, April 10, 2010 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] E-Mail Format Template Function > > Do you mean something like this (aircode - will need debugging!): ? > > Dim rs as DAO.Recordset > Dim strText as String > Dim strMessage as String > > 'Get Template > Open "template.txt" for binary as #1 > strText = space$(Lof(1)) > Get #1, strText > Close #1 > > 'Get VendorDetails and send email > Set rs = currentdb.openrecordset("qryVendorDetailsForEmail") > > While not rs.eof > strMessage = Replace(strText,"[VendorName]",rs!VendorName) > strMessage = Replace(strStrMessage,"[VendorAddress]",rs!VendorAddress) > Docmd.SendObject,,,rs!VendorEmail,,,"This Months News From > ACME",strMessage,False > Wend > > rs.Close > Set rs = Nothing. > > > > On 10 Apr 2010 at 12:45, Robert wrote: > > > Goal: Send E-Mail based on a user adjustable field placement .txt template > > Example: (variable place holders) > > > > [VendorName] > > [VendorAddress] > > > > User can move field anywhere in the .txt document and I would place the > > information in the variables... > > > > What's Needed: An already made function / class that will consume the > text > > document, allowing me to place the correct information in the correct > place > > holder. I don't want to recreate the wheel if it's already "out there" > and > > someone is willing to share it with me... > > > > Thanks! > > > > WBR > > Robert > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dkalsow at yahoo.com Mon Apr 12 09:31:08 2010 From: dkalsow at yahoo.com (Dale_Anne Kalsow) Date: Mon, 12 Apr 2010 07:31:08 -0700 (PDT) Subject: [AccessD] Internet Exployer OCX Control In-Reply-To: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> Message-ID: <425182.16369.qm@web50404.mail.re2.yahoo.com> Good Morning, ? Does anyone have the correct syntax to load a website into the Internet Exployer OCX control?? I am expecially interest to know if anyone has it working to view a PDF file. ? Thanks! ? Dale From darren at activebilling.com.au Mon Apr 12 10:08:19 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 13 Apr 2010 01:08:19 +1000 Subject: [AccessD] Internet Exployer OCX Control In-Reply-To: <425182.16369.qm@web50404.mail.re2.yahoo.com> References: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> <425182.16369.qm@web50404.mail.re2.yahoo.com> Message-ID: <996493FDCCA34A10B337566F8FE1FCFB@darrendPC> Hi Dale Assume you have a Microsoft Web Browser Control on a form. Assume this Microsoft Web Browser control is called actXWebControl The syntax might look like: Me.actXWebControl.Navigate "http://www.databaseadvisors.com/" As for a FILE (EG PDF) Me.actXWebControl.Navigate "C:\SomeCoolPDFFile.pdf" FYI - The Web Browser control will negotiate with your operating system's default PDF reader (EG Mine is FoxIT reader) and display it in a FoxIT Window INSIDE the Web Broswer Control - Same logic with Excel Docs, Word Docs etc Me.actXWebControl.Navigate "\\SomeServer\SomeShare\IAT\IAT_Issues.xls Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dale_Anne Kalsow Sent: Tuesday, 13 April 2010 12:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Internet Exployer OCX Control Good Morning, ? Does anyone have the correct syntax to load a website into the Internet Exployer OCX control?? I am expecially interest to know if anyone has it working to view a PDF file. ? Thanks! ? Dale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Apr 12 10:34:09 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 12 Apr 2010 15:34:09 +0000 Subject: [AccessD] Making changes to remote db In-Reply-To: <016901cad861$7785b880$66912980$@net> References: <014a01cad85a$414975b0$c3dc6110$@net>, <5DBD5A72035D407B8EFD6733D201BDF8@stevePC>, <016901cad861$7785b880$66912980$@net> Message-ID: Kevin, Are you talking about having the FE on each person's machine...and 1 BE in a shared location that they all link to. Each time the user opens their 'local' FE copy...it checks to see if there is a new version...if so...'download' new version, delete old, and reopen? In other words...any updates get sent to all machines utilizing? So if working remote...you send them a single file and it updates all FEs? Let me know If I'm close. Thanks, Mark A. Matte > From: thewaddles at sbcglobal.net > To: accessd at databaseadvisors.com > Date: Fri, 9 Apr 2010 20:54:05 -0700 > CC: miscellany at mvps.org > Subject: Re: [AccessD] Making changes to remote db > > Steve, > > They are adding data to the db continuously. > > If I have them overwrite the application they will... > ...OK brain dump... > > I need to split the db!!! > > Changes made to the front end won't impact the data. > > This is what happens when you try to substitute caffeine for sleep. > > Although I still remember someone posting the code. > > Thanks, > Kevin Waddle > > > thewaddles at sbcglobal.net > If we rationalize our problems when He points them out, we will spend less > and less time meditating because we won't want to face God in that area of > our lives. ~ Charles Stanley > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, April 09, 2010 8:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Making changes to remote db > > Kevin, > > I think the standard approach here is some variation of sending them the > file, and have them simply replace the existing application. Any reason why > > that won't work for you? > > Regards > Steve > > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 10, 2010 3:02 PM > To: "'ACCESS-L'" ; > > Subject: [AccessD] Making changes to remote db > > > All, > > > > I, in California, am working on a project for a company in Texas (or Baja > > Oklahoma). > > > > As enhancements are requested I need to be able to make updates to their > > copy of the db without being able to log in to their machines. > > > > I seem to remember someone posting code to allow me to send them a file > > and > > import the structure (Code, Forms, queries) into their copy. > > > > Searched the archives to no avail.Any ideas? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 From iggy at nanaimo.ark.com Mon Apr 12 10:49:35 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 12 Apr 2010 08:49:35 -0700 Subject: [AccessD] Report Problem Message-ID: <4BC3410F.2050307@nanaimo.ark.com> Hey All I have a client who installed a 2003 application onto his new machine running Windows Vista. The weird thing is there is one report (of about 30) that now prints sometimes and doesn't at other times. It occurs from a simple print report button and also from a print report button in a preview. Sometimes one prints while the other doesn't. Tried it on my machines and everything works fine.This program has been running under different versions/updates for about 15 years, never had a printing problem before. I guess my question is could Vista be performing some kind of block/security check in the background and turning off the printing????. At the moment it has got me baffled, and more to check. Thanks From dwaters at usinternet.com Mon Apr 12 10:52:30 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 12 Apr 2010 10:52:30 -0500 Subject: [AccessD] Making changes to remote db In-Reply-To: References: <014a01cad85a$414975b0$c3dc6110$@net>, <5DBD5A72035D407B8EFD6733D201BDF8@stevePC>, <016901cad861$7785b880$66912980$@net> Message-ID: <840F459AA29B4290B685FC52D36FE1D0@danwaters> Hi Mark, Take a look at http://autofeupdater.com/. This is a well-used and easy way to update Access FE files to all the users automatically. Since you don't appear to have direct access to your customer's server or network, you'll need to work with your customer to have them set this up, which is pretty easy anyway. Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, April 12, 2010 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Making changes to remote db Kevin, Are you talking about having the FE on each person's machine...and 1 BE in a shared location that they all link to. Each time the user opens their 'local' FE copy...it checks to see if there is a new version...if so...'download' new version, delete old, and reopen? In other words...any updates get sent to all machines utilizing? So if working remote...you send them a single file and it updates all FEs? Let me know If I'm close. Thanks, Mark A. Matte > From: thewaddles at sbcglobal.net > To: accessd at databaseadvisors.com > Date: Fri, 9 Apr 2010 20:54:05 -0700 > CC: miscellany at mvps.org > Subject: Re: [AccessD] Making changes to remote db > > Steve, > > They are adding data to the db continuously. > > If I have them overwrite the application they will... > ...OK brain dump... > > I need to split the db!!! > > Changes made to the front end won't impact the data. > > This is what happens when you try to substitute caffeine for sleep. > > Although I still remember someone posting the code. > > Thanks, > Kevin Waddle > > > thewaddles at sbcglobal.net > If we rationalize our problems when He points them out, we will spend less > and less time meditating because we won't want to face God in that area of > our lives. ~ Charles Stanley > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, April 09, 2010 8:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Making changes to remote db > > Kevin, > > I think the standard approach here is some variation of sending them the > file, and have them simply replace the existing application. Any reason why > > that won't work for you? > > Regards > Steve > > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 10, 2010 3:02 PM > To: "'ACCESS-L'" ; > > Subject: [AccessD] Making changes to remote db > > > All, > > > > I, in California, am working on a project for a company in Texas (or Baja > > Oklahoma). > > > > As enhancements are requested I need to be able to make updates to their > > copy of the db without being able to log in to their machines. > > > > I seem to remember someone posting code to allow me to send them a file > > and > > import the structure (Code, Forms, queries) into their copy. > > > > Searched the archives to no avail.Any ideas? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Apr 12 11:28:29 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 12 Apr 2010 12:28:29 -0400 Subject: [AccessD] Any easy way to do this? Message-ID: <4BC34A2D.5010103@colbyconsulting.com> My client is constantly asking for "table counts" by which I mean filling in a table that looks kind of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. FieldK FieldL FieldX FieldZ FieldA Cnt? Cnt? ? ? FieldB etc etc FieldC FieldD This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). This is just killing me in terms of time to complete this as the only way I am thinking of is to create 16 count queries. Is there a better way? -- John W. Colby www.ColbyConsulting.com From cfoust at infostatsystems.com Mon Apr 12 15:38:59 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 12 Apr 2010 15:38:59 -0500 Subject: [AccessD] Any easy way to do this? In-Reply-To: <4BC34A2D.5010103@colbyconsulting.com> References: <4BC34A2D.5010103@colbyconsulting.com> Message-ID: John, > Is there a better way? Shoot the client!! I've done stuff somewhat similar to this before using classes ... I think! I don't really understand what the client wants here. Horizontal fields? Vertical fields? Huh?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, April 12, 2010 9:28 AM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] Any easy way to do this? My client is constantly asking for "table counts" by which I mean filling in a table that looks kind of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. FieldK FieldL FieldX FieldZ FieldA Cnt? Cnt? ? ? FieldB etc etc FieldC FieldD This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). This is just killing me in terms of time to complete this as the only way I am thinking of is to create 16 count queries. Is there a better way? -- 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 max.wanadoo at gmail.com Mon Apr 12 15:49:11 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 12 Apr 2010 21:49:11 +0100 Subject: [AccessD] Any easy way to do this? In-Reply-To: References: <4BC34A2D.5010103@colbyconsulting.com> Message-ID: <6D37A7061C3A4F9A857351602847DB26@Server> Good idea. Or, ask the client to write down in plain english what he wants. When he finds he cannot express what he wants then you say, if you cannot tell me what you want how can I code it. If he can express it in plain english then it is easy to code. I am not saying effective but possible. If you come across "doubts" refer it back to him to re-express what he wants. Amazing how many people cannot even write down what they want but they "expect" the analyist/coder to "read my mind". Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, April 12, 2010 9:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Any easy way to do this? John, > Is there a better way? Shoot the client!! I've done stuff somewhat similar to this before using classes ... I think! I don't really understand what the client wants here. Horizontal fields? Vertical fields? Huh?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, April 12, 2010 9:28 AM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] Any easy way to do this? My client is constantly asking for "table counts" by which I mean filling in a table that looks kind of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. FieldK FieldL FieldX FieldZ FieldA Cnt? Cnt? ? ? FieldB etc etc FieldC FieldD This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). This is just killing me in terms of time to complete this as the only way I am thinking of is to create 16 count queries. Is there a better way? -- 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 BradM at blackforestltd.com Mon Apr 12 16:02:26 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 12 Apr 2010 16:02:26 -0500 Subject: [AccessD] Any easy way to do this? References: <4BC34A2D.5010103@colbyconsulting.com> <6D37A7061C3A4F9A857351602847DB26@Server> Message-ID: "If you cannot tell me what you want how can I code it?" I love this quote... Printed it in a big font and framed it. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 12, 2010 3:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Any easy way to do this? Good idea. Or, ask the client to write down in plain english what he wants. When he finds he cannot express what he wants then you say, if you cannot tell me what you want how can I code it. If he can express it in plain english then it is easy to code. I am not saying effective but possible. If you come across "doubts" refer it back to him to re-express what he wants. Amazing how many people cannot even write down what they want but they "expect" the analyist/coder to "read my mind". Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, April 12, 2010 9:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Any easy way to do this? John, > Is there a better way? Shoot the client!! I've done stuff somewhat similar to this before using classes ... I think! I don't really understand what the client wants here. Horizontal fields? Vertical fields? Huh?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, April 12, 2010 9:28 AM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] Any easy way to do this? My client is constantly asking for "table counts" by which I mean filling in a table that looks kind of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. FieldK FieldL FieldX FieldZ FieldA Cnt? Cnt? ? ? FieldB etc etc FieldC FieldD This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). This is just killing me in terms of time to complete this as the only way I am thinking of is to create 16 count queries. Is there a better way? -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From fhtapia at gmail.com Mon Apr 12 16:02:30 2010 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 12 Apr 2010 14:02:30 -0700 Subject: [AccessD] Any easy way to do this? In-Reply-To: <6D37A7061C3A4F9A857351602847DB26@Server> References: <4BC34A2D.5010103@colbyconsulting.com> <6D37A7061C3A4F9A857351602847DB26@Server> Message-ID: Use the pivot command http://www.databasejournal.com/features/mssql/article.php/3521101/Cross-Tab-reports-in-SQL-Server-2005.htm -Francisco http://sqlthis.blogspot.com | Tsql and More... On Mon, Apr 12, 2010 at 1:49 PM, Max Wanadoo wrote: > Good idea. > > Or, ask the client to write down in plain english what he wants. When he > finds he cannot express what he wants then you say, if you cannot tell me > what you want how can I code it. > > If he can express it in plain english then it is easy to code. I am not > saying effective but possible. If you come across "doubts" refer it back > to > him to re-express what he wants. > > Amazing how many people cannot even write down what they want but they > "expect" the analyist/coder to "read my mind". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, April 12, 2010 9:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any easy way to do this? > > John, > > > Is there a better way? > > Shoot the client!! > > I've done stuff somewhat similar to this before using classes ... I think! > I don't really understand what the client wants here. Horizontal fields? > Vertical fields? Huh?? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, April 12, 2010 9:28 AM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean filling > in > a table that looks kind of like a crosstab (but isn't) but for 4 or 5 > vertical fields for 4 or 5 horizontal fields. > > FieldK FieldL FieldX FieldZ > FieldA Cnt? Cnt? ? ? > FieldB etc etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of FieldA, > but rather a total count WHERE Field In ('X','Y','Z') and Field K is not > null (or something similar). > > This is just killing me in terms of time to complete this as the only way I > am thinking of is to create 16 count queries. > > Is there a better way? > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Mon Apr 12 16:09:22 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 12 Apr 2010 14:09:22 -0700 Subject: [AccessD] Any easy way to do this? In-Reply-To: References: <4BC34A2D.5010103@colbyconsulting.com> <6D37A7061C3A4F9A857351602847DB26@Server> Message-ID: More often than not, the big wigs at my company do not know what they want. It surprises me sometimes, how they can run this place. On Mon, Apr 12, 2010 at 2:02 PM, Brad Marks wrote: > "If you cannot tell me what you want how can I code it?" > > > I love this quote... > > Printed it in a big font and framed it. > > > > Brad > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 12, 2010 3:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Any easy way to do this? > > Good idea. > > Or, ask the client to write down in plain english what he wants. ?When > he > finds he cannot express what he wants then you say, if you cannot tell > me > what you want how can I code it. > > If he can express it in plain english then it is easy to code. ?I am not > saying effective but possible. ?If you come across "doubts" refer it > back to > him to re-express what he wants. > > Amazing how many people cannot even write down what they want but they > "expect" the analyist/coder to "read my mind". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, April 12, 2010 9:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any easy way to do this? > > John, > >> Is there a better way? > > Shoot the client!! > > I've done stuff somewhat similar to this before using classes ... I > think! > I don't really understand what the client wants here. ?Horizontal > fields? > Vertical fields? ?Huh?? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, April 12, 2010 9:28 AM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean > filling in > a table that looks kind of like a crosstab (but isn't) but for 4 or 5 > vertical fields for 4 or 5 horizontal fields. > > ? ? ? ?FieldK ?FieldL ?FieldX ?FieldZ > FieldA ?Cnt? ? ?Cnt? ? ?? ? ? ? ? > FieldB ?etc ? ? etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of > FieldA, > but rather a total count WHERE Field In ('X','Y','Z') and Field K is not > null (or something similar). > > This is just killing me in terms of time to complete this as the only > way I > am thinking of is to create 16 count queries. > > Is there a better way? > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From drawbridgej at sympatico.ca Mon Apr 12 16:19:40 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 12 Apr 2010 17:19:40 -0400 Subject: [AccessD] Internet Exployer OCX Control In-Reply-To: <425182.16369.qm@web50404.mail.re2.yahoo.com> References: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> <425182.16369.qm@web50404.mail.re2.yahoo.com> Message-ID: Here is a video tutorial. http://www.datapigtechnologies.com/flashfiles/webbrowserctrl.html jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dale_Anne Kalsow Sent: Monday, April 12, 2010 10:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Internet Exployer OCX Control Good Morning, Does anyone have the correct syntax to load a website into the Internet Exployer OCX control? I am expecially interest to know if anyone has it working to view a PDF file. Thanks! Dale -- 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.801 / Virus Database: 271.1.1/2806 - Release Date: 04/12/10 02:32:00 From stuart at lexacorp.com.pg Mon Apr 12 16:27:13 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 13 Apr 2010 07:27:13 +1000 Subject: [AccessD] Any easy way to do this? In-Reply-To: References: <4BC34A2D.5010103@colbyconsulting.com>, Message-ID: <4BC39031.29076.EDBD7B6@stuart.lexacorp.com.pg> I very rarely getting written specifications of what the client wants. That's what agile development methodologies are all about. Frequently my clients don't know what they want, so I start with a simple prototype and let the system evolve as the client realises what it is capable of providing. -- Stuart On 12 Apr 2010 at 16:02, Brad Marks wrote: > "If you cannot tell me what you want how can I code it?" > > > I love this quote... > > Printed it in a big font and framed it. > > > > Brad > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 12, 2010 3:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Any easy way to do this? > > Good idea. > > Or, ask the client to write down in plain english what he wants. When > he > finds he cannot express what he wants then you say, if you cannot tell > me > what you want how can I code it. > > If he can express it in plain english then it is easy to code. I am not > saying effective but possible. If you come across "doubts" refer it > back to > him to re-express what he wants. > > Amazing how many people cannot even write down what they want but they > "expect" the analyist/coder to "read my mind". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, April 12, 2010 9:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any easy way to do this? > > John, > > > Is there a better way? > > Shoot the client!! > > I've done stuff somewhat similar to this before using classes ... I > think! > I don't really understand what the client wants here. Horizontal > fields? > Vertical fields? Huh?? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, April 12, 2010 9:28 AM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean > filling in > a table that looks kind of like a crosstab (but isn't) but for 4 or 5 > vertical fields for 4 or 5 horizontal fields. > > FieldK FieldL FieldX FieldZ > FieldA Cnt? Cnt? ? ? > FieldB etc etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of > FieldA, > but rather a total count WHERE Field In ('X','Y','Z') and Field K is not > null (or something similar). > > This is just killing me in terms of time to complete this as the only > way I > am thinking of is to create 16 count queries. > > Is there a better way? > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Apr 12 18:10:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 12 Apr 2010 19:10:06 -0400 Subject: [AccessD] Any easy way to do this? In-Reply-To: References: <4BC34A2D.5010103@colbyconsulting.com> Message-ID: <4BC3A84E.6050003@colbyconsulting.com> Naw, he just wants counts where MOB in (1,2) AND ... (etc) He uses these counts to decide which records to pull. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > John, > >> Is there a better way? > > Shoot the client!! > > I've done stuff somewhat similar to this before using classes ... I think! I don't really understand what the client wants here. Horizontal fields? Vertical fields? Huh?? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, April 12, 2010 9:28 AM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean filling in a table that looks kind > of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. > > FieldK FieldL FieldX FieldZ > FieldA Cnt? Cnt? ? ? > FieldB etc etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count > WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). > > This is just killing me in terms of time to complete this as the only way I am thinking of is to > create 16 count queries. > > Is there a better way? > From Darryl.Collins at anz.com Mon Apr 12 18:53:23 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 13 Apr 2010 09:53:23 +1000 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9D5@EXUAU020HWT110.oceania.corp.anz.com> ;) I have been called worse! Thanks folks... Outa here in a couple of hours.... Talk to you all in a week or so. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, 12 April 2010 6:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. You too Darryl, - he means well... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, April 12, 2010 9:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi Collin: Enjoy your holiday. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Sunday, April 11, 2010 5:46 PM To: Microsoft Excel Developers List; MS Excel General Q & A List; Access Developers discussion and problem solving Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi folks, Just a quick note to mention the program I have been working on at ANZ is wrapping up thus the ANZ email address that a few of you have will cease to function. This also means I will be off the list for a week or so until I get my new work email set up after the 19th April. Going to have a few days off between jobs to get in some R&R (well as much as I can with a 2.5 y.o kid and a preggo wife prowling the rooms at home - on second thoughts, it might be more peaceful to stay at work... hmmmm....). Anyway, all good! For those of you who don't care, sorry about the spam. 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." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Tue Apr 13 01:52:38 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 12 Apr 2010 23:52:38 -0700 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9D5@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9D5@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: I am sorry Mr. Collins, Sir. I should have read the name front to back and not back to front. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Monday, April 12, 2010 4:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. ;) I have been called worse! Thanks folks... Outa here in a couple of hours.... Talk to you all in a week or so. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, 12 April 2010 6:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. You too Darryl, - he means well... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, April 12, 2010 9:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi Collin: Enjoy your holiday. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: Sunday, April 11, 2010 5:46 PM To: Microsoft Excel Developers List; MS Excel General Q & A List; Access Developers discussion and problem solving Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. Hi folks, Just a quick note to mention the program I have been working on at ANZ is wrapping up thus the ANZ email address that a few of you have will cease to function. This also means I will be off the list for a week or so until I get my new work email set up after the 19th April. Going to have a few days off between jobs to get in some R&R (well as much as I can with a 2.5 y.o kid and a preggo wife prowling the rooms at home - on second thoughts, it might be more peaceful to stay at work... hmmmm....). Anyway, all good! For those of you who don't care, sorry about the spam. 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." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Tue Apr 13 03:24:48 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 13 Apr 2010 13:54:48 +0530 Subject: [AccessD] Any easy way to do this? References: <4BC34A2D.5010103@colbyconsulting.com> Message-ID: <003401cadae2$e4c28da0$3701a8c0@adtpc> JC, Could you please provide some sample data along with corresponding sample output that is being sought ? Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving ; Sqlserver-Dba Sent: Monday, April 12, 2010 21:58 Subject: [AccessD] Any easy way to do this? My client is constantly asking for "table counts" by which I mean filling in a table that looks kind of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. FieldK FieldL FieldX FieldZ FieldA Cnt? Cnt? ? ? FieldB etc etc FieldC FieldD This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). This is just killing me in terms of time to complete this as the only way I am thinking of is to create 16 count queries. Is there a better way? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Apr 13 07:28:37 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 13 Apr 2010 08:28:37 -0400 Subject: [AccessD] Any easy way to do this? In-Reply-To: <003401cadae2$e4c28da0$3701a8c0@adtpc> References: <4BC34A2D.5010103@colbyconsulting.com> <003401cadae2$e4c28da0$3701a8c0@adtpc> Message-ID: <4BC46375.704@colbyconsulting.com> A.D., AFAICT there is no simple way to do this. The client has a table with 540 fields. Things like HasCat, BoatLength, MailOrderBuyer (MOB) and so forth. These fields USUALLY contain a Y (HasCat) but may contain a code (BoatLength). The client wants to know "How many people have a cat and a boat > 20'). Things like that. He might be marketing to boat owners, so he asks for counts (BoatLen >30) HasCat 10987 HasDog 15456 MOB 28790 So this is a count of the "junction" of two queries. Always use "Boat length > 30" and then Join on HasCat, HasDog and MOB. Four Base queries. Three counts. (BoatLen >30) (Propulsion = Sail) HasCat 10987 3487 HasDog 15456 4568 MOB 28790 9769 Here the client has asked for more counts, count people with a boatlength > 30 and another to count people with a sail boat. FIVE queries, six counts. In all cases, this is just a count of PK with a join on the PKID between two different queries. Yesterday I actually "solved" the problem by building a form in C# which allows me to select a set of views in a selected database where the name contains vBase - vBaseHasCat, vBaseHasDog, vBaseMOB, vBaseBoatLen30, vBasePropulsionSail. So I have to manually create the base queries, whatever those might be for a specific count order. Then my form allows me to select any two base queries in two combos, dynamically builds a SQL statement that counts the PK where the two are joined on PKID, and places the count in a text box on the form. I am building an application for the client which allows me to do many different things. I already had code to allow me to select a database, and tables or views from that database into combo boxes. I just had to add code to execute a SELECT SQL statement and get a value back. Once I did that, I built the form and tested. By the end of last night I had it working for getting a hard coded count. Today I need to write code to dynamically create the SELECT Count() SQL using the names of the two queries selected and pass that dynamic SQL into the code I wrote yesterday and I will have a working system. Using this I can select the database, select two vBaseXXX queries, press a button and get a count. I copy that count back into the spreadsheet the client gave me and move on to the next count. Thus I will select vBaseBoatLen in the top combo, vBaseHasCat in the bottom combo, and press the button. Keep vBaseBoatLen in the top combo, select vBaseHasDog in the bottom, press the button. Select vBaseMOB in the bottom, press the button. And so forth. I used to manually create a count view in sql server for each junction and manually execute those junction count queries directly in a query window in SQL server. If I have 6 columns and 9 rows (and I was asked for such a thing yesterday) that is 56 different junction queries, created and executed manually. You can see why I want an easier way to do this. Taken to the next level, I could "easily" modify my form to select the column queries into a list control, the row queries into a list control, press the button and get the result counts deposited into a grid control. THAT would be awesome, and an exact implementation of the spreadsheet as specified by the client. This would turn a several hour job (designing 15 vBase queries and 56 junction queries and then manually executing the 56 junction queries) into a 20 minute job (designing 15 vBase queries and then just selecting them into two lists and pressing a button). I have a couple of college students coming to my office to help me write code. I will be giving this to them to take to that next level. John W. Colby www.ColbyConsulting.com A.D. Tejpal wrote: > JC, > > Could you please provide some sample data along with corresponding sample output that is being sought ? > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: jwcolby > To: Access Developers discussion and problem solving ; Sqlserver-Dba > Sent: Monday, April 12, 2010 21:58 > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean filling in a table that looks kind > of like a crosstab (but isn't) but for 4 or 5 vertical fields for 4 or 5 horizontal fields. > > FieldK FieldL FieldX FieldZ > FieldA Cnt? Cnt? ? ? > FieldB etc etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of FieldA, but rather a total count > WHERE Field In ('X','Y','Z') and Field K is not null (or something similar). > > This is just killing me in terms of time to complete this as the only way I am thinking of is to > create 16 count queries. > > Is there a better way? > -- > John W. Colby > www.ColbyConsulting.com From dwaters at usinternet.com Tue Apr 13 10:04:06 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 13 Apr 2010 10:04:06 -0500 Subject: [AccessD] MS 2010 Launch Events Message-ID: <676881D432A6461D860EFCB774A1BA4E@danwaters> MS has released its schedule of launch events in cities throughout the US over the next two months. I go because they hand out free software. I'm expecting to get a copy of VS 2010, Access 2010, Sharepoint 2010, and SQL Server 2008 R2. They don't say that this is what you'll get, but those are the products they are advertising in the launch event. These events fill up, so sign up soon! Click this link and follow the track you want. When you get to the page to request a seat, it will say that you need an invitation code - but then they don't ask for a code. I requested a seat and am now confirmed without that invitation code. Perhaps they figure that if you're looking for this anyway then they want you there. http://www.microsoft.com/business/2010events/ Have Fun! Dan PS - they are also having launch events in major cities elsewhere in the world, but you'll need to find that information somewhere. From cfoust at infostatsystems.com Tue Apr 13 10:18:52 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 13 Apr 2010 10:18:52 -0500 Subject: [AccessD] Any easy way to do this? In-Reply-To: <4BC39031.29076.EDBD7B6@stuart.lexacorp.com.pg> References: <4BC34A2D.5010103@colbyconsulting.com>, <4BC39031.29076.EDBD7B6@stuart.lexacorp.com.pg> Message-ID: That may happen when you have a client who knows more or less what they want that they want the system to do. I once had a client who wanted an application to replace her own homemade access app. Problem was, she insisted she wanted something better, but all she could talk about was how she was going to market the product for which the application would track sales. I eventually got a call from a friend of hers, outraged that I hadn't come up with a final app yet, since I was the developer and should know how to build it. I politely told him that I couldn't build anything until I knew what she wanted, that my crystal ball was in the shop, and that the two of them were welcome to do it themselves. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, April 12, 2010 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Any easy way to do this? I very rarely getting written specifications of what the client wants. That's what agile development methodologies are all about. Frequently my clients don't know what they want, so I start with a simple prototype and let the system evolve as the client realises what it is capable of providing. -- Stuart On 12 Apr 2010 at 16:02, Brad Marks wrote: > "If you cannot tell me what you want how can I code it?" > > > I love this quote... > > Printed it in a big font and framed it. > > > > Brad > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 12, 2010 3:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Any easy way to do this? > > Good idea. > > Or, ask the client to write down in plain english what he wants. When > he > finds he cannot express what he wants then you say, if you cannot tell > me > what you want how can I code it. > > If he can express it in plain english then it is easy to code. I am not > saying effective but possible. If you come across "doubts" refer it > back to > him to re-express what he wants. > > Amazing how many people cannot even write down what they want but they > "expect" the analyist/coder to "read my mind". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, April 12, 2010 9:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any easy way to do this? > > John, > > > Is there a better way? > > Shoot the client!! > > I've done stuff somewhat similar to this before using classes ... I > think! > I don't really understand what the client wants here. Horizontal > fields? > Vertical fields? Huh?? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, April 12, 2010 9:28 AM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [AccessD] Any easy way to do this? > > > My client is constantly asking for "table counts" by which I mean > filling in > a table that looks kind of like a crosstab (but isn't) but for 4 or 5 > vertical fields for 4 or 5 horizontal fields. > > FieldK FieldL FieldX FieldZ > FieldA Cnt? Cnt? ? ? > FieldB etc etc > FieldC > FieldD > > This isn't even a groupby since we are not talking values inside of > FieldA, > but rather a total count WHERE Field In ('X','Y','Z') and Field K is not > null (or something similar). > > This is just killing me in terms of time to complete this as the only > way I > am thinking of is to create 16 count queries. > > Is there a better way? > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Tue Apr 13 10:29:36 2010 From: robert at servicexp.com (Robert) Date: Tue, 13 Apr 2010 11:29:36 -0400 Subject: [AccessD] E-Mail Format Template Function In-Reply-To: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg>, <000601cada32$6439ccd0$2cad6670$@com> <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> Message-ID: <000601cadb1e$20e04170$62a0c450$@com> Stuart, It is indeed all that I need to do.. For some reason I was thinking that it would be much more complicated... :) Thanks for the example WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, April 12, 2010 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] E-Mail Format Template Function This; Open "template.txt" for binary as #1 strText = space$(Lof(1)) Get #1, strText Close #1 will grab the whole template into strText. This; strMessage = Replace(strText,"[CompanyName]",rs!CompanyName) strMessage = Replace(strMessage,"[CompanyAddress]",rs!CompanyAddress) strMessage = Replace(strMessage,"[CompanyPhone]",rs!CompanyPhone) .... strMessage = Replace(strMessage,"[RepNam]",rs!ReName) will replace all of the required placeholders throughout the whole template even if the appear multiple times Isn't that all that you need to do? -- Stuart On 12 Apr 2010 at 7:22, Robert wrote: > Hello Stuart, > Kinda, > I have all the framework for the e-mail portion. The function needs to > copy in the entire template and then scan the line for the placeholders. > There could be multiple of the same placeholders (Customer formatting > choice). > > > EXAMPLE: (All lines would be copied in) > > Example Start > > ******************START PO ORDER ******************* > > Order Being Placed By: > > [CompanyName] > [CompanyAddress] > [CompanyPhone] > [CompanyAccount] > > Order Being Place with: > [VendorName] > [VendorAddress] > [VendorPhone] > [RepName] > > This order's PO NUMBER: > > > Qty ID-Number Description > Cost? In-Stock? > > > > > > > Order Shipping Costs:? > > Please return e-mail receipt with associated Cost and In-Stock status. > > > > ******************END PO ORDER ******************* > > > Example End > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Saturday, April 10, 2010 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] E-Mail Format Template Function > > Do you mean something like this (aircode - will need debugging!): ? > > Dim rs as DAO.Recordset > Dim strText as String > Dim strMessage as String > > 'Get Template > Open "template.txt" for binary as #1 > strText = space$(Lof(1)) > Get #1, strText > Close #1 > > 'Get VendorDetails and send email > Set rs = currentdb.openrecordset("qryVendorDetailsForEmail") > > While not rs.eof > strMessage = Replace(strText,"[VendorName]",rs!VendorName) > strMessage = Replace(strStrMessage,"[VendorAddress]",rs!VendorAddress) > Docmd.SendObject,,,rs!VendorEmail,,,"This Months News From > ACME",strMessage,False > Wend > > rs.Close > Set rs = Nothing. > > > > On 10 Apr 2010 at 12:45, Robert wrote: > > > Goal: Send E-Mail based on a user adjustable field placement .txt template > > Example: (variable place holders) > > > > [VendorName] > > [VendorAddress] > > > > User can move field anywhere in the .txt document and I would place the > > information in the variables... > > > > What's Needed: An already made function / class that will consume the > text > > document, allowing me to place the correct information in the correct > place > > holder. I don't want to recreate the wheel if it's already "out there" > and > > someone is willing to share it with me... > > > > Thanks! > > > > WBR > > Robert > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Apr 13 10:43:54 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Apr 2010 08:43:54 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden Message-ID: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005> Dear List: >From an Access module I open a workbook, locate a specific worksheet, delete all the cells and re-create it from data in tables. I close the book: ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub but when I open the spreadsheet it is hidden (it doesn't start out that way) and I have to unhide it Window-->Unhide... Would anyone know know why it's doing this or what the command would be to unhide this spreadsheet from the Access module? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From davidmcafee at gmail.com Tue Apr 13 12:32:38 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 13 Apr 2010 10:32:38 -0700 Subject: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. In-Reply-To: References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC9D5@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: Jim was thinking of "Collin Farrell" when he saw "Collin, Darryl" :) On Mon, Apr 12, 2010 at 11:52 PM, Jim Lawrence wrote: > I am sorry Mr. Collins, Sir. I should have read the name front to back and > not back to front. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl > Sent: Monday, April 12, 2010 4:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. > > > ;) I have been called worse! > > Thanks folks... Outa here in a couple of hours.... > > Talk to you all in a week or so. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, 12 April 2010 6:27 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. > > > > You too Darryl, ? - he means well... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, April 12, 2010 9:18 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: ANZ Email inactive from Tuesday 13th April. > > Hi Collin: > > Enjoy your holiday. > > Jim From adtp at airtelmail.in Tue Apr 13 13:38:28 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 14 Apr 2010 00:08:28 +0530 Subject: [AccessD] Any easy way to do this? References: <4BC34A2D.5010103@colbyconsulting.com><003401cadae2$e4c28da0$3701a8c0@adtpc> <4BC46375.704@colbyconsulting.com> Message-ID: <005e01cadb38$d133b9c0$3701a8c0@adtpc> J.C., The situation described by you appears to be suited for a single query with user defined function. For sake of illustration, let the source table named T_A have the following fields: MOB - Text type ("Y" means Yes) HasCat - Text type ("Y" means Yes) HasDog - Text type ("Y" means Yes) BoatLength - Number type Propulsion - Text type ("Sail", "Motor" etc) Create a table T_Ref having a single field named RefField (text type). Populate this single column with names of such fields from table T_A as are desired to be displayed as vertical base fields. This can be done programmatically if required. Sample function Fn_GetCount() as given below, may be placed in a general module. Sample query Q_A as given below, should get you the desired results. For this illustration it will show three categories of count results (BoatLength > 20, Propulsion = 'Sail' and Propulsion = 'Motor'), against each of the vertical base fields (MOB, HasCat, HasDog etc) Q_A (Sample query) =============================== SELECT T_Ref.RefField, Fn_GetCount("T_A",[RefField],"BoatLength > 20") AS BL_20Plus, Fn_GetCount("T_A",[RefField],"Propulsion = 'Sail'") AS Prop_Sail, Fn_GetCount("T_A",[RefField],"Propulsion = 'Motor'") AS Prop_Motor FROM T_Ref; =============================== For any additional criteria, or picking up the same from form controls, the sample query could be modified / expanded suitably as desired. Best wishes, A.D. Tejpal ------------ ' Code in general module '======================================== Function Fn_GetCount( _ SourceTableName As String, _ BaseFieldName As String, _ CriteriaString As String) As Long Dim Qst As String Qst = "SELECT Abs(Sum([" & _ BaseFieldName & _ "]= 'Y' And " & CriteriaString & _ ")) FROM " & SourceTableName & ";" Fn_GetCount = _ Nz(DBEngine(0)(0).OpenRecordset(Qst).Fields(0), 0) End Function '======================================== ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Tuesday, April 13, 2010 17:58 Subject: Re: [AccessD] Any easy way to do this? A.D., AFAICT there is no simple way to do this. The client has a table with 540 fields. Things like HasCat, BoatLength, MailOrderBuyer (MOB) and so forth. These fields USUALLY contain a Y (HasCat) but may contain a code (BoatLength). The client wants to know "How many people have a cat and a boat > 20'). Things like that. He might be marketing to boat owners, so he asks for counts (BoatLen >30) HasCat 10987 HasDog 15456 MOB 28790 So this is a count of the "junction" of two queries. Always use "Boat length > 30" and then Join on HasCat, HasDog and MOB. Four Base queries. Three counts. (BoatLen >30) (Propulsion = Sail) HasCat 10987 3487 HasDog 15456 4568 MOB 28790 9769 Here the client has asked for more counts, count people with a boatlength > 30 and another to count people with a sail boat. FIVE queries, six counts. In all cases, this is just a count of PK with a join on the PKID between two different queries. Yesterday I actually "solved" the problem by building a form in C# which allows me to select a set of views in a selected database where the name contains vBase - vBaseHasCat, vBaseHasDog, vBaseMOB, vBaseBoatLen30, vBasePropulsionSail. So I have to manually create the base queries, whatever those might be for a specific count order. Then my form allows me to select any two base queries in two combos, dynamically builds a SQL statement that counts the PK where the two are joined on PKID, and places the count in a text box on the form. I am building an application for the client which allows me to do many different things. I already had code to allow me to select a database, and tables or views from that database into combo boxes. I just had to add code to execute a SELECT SQL statement and get a value back. Once I did that, I built the form and tested. By the end of last night I had it working for getting a hard coded count. Today I need to write code to dynamically create the SELECT Count() SQL using the names of the two queries selected and pass that dynamic SQL into the code I wrote yesterday and I will have a working system. Using this I can select the database, select two vBaseXXX queries, press a button and get a count. I copy that count back into the spreadsheet the client gave me and move on to the next count. Thus I will select vBaseBoatLen in the top combo, vBaseHasCat in the bottom combo, and press the button. Keep vBaseBoatLen in the top combo, select vBaseHasDog in the bottom, press the button. Select vBaseMOB in the bottom, press the button. And so forth. I used to manually create a count view in sql server for each junction and manually execute those junction count queries directly in a query window in SQL server. If I have 6 columns and 9 rows (and I was asked for such a thing yesterday) that is 56 different junction queries, created and executed manually. You can see why I want an easier way to do this. Taken to the next level, I could "easily" modify my form to select the column queries into a list control, the row queries into a list control, press the button and get the result counts deposited into a grid control. THAT would be awesome, and an exact implementation of the spreadsheet as specified by the client. This would turn a several hour job (designing 15 vBase queries and 56 junction queries and then manually executing the 56 junction queries) into a 20 minute job (designing 15 vBase queries and then just selecting them into two lists and pressing a button). I have a couple of college students coming to my office to help me write code. I will be giving this to them to take to that next level. John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Tue Apr 13 13:44:23 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 13 Apr 2010 14:44:23 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005> Message-ID: This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 11:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden Dear List: >From an Access module I open a workbook, locate a specific worksheet, >delete all the cells and re-create it from data in tables. I close the book: ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub but when I open the spreadsheet it is hidden (it doesn't start out that way) and I have to unhide it Window-->Unhide... Would anyone know know why it's doing this or what the command would be to unhide this spreadsheet from the Access module? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Apr 13 14:25:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Apr 2010 12:25:31 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005> Message-ID: <80E090E9587243178417286EC80A393A@HAL9005> Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 11:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden Dear List: >From an Access module I open a workbook, locate a specific worksheet, >delete all the cells and re-create it from data in tables. I close the book: ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub but when I open the spreadsheet it is hidden (it doesn't start out that way) and I have to unhide it Window-->Unhide... Would anyone know know why it's doing this or what the command would be to unhide this spreadsheet from the Access module? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.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 Apr 13 14:53:45 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 13 Apr 2010 15:53:45 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <80E090E9587243178417286EC80A393A@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005> <80E090E9587243178417286EC80A393A@HAL9005> Message-ID: Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert From rockysmolin at bchacc.com Tue Apr 13 15:18:19 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Apr 2010 13:18:19 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005> Message-ID: <25BFB2916C1C4590B772076B18B7EC6B@HAL9005> Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Tue Apr 13 15:19:09 2010 From: robert at servicexp.com (Robert) Date: Tue, 13 Apr 2010 16:19:09 -0400 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg>, <000601cada32$6439ccd0$2cad6670$@com> <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> Message-ID: <002f01cadb46$93abbd60$bb033820$@com> Is there any way to created a formatted look for a order detail block in a .txt document? Example: Qty Item ID Item Desc. Cost 1 FR58465 The first $125.00 1 DSEEFS58465 The Second Time $5.00 Ect... WBR Robert From max.wanadoo at gmail.com Tue Apr 13 15:23:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 13 Apr 2010 21:23:26 +0100 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <25BFB2916C1C4590B772076B18B7EC6B@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005> <25BFB2916C1C4590B772076B18B7EC6B@HAL9005> Message-ID: <9C78FCA11F374EBF9532D6062CF74E02@Server> Have you instatiated it ? Dim xlBook As NEW Excel.Workbook Or Dim xlBook As Excel.Workbook Set xlbook as new excel.workbook Just guessing? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 9:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 16:48:44 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Apr 2010 14:48:44 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <9C78FCA11F374EBF9532D6062CF74E02@Server> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005> <9C78FCA11F374EBF9532D6062CF74E02@Server> Message-ID: <346E5DAA234742CD9F81C0579316B8D5@HAL9005> I use Dim xlBook As Excel.Workbook (it's an existing workbook) And set it thusly: Set xlBook = GetObject(Me.txtSpreadsheet) where Me.txtSpreadsheet has the path and name of the workbook. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, April 13, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Have you instatiated it ? Dim xlBook As NEW Excel.Workbook Or Dim xlBook As Excel.Workbook Set xlbook as new excel.workbook Just guessing? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 9:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Apr 13 17:15:04 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2010 08:15:04 +1000 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: <002f01cadb46$93abbd60$bb033820$@com> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg>, <002f01cadb46$93abbd60$bb033820$@com> Message-ID: <4BC4ECE8.8706.142E042E@stuart.lexacorp.com.pg> Yes and no. :-( YES: Use a mixture of Mid$(), Format$() etc to put the fields into a string to lay out the row. Something like: strHeader = "Qty ItemID Item Descr Cost" Print #ff, stHheader While not rs.EOF strRow = Space$(80) Mid$(strRow,1,4) = format$(rs!qty,"###0") Mid$(strRow,8,12) = rs!(ItemID) Mid$(strRow, 21,48) = rs!(ItemDesc) Mid$(strRow,70,10) = format$(rs!,Cost,""###,##0.00") Print #ff, strRow rs.Movenext Wend NO: The rows won't line up unless the recipient is viewing the data in a fixed width font. -- Stuart On 13 Apr 2010 at 16:19, Robert wrote: > Is there any way to created a formatted look for a order detail block in a > .txt document? > > > Example: > > Qty Item ID Item Desc. Cost > > 1 FR58465 The first $125.00 > 1 DSEEFS58465 The Second Time $5.00 > > Ect... > > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Apr 13 17:49:37 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 13 Apr 2010 18:49:37 -0400 Subject: [AccessD] Any easy way to do this? References: <4BC34A2D.5010103@colbyconsulting.com>, <4BC39031.29076.EDBD7B6@stuart.lexacorp.com.pg> Message-ID: Similar war story -- the client wanted to upgrade from an old db app. I explained that it would look nothing like the old db app and he said he understood, but when it didn't look as he expected, he heartily objected. He wanted something insane: When he deleted a record, he wanted to reuse the pk number -- no problem, just for looks, so I didn't care -- but he insisted that the number actually be used as the PK -- um... no. There was no business rule for doing so, he was just use to doing it that way with the old db app and I never understood that. I never finished the project. I wouldn't do it. I was willing to build a function that displayed an arbitrary number that they could track for their own purposes, but I refused to allow him to use that number as the pk -- a disaster looking for me to blame. Susan H. ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 13, 2010 11:18 AM Subject: Re: [AccessD] Any easy way to do this? > That may happen when you have a client who knows more or less what they > want that they want the system to do. I once had a client who wanted an > application to replace her own homemade access app. Problem was, she > insisted she wanted something better, but all she could talk about was how > she was going to market the product for which the application would track > sales. > > I eventually got a call from a friend of hers, outraged that I hadn't come > up with a final app yet, since I was the developer and should know how to > build it. I politely told him that I couldn't build anything until I knew > what she wanted, that my crystal ball was in the shop, and that the two of > them were welcome to do it themselves. > > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Monday, April 12, 2010 2:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any easy way to do this? > > I very rarely getting written specifications of what the client wants. > > That's what agile development methodologies are all about. > > Frequently my clients don't know what they want, so I start with a simple > prototype and let > the system evolve as the client realises what it is capable of providing. > > -- > Stuart > > On 12 Apr 2010 at 16:02, Brad Marks wrote: > >> "If you cannot tell me what you want how can I code it?" >> >> >> I love this quote... >> >> Printed it in a big font and framed it. >> >> >> >> Brad >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >> Sent: Monday, April 12, 2010 3:49 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Any easy way to do this? >> >> Good idea. >> >> Or, ask the client to write down in plain english what he wants. When >> he >> finds he cannot express what he wants then you say, if you cannot tell >> me >> what you want how can I code it. >> >> If he can express it in plain english then it is easy to code. I am not >> saying effective but possible. If you come across "doubts" refer it >> back to >> him to re-express what he wants. >> >> Amazing how many people cannot even write down what they want but they >> "expect" the analyist/coder to "read my mind". >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Monday, April 12, 2010 9:39 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Any easy way to do this? >> >> John, >> >> > Is there a better way? >> >> Shoot the client!! >> >> I've done stuff somewhat similar to this before using classes ... I >> think! >> I don't really understand what the client wants here. Horizontal >> fields? >> Vertical fields? Huh?? >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Monday, April 12, 2010 9:28 AM >> To: Access Developers discussion and problem solving; Sqlserver-Dba >> Subject: [AccessD] Any easy way to do this? >> >> >> My client is constantly asking for "table counts" by which I mean >> filling in >> a table that looks kind of like a crosstab (but isn't) but for 4 or 5 >> vertical fields for 4 or 5 horizontal fields. >> >> FieldK FieldL FieldX FieldZ >> FieldA Cnt? Cnt? ? ? >> FieldB etc etc >> FieldC >> FieldD >> >> This isn't even a groupby since we are not talking values inside of >> FieldA, >> but rather a total count WHERE Field In ('X','Y','Z') and Field K is not >> null (or something similar). >> >> This is just killing me in terms of time to complete this as the only >> way I >> am thinking of is to create 16 count queries. >> >> Is there a better way? >> >> -- >> 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 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 13 18:00:22 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 13 Apr 2010 18:00:22 -0500 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: <002f01cadb46$93abbd60$bb033820$@com> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC10910.5382.4FBEEEA@stuart.lexacorp.com.pg>, <000601cada32$6439ccd0$2cad6670$@com> <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg> <002f01cadb46$93abbd60$bb033820$@com> Message-ID: The closest you can get is with a fixed width font and a lot of tedious formatting to insert spaces between the "columns", but I can almost guarantee that the costs won't align the way you want them to. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, April 13, 2010 1:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Formating Text in a .txt document? Is there any way to created a formatted look for a order detail block in a .txt document? Example: Qty Item ID Item Desc. Cost 1 FR58465 The first $125.00 1 DSEEFS58465 The Second Time $5.00 Ect... WBR Robert -- 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 Apr 13 18:37:16 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2010 09:37:16 +1000 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: References: <4BBDF658.9000708@colbyconsulting.com>, <002f01cadb46$93abbd60$bb033820$@com>, Message-ID: <4BC5002C.14665.147946EA@stuart.lexacorp.com.pg> "but I can almost guarantee that the costs won't align the way you want them to.". Bet you they will! That's what Format() is designed for ;-) -- Stuart On 13 Apr 2010 at 18:00, Charlotte Foust wrote: > The closest you can get is with a fixed width font and a lot of > tedious formatting to insert spaces between the "columns", but I can > almost guarantee that the costs won't align the way you want them to. > > Charlotte Foust > From Lambert.Heenan at chartisinsurance.com Tue Apr 13 19:13:45 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 13 Apr 2010 20:13:45 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <346E5DAA234742CD9F81C0579316B8D5@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005> <9C78FCA11F374EBF9532D6062CF74E02@Server> <346E5DAA234742CD9F81C0579316B8D5@HAL9005> Message-ID: I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I use Dim xlBook As Excel.Workbook (it's an existing workbook) And set it thusly: Set xlBook = GetObject(Me.txtSpreadsheet) where Me.txtSpreadsheet has the path and name of the workbook. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, April 13, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Have you instatiated it ? Dim xlBook As NEW Excel.Workbook Or Dim xlBook As Excel.Workbook Set xlbook as new excel.workbook Just guessing? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 9:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Apr 14 00:53:15 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2010 07:53:15 +0200 Subject: [AccessD] OT: Apache CouchDB Message-ID: Hi all CouchDB is a distributed document database accessed via HTTP and JSON and queried using JavaScript Map Reduce. Here's a chance (webcast) to get acquainted with this from the horse's mouth (watch out: monster URL): Introduction to Apache CouchDB Presented by: J. Chris Anderson, author of CouchDB: The Definitive Guide http://post.oreilly.com/form/oreilly/viewhtml/9z1z0ns6s3v2tul8c138fafir4vjkbm4uskltuuh8rg?utm_content=Webcast+PR+-+Intro+to+Couch+DB&utm_campaign=Webcasts+PR&utm_source=iPost&utm_medium=email&imm_mid=058ddb&cmp=Webcast+PR+-+Intro+to+Couch+DB /gustav From Gustav at cactus.dk Wed Apr 14 01:31:30 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2010 08:31:30 +0200 Subject: [AccessD] OT: Apache CouchDB Message-ID: Hi all But I now noticed the date: 21th March? It is probably Wednesday 21th April. /gustav >>> Gustav at cactus.dk 14-04-2010 07:53 >>> Hi all CouchDB is a distributed document database accessed via HTTP and JSON and queried using JavaScript Map Reduce. Here's a chance (webcast) to get acquainted with this from the horse's mouth (watch out: monster URL): Introduction to Apache CouchDB Presented by: J. Chris Anderson, author of CouchDB: The Definitive Guide http://post.oreilly.com/form/oreilly/viewhtml/9z1z0ns6s3v2tul8c138fafir4vjkbm4uskltuuh8rg?utm_content=Webcast+PR+-+Intro+to+Couch+DB&utm_campaign=Webcasts+PR&utm_source=iPost&utm_medium=email&imm_mid=058ddb&cmp=Webcast+PR+-+Intro+to+Couch+DB /gustav From max.wanadoo at gmail.com Wed Apr 14 03:52:00 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 14 Apr 2010 09:52:00 +0100 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: <4BC5002C.14665.147946EA@stuart.lexacorp.com.pg> References: <4BBDF658.9000708@colbyconsulting.com>, <002f01cadb46$93abbd60$bb033820$@com>, <4BC5002C.14665.147946EA@stuart.lexacorp.com.pg> Message-ID: The latest Access Watch has an article on this very subject with alternatives. (AW#12.07) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, April 14, 2010 12:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Formating Text in a .txt document? "but I can almost guarantee that the costs won't align the way you want them to.". Bet you they will! That's what Format() is designed for ;-) -- Stuart On 13 Apr 2010 at 18:00, Charlotte Foust wrote: > The closest you can get is with a fixed width font and a lot of > tedious formatting to insert spaces between the "columns", but I can > almost guarantee that the costs won't align the way you want them to. > > Charlotte Foust > -- 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 Apr 14 04:26:59 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 14 Apr 2010 10:26:59 +0100 Subject: [AccessD] OT: SpiceWorks In-Reply-To: References: Message-ID: <91810D67915C43599B12F101804617B0@Server> Has anybody any experience of Spiceworks. It appears to offer a great deal for nothing: http://www.spiceworks.com/ And when all the free plugins are used then even more so. http://community.spiceworks.com/plugin?utm_source=swemail&utm_medium=email&u tm_campaign=resource Seems an awful lot of stuff for free?? Max From roz.clarke at barclays.com Wed Apr 14 04:49:38 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Wed, 14 Apr 2010 10:49:38 +0100 Subject: [AccessD] Access databases - migration project In-Reply-To: <91810D67915C43599B12F101804617B0@Server> References: <91810D67915C43599B12F101804617B0@Server> Message-ID: <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> Hi all, It's good to be back. :) I'm wondering if anyone has any general advice regarding carrying out current state assessments on clusters of Access databases? I can't talk about the purpose of the CSA (I'm under a non-disclosure agreement) but if you imagine all the possible reasons for doing one, I probably need to cover the lot. I think they are particularly interested in risks (doing nothing vs. doing 'something'). I have Susan and Martin's book on Access -> SQL Server so I can dig into the specifics there, but SQL Server is only one of an unknown number of options on the table. Also the databases are used more for extraction from other systems & subsequent analysis than for data storage. Any tips on what I should be looking for? Data integrity, well-formed data, documentation, state of the code... What else? If anyone who has done large scale migrations has any stories to share I'd be all ears. TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From mwp.reid at qub.ac.uk Wed Apr 14 04:59:00 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 14 Apr 2010 10:59:00 +0100 Subject: [AccessD] Access databases - migration project In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> References: <91810D67915C43599B12F101804617B0@Server>, <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: <631CF83223105545BF43EFB52CB08295469BC683AF@EX2K7-VIRT-2.ads.qub.ac.uk> Hi Roz One of the major things that concerned us here was the backup and security of data help in multiple smaller databases. Much easier to incorporate this into the enterprise backups when we moved a lot of them into SQL Server. Much easier to also manage the various interfaces into larger systems as will from one or two single points as opposed to lots of Access databases. Easier with SQL Server to also set up the enterprise data extractions and again easier to manage. SQL Server also provide analysis services and reporting services. We are currently looking to running a lot of this stuff out via SharePoint using the BI tools in SharePoint 2010 and Office 2010. Again makes security and management of this type of thing much easier if you have the infrastructure in place. Oh we also found a lot of duplication of data in the smaller satellite systems. Martin Martin WP Reid Information Services The Library at Queen's Tel : 02890976174 Email : mwp.reid at qub.ac.uk Sharepoint Training Portal ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of roz.clarke at barclays.com [roz.clarke at barclays.com] Sent: 14 April 2010 10:49 To: accessd at databaseadvisors.com Subject: [AccessD] Access databases - migration project Hi all, It's good to be back. :) I'm wondering if anyone has any general advice regarding carrying out current state assessments on clusters of Access databases? I can't talk about the purpose of the CSA (I'm under a non-disclosure agreement) but if you imagine all the possible reasons for doing one, I probably need to cover the lot. I think they are particularly interested in risks (doing nothing vs. doing 'something'). I have Susan and Martin's book on Access -> SQL Server so I can dig into the specifics there, but SQL Server is only one of an unknown number of options on the table. Also the databases are used more for extraction from other systems & subsequent analysis than for data storage. Any tips on what I should be looking for? Data integrity, well-formed data, documentation, state of the code... What else? If anyone who has done large scale migrations has any stories to share I'd be all ears. TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 14 05:42:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 14 Apr 2010 06:42:57 -0400 Subject: [AccessD] Access databases - migration project In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> References: <91810D67915C43599B12F101804617B0@Server> <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: <4BC59C31.60805@colbyconsulting.com> Well Roz! Man it's been a long time! Welcome back. John W. Colby www.ColbyConsulting.com roz.clarke at barclays.com wrote: > Hi all, > > It's good to be back. :) > > I'm wondering if anyone has any general advice regarding carrying out > current state assessments on clusters of Access databases? I can't talk > about the purpose of the CSA (I'm under a non-disclosure agreement) but > if you imagine all the possible reasons for doing one, I probably need > to cover the lot. > > I think they are particularly interested in risks (doing nothing vs. > doing 'something'). I have Susan and Martin's book on Access -> SQL > Server so I can dig into the specifics there, but SQL Server is only one > of an unknown number of options on the table. Also the databases are > used more for extraction from other systems & subsequent analysis than > for data storage. > > Any tips on what I should be looking for? Data integrity, well-formed > data, documentation, state of the code... What else? If anyone who has > done large scale migrations has any stories to share I'd be all ears. > > TIA > > Roz > > This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services Authority. > From accessd at shaw.ca Wed Apr 14 07:30:55 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 14 Apr 2010 05:30:55 -0700 Subject: [AccessD] OT: Apache CouchDB In-Reply-To: References: Message-ID: <6AD3742A1EB7499FB69F27C89BA04B10@creativesystemdesigns.com> Hi Gustav: This looks like a great concept database. I like the idea that it is a really simple, free database which integrates so well into a web page. Here is a link to a sample of the use of the product in a web page. I found this sample quite informative: http://jan.prima.de/~jan/plok/archives/108-Programming-CouchDB-with-Javascri pt.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, April 13, 2010 10:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Apache CouchDB Hi all CouchDB is a distributed document database accessed via HTTP and JSON and queried using JavaScript Map Reduce. Here's a chance (webcast) to get acquainted with this from the horse's mouth (watch out: monster URL): Introduction to Apache CouchDB Presented by: J. Chris Anderson, author of CouchDB: The Definitive Guide http://post.oreilly.com/form/oreilly/viewhtml/9z1z0ns6s3v2tul8c138fafir4vjkb m4uskltuuh8rg?utm_content=Webcast+PR+-+Intro+to+Couch+DB&utm_campaign=Webcas ts+PR&utm_source=iPost&utm_medium=email&imm_mid=058ddb&cmp=Webcast+PR+-+Intr o+to+Couch+DB /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at barclays.com Wed Apr 14 09:13:18 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Wed, 14 Apr 2010 15:13:18 +0100 Subject: [AccessD] Access databases - migration project In-Reply-To: <631CF83223105545BF43EFB52CB08295469BC683AF@EX2K7-VIRT-2.ads.qub.ac.uk> References: <91810D67915C43599B12F101804617B0@Server>, <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> <631CF83223105545BF43EFB52CB08295469BC683AF@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: <174A69C31E290B47A4898DFFDB5BFCD9017731E4@MUKPBCC1XMB0403.collab.barclayscorp.com> Thanks Martin, that's helpful. Sounds like I'll have to do some research into SharePoint (I'm a bit behind the times I fear...) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: 14 April 2010 10:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access databases - migration project Hi Roz One of the major things that concerned us here was the backup and security of data help in multiple smaller databases. Much easier to incorporate this into the enterprise backups when we moved a lot of them into SQL Server. Much easier to also manage the various interfaces into larger systems as will from one or two single points as opposed to lots of Access databases. Easier with SQL Server to also set up the enterprise data extractions and again easier to manage. SQL Server also provide analysis services and reporting services. We are currently looking to running a lot of this stuff out via SharePoint using the BI tools in SharePoint 2010 and Office 2010. Again makes security and management of this type of thing much easier if you have the infrastructure in place. Oh we also found a lot of duplication of data in the smaller satellite systems. Martin Martin WP Reid Information Services The Library at Queen's Tel : 02890976174 Email : mwp.reid at qub.ac.uk Sharepoint Training Portal ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of roz.clarke at barclays.com [roz.clarke at barclays.com] Sent: 14 April 2010 10:49 To: accessd at databaseadvisors.com Subject: [AccessD] Access databases - migration project Hi all, It's good to be back. :) I'm wondering if anyone has any general advice regarding carrying out current state assessments on clusters of Access databases? I can't talk about the purpose of the CSA (I'm under a non-disclosure agreement) but if you imagine all the possible reasons for doing one, I probably need to cover the lot. I think they are particularly interested in risks (doing nothing vs. doing 'something'). I have Susan and Martin's book on Access -> SQL Server so I can dig into the specifics there, but SQL Server is only one of an unknown number of options on the table. Also the databases are used more for extraction from other systems & subsequent analysis than for data storage. Any tips on what I should be looking for? Data integrity, well-formed data, documentation, state of the code... What else? If anyone who has done large scale migrations has any stories to share I'd be all ears. TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From roz.clarke at barclays.com Wed Apr 14 09:13:42 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Wed, 14 Apr 2010 15:13:42 +0100 Subject: [AccessD] Access databases - migration project In-Reply-To: <4BC59C31.60805@colbyconsulting.com> References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> <4BC59C31.60805@colbyconsulting.com> Message-ID: <174A69C31E290B47A4898DFFDB5BFCD9017731E7@MUKPBCC1XMB0403.collab.barclayscorp.com> Aye, it's been a while. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 14 April 2010 11:43 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access databases - migration project Well Roz! Man it's been a long time! Welcome back. John W. Colby www.ColbyConsulting.com roz.clarke at barclays.com wrote: > Hi all, > > It's good to be back. :) > > I'm wondering if anyone has any general advice regarding carrying out > current state assessments on clusters of Access databases? I can't > talk about the purpose of the CSA (I'm under a non-disclosure > agreement) but if you imagine all the possible reasons for doing one, > I probably need to cover the lot. > > I think they are particularly interested in risks (doing nothing vs. > doing 'something'). I have Susan and Martin's book on Access -> SQL > Server so I can dig into the specifics there, but SQL Server is only > one of an unknown number of options on the table. Also the databases > are used more for extraction from other systems & subsequent analysis > than for data storage. > > Any tips on what I should be looking for? Data integrity, well-formed > data, documentation, state of the code... What else? If anyone who has > done large scale migrations has any stories to share I'd be all ears. > > TIA > > Roz > > This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services Authority. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From jwcolby at colbyconsulting.com Wed Apr 14 12:21:02 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 14 Apr 2010 13:21:02 -0400 Subject: [AccessD] Any easy way to do this? In-Reply-To: <005e01cadb38$d133b9c0$3701a8c0@adtpc> References: <4BC34A2D.5010103@colbyconsulting.com><003401cadae2$e4c28da0$3701a8c0@adtpc> <4BC46375.704@colbyconsulting.com> <005e01cadb38$d133b9c0$3701a8c0@adtpc> Message-ID: <4BC5F97E.4000505@colbyconsulting.com> A.D. I will look at your function to perhaps replace my custom programming the base queries. As I mentioned I "solved" the problem using C# which to be honest is my preferred solution anyway. Yesterday my assistant and I got a form running which grabbed the queries beginning with vBase into a list box, allowed me to move them to two other lists (column and row) and then create dynamic SQL to Select Count() PKID from vBaseColXXX inner join vBaseRowYYY on PKID kind of thing, which returns the count of the junction (inner join) on any two selected vBase queries. Today we will be expanding that to allow me to select M Column queries, N row queries, and populate a datagrid control with the counts of the junction of each column and each row vBase query. What I have right now cuts my time from several hours for a 5 X 6 array of counts down to perhaps 20 minutes. With the solution I expect to have at the end of the day I should be down to about 5 minutes or so. Eventually I expect to be working with the field level of these tables, pulling field names into combos with "possible values" into another combo, allowing me to create where clauses out in C# as well. John W. Colby www.ColbyConsulting.com A.D. Tejpal wrote: > J.C., > > The situation described by you appears to be suited for a single query with user defined function. > > For sake of illustration, let the source table named T_A have the following fields: > MOB - Text type ("Y" means Yes) > HasCat - Text type ("Y" means Yes) > HasDog - Text type ("Y" means Yes) > BoatLength - Number type > Propulsion - Text type ("Sail", "Motor" etc) > > Create a table T_Ref having a single field named RefField (text type). Populate this single column with names of such fields from table T_A as are desired to be displayed as vertical base fields. This can be done programmatically if required. > > Sample function Fn_GetCount() as given below, may be placed in a general module. > > Sample query Q_A as given below, should get you the desired results. For this illustration it will show three categories of count results (BoatLength > 20, Propulsion = 'Sail' and Propulsion = 'Motor'), against each of the vertical base fields (MOB, HasCat, HasDog etc) > > Q_A (Sample query) > =============================== > SELECT T_Ref.RefField, Fn_GetCount("T_A",[RefField],"BoatLength > 20") AS BL_20Plus, Fn_GetCount("T_A",[RefField],"Propulsion = 'Sail'") AS Prop_Sail, Fn_GetCount("T_A",[RefField],"Propulsion = 'Motor'") AS Prop_Motor > FROM T_Ref; > =============================== > > For any additional criteria, or picking up the same from form controls, the sample query could be modified / expanded suitably as desired. > > Best wishes, > A.D. Tejpal > ------------ > > ' Code in general module > '======================================== > Function Fn_GetCount( _ > SourceTableName As String, _ > BaseFieldName As String, _ > CriteriaString As String) As Long > Dim Qst As String > > Qst = "SELECT Abs(Sum([" & _ > BaseFieldName & _ > "]= 'Y' And " & CriteriaString & _ > ")) FROM " & SourceTableName & ";" > > Fn_GetCount = _ > Nz(DBEngine(0)(0).OpenRecordset(Qst).Fields(0), 0) > End Function > '======================================== > > ----- Original Message ----- > From: jwcolby > To: Access Developers discussion and problem solving > Sent: Tuesday, April 13, 2010 17:58 > Subject: Re: [AccessD] Any easy way to do this? > > From rockysmolin at bchacc.com Wed Apr 14 12:25:59 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 14 Apr 2010 10:25:59 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005> Message-ID: <5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I use Dim xlBook As Excel.Workbook (it's an existing workbook) And set it thusly: Set xlBook = GetObject(Me.txtSpreadsheet) where Me.txtSpreadsheet has the path and name of the workbook. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, April 13, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Have you instatiated it ? Dim xlBook As NEW Excel.Workbook Or Dim xlBook As Excel.Workbook Set xlbook as new excel.workbook Just guessing? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 9:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Apr 14 12:31:44 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 14 Apr 2010 13:31:44 -0400 Subject: [AccessD] Access databases - migration project In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> References: <91810D67915C43599B12F101804617B0@Server> <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: <42DFAD8FA892471992811356A78FEFEE@jislaptopdev> ...good to see you back :) ...for me its always been dirty data that drove me batty ...duplicates, nulls, poor relational design, etc. ...which of course depends on how well designed and coded it was to begin with ...but it can consume a major part of any conversion project ...and limit just how much the developer can do until the data quality problems are resolved. ...the major risk I see going forward is not preparing for the move to a 64 bit world ...and not being ready for the move to the cloud ...both of which current versions of Access have major limitations in ...consider the move to 64 bit akin to that from 16 bit to 32 bit with even more problems ...there is no backward/forward compatibility between many existing Access 32 bit controls and the 64 bit version of Office 2010 ...the MSCOMCTL.ocx being a prime example ...and no sign from MS that they will produce such ...this implies significant code changes in conversion projects from 32 bit Office to 64 bit Office ...you can live in the 32 bit WoW environment only so long before the need to migrate to 64 bit will become imperative. William -------------------------------------------------- From: Sent: Wednesday, April 14, 2010 5:49 AM To: Subject: [AccessD] Access databases - migration project > Hi all, > > It's good to be back. :) > > I'm wondering if anyone has any general advice regarding carrying out > current state assessments on clusters of Access databases? I can't talk > about the purpose of the CSA (I'm under a non-disclosure agreement) but > if you imagine all the possible reasons for doing one, I probably need > to cover the lot. > > I think they are particularly interested in risks (doing nothing vs. > doing 'something'). I have Susan and Martin's book on Access -> SQL > Server so I can dig into the specifics there, but SQL Server is only one > of an unknown number of options on the table. Also the databases are > used more for extraction from other systems & subsequent analysis than > for data storage. > > Any tips on what I should be looking for? Data integrity, well-formed > data, documentation, state of the code... What else? If anyone who has > done large scale migrations has any stories to share I'd be all ears. > > TIA > > Roz > > This e-mail and any attachments are confidential and intended solely for > the addressee and may also be privileged or exempt from disclosure under > applicable law. If you are not the addressee, or have received this e-mail > in error, please notify the sender immediately, delete it from your system > and do not copy, disclose or otherwise act upon any part of this e-mail or > its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising > from unauthorised access to, or interference with, any Internet > communications by any third party, or from the transmission of any > viruses. Replies to this e-mail may be monitored by the Barclays Group for > operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that > does not relate to the business of the Barclays Group is personal to the > sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. > 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services > Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From john at winhaven.net Wed Apr 14 20:55:42 2010 From: john at winhaven.net (John Bartow) Date: Wed, 14 Apr 2010 20:55:42 -0500 Subject: [AccessD] changing report caption via code for display in print que Message-ID: <00f201cadc3e$c1ce5b50$456b11f0$@net> I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. From jwcolby at colbyconsulting.com Wed Apr 14 20:55:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 14 Apr 2010 21:55:28 -0400 Subject: [AccessD] Any easy way to do this? In-Reply-To: <4BC5F97E.4000505@colbyconsulting.com> References: <4BC34A2D.5010103@colbyconsulting.com><003401cadae2$e4c28da0$3701a8c0@adtpc> <4BC46375.704@colbyconsulting.com> <005e01cadb38$d133b9c0$3701a8c0@adtpc> <4BC5F97E.4000505@colbyconsulting.com> Message-ID: <4BC67210.8030308@colbyconsulting.com> Today we got a system working where I create the base queries in SQL Server, then we load the base queries in a list box on a C# form. From there we use a "mover" paradigm to move them back and forth between two other list controls, one which represents the column queries, the other represents the row queries. Once we did that and got inner join code working between the row and column queries, we automated it so that code iterated the rows and columns dynamically creating and executing the junction queries (inner join between two base queries). With that happening, we then created a datagrid view, and in code created a table adapter, populated it with the correct number of columns (in the col query list) and then populated the table with the counts. Bound the datagridview control and started poking the counts into the resulting table. It is quite a wonder to watch as the junction queries run and populate the table with the counts. When it is done I can select the data in the table, copy it to the clip board and paste into a spreadsheet or email to send to the client. Other than the time to run the actual counts, this is now a 15 minute exercise to do counts, even for quite a large grid of counts. I got a grid request the other day that was 7 columns by 8 rows, 56 junction queries, plus 15 base queries. I still have to create the 15 base queries but now I can just select those base queries into the row and column lists and press a button and voila, counts start filling in a table. Quite satisfying to watch. John W. Colby www.ColbyConsulting.com jwcolby wrote: > A.D. > > I will look at your function to perhaps replace my custom programming the base queries. As I > mentioned I "solved" the problem using C# which to be honest is my preferred solution anyway. > Yesterday my assistant and I got a form running which grabbed the queries beginning with vBase into > a list box, allowed me to move them to two other lists (column and row) and then create dynamic SQL to > > Select Count() PKID from vBaseColXXX inner join vBaseRowYYY on PKID > > kind of thing, which returns the count of the junction (inner join) on any two selected vBase > queries. Today we will be expanding that to allow me to select M Column queries, N row queries, and > populate a datagrid control with the counts of the junction of each column and each row vBase query. > > What I have right now cuts my time from several hours for a 5 X 6 array of counts down to perhaps 20 > minutes. With the solution I expect to have at the end of the day I should be down to about 5 > minutes or so. > > Eventually I expect to be working with the field level of these tables, pulling field names into > combos with "possible values" into another combo, allowing me to create where clauses out in C# as well. > > John W. Colby > www.ColbyConsulting.com > > > A.D. Tejpal wrote: >> J.C., >> >> The situation described by you appears to be suited for a single query with user defined function. >> >> For sake of illustration, let the source table named T_A have the following fields: >> MOB - Text type ("Y" means Yes) >> HasCat - Text type ("Y" means Yes) >> HasDog - Text type ("Y" means Yes) >> BoatLength - Number type >> Propulsion - Text type ("Sail", "Motor" etc) >> >> Create a table T_Ref having a single field named RefField (text type). Populate this single column with names of such fields from table T_A as are desired to be displayed as vertical base fields. This can be done programmatically if required. >> >> Sample function Fn_GetCount() as given below, may be placed in a general module. >> >> Sample query Q_A as given below, should get you the desired results. For this illustration it will show three categories of count results (BoatLength > 20, Propulsion = 'Sail' and Propulsion = 'Motor'), against each of the vertical base fields (MOB, HasCat, HasDog etc) >> >> Q_A (Sample query) >> =============================== >> SELECT T_Ref.RefField, Fn_GetCount("T_A",[RefField],"BoatLength > 20") AS BL_20Plus, Fn_GetCount("T_A",[RefField],"Propulsion = 'Sail'") AS Prop_Sail, Fn_GetCount("T_A",[RefField],"Propulsion = 'Motor'") AS Prop_Motor >> FROM T_Ref; >> =============================== >> >> For any additional criteria, or picking up the same from form controls, the sample query could be modified / expanded suitably as desired. >> >> Best wishes, >> A.D. Tejpal >> ------------ >> >> ' Code in general module >> '======================================== >> Function Fn_GetCount( _ >> SourceTableName As String, _ >> BaseFieldName As String, _ >> CriteriaString As String) As Long >> Dim Qst As String >> >> Qst = "SELECT Abs(Sum([" & _ >> BaseFieldName & _ >> "]= 'Y' And " & CriteriaString & _ >> ")) FROM " & SourceTableName & ";" >> >> Fn_GetCount = _ >> Nz(DBEngine(0)(0).OpenRecordset(Qst).Fields(0), 0) >> End Function >> '======================================== >> >> ----- Original Message ----- >> From: jwcolby >> To: Access Developers discussion and problem solving >> Sent: Tuesday, April 13, 2010 17:58 >> Subject: Re: [AccessD] Any easy way to do this? >> >> > From BradM at blackforestltd.com Wed Apr 14 21:15:01 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 14 Apr 2010 21:15:01 -0500 Subject: [AccessD] Is it possible to change the filter for a report via input from a text box on the report itself? Message-ID: We want to provide "filtering on the fly" for our users. We have placed a Textbox on the report to obtain user input. We cannot figure out how to grab the value of this textbox on the report (via VBA code). Looks like we are missing something. Thanks for your help/advice. Brad From john at winhaven.net Wed Apr 14 21:50:33 2010 From: john at winhaven.net (John Bartow) Date: Wed, 14 Apr 2010 21:50:33 -0500 Subject: [AccessD] changing report caption via code for display in print que In-Reply-To: <00f201cadc3e$c1ce5b50$456b11f0$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> Message-ID: <00f301cadc46$6bbadbf0$433093d0$@net> BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Apr 14 22:54:28 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 14 Apr 2010 20:54:28 -0700 Subject: [AccessD] changing report caption via code for display in printque In-Reply-To: <00f301cadc46$6bbadbf0$433093d0$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> Message-ID: <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Apr 14 23:27:49 2010 From: john at winhaven.net (John Bartow) Date: Wed, 14 Apr 2010 23:27:49 -0500 Subject: [AccessD] changing report caption via code for display in printque In-Reply-To: <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> Message-ID: <00fd01cadc54$01e021f0$05a065d0$@net> Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Apr 14 23:58:05 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 14 Apr 2010 21:58:05 -0700 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <00fd01cadc54$01e021f0$05a065d0$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net><86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> Message-ID: <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Apr 15 00:26:01 2010 From: john at winhaven.net (John Bartow) Date: Thu, 15 Apr 2010 00:26:01 -0500 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net><86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> Message-ID: <011501cadc5c$2349c6e0$69dd54a0$@net> LOL! Yea, maybe two weeks - originally this thing took about two days to run because the company supplied a huge flat file of the data. I have a feeling it came from a structured database but the dba won't send it that way (job security kind of a thing). I put together a bunch of queries that split it back up, converted all of the "text" fields back to numeric, date, etc and then indexed it properly and now it runs in about an hour. Unfortunately not even the best Imagerunner is going to keep up to that. That is one awesome printer by the way. About the size of a freight train. I think there's a way to code this in the module. That's what I'm after :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 11:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 15 01:17:18 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2010 08:17:18 +0200 Subject: [AccessD] Any easy way to do this? Message-ID: Hi John That sounds clever. Now you only miss to add sound to the show! /gustav >>> jwcolby at colbyconsulting.com 15-04-2010 03:55 >>> Today we got a system working where I create the base queries in SQL Server, then we load the base queries in a list box on a C# form. From there we use a "mover" paradigm to move them back and forth between two other list controls, one which represents the column queries, the other represents the row queries. Once we did that and got inner join code working between the row and column queries, we automated it so that code iterated the rows and columns dynamically creating and executing the junction queries (inner join between two base queries). With that happening, we then created a datagrid view, and in code created a table adapter, populated it with the correct number of columns (in the col query list) and then populated the table with the counts. Bound the datagridview control and started poking the counts into the resulting table. It is quite a wonder to watch as the junction queries run and populate the table with the counts. When it is done I can select the data in the table, copy it to the clip board and paste into a spreadsheet or email to send to the client. Other than the time to run the actual counts, this is now a 15 minute exercise to do counts, even for quite a large grid of counts. I got a grid request the other day that was 7 columns by 8 rows, 56 junction queries, plus 15 base queries. I still have to create the 15 base queries but now I can just select those base queries into the row and column lists and press a button and voila, counts start filling in a table. Quite satisfying to watch. John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Thu Apr 15 01:31:06 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2010 08:31:06 +0200 Subject: [AccessD] changing report caption via code for display in printque Message-ID: Hi John I have never tried, but a form can be opened a second time as a new instance of the first - perhaps you can do the same with a report? Open it first in preview with the adjusted caption for a client using one dummy record, then open as a second instance the actual report for direct print? At the close event of the report, close other instances of the report as well. /gustav >>> john at winhaven.net 15-04-2010 06:27 >>> Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. From accessd at shaw.ca Thu Apr 15 02:54:54 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Apr 2010 00:54:54 -0700 Subject: [AccessD] Any easy way to do this? In-Reply-To: <4BC67210.8030308@colbyconsulting.com> References: <4BC34A2D.5010103@colbyconsulting.com> <003401cadae2$e4c28da0$3701a8c0@adtpc> <4BC46375.704@colbyconsulting.com> <005e01cadb38$d133b9c0$3701a8c0@adtpc> <4BC5F97E.4000505@colbyconsulting.com> <4BC67210.8030308@colbyconsulting.com> Message-ID: <8330F398E50C46AB837F24B8AE04B2AA@creativesystemdesigns.com> Congratulations John. It is not often that a fine piece of code is recognized especially by the client who, in many cases, just understands and wants the result, period. You have been working towards this result for months and it is done. Again, good work John. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 14, 2010 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Any easy way to do this? Today we got a system working where I create the base queries in SQL Server, then we load the base queries in a list box on a C# form. From there we use a "mover" paradigm to move them back and forth between two other list controls, one which represents the column queries, the other represents the row queries. Once we did that and got inner join code working between the row and column queries, we automated it so that code iterated the rows and columns dynamically creating and executing the junction queries (inner join between two base queries). With that happening, we then created a datagrid view, and in code created a table adapter, populated it with the correct number of columns (in the col query list) and then populated the table with the counts. Bound the datagridview control and started poking the counts into the resulting table. It is quite a wonder to watch as the junction queries run and populate the table with the counts. When it is done I can select the data in the table, copy it to the clip board and paste into a spreadsheet or email to send to the client. Other than the time to run the actual counts, this is now a 15 minute exercise to do counts, even for quite a large grid of counts. I got a grid request the other day that was 7 columns by 8 rows, 56 junction queries, plus 15 base queries. I still have to create the 15 base queries but now I can just select those base queries into the row and column lists and press a button and voila, counts start filling in a table. Quite satisfying to watch. John W. Colby www.ColbyConsulting.com jwcolby wrote: > A.D. > > I will look at your function to perhaps replace my custom programming the base queries. As I > mentioned I "solved" the problem using C# which to be honest is my preferred solution anyway. > Yesterday my assistant and I got a form running which grabbed the queries beginning with vBase into > a list box, allowed me to move them to two other lists (column and row) and then create dynamic SQL to > > Select Count() PKID from vBaseColXXX inner join vBaseRowYYY on PKID > > kind of thing, which returns the count of the junction (inner join) on any two selected vBase > queries. Today we will be expanding that to allow me to select M Column queries, N row queries, and > populate a datagrid control with the counts of the junction of each column and each row vBase query. > > What I have right now cuts my time from several hours for a 5 X 6 array of counts down to perhaps 20 > minutes. With the solution I expect to have at the end of the day I should be down to about 5 > minutes or so. > > Eventually I expect to be working with the field level of these tables, pulling field names into > combos with "possible values" into another combo, allowing me to create where clauses out in C# as well. > > John W. Colby > www.ColbyConsulting.com > > > A.D. Tejpal wrote: >> J.C., >> >> The situation described by you appears to be suited for a single query with user defined function. >> >> For sake of illustration, let the source table named T_A have the following fields: >> MOB - Text type ("Y" means Yes) >> HasCat - Text type ("Y" means Yes) >> HasDog - Text type ("Y" means Yes) >> BoatLength - Number type >> Propulsion - Text type ("Sail", "Motor" etc) >> >> Create a table T_Ref having a single field named RefField (text type). Populate this single column with names of such fields from table T_A as are desired to be displayed as vertical base fields. This can be done programmatically if required. >> >> Sample function Fn_GetCount() as given below, may be placed in a general module. >> >> Sample query Q_A as given below, should get you the desired results. For this illustration it will show three categories of count results (BoatLength > 20, Propulsion = 'Sail' and Propulsion = 'Motor'), against each of the vertical base fields (MOB, HasCat, HasDog etc) >> >> Q_A (Sample query) >> =============================== >> SELECT T_Ref.RefField, Fn_GetCount("T_A",[RefField],"BoatLength > 20") AS BL_20Plus, Fn_GetCount("T_A",[RefField],"Propulsion = 'Sail'") AS Prop_Sail, Fn_GetCount("T_A",[RefField],"Propulsion = 'Motor'") AS Prop_Motor >> FROM T_Ref; >> =============================== >> >> For any additional criteria, or picking up the same from form controls, the sample query could be modified / expanded suitably as desired. >> >> Best wishes, >> A.D. Tejpal >> ------------ >> >> ' Code in general module >> '======================================== >> Function Fn_GetCount( _ >> SourceTableName As String, _ >> BaseFieldName As String, _ >> CriteriaString As String) As Long >> Dim Qst As String >> >> Qst = "SELECT Abs(Sum([" & _ >> BaseFieldName & _ >> "]= 'Y' And " & CriteriaString & _ >> ")) FROM " & SourceTableName & ";" >> >> Fn_GetCount = _ >> Nz(DBEngine(0)(0).OpenRecordset(Qst).Fields(0), 0) >> End Function >> '======================================== >> >> ----- Original Message ----- >> From: jwcolby >> To: Access Developers discussion and problem solving >> Sent: Tuesday, April 13, 2010 17:58 >> Subject: Re: [AccessD] Any easy way to do this? >> >> > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at barclays.com Thu Apr 15 03:52:18 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Thu, 15 Apr 2010 09:52:18 +0100 Subject: [AccessD] Access databases - migration project In-Reply-To: <42DFAD8FA892471992811356A78FEFEE@jislaptopdev> References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> <42DFAD8FA892471992811356A78FEFEE@jislaptopdev> Message-ID: <174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> Thanks Bill. They store vey little data in these databases so I'm hoping data issues won't be too major. How do you see cloud computing affecting the use of Access? I haven't heard any mutterings about it in business circles - SharePoint seems to be the current trend. But I am quite out of touch after a year and a half away from database work. Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 14 April 2010 18:32 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access databases - migration project ...good to see you back :) ...for me its always been dirty data that drove me batty ...duplicates, nulls, poor relational design, etc. ...which of course depends on how well designed and coded it was to begin with ...but it can consume a major part of any conversion project ...and limit just how much the developer can do until the data quality problems are resolved. ...the major risk I see going forward is not preparing for the move to a 64 bit world ...and not being ready for the move to the cloud ...both of which current versions of Access have major limitations in ...consider the move to 64 bit akin to that from 16 bit to 32 bit with even more problems ...there is no backward/forward compatibility between many existing Access 32 bit controls and the 64 bit version of Office 2010 ...the MSCOMCTL.ocx being a prime example ...and no sign from MS that they will produce such ...this implies significant code changes in conversion projects from 32 bit Office to 64 bit Office ...you can live in the 32 bit WoW environment only so long before the need to migrate to 64 bit will become imperative. William -------------------------------------------------- From: Sent: Wednesday, April 14, 2010 5:49 AM To: Subject: [AccessD] Access databases - migration project > Hi all, > > It's good to be back. :) > > I'm wondering if anyone has any general advice regarding carrying out > current state assessments on clusters of Access databases? I can't > talk about the purpose of the CSA (I'm under a non-disclosure > agreement) but if you imagine all the possible reasons for doing one, > I probably need to cover the lot. > > I think they are particularly interested in risks (doing nothing vs. > doing 'something'). I have Susan and Martin's book on Access -> SQL > Server so I can dig into the specifics there, but SQL Server is only > one of an unknown number of options on the table. Also the databases > are used more for extraction from other systems & subsequent analysis > than for data storage. > > Any tips on what I should be looking for? Data integrity, well-formed > data, documentation, state of the code... What else? If anyone who has > done large scale migrations has any stories to share I'd be all ears. > > TIA > > Roz > > This e-mail and any attachments are confidential and intended solely > for the addressee and may also be privileged or exempt from disclosure > under applicable law. If you are not the addressee, or have received > this e-mail in error, please notify the sender immediately, delete it > from your system and do not copy, disclose or otherwise act upon any > part of this e-mail or its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising > from unauthorised access to, or interference with, any Internet > communications by any third party, or from the transmission of any > viruses. Replies to this e-mail may be monitored by the Barclays Group > for operational or business reasons. > > Any opinion or other information in this e-mail or its attachments > that does not relate to the business of the Barclays Group is personal > to the sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. > 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial > Services Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From accessd at shaw.ca Thu Apr 15 04:05:14 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Apr 2010 02:05:14 -0700 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> Message-ID: Rocky: You do not have to open the Report, just put a piece of code in the OnOpen event of the report that uses a global variable to populate the header field. That variable can be easily modified, tracked and recorded via the application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Thu Apr 15 07:37:20 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 15 Apr 2010 18:07:20 +0530 Subject: [AccessD] changing report caption via code for display in print que References: <00f201cadc3e$c1ce5b50$456b11f0$@net> Message-ID: <008401cadc98$8dd64510$3701a8c0@adtpc> John, It is observed that if a report is printed directly by opening in normal view, the caption assigned programmatically in report's open event does not get properly captured in the print queue documents of the printer. This is explained by the fact that caption of active window tends to get captured for the above purpose. Depending upon the local set up, direct opening of report might not project its window presence adequately. For absolute certainty, it is therefore necessary that the report is first opened in preview mode, followed by PrintOut and Close actions. It would be interesting to note that you can't get away by opting the preview in hidden mode. In that case, you might even end up with the caption of your calling form getting depicted in print queue. The defining requirement is that the report should be the visible active window (even if for a very brief duration) when requisite information is getting passed to the printer. Sample code in calling form's module, as placed below, should get the job done. Time delay (in clock cycles) as included at various stages, as a measure of abundant precaution, is meant for stabilization between one step and the next. Best wishes, A.D. Tejpal ------------ ' Sample code in calling form's module '========================= Private Sub CmdReport_Click() ' << Suitable code for setting up object ' variable (rst) to a single field recordset ' having names of reports to be printed>> With rst .MoveFirst Do Until .EOF DoCmd.OpenReport .Fields(0), _ acViewPreview P_Wait 200 DoCmd.PrintOut P_Wait 100 DoCmd.Close acReport, .Fields(0) P_Wait 100 MoveNext Loop .Close Set rst = Nothing End With End Sub '--------------------------------------------------- Private Sub P_Wait(WtCycles As Long) Dim Cnt As Long For Cnt = 1 To WtCycles DoEvents Next End Sub '================================== ----- Original Message ----- From: John Bartow To: _DBA-Access Sent: Thursday, April 15, 2010 07:25 Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. From adtp at airtelmail.in Thu Apr 15 07:43:24 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 15 Apr 2010 18:13:24 +0530 Subject: [AccessD] Any easy way to do this? References: <4BC34A2D.5010103@colbyconsulting.com><003401cadae2$e4c28da0$3701a8c0@adtpc> <4BC46375.704@colbyconsulting.com> <005e01cadb38$d133b9c0$3701a8c0@adtpc><4BC5F97E.4000505@colbyconsulting.com> <4BC67210.8030308@colbyconsulting.com> Message-ID: <00c901cadc99$bb509d50$3701a8c0@adtpc> That is great news J.C.! My best compliments. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Thursday, April 15, 2010 07:25 Subject: Re: [AccessD] Any easy way to do this? Today we got a system working where I create the base queries in SQL Server, then we load the base queries in a list box on a C# form. From there we use a "mover" paradigm to move them back and forth between two other list controls, one which represents the column queries, the other represents the row queries. Once we did that and got inner join code working between the row and column queries, we automated it so that code iterated the rows and columns dynamically creating and executing the junction queries (inner join between two base queries). With that happening, we then created a datagrid view, and in code created a table adapter, populated it with the correct number of columns (in the col query list) and then populated the table with the counts. Bound the datagridview control and started poking the counts into the resulting table. It is quite a wonder to watch as the junction queries run and populate the table with the counts. When it is done I can select the data in the table, copy it to the clip board and paste into a spreadsheet or email to send to the client. Other than the time to run the actual counts, this is now a 15 minute exercise to do counts, even for quite a large grid of counts. I got a grid request the other day that was 7 columns by 8 rows, 56 junction queries, plus 15 base queries. I still have to create the 15 base queries but now I can just select those base queries into the row and column lists and press a button and voila, counts start filling in a table. Quite satisfying to watch. John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Apr 15 08:13:50 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 15 Apr 2010 09:13:50 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005> <5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> Message-ID: I honestly don't know but it might be worth a try. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I use Dim xlBook As Excel.Workbook (it's an existing workbook) And set it thusly: Set xlBook = GetObject(Me.txtSpreadsheet) where Me.txtSpreadsheet has the path and name of the workbook. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, April 13, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Have you instatiated it ? Dim xlBook As NEW Excel.Workbook Or Dim xlBook As Excel.Workbook Set xlbook as new excel.workbook Just guessing? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 9:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: Tried that first but it barfs on xlBook.Visible = True where xlBook is defined: Dim xlBook As Excel.Workbook Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Hmm. I took a closer look at that site and noticed that the coder has not even declared the variable wkbNewBook, and the code is evidently written to run in Excel VBA. However, in your code, assuming that xlBook is an Excel.WorkBook object, you should be able to write this... ' close spreadsheet Set xlSheetProductionPlan = Nothing Set xlSheetBOMs = Nothing xlBook.Visible = True xlBook.Save xlBook.Close Set xlApp = Nothing Set xlBook = Nothing MsgBox "Export Complete.", vbExclamation End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, April 13, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Lambert: I get Object does not support this property or method on the .Visible = True Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden This looks like a possible solution... http://www.vbforums.com/archive/index.php/t-411430.html Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 15 08:24:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Apr 2010 06:24:53 -0700 Subject: [AccessD] changing report caption via codefor displayin printque In-Reply-To: <011501cadc5c$2349c6e0$69dd54a0$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net><86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net><37C70D6463BE4C29920F9EF11381CFD2@HAL9005> <011501cadc5c$2349c6e0$69dd54a0$@net> Message-ID: Does the queue maybe have an object model? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 10:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via codefor displayin printque LOL! Yea, maybe two weeks - originally this thing took about two days to run because the company supplied a huge flat file of the data. I have a feeling it came from a structured database but the dba won't send it that way (job security kind of a thing). I put together a bunch of queries that split it back up, converted all of the "text" fields back to numeric, date, etc and then indexed it properly and now it runs in about an hour. Unfortunately not even the best Imagerunner is going to keep up to that. That is one awesome printer by the way. About the size of a freight train. I think there's a way to code this in the module. That's what I'm after :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 11:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 15 09:06:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 15 Apr 2010 10:06:33 -0400 Subject: [AccessD] Visual Studio 2010 Message-ID: <4BC71D69.9020708@colbyconsulting.com> Is VS 2010 ready for prime time? As a student I can get a free copy (it is downloading now) but I always hesitate to embrace rev 1 software of any kind. Are you guys using it yet? I am using 2008 in production right now and really love it. -- John W. Colby www.ColbyConsulting.com From steve at goodhall.info Thu Apr 15 09:28:36 2010 From: steve at goodhall.info (Steve Goodhall) Date: Thu, 15 Apr 2010 09:28:36 -0500 Subject: [AccessD] Visual Studio 2010 Message-ID: <62681.1271341716@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I recently downloaded a copy of the Web Developer 2010 Express version. It comes up with a disclaimer that it is for evaluation only. That said, it hasn't broken so far. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 15/04/10 10:06 AM , jwcolby jwcolby at colbyconsulting.com sent: Is VS 2010 ready for prime time? As a student I can get a free copy (it is downloading now) but I always hesitate to embrace rev 1 software of any kind. Are you guys using it yet? I am using 2008 in production right now and really love it. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com [2] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] http://www.ColbyConsulting.com [2] mailto:AccessD at databaseadvisors.com From drawbridgej at sympatico.ca Thu Apr 15 10:49:12 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Thu, 15 Apr 2010 11:49:12 -0400 Subject: [AccessD] Is it possible to change the filter for a report viainput from a text box on the report itself? In-Reply-To: References: Message-ID: Brad, I don't know if this is helpful, but it may get the thought process going. http://www.fontstuff.com/access/acctut19.htm jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, April 14, 2010 10:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] Is it possible to change the filter for a report viainput from a text box on the report itself? We want to provide "filtering on the fly" for our users. We have placed a Textbox on the report to obtain user input. We cannot figure out how to grab the value of this textbox on the report (via VBA code). Looks like we are missing something. Thanks for your help/advice. Brad -- 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.801 / Virus Database: 271.1.1/2812 - Release Date: 04/15/10 02:31:00 From BradM at blackforestltd.com Thu Apr 15 11:34:43 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 15 Apr 2010 11:34:43 -0500 Subject: [AccessD] Is it possible to change the filter for a reportviainput from a text box on the report itself? References: Message-ID: Jack, This is exactly the info that we needed. I appreciate your help. Thanks! Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Thursday, April 15, 2010 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Is it possible to change the filter for a reportviainput from a text box on the report itself? Brad, I don't know if this is helpful, but it may get the thought process going. http://www.fontstuff.com/access/acctut19.htm jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, April 14, 2010 10:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] Is it possible to change the filter for a report viainput from a text box on the report itself? We want to provide "filtering on the fly" for our users. We have placed a Textbox on the report to obtain user input. We cannot figure out how to grab the value of this textbox on the report (via VBA code). Looks like we are missing something. Thanks for your help/advice. Brad -- 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.801 / Virus Database: 271.1.1/2812 - Release Date: 04/15/10 02:31:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From marksimms at verizon.net Thu Apr 15 11:57:15 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 15 Apr 2010 12:57:15 -0400 Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? In-Reply-To: References: Message-ID: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> My wife and I have been Turbotax users for almost a decade. Prior to the 2009 release, her 5 year old desktop computer with 512 meg DRAM performed well. This year, it appears Turbotax was rewritten in the latest dot-net framework. It was hardly usable on her machine.....it was so slow. To top it off, the GUI changed to a 2 panel design with the form list on the left, form data on the right. It was an awful choice because of the lengthy descriptions of the form names.... one had to constantly shrink and expand the panels. Was this apparent to anyone else on the list ? From garykjos at gmail.com Thu Apr 15 12:05:15 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 15 Apr 2010 12:05:15 -0500 Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? In-Reply-To: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> References: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> Message-ID: Hi Mark, I didn't notice any difference in performance from prior years. I ran it on a 4GB RAM Dual Core processor system running Vista, but it's hardly a new system. 3 years old anyway. I didn't really use the forms interface as I just go through the interview interface for the most part. Sorry to hear you had a less than satisfactory experience. Hopefully you did get them done and filed though. GK On Thu, Apr 15, 2010 at 11:57 AM, Mark Simms wrote: > > My wife and I have been Turbotax users for almost a decade. > Prior to the 2009 release, her 5 year old desktop computer with 512 meg DRAM > performed well. > This year, it appears Turbotax was rewritten in the latest dot-net > framework. > It was hardly usable on her machine.....it was so slow. > To top it off, the GUI changed to a 2 panel design with the form list on the > left, form data on the right. > It was an awful choice because of the lengthy descriptions of the form > names.... > ?one had to constantly shrink and expand the panels. > > Was this apparent to anyone else on the list ? > > > > -- > 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 Lambert.Heenan at chartisinsurance.com Thu Apr 15 12:08:36 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 15 Apr 2010 13:08:36 -0400 Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? In-Reply-To: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> References: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> Message-ID: Well at least they are not trying to install any rootkit malware behind your back, like they did a few years ago. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, April 15, 2010 12:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? My wife and I have been Turbotax users for almost a decade. Prior to the 2009 release, her 5 year old desktop computer with 512 meg DRAM performed well. This year, it appears Turbotax was rewritten in the latest dot-net framework. It was hardly usable on her machine.....it was so slow. To top it off, the GUI changed to a 2 panel design with the form list on the left, form data on the right. It was an awful choice because of the lengthy descriptions of the form names.... one had to constantly shrink and expand the panels. Was this apparent to anyone else on the list ? -- 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 Apr 15 12:12:52 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 15 Apr 2010 10:12:52 -0700 Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? In-Reply-To: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> References: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> Message-ID: <1EE707552B734F8A9177C5ADC41BF81E@murphy3234aaf1> Hi Mark, I also use TurboTax. My machine is an OptiPlex GX520, WinXP, with 2 G of memory. TurboTax ran fine on it this year. Memory may be the issue. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, April 15, 2010 9:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? My wife and I have been Turbotax users for almost a decade. Prior to the 2009 release, her 5 year old desktop computer with 512 meg DRAM performed well. This year, it appears Turbotax was rewritten in the latest dot-net framework. It was hardly usable on her machine.....it was so slow. To top it off, the GUI changed to a 2 panel design with the form list on the left, form data on the right. It was an awful choice because of the lengthy descriptions of the form names.... one had to constantly shrink and expand the panels. Was this apparent to anyone else on the list ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 15 12:21:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Apr 2010 10:21:30 -0700 Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? In-Reply-To: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> References: <003a01cadcbc$b3da9710$0401a8c0@MSIMMSWS> Message-ID: <565F2D700AF549CF8FA4DE9588A8E1F5@HAL9005> 1/2 gig Ram used to be fine - now you need at least 1GB, preferably 2GB to run the moderne software. Try upgrading the RAM and see what happens. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, April 15, 2010 9:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dot-net 3.5 / Turbotax - anyone else experience this ? My wife and I have been Turbotax users for almost a decade. Prior to the 2009 release, her 5 year old desktop computer with 512 meg DRAM performed well. This year, it appears Turbotax was rewritten in the latest dot-net framework. It was hardly usable on her machine.....it was so slow. To top it off, the GUI changed to a 2 panel design with the form list on the left, form data on the right. It was an awful choice because of the lengthy descriptions of the form names.... one had to constantly shrink and expand the panels. Was this apparent to anyone else on the list ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtejpal at gmail.com Thu Apr 15 12:27:33 2010 From: adtejpal at gmail.com (A.D. Tejpal) Date: Thu, 15 Apr 2010 22:57:33 +0530 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> Message-ID: <008401cadcc1$26e4d410$3701a8c0@adtpc> Rocky, It is presumed that after setting the object variable xlApp to excel application, you have the following statement: xlApp.Visible = True Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Heenan, Lambert To: Access Developers discussion and problem solving Sent: Thursday, April 15, 2010 18:43 Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I honestly don't know but it might be worth a try. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert From rockysmolin at bchacc.com Thu Apr 15 12:32:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Apr 2010 10:32:14 -0700 Subject: [AccessD] Printing Documents from VBA Message-ID: Dear List: The app prints a packing list. One of the fields in the packing list detail points to a document - a lot certification that needs to go with the packing slip. So I want to send those docs to the printer after the packing slip is printed. The doc may be a pdf but can't guarantee that. Is there a general case command that could send a doc to the printer (the association of the extension should trigger the right app, I think)? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at chartisinsurance.com Thu Apr 15 12:45:40 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 15 Apr 2010 13:45:40 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <008401cadcc1$26e4d410$3701a8c0@adtpc> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> <008401cadcc1$26e4d410$3701a8c0@adtpc> Message-ID: A.J. For me that happens in a related function... 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: ReportError Err.Number, Err.Description, "Excel_OpenWorkBook", "Excel_mod", "File Name=" & Path Set Excel_OpenWorkBook = Nothing Resume Excel_OpenWorkBook_exit End Function Often I want to open an Excel file and pull some data from it and then close the file. There's no need to the user to see the file on screen, hence the function Excel_OpenWorkBookHidden. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Thursday, April 15, 2010 1:28 PM To: Access Developers discussion and problem solving Cc: A.D. Tejpal Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Rocky, It is presumed that after setting the object variable xlApp to excel application, you have the following statement: xlApp.Visible = True Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Heenan, Lambert To: Access Developers discussion and problem solving Sent: Thursday, April 15, 2010 18:43 Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I honestly don't know but it might be worth a try. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 15 12:52:26 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Apr 2010 10:52:26 -0700 Subject: [AccessD] Printing Documents from VBA In-Reply-To: References: Message-ID: Found this: http://www.dbforums.com/microsoft-access/1066955-how-do-i-print-txt-file-vba .html And it seems to work on .doc, .rtf, and .pdf. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, April 15, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Printing Documents from VBA Dear List: The app prints a packing list. One of the fields in the packing list detail points to a document - a lot certification that needs to go with the packing slip. So I want to send those docs to the printer after the packing slip is printed. The doc may be a pdf but can't guarantee that. Is there a general case command that could send a doc to the printer (the association of the extension should trigger the right app, I think)? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From lmrazek at lcm-res.com Thu Apr 15 12:57:02 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 15 Apr 2010 12:57:02 -0500 Subject: [AccessD] Access 2007, Set Printer Properties for report Message-ID: Hi Folks: I inherited an app written in Acc2007 (computer in question is running sp2). They have a couple of buttons/reports that need to be able to be quickly sent to various printers, and I'm a bit stuck, specifically in setting the paper size via the "acPRPSUser" constant ... any ideas? I can get Access to switch default printers, but haven't been able to set all of the sizes. Currently using the following: stDocName = ReportName sRpt = stDocName DoCmd.OpenReport stDocName, acViewDesign 'Set the printer to default Set rpt = Reports(sRpt) ' rpt.UseDefaultPrinter = True ' Printers ("Adobe PDF") rpt.Printer = Application.Printers("Canon iR c2880/c3380 PCL5c") ' Sets the printer name. ' rpt.Printer = Application.Printers("Adobe PDF") ' Sets the printer name. 'set the prt object to the Application printer Set prt = rpt.Printer With prt 'Margins ' .LeftMargin = 360 ' in units of twips 1"=1440twips / 10mm = 567twips ' .RightMargin = 360 ' .TopMargin = 901 ' .BottomMargin = 238 ' .ItemSizeHeight = 8640 ' .ItemSizeWidth = 8640 .PaperBin = acPRBNTractor .PaperSize = acPRPSUser ' Application.Printer.ItemSizeHeight = 6000 ' Application.Printer.ItemSizeWidth = 6000 ' 'Orientation .Orientation = acPRORPortrait 'Column / Row Spacing .ColumnSpacing = 360 .RowSpacing = 0 End With DoCmd.Close ObjectType:=acReport, ObjectName:=sRpt, Save:=acSaveYes DoCmd.OpenReport stDocName, acViewPreview Thanks in advance: Larry M. lmrazek at lcm-res.com From shamil at smsconsulting.spb.ru Thu Apr 15 13:30:20 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 15 Apr 2010 22:30:20 +0400 Subject: [AccessD] Visual Studio 2010 In-Reply-To: <4BC71D69.9020708@colbyconsulting.com> References: <4BC71D69.9020708@colbyconsulting.com> Message-ID: <004501cadcc9$b5e79230$6a01a8c0@nant> Hi John -- I suppose it's ready for prime time: from what I have seen on VS2010 Launch Event, and from what I have heard from others. Although I must say I haven't used VS2010 yet but I plan to switch to it this summer or earlier - and I do plan to have all my projects converted to VS2010 and .NET Framework 4.0. And BTW they say it's possible to install and to use VS2010 side-by-side with VS2008 safe as it was for VS 2003 and VS 2005 before.... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, April 15, 2010 6:07 PM To: VBA; Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] Visual Studio 2010 Is VS 2010 ready for prime time? As a student I can get a free copy (it is downloading now) but I always hesitate to embrace rev 1 software of any kind. Are you guys using it yet? I am using 2008 in production right now and really love it. -- 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 jm.hwsn at gmail.com Thu Apr 15 14:27:18 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Thu, 15 Apr 2010 14:27:18 -0500 Subject: [AccessD] Access 2007 Print Preview Issue Message-ID: <4bc76895.1d95e30a.77c8.ffff83d2@mx.google.com> I have several reports that the user may view in print preview mode. All are opened using a command button using the following method. DoCmd.OpenReport strReportName, acViewPreview The issue: Some - not all - of the previews open with the control box visible in the upper right hand corner. All the reports have the same parameters set for the control box. On ALL reports when the report preview is clicked, to change the zoom property, the control box disappears. I am using a custom ribbon for print previews, but this behavior appears even without it. Has anyone run across this before? How can I keep the control box visible all the time in Print Preview? TIA Jim From rockysmolin at bchacc.com Thu Apr 15 18:39:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Apr 2010 16:39:29 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <008401cadcc1$26e4d410$3701a8c0@adtpc> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> <008401cadcc1$26e4d410$3701a8c0@adtpc> Message-ID: A.D.: I didn't, but I put it there: Set xlBook = GetObject(Me.txtSpreadsheet) Set xlApp = xlBook.Parent xlApp.Visible = True And Excel is now visible during the export but the worksheets are not - and the workbook is hidden when I open it in Excel. Any other suggestions? TIA 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 A.D. Tejpal Sent: Thursday, April 15, 2010 10:28 AM To: Access Developers discussion and problem solving Cc: A.D. Tejpal Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Rocky, It is presumed that after setting the object variable xlApp to excel application, you have the following statement: xlApp.Visible = True Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Heenan, Lambert To: Access Developers discussion and problem solving Sent: Thursday, April 15, 2010 18:43 Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I honestly don't know but it might be worth a try. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Thu Apr 15 21:21:42 2010 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 15 Apr 2010 22:21:42 -0400 Subject: [AccessD] Visual Studio 2010 In-Reply-To: <4BC71D69.9020708@colbyconsulting.com> References: <4BC71D69.9020708@colbyconsulting.com> Message-ID: <002101cadd0b$8e093fb0$aa1bbf10$@rr.com> I think this version has been field tested pretty good. I am confident enough that I installed it at work Tuesday, but have not used it yet. I installed Silverlight 4 which was made available for download today. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, April 15, 2010 10:07 AM To: VBA; Access Developers discussion and problem solving; Sqlserver-Dba Subject: [AccessD] Visual Studio 2010 Is VS 2010 ready for prime time? As a student I can get a free copy (it is downloading now) but I always hesitate to embrace rev 1 software of any kind. Are you guys using it yet? I am using 2008 in production right now and really love it. -- 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 Fri Apr 16 08:57:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 16 Apr 2010 09:57:59 -0400 Subject: [AccessD] This is why i love C# Message-ID: <4BC86CE7.8040402@colbyconsulting.com> I use virtual machines to do some processing. When not using the VMs I turn off the entire physical machine that hosts the VMs. I have code that needs to move files to / from the VMs, but I need to check that they exist before I try to do so. The .Net framework has an entire namespace for the Net and it specifically has a PING class which allows me to ping an IP to see if it responds. Voila, instant "is the machine turned on" code. -- John W. Colby www.ColbyConsulting.com From marksimms at verizon.net Fri Apr 16 09:17:25 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 16 Apr 2010 10:17:25 -0400 Subject: [AccessD] This is why i love C# In-Reply-To: <4BC86CE7.8040402@colbyconsulting.com> References: <4BC86CE7.8040402@colbyconsulting.com> Message-ID: <00f901cadd6f$8a051e20$0401a8c0@MSIMMSWS> John - IMHO it's not the language, but the framework that enables this. Heck, MSFT could have even put this functionality in the VBA framework if they wanted to. They did not which is why almost every Excel add-in on the market contains tons of API calls. From marksimms at verizon.net Fri Apr 16 09:21:45 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 16 Apr 2010 10:21:45 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> <008401cadcc1$26e4d410$3701a8c0@adtpc> Message-ID: <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> xlApp.Windows(1).Visible = True > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Thursday, April 15, 2010 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet > is hidden > > A.D.: > > I didn't, but I put it there: > > Set xlBook = GetObject(Me.txtSpreadsheet) > Set xlApp = xlBook.Parent > xlApp.Visible = True > > And Excel is now visible during the export but the worksheets > are not - and the workbook is hidden when I open it in Excel. > Any other suggestions? > > TIA > > 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 A.D. Tejpal > Sent: Thursday, April 15, 2010 10:28 AM > To: Access Developers discussion and problem solving > Cc: A.D. Tejpal > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet > is hidden > > Rocky, > > It is presumed that after setting the object variable > xlApp to excel application, you have the following statement: > > xlApp.Visible = True > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: Heenan, Lambert > To: Access Developers discussion and problem solving > Sent: Thursday, April 15, 2010 18:43 > Subject: Re: [AccessD] Excel Automation Problem - > spreadsheet is hidden > > > I honestly don't know but it might be worth a try. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, April 14, 2010 1:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - > spreadsheet is hidden > > Do you think that will make a difference in the hidden problem? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, Lambert > Sent: Tuesday, April 13, 2010 5:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Excel Automation Problem - > spreadsheet is hidden > > I open workbooks a quite different way. The essence of it is... > > Function Excel_OpenWorkBookHidden(Path As String, _ > Optional UpdateLinks As Boolean = False, _ > Optional Password As String = "") As Excel.Application > > Dim xlApp As Excel.Application > > If IsExcelRunning() Then > Set xlApp = GetObject(, "Excel.Application") > Else > Do > Set xlApp = CreateObject("Excel.Application") > Loop Until IsExcelRunning() > End If > > xlApp.Workbooks.Open Path, UpdateLinks, , , Password > Set Excel_OpenWorkBookHidden = xlApp > End Function > > > And the helper function is > > Function IsExcelRunning() As Boolean > Dim xlApp As Excel.Application > On Error Resume Next > Set xlApp = GetObject(, "Excel.Application") > IsExcelRunning = (Err.Number = 0) > Set xlApp = Nothing > Err.Clear > End Function > > So in my client code I declare an Excel.Application object... > > Dim xlApp as Excel.Application > > Then I set it with > > Set xlApp = Excel_OpenWorkBookHidden(strSomePath) > > And I access the worksheets with > > Dim xlWs as Excel.Worksheet > > Set xlWs = xlApp.Worksheets(1) > > Notice that the client code does not even use a workbook > object. I've not had any serious trouble with that, and no > issues with hidden worksheets. > > Lambert > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From robert at servicexp.com Fri Apr 16 10:13:09 2010 From: robert at servicexp.com (Robert) Date: Fri, 16 Apr 2010 11:13:09 -0400 Subject: [AccessD] Formating Text in a .txt document? In-Reply-To: <4BC4ECE8.8706.142E042E@stuart.lexacorp.com.pg> References: <4BBDF658.9000708@colbyconsulting.com>, <4BC31001.30409.CE7196C@stuart.lexacorp.com.pg>, <002f01cadb46$93abbd60$bb033820$@com> <4BC4ECE8.8706.142E042E@stuart.lexacorp.com.pg> Message-ID: <000d01cadd77$53e406a0$fbac13e0$@com> Thanks Stuart, worked perfectly... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, April 13, 2010 6:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Formating Text in a .txt document? Yes and no. :-( YES: Use a mixture of Mid$(), Format$() etc to put the fields into a string to lay out the row. Something like: strHeader = "Qty ItemID Item Descr Cost" Print #ff, stHheader While not rs.EOF strRow = Space$(80) Mid$(strRow,1,4) = format$(rs!qty,"###0") Mid$(strRow,8,12) = rs!(ItemID) Mid$(strRow, 21,48) = rs!(ItemDesc) Mid$(strRow,70,10) = format$(rs!,Cost,""###,##0.00") Print #ff, strRow rs.Movenext Wend NO: The rows won't line up unless the recipient is viewing the data in a fixed width font. -- Stuart On 13 Apr 2010 at 16:19, Robert wrote: > Is there any way to created a formatted look for a order detail block in a > .txt document? > > > Example: > > Qty Item ID Item Desc. Cost > > 1 FR58465 The first $125.00 > 1 DSEEFS58465 The Second Time $5.00 > > Ect... > > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Apr 16 10:59:43 2010 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2010 10:59:43 -0500 Subject: [AccessD] changing report caption via code for display in print que In-Reply-To: <008401cadc98$8dd64510$3701a8c0@adtpc> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <008401cadc98$8dd64510$3701a8c0@adtpc> Message-ID: <008101cadd7d$d4e55410$7eaffc30$@net> A.D., Thank you so much! Exactly what I was looking for. Modified it to fit my situation and everything works great! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Thursday, April 15, 2010 7:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] changing report caption via code for display in print que John, It is observed that if a report is printed directly by opening in normal view, the caption assigned programmatically in report's open event does not get properly captured in the print queue documents of the printer. This is explained by the fact that caption of active window tends to get captured for the above purpose. Depending upon the local set up, direct opening of report might not project its window presence adequately. For absolute certainty, it is therefore necessary that the report is first opened in preview mode, followed by PrintOut and Close actions. It would be interesting to note that you can't get away by opting the preview in hidden mode. In that case, you might even end up with the caption of your calling form getting depicted in print queue. The defining requirement is that the report should be the visible active window (even if for a very brief duration) when requisite information is getting passed to the printer. Sample code in calling form's module, as placed below, should get the job done. Time delay (in clock cycles) as included at various stages, as a measure of abundant precaution, is meant for stabilization between one step and the next. Best wishes, A.D. Tejpal ------------ ' Sample code in calling form's module '========================= Private Sub CmdReport_Click() ' << Suitable code for setting up object ' variable (rst) to a single field recordset ' having names of reports to be printed>> With rst .MoveFirst Do Until .EOF DoCmd.OpenReport .Fields(0), _ acViewPreview P_Wait 200 DoCmd.PrintOut P_Wait 100 DoCmd.Close acReport, .Fields(0) P_Wait 100 MoveNext Loop .Close Set rst = Nothing End With End Sub '--------------------------------------------------- Private Sub P_Wait(WtCycles As Long) Dim Cnt As Long For Cnt = 1 To WtCycles DoEvents Next End Sub '================================== ----- Original Message ----- From: John Bartow To: _DBA-Access Sent: Thursday, April 15, 2010 07:25 Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Apr 16 11:04:43 2010 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2010 11:04:43 -0500 Subject: [AccessD] changing report caption via code for display in printque In-Reply-To: References: Message-ID: <008501cadd7e$879b7350$96d259f0$@net> Hi Gustav, Might work but A.D.'s code worked and seemed a bit cleaner so I didn't try. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, April 15, 2010 1:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] changing report caption via code for display in printque Hi John I have never tried, but a form can be opened a second time as a new instance of the first - perhaps you can do the same with a report? Open it first in preview with the adjusted caption for a client using one dummy record, then open as a second instance the actual report for direct print? At the close event of the report, close other instances of the report as well. /gustav >>> john at winhaven.net 15-04-2010 06:27 >>> Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Apr 16 11:04:43 2010 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2010 11:04:43 -0500 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> Message-ID: <008601cadd7e$87c198f0$9744cad0$@net> Hi Jim, That's what I thought but unfortunately it doesn't work that way. In my original posting I included code. The CurrentAcct() function is a global function returning the account number. Only works if they report is opened for display first (as in A.D.'s code sample). John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 15, 2010 4:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Rocky: You do not have to open the Report, just put a piece of code in the OnOpen event of the report that uses a global variable to populate the header field. That variable can be easily modified, tracked and recorded via the application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Apr 16 11:04:43 2010 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2010 11:04:43 -0500 Subject: [AccessD] changing report caption via codefor displayin printque In-Reply-To: References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net><86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net><37C70D6463BE4C29920F9EF11381CFD2@HAL9005> <011501cadc5c$2349c6e0$69dd54a0$@net> Message-ID: <008701cadd7e$88b288a0$9a1799e0$@net> Nope -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, April 15, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via codefor displayin printque Does the queue maybe have an object model? R e: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Apr 16 11:19:44 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 12:19:44 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005><008401cadcc1$26e4d410$3701a8c0@adtpc> <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> Message-ID: Group ...through my own stupidity I've managed to lose my copy of Steve Nyberg's Ffil2.mdb that was the original template for my user form search code ...and now that I find I need the original code once more, Steve Nyberg's Access page is no longer available :( ...does anyone on the list have a copy of his mdb that they'd be willing to send me? ...thanks in advance William From wdhindman at dejpolsystems.com Fri Apr 16 11:38:59 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 12:38:59 -0400 Subject: [AccessD] Access databases - migration project In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev> <174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: ...imnsho Sharepoint is a dead end tech, an interim sop by MS to keep its desktop golden goose churning out the profits ...but there are far too many advantages business wise to a full blown cloud based application structure for MS to keep its desktop/sharepoint products in the mix for very long ...the reason I'm moving from Access to VS/Net as a primary development platform ...its apparent in Office 2010 that MS recognizes the move to the cloud is inevitable but I think its too little too late ...that said, MS has a very dedicated business user community with lots of investment in its desktop structure (witness how many are still wedded to IE6) so it may yet find a way too keep them ...but with Google, Amazon, and IBM (among others) providing more and more alternatives, we'll see. William -------------------------------------------------- From: Sent: Thursday, April 15, 2010 4:52 AM To: Subject: Re: [AccessD] Access databases - migration project > Thanks Bill. They store vey little data in these databases so I'm hoping > data issues won't be too major. > > How do you see cloud computing affecting the use of Access? I haven't > heard any mutterings about it in business circles - SharePoint seems to > be the current trend. But I am quite out of touch after a year and a > half away from database work. > > Roz > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 14 April 2010 18:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access databases - migration project > > ...good to see you back :) > > ...for me its always been dirty data that drove me batty ...duplicates, > nulls, poor relational design, etc. > ...which of course depends on how well designed and coded it was to > begin with ...but it can consume a major part of any conversion project > ...and limit just how much the developer can do until the data quality > problems are resolved. > > ...the major risk I see going forward is not preparing for the move to a > 64 bit world ...and not being ready for the move to the cloud ...both of > which current versions of Access have major limitations in ...consider > the move to > 64 bit akin to that from 16 bit to 32 bit with even more problems > ...there is no backward/forward compatibility between many existing > Access 32 bit controls and the 64 bit version of Office 2010 ...the > MSCOMCTL.ocx being a prime example ...and no sign from MS that they will > produce such ...this implies significant code changes in conversion > projects from 32 bit Office to 64 bit Office ...you can live in the 32 > bit WoW environment only so long before the need to migrate to 64 bit > will become imperative. > > William > > -------------------------------------------------- > From: > Sent: Wednesday, April 14, 2010 5:49 AM > To: > Subject: [AccessD] Access databases - migration project > >> Hi all, >> >> It's good to be back. :) >> >> I'm wondering if anyone has any general advice regarding carrying out >> current state assessments on clusters of Access databases? I can't >> talk about the purpose of the CSA (I'm under a non-disclosure >> agreement) but if you imagine all the possible reasons for doing one, >> I probably need to cover the lot. >> >> I think they are particularly interested in risks (doing nothing vs. >> doing 'something'). I have Susan and Martin's book on Access -> SQL >> Server so I can dig into the specifics there, but SQL Server is only >> one of an unknown number of options on the table. Also the databases >> are used more for extraction from other systems & subsequent analysis >> than for data storage. >> >> Any tips on what I should be looking for? Data integrity, well-formed >> data, documentation, state of the code... What else? If anyone who has > >> done large scale migrations has any stories to share I'd be all ears. >> >> TIA >> >> Roz >> >> This e-mail and any attachments are confidential and intended solely >> for the addressee and may also be privileged or exempt from disclosure > >> under applicable law. If you are not the addressee, or have received >> this e-mail in error, please notify the sender immediately, delete it >> from your system and do not copy, disclose or otherwise act upon any >> part of this e-mail or its attachments. >> >> Internet communications are not guaranteed to be secure or virus-free. >> The Barclays Group does not accept responsibility for any loss arising > >> from unauthorised access to, or interference with, any Internet >> communications by any third party, or from the transmission of any >> viruses. Replies to this e-mail may be monitored by the Barclays Group > >> for operational or business reasons. >> >> Any opinion or other information in this e-mail or its attachments >> that does not relate to the business of the Barclays Group is personal > >> to the sender and is not given or endorsed by the Barclays Group. >> >> Barclays Bank PLC.Registered in England and Wales (registered no. >> 1026167). >> Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. >> >> Barclays Bank PLC is authorised and regulated by the Financial >> Services Authority. >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 are confidential and intended solely for > the addressee and may also be privileged or exempt from disclosure under > applicable law. If you are not the addressee, or have received this e-mail > in error, please notify the sender immediately, delete it from your system > and do not copy, disclose or otherwise act upon any part of this e-mail or > its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising > from unauthorised access to, or interference with, any Internet > communications by any third party, or from the transmission of any > viruses. Replies to this e-mail may be monitored by the Barclays Group for > operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that > does not relate to the business of the Barclays Group is personal to the > sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. > 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services > Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Apr 16 11:51:05 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Apr 2010 09:51:05 -0700 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005><008401cadcc1$26e4d410$3701a8c0@adtpc> <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> Message-ID: <9B39A79DA5144934A1E9151F918F404C@HAL9005> Mark: Thanks so much. That worked. But why? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Friday, April 16, 2010 7:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden xlApp.Windows(1).Visible = True > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Thursday, April 15, 2010 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > hidden > > A.D.: > > I didn't, but I put it there: > > Set xlBook = GetObject(Me.txtSpreadsheet) > Set xlApp = xlBook.Parent > xlApp.Visible = True > > And Excel is now visible during the export but the worksheets are not > - and the workbook is hidden when I open it in Excel. > Any other suggestions? > > TIA > > 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 A.D. Tejpal > Sent: Thursday, April 15, 2010 10:28 AM > To: Access Developers discussion and problem solving > Cc: A.D. Tejpal > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > hidden > > Rocky, > > It is presumed that after setting the object variable xlApp to > excel application, you have the following statement: > > xlApp.Visible = True > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: Heenan, Lambert > To: Access Developers discussion and problem solving > Sent: Thursday, April 15, 2010 18:43 > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > hidden > > > I honestly don't know but it might be worth a try. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Wednesday, April 14, 2010 1:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > hidden > > Do you think that will make a difference in the hidden problem? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Tuesday, April 13, 2010 5:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > hidden > > I open workbooks a quite different way. The essence of it is... > > Function Excel_OpenWorkBookHidden(Path As String, _ > Optional UpdateLinks As Boolean = False, _ > Optional Password As String = "") As Excel.Application > > Dim xlApp As Excel.Application > > If IsExcelRunning() Then > Set xlApp = GetObject(, "Excel.Application") > Else > Do > Set xlApp = CreateObject("Excel.Application") > Loop Until IsExcelRunning() > End If > > xlApp.Workbooks.Open Path, UpdateLinks, , , Password > Set Excel_OpenWorkBookHidden = xlApp > End Function > > > And the helper function is > > Function IsExcelRunning() As Boolean > Dim xlApp As Excel.Application > On Error Resume Next > Set xlApp = GetObject(, "Excel.Application") > IsExcelRunning = (Err.Number = 0) > Set xlApp = Nothing > Err.Clear > End Function > > So in my client code I declare an Excel.Application object... > > Dim xlApp as Excel.Application > > Then I set it with > > Set xlApp = Excel_OpenWorkBookHidden(strSomePath) > > And I access the worksheets with > > Dim xlWs as Excel.Worksheet > > Set xlWs = xlApp.Worksheets(1) > > Notice that the client code does not even use a workbook object. > I've not had any serious trouble with that, and no issues with hidden > worksheets. > > Lambert > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 16 11:55:30 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 12:55:30 -0400 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev><174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: <6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> Group ...sorry I got the subject wrong the first time ...advancing age is such a bitch :( ...through my own stupidity I've managed to lose my copy of Steve Nyberg's Ffil2.mdb that was the original template for my user form search code ...and now that I find I need the original code once more, Steve Nyberg's Access page is no longer available :( ...does anyone on the list have a copy of his mdb that they'd be willing to send me? ...thanks in advance William ...Access resource sites are dropping like flies :( From Lambert.Heenan at chartisinsurance.com Fri Apr 16 12:09:38 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 16 Apr 2010 13:09:38 -0400 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: <6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev><174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> <6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> Message-ID: Google say's it's here... http://www.vyomlinks.com/download/ffil-2-for-access-97-v2.00-8694.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, April 16, 2010 12:56 PM To: Access Developers discussion and problem solving Subject: [AccessD] Nyberg's Ffil mdb Group ...sorry I got the subject wrong the first time ...advancing age is such a bitch :( ...through my own stupidity I've managed to lose my copy of Steve Nyberg's Ffil2.mdb that was the original template for my user form search code ...and now that I find I need the original code once more, Steve Nyberg's Access page is no longer available :( ...does anyone on the list have a copy of his mdb that they'd be willing to send me? ...thanks in advance William ...Access resource sites are dropping like flies :( -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Apr 16 12:19:02 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 16 Apr 2010 12:19:02 -0500 Subject: [AccessD] Access databases - migration project In-Reply-To: References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev> <174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: The problem with the cloud is that you sometimes have blue skies ... like on a drilling rig in the middle of the Pacific. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, April 16, 2010 9:39 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access databases - migration project ...imnsho Sharepoint is a dead end tech, an interim sop by MS to keep its desktop golden goose churning out the profits ...but there are far too many advantages business wise to a full blown cloud based application structure for MS to keep its desktop/sharepoint products in the mix for very long ...the reason I'm moving from Access to VS/Net as a primary development platform ...its apparent in Office 2010 that MS recognizes the move to the cloud is inevitable but I think its too little too late ...that said, MS has a very dedicated business user community with lots of investment in its desktop structure (witness how many are still wedded to IE6) so it may yet find a way too keep them ...but with Google, Amazon, and IBM (among others) providing more and more alternatives, we'll see. William -------------------------------------------------- From: Sent: Thursday, April 15, 2010 4:52 AM To: Subject: Re: [AccessD] Access databases - migration project > Thanks Bill. They store vey little data in these databases so I'm hoping > data issues won't be too major. > > How do you see cloud computing affecting the use of Access? I haven't > heard any mutterings about it in business circles - SharePoint seems to > be the current trend. But I am quite out of touch after a year and a > half away from database work. > > Roz > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 14 April 2010 18:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access databases - migration project > > ...good to see you back :) > > ...for me its always been dirty data that drove me batty ...duplicates, > nulls, poor relational design, etc. > ...which of course depends on how well designed and coded it was to > begin with ...but it can consume a major part of any conversion project > ...and limit just how much the developer can do until the data quality > problems are resolved. > > ...the major risk I see going forward is not preparing for the move to a > 64 bit world ...and not being ready for the move to the cloud ...both of > which current versions of Access have major limitations in ...consider > the move to > 64 bit akin to that from 16 bit to 32 bit with even more problems > ...there is no backward/forward compatibility between many existing > Access 32 bit controls and the 64 bit version of Office 2010 ...the > MSCOMCTL.ocx being a prime example ...and no sign from MS that they will > produce such ...this implies significant code changes in conversion > projects from 32 bit Office to 64 bit Office ...you can live in the 32 > bit WoW environment only so long before the need to migrate to 64 bit > will become imperative. > > William > > -------------------------------------------------- > From: > Sent: Wednesday, April 14, 2010 5:49 AM > To: > Subject: [AccessD] Access databases - migration project > >> Hi all, >> >> It's good to be back. :) >> >> I'm wondering if anyone has any general advice regarding carrying out >> current state assessments on clusters of Access databases? I can't >> talk about the purpose of the CSA (I'm under a non-disclosure >> agreement) but if you imagine all the possible reasons for doing one, >> I probably need to cover the lot. >> >> I think they are particularly interested in risks (doing nothing vs. >> doing 'something'). I have Susan and Martin's book on Access -> SQL >> Server so I can dig into the specifics there, but SQL Server is only >> one of an unknown number of options on the table. Also the databases >> are used more for extraction from other systems & subsequent analysis >> than for data storage. >> >> Any tips on what I should be looking for? Data integrity, well-formed >> data, documentation, state of the code... What else? If anyone who has > >> done large scale migrations has any stories to share I'd be all ears. >> >> TIA >> >> Roz >> >> This e-mail and any attachments are confidential and intended solely >> for the addressee and may also be privileged or exempt from disclosure > >> under applicable law. If you are not the addressee, or have received >> this e-mail in error, please notify the sender immediately, delete it >> from your system and do not copy, disclose or otherwise act upon any >> part of this e-mail or its attachments. >> >> Internet communications are not guaranteed to be secure or virus-free. >> The Barclays Group does not accept responsibility for any loss arising > >> from unauthorised access to, or interference with, any Internet >> communications by any third party, or from the transmission of any >> viruses. Replies to this e-mail may be monitored by the Barclays Group > >> for operational or business reasons. >> >> Any opinion or other information in this e-mail or its attachments >> that does not relate to the business of the Barclays Group is personal > >> to the sender and is not given or endorsed by the Barclays Group. >> >> Barclays Bank PLC.Registered in England and Wales (registered no. >> 1026167). >> Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. >> >> Barclays Bank PLC is authorised and regulated by the Financial >> Services Authority. >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 are confidential and intended solely for > the addressee and may also be privileged or exempt from disclosure under > applicable law. If you are not the addressee, or have received this e-mail > in error, please notify the sender immediately, delete it from your system > and do not copy, disclose or otherwise act upon any part of this e-mail or > its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising > from unauthorised access to, or interference with, any Internet > communications by any third party, or from the transmission of any > viruses. Replies to this e-mail may be monitored by the Barclays Group for > operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that > does not relate to the business of the Barclays Group is personal to the > sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. > 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services > Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Fri Apr 16 12:33:42 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 16 Apr 2010 23:03:42 +0530 Subject: [AccessD] changing report caption via code for display inprint que References: <00f201cadc3e$c1ce5b50$456b11f0$@net><008401cadc98$8dd64510$3701a8c0@adtpc> <008101cadd7d$d4e55410$7eaffc30$@net> Message-ID: <003101cadd8b$06fd32d0$3701a8c0@adtpc> You are most welcome John! Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Friday, April 16, 2010 21:29 Subject: Re: [AccessD] changing report caption via code for display inprint que A.D., Thank you so much! Exactly what I was looking for. Modified it to fit my situation and everything works great! John B. From BradM at blackforestltd.com Fri Apr 16 12:37:08 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 16 Apr 2010 12:37:08 -0500 Subject: [AccessD] Access 2007 Reporting Versus Crystal Reports Message-ID: Recently the topic of Crystal Reports was brought up. We are a small firm with a small IT budget. Our data lives in SQL Server, Access 2007, Excel, and in a purchased package's Pervasive Database which we can access nicely via ODBC. We currently do not have Crystal Reports, or any other report writer other than the reporting features that are integrated into Access 2007. I took a stand and said that I believe that Access 2007 will be able to handle our reporting needs. We currently have very few reports and it appears that our reporting needs are quite basic. The bulk of our data lives in SQL Server, but we do not have SQL Server Reporting Services available. Are there issues that I should be aware of when starting to use Access 2007 Reporting against SQL Server? So far, our initial experiments have worked nicely, but we have only started to scratch the surface. If we are heading down the wrong path, I would like to know sooner rather than later. Thanks in advance for your advice and insights. Brad From davidmcafee at gmail.com Fri Apr 16 12:47:02 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 16 Apr 2010 10:47:02 -0700 Subject: [AccessD] Access 2007 Reporting Versus Crystal Reports In-Reply-To: References: Message-ID: I prefer them myself over Crystal. My ADPs are where the users enter/view data, it only makes sense to have the reports there too. On Fri, Apr 16, 2010 at 10:37 AM, Brad Marks wrote: > Recently the topic of Crystal Reports was brought up. ?We are a small > firm with a small IT budget. > > Our data lives in SQL Server, Access 2007, Excel, and in a purchased > package's Pervasive Database which we can access nicely via ODBC. > > We currently do not have Crystal Reports, or any other report writer > other than the reporting features that are integrated into Access 2007. > > I took a stand and said that I believe that Access 2007 will be able to > handle our reporting needs. ?We currently have very few reports and it > appears that our reporting needs are quite basic. > > The bulk of our data lives in SQL Server, but we do not have SQL Server > Reporting Services available. ?Are there issues that I should be aware > of when starting to use Access 2007 Reporting against SQL Server? ?So > far, our initial experiments have worked nicely, but we have only > started to scratch the surface. ?If we are heading down the wrong path, > I would like to know sooner rather than later. > > Thanks in advance for your advice and insights. > > Brad > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Fri Apr 16 12:51:53 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 13:51:53 -0400 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev><174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com><6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> Message-ID: ...lol ...they're wrong ...that link (and many others) no longer goes anywhere ...which is the source of my problem ...I spent more than hour looking for an online source for it before posting here ...but thanks for trying :) ...I know others here have/had the file because I've responded to several off-line requests for it based on previous threads ...even after Nyberg took his Access links down, I sent it to some who could no longer find it ...but then I somehow deleted the original myself and my backups only go back a month :( William -------------------------------------------------- From: "Heenan, Lambert" Sent: Friday, April 16, 2010 1:09 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Nyberg's Ffil mdb > > Google say's it's here... > > http://www.vyomlinks.com/download/ffil-2-for-access-97-v2.00-8694.html > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, April 16, 2010 12:56 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Nyberg's Ffil mdb > > Group > > ...sorry I got the subject wrong the first time ...advancing age is such a > bitch :( > > ...through my own stupidity I've managed to lose my copy of Steve Nyberg's > Ffil2.mdb that was the original template for my user form search code > ...and now that I find I need the original code once more, Steve Nyberg's > Access page is no longer available :( > > ...does anyone on the list have a copy of his mdb that they'd be willing > to send me? > > ...thanks in advance > > William ...Access resource sites are dropping like flies :( > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 16 12:50:49 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 16 Apr 2010 12:50:49 -0500 Subject: [AccessD] Update Message-ID: Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust From davidmcafee at gmail.com Fri Apr 16 13:04:44 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 16 Apr 2010 11:04:44 -0700 Subject: [AccessD] Update In-Reply-To: References: Message-ID: Wow. Sucks to hear. General downsizing? What a loss for them! David On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust wrote: > Well, I just got laid off after 9 years. ?I don't know whether to be furious or grateful. ?Anyone who wants to reach me can do so at charlotte.foust at gmail.com. ?I'll have to change my advisor email address later. ?I'm expected to clean out my desk and be gone. ?They're paying me through the end of the month! > > Charlotte Foust > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Apr 16 13:09:18 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Apr 2010 11:09:18 -0700 Subject: [AccessD] This is why i love C# In-Reply-To: <4BC86CE7.8040402@colbyconsulting.com> References: <4BC86CE7.8040402@colbyconsulting.com> Message-ID: <19881377E45242C4A93C4B83945203CC@creativesystemdesigns.com> Very cool John. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, April 16, 2010 6:58 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] This is why i love C# I use virtual machines to do some processing. When not using the VMs I turn off the entire physical machine that hosts the VMs. I have code that needs to move files to / from the VMs, but I need to check that they exist before I try to do so. The .Net framework has an entire namespace for the Net and it specifically has a PING class which allows me to ping an IP to see if it responds. Voila, instant "is the machine turned on" code. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Fri Apr 16 13:14:19 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 16 Apr 2010 23:44:19 +0530 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005> <008401cadcc1$26e4d410$3701a8c0@adtpc> Message-ID: <00bd01cadd90$afd918b0$3701a8c0@adtpc> Lambert, That is a nice way to do it. I like your approach of using the function Excel_OpenWorkBookHidden() in conjunction with its helper function IsExcelRunning(). Interestingly, I have never encountered a behavior of the type reported by Rocky. Thanks to the outstanding suggestion posted by Mark (xlApp.Windows(1).Visible = True), Rocky's problem stands resolved as confirmed by him. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Heenan, Lambert To: Access Developers discussion and problem solving Cc: A.D. Tejpal Sent: Thursday, April 15, 2010 23:15 Subject: RE: [AccessD] Excel Automation Problem - spreadsheet is hidden A.J. For me that happens in a related function... 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: ReportError Err.Number, Err.Description, "Excel_OpenWorkBook", "Excel_mod", "File Name=" & Path Set Excel_OpenWorkBook = Nothing Resume Excel_OpenWorkBook_exit End Function Often I want to open an Excel file and pull some data from it and then close the file. There's no need to the user to see the file on screen, hence the function Excel_OpenWorkBookHidden. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Thursday, April 15, 2010 1:28 PM To: Access Developers discussion and problem solving Cc: A.D. Tejpal Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Rocky, It is presumed that after setting the object variable xlApp to excel application, you have the following statement: xlApp.Visible = True Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Heenan, Lambert To: Access Developers discussion and problem solving Sent: Thursday, April 15, 2010 18:43 Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I honestly don't know but it might be worth a try. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden Do you think that will make a difference in the hidden problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, April 13, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is hidden I open workbooks a quite different way. The essence of it is... Function Excel_OpenWorkBookHidden(Path As String, _ Optional UpdateLinks As Boolean = False, _ Optional Password As String = "") As Excel.Application Dim xlApp As Excel.Application If IsExcelRunning() Then Set xlApp = GetObject(, "Excel.Application") Else Do Set xlApp = CreateObject("Excel.Application") Loop Until IsExcelRunning() End If xlApp.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlApp End Function And the helper function is Function IsExcelRunning() As Boolean Dim xlApp As Excel.Application On Error Resume Next Set xlApp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlApp = Nothing Err.Clear End Function So in my client code I declare an Excel.Application object... Dim xlApp as Excel.Application Then I set it with Set xlApp = Excel_OpenWorkBookHidden(strSomePath) And I access the worksheets with Dim xlWs as Excel.Worksheet Set xlWs = xlApp.Worksheets(1) Notice that the client code does not even use a workbook object. I've not had any serious trouble with that, and no issues with hidden worksheets. Lambert From accessd at shaw.ca Fri Apr 16 13:16:37 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Apr 2010 11:16:37 -0700 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <008601cadd7e$87c198f0$9744cad0$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> <008601cadd7e$87c198f0$9744cad0$@net> Message-ID: <18A4494053C441CF836E48056B36AF66@creativesystemdesigns.com> Hi John: >From which report event is the call to the Public CurrentAcct() function made? I have reports which print directly to a printer but first have to make a few Public functions calls so the report is populated... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, April 16, 2010 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Jim, That's what I thought but unfortunately it doesn't work that way. In my original posting I included code. The CurrentAcct() function is a global function returning the account number. Only works if they report is opened for display first (as in A.D.'s code sample). John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 15, 2010 4:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Rocky: You do not have to open the Report, just put a piece of code in the OnOpen event of the report that uses a global variable to populate the header field. That variable can be easily modified, tracked and recorded via the application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Apr 16 13:23:39 2010 From: hkotsch at arcor.de (Helmut Kotsch) Date: Fri, 16 Apr 2010 20:23:39 +0200 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: Message-ID: William, sent you some files offline. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von William Hindman Gesendet: Freitag, 16. April 2010 19:52 An: Access Developers discussion and problem solving Betreff: Re: [AccessD] Nyberg's Ffil mdb ...lol ...they're wrong ...that link (and many others) no longer goes anywhere ...which is the source of my problem ...I spent more than hour looking for an online source for it before posting here ...but thanks for trying :) ...I know others here have/had the file because I've responded to several off-line requests for it based on previous threads ...even after Nyberg took his Access links down, I sent it to some who could no longer find it ...but then I somehow deleted the original myself and my backups only go back a month :( William -------------------------------------------------- From: "Heenan, Lambert" Sent: Friday, April 16, 2010 1:09 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Nyberg's Ffil mdb > > Google say's it's here... > > http://www.vyomlinks.com/download/ffil-2-for-access-97-v2.00-8694.html > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, April 16, 2010 12:56 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Nyberg's Ffil mdb > > Group > > ...sorry I got the subject wrong the first time ...advancing age is such a > bitch :( > > ...through my own stupidity I've managed to lose my copy of Steve Nyberg's > Ffil2.mdb that was the original template for my user form search code > ...and now that I find I need the original code once more, Steve Nyberg's > Access page is no longer available :( > > ...does anyone on the list have a copy of his mdb that they'd be willing > to send me? > > ...thanks in advance > > William ...Access resource sites are dropping like flies :( > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 16 13:23:50 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 16 Apr 2010 14:23:50 -0400 Subject: [AccessD] Access to Word In-Reply-To: References: Message-ID: <4BC872F6.167F.006B.0@niagaracounty.com> Well, at the risk of repeating myself...if anyone remember my attempt to do this, back in December...I have never created a form in Word and passed to it, data from an Access DB...and now I have a need to do such a thing. I "got around" this, back then, by actually creating the whole document as an Access report, as I was guided to do, by several list members here. This was fantastic advice, and it was great in that circumstance...however, it just isn't in the cards on this project. I immediately tried doing this, but the header, of all things, prevents me from going this way...the logo just looks awful, when done in Access...don't know why, it just does. I don't have the time to do anything w/this, and don't know if I could anyhow, so I'm going to go ahead and try doing this w/Word. My 1st question...is a mail merge what I am looking at doing? I'm only looking to create a single document at a time...a certificate...that I will be using a query to gather. The user will enter information on a student, and they will then print a certificate for that student. The query choose one single student, based on the record currently active in the form. I'm following instructions for a mail merge, but I get to a point where it wants my list of "recipients." I don't really have this, I simply have data, and I want to create one single document at a time, using this data. Am I barking up the wrong tree here? Should I be looking at something else, or is it indeed a mail merge, that I am trying to do? Thanks ahead of time...J Clark From jwcolby at colbyconsulting.com Fri Apr 16 13:29:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 16 Apr 2010 14:29:10 -0400 Subject: [AccessD] Update In-Reply-To: References: Message-ID: <4BC8AC76.9000404@colbyconsulting.com> >I don't know whether to be furious or grateful. Well either way, it sucks! I was laid off about 4 or 5 times in 8 years in the end of the 80s / early 90s. That is when I realized that most companies expect loyalty from their employees but feel absolutely no loyalty to their employees. It's tough. Good luck and stick around here. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! > > Charlotte Foust From mmattys at rochester.rr.com Fri Apr 16 13:14:16 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 16 Apr 2010 14:14:16 -0400 Subject: [AccessD] Nyberg's Ffil mdb References: <91810D67915C43599B12F101804617B0@Server><174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com><42DFAD8FA892471992811356A78FEFEE@jislaptopdev><174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> <6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> Message-ID: <05ADCB9F369645BF8C0C5620140DEBBF@Mattys> Attached ... - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, April 16, 2010 12:55 PM Subject: [AccessD] Nyberg's Ffil mdb > Group > > ...sorry I got the subject wrong the first time ...advancing age is such a > bitch :( > > ...through my own stupidity I've managed to lose my copy of Steve Nyberg's > Ffil2.mdb that was the original template for my user form search code > ...and > now that I find I need the original code once more, Steve Nyberg's Access > page is no longer available :( > > ...does anyone on the list have a copy of his mdb that they'd be willing > to > send me? > > ...thanks in advance > > William ...Access resource sites are dropping like flies :( > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Apr 16 13:33:37 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 16 Apr 2010 14:33:37 -0400 Subject: [AccessD] This is why i love C# In-Reply-To: <00f901cadd6f$8a051e20$0401a8c0@MSIMMSWS> References: <4BC86CE7.8040402@colbyconsulting.com> <00f901cadd6f$8a051e20$0401a8c0@MSIMMSWS> Message-ID: <4BC8AD81.50108@colbyconsulting.com> > John - IMHO it's not the language, but the framework that enables this. Of course. This is available in any .Net language because it is in the framework. I should have said "This is why I love .Net" John W. Colby www.ColbyConsulting.com Mark Simms wrote: > John - IMHO it's not the language, but the framework that enables this. > Heck, MSFT could have even put this functionality in the VBA framework if > they wanted to. > They did not which is why almost every Excel add-in on the market contains > tons of API calls. > > > > From rockysmolin at bchacc.com Fri Apr 16 13:37:59 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Apr 2010 11:37:59 -0700 Subject: [AccessD] Update In-Reply-To: References: Message-ID: Terrible. My sympathies. And two weeks severance - the blows. Company in trouble? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, April 16, 2010 10:51 AM To: AccessD (AccessD at databaseadvisors.com); (masq at helppc.biz) Subject: [AccessD] Update Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 16 13:41:46 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Apr 2010 11:41:46 -0700 Subject: [AccessD] Access 2007 Reporting Versus Crystal Reports In-Reply-To: References: Message-ID: Hi Brad: You can always use Access linking to SQL as a the report writer. We have a sample report code at DBA which might help: http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRepo rts.asp The sample only uses an MDB as it is not easy have a version of MS SQL which can just be run directly from an unzipped ZIP file. I am not sure of what level of MS SQL you are using. If it is a full blown version MS SQL, 2005 and later, you also have access to Reporting features but it is an extra module that can be downloaded and installed: http://www.microsoft.com/sqlserver/2005/en/us/reporting-services-features.as px (Note: feature not available for MS SQL express for designing but it can use reports created in full version) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, April 16, 2010 10:37 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Access 2007 Reporting Versus Crystal Reports Recently the topic of Crystal Reports was brought up. We are a small firm with a small IT budget. Our data lives in SQL Server, Access 2007, Excel, and in a purchased package's Pervasive Database which we can access nicely via ODBC. We currently do not have Crystal Reports, or any other report writer other than the reporting features that are integrated into Access 2007. I took a stand and said that I believe that Access 2007 will be able to handle our reporting needs. We currently have very few reports and it appears that our reporting needs are quite basic. The bulk of our data lives in SQL Server, but we do not have SQL Server Reporting Services available. Are there issues that I should be aware of when starting to use Access 2007 Reporting against SQL Server? So far, our initial experiments have worked nicely, but we have only started to scratch the surface. If we are heading down the wrong path, I would like to know sooner rather than later. Thanks in advance for your advice and insights. Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 16 14:01:50 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Apr 2010 12:01:50 -0700 Subject: [AccessD] Update In-Reply-To: References: Message-ID: Hi Charlotte: That is terrible. Traditionally, employers are required to pay a month for every year you worked for them. I hope it is just because they do not want to have to pay you superannuation... that would be truly disgusting. (Many years ago I sued an employer and won...) Since then I have 'laid-off' a few times each time I was happier to go and now I am very happy just being a contractor. I get paid a lot more and never have to get involved with inter-office politics. Your excellent knowledge of .Net is the hot ticket now a days so I doubt whether you will spend much time looking for contracts. OTOH, maybe you are thinking it is time to officially retire. I wish the best for you and truly know where you are coming from. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, April 16, 2010 10:51 AM To: AccessD (AccessD at databaseadvisors.com); (masq at helppc.biz) Subject: [AccessD] Update Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Apr 16 14:05:50 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 16 Apr 2010 12:05:50 -0700 Subject: [AccessD] Access to Word In-Reply-To: <4BC872F6.167F.006B.0@niagaracounty.com> References: <4BC872F6.167F.006B.0@niagaracounty.com> Message-ID: What's the reason that you have to use mail merge? I've usually been able to do anything that was required in Word/Mail merge in Access via a report. On Fri, Apr 16, 2010 at 11:23 AM, John Clark wrote: > Well, at the risk of repeating myself...if anyone remember my attempt to do this, back in December...I have never created a form in Word and passed to it, data from an Access DB...and now I have a need to do such a thing. I "got around" this, back then, by actually creating the whole document as an Access report, as I was guided to do, by several list members here. This was fantastic advice, and it was great in that circumstance...however, it just isn't in the cards on this project. > > I immediately tried doing this, but the header, of all things, prevents me from going this way...the logo just looks awful, when done in Access...don't know why, it just does. I don't have the time to do anything w/this, and don't know if I could anyhow, so I'm going to go ahead and try doing this w/Word. > > My 1st question...is a mail merge what I am looking at doing? I'm only looking to create a single document at a time...a certificate...that I will be using a query to gather. The user will enter information on a student, and they will then print a certificate for that student. The query choose one single student, based on the record currently active in the form. > > I'm following instructions for a mail merge, but I get to a point where it wants my list of "recipients." I don't really have this, I simply have data, and I want to create one single document at a time, using this data. > > Am I barking up the wrong tree here? Should I be looking at something else, or is it indeed a mail merge, that I am trying to do? > > Thanks ahead of time...J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marksimms at verizon.net Fri Apr 16 14:10:16 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 16 Apr 2010 15:10:16 -0400 Subject: [AccessD] Excel Automation Problem - spreadsheet is hidden In-Reply-To: <9B39A79DA5144934A1E9151F918F404C@HAL9005> References: <140D5D0E772E43CBBC408747F09CC0D9@HAL9005><80E090E9587243178417286EC80A393A@HAL9005><25BFB2916C1C4590B772076B18B7EC6B@HAL9005><9C78FCA11F374EBF9532D6062CF74E02@Server><346E5DAA234742CD9F81C0579316B8D5@HAL9005><5A3542AC3C0B45B1B4611EF4D02C7516@HAL9005><008401cadcc1$26e4d410$3701a8c0@adtpc> <00fa01cadd70$24dc3f50$0401a8c0@MSIMMSWS> <9B39A79DA5144934A1E9151F918F404C@HAL9005> Message-ID: <005f01cadd98$72f0c670$0401a8c0@MSIMMSWS> Dunno.... For an existing book or even a new book, the default action is to make it visible. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Friday, April 16, 2010 12:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet > is hidden > > Mark: > > Thanks so much. That worked. But why? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Friday, April 16, 2010 7:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet > is hidden > > xlApp.Windows(1).Visible = True > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Thursday, April 15, 2010 7:39 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > > hidden > > > > A.D.: > > > > I didn't, but I put it there: > > > > Set xlBook = GetObject(Me.txtSpreadsheet) > > Set xlApp = xlBook.Parent > > xlApp.Visible = True > > > > And Excel is now visible during the export but the > worksheets are not > > - and the workbook is hidden when I open it in Excel. > > Any other suggestions? > > > > TIA > > > > 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 > A.D. Tejpal > > Sent: Thursday, April 15, 2010 10:28 AM > > To: Access Developers discussion and problem solving > > Cc: A.D. Tejpal > > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > > hidden > > > > Rocky, > > > > It is presumed that after setting the object variable xlApp to > > excel application, you have the following statement: > > > > xlApp.Visible = True > > > > Best wishes, > > A.D. Tejpal > > ------------ > > > > ----- Original Message ----- > > From: Heenan, Lambert > > To: Access Developers discussion and problem solving > > Sent: Thursday, April 15, 2010 18:43 > > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > > hidden > > > > > > I honestly don't know but it might be worth a try. > > > > Lambert > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Wednesday, April 14, 2010 1:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > > hidden > > > > Do you think that will make a difference in the hidden problem? > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Heenan, > > Lambert > > Sent: Tuesday, April 13, 2010 5:14 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Excel Automation Problem - spreadsheet is > > hidden > > > > I open workbooks a quite different way. The essence of it is... > > > > Function Excel_OpenWorkBookHidden(Path As String, _ > > Optional UpdateLinks As Boolean = False, _ > > Optional Password As String = "") As Excel.Application > > > > Dim xlApp As Excel.Application > > > > If IsExcelRunning() Then > > Set xlApp = GetObject(, "Excel.Application") > > Else > > Do > > Set xlApp = CreateObject("Excel.Application") > > Loop Until IsExcelRunning() > > End If > > > > xlApp.Workbooks.Open Path, UpdateLinks, , , Password > > Set Excel_OpenWorkBookHidden = xlApp > > End Function > > > > > > And the helper function is > > > > Function IsExcelRunning() As Boolean > > Dim xlApp As Excel.Application > > On Error Resume Next > > Set xlApp = GetObject(, "Excel.Application") > > IsExcelRunning = (Err.Number = 0) > > Set xlApp = Nothing > > Err.Clear > > End Function > > > > So in my client code I declare an Excel.Application object... > > > > Dim xlApp as Excel.Application > > > > Then I set it with > > > > Set xlApp = Excel_OpenWorkBookHidden(strSomePath) > > > > And I access the worksheets with > > > > Dim xlWs as Excel.Worksheet > > > > Set xlWs = xlApp.Worksheets(1) > > > > Notice that the client code does not even use a workbook object. > > I've not had any serious trouble with that, and no issues > with hidden > > worksheets. > > > > Lambert > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 16 14:15:32 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 15:15:32 -0400 Subject: [AccessD] Update In-Reply-To: References: Message-ID: <9DC81D87C5E942879052ED8346240AC6@jislaptopdev> ...that sucks ...but then a whole new world could be opening up for you ...I've not done the corporate dance in 15+ years now and don't miss it a bit ...take some time to think things through, get a tan, whatever recharges you ...then take a look outside the box. William -------------------------------------------------- From: "Charlotte Foust" Sent: Friday, April 16, 2010 1:50 PM To: ; Subject: [AccessD] Update > Well, I just got laid off after 9 years. I don't know whether to be > furious or grateful. Anyone who wants to reach me can do so at > charlotte.foust at gmail.com. I'll have to > change my advisor email address later. I'm expected to clean out my desk > and be gone. They're paying me through the end of the month! > > Charlotte Foust > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Fri Apr 16 14:17:12 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 15:17:12 -0400 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: References: Message-ID: THANK YOU. William -------------------------------------------------- From: "Helmut Kotsch" Sent: Friday, April 16, 2010 2:23 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Nyberg's Ffil mdb > William, > > sent you some files offline. > > Helmut > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von William > Hindman > Gesendet: Freitag, 16. April 2010 19:52 > An: Access Developers discussion and problem solving > Betreff: Re: [AccessD] Nyberg's Ffil mdb > > > ...lol ...they're wrong ...that link (and many others) no longer goes > anywhere ...which is the source of my problem ...I spent more than hour > looking for an online source for it before posting here ...but thanks for > trying :) > > ...I know others here have/had the file because I've responded to several > off-line requests for it based on previous threads ...even after Nyberg > took > his Access links down, I sent it to some who could no longer find it > ...but > then I somehow deleted the original myself and my backups only go back a > month :( > > William > > -------------------------------------------------- > From: "Heenan, Lambert" > Sent: Friday, April 16, 2010 1:09 PM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Nyberg's Ffil mdb > >> >> Google say's it's here... >> >> http://www.vyomlinks.com/download/ffil-2-for-access-97-v2.00-8694.html >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Friday, April 16, 2010 12:56 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Nyberg's Ffil mdb >> >> Group >> >> ...sorry I got the subject wrong the first time ...advancing age is such >> a >> bitch :( >> >> ...through my own stupidity I've managed to lose my copy of Steve >> Nyberg's >> Ffil2.mdb that was the original template for my user form search code >> ...and now that I find I need the original code once more, Steve Nyberg's >> Access page is no longer available :( >> >> ...does anyone on the list have a copy of his mdb that they'd be willing >> to send me? >> >> ...thanks in advance >> >> William ...Access resource sites are dropping like flies :( >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 16 14:28:10 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 16 Apr 2010 15:28:10 -0400 Subject: [AccessD] Update References: <9DC81D87C5E942879052ED8346240AC6@jislaptopdev> Message-ID: <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne> WE'RE IN A BOX???????????? Susan H. whatever recharges > you ...then take a look outside the box. From wdhindman at dejpolsystems.com Fri Apr 16 14:26:57 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Apr 2010 15:26:57 -0400 Subject: [AccessD] Access to Word In-Reply-To: <4BC872F6.167F.006B.0@niagaracounty.com> References: <4BC872F6.167F.006B.0@niagaracounty.com> Message-ID: ...first things first ...there is no reason an image that looks fine in Word shouldn't look just as well in Access ...its probably missing a graphics filter which can usually be fixed just by setting a reference ...but if not, Lebans has some great graphics plug-in code that will do the job. ...the mail merge is as simple as pie ...but don't go there just yet. William -------------------------------------------------- From: "John Clark" Sent: Friday, April 16, 2010 2:23 PM To: "Access Developers discussion and problem solving" Subject: [AccessD] Access to Word > Well, at the risk of repeating myself...if anyone remember my attempt to > do this, back in December...I have never created a form in Word and passed > to it, data from an Access DB...and now I have a need to do such a thing. > I "got around" this, back then, by actually creating the whole document as > an Access report, as I was guided to do, by several list members here. > This was fantastic advice, and it was great in that > circumstance...however, it just isn't in the cards on this project. > > I immediately tried doing this, but the header, of all things, prevents me > from going this way...the logo just looks awful, when done in > Access...don't know why, it just does. I don't have the time to do > anything w/this, and don't know if I could anyhow, so I'm going to go > ahead and try doing this w/Word. > > My 1st question...is a mail merge what I am looking at doing? I'm only > looking to create a single document at a time...a certificate...that I > will be using a query to gather. The user will enter information on a > student, and they will then print a certificate for that student. The > query choose one single student, based on the record currently active in > the form. > > I'm following instructions for a mail merge, but I get to a point where it > wants my list of "recipients." I don't really have this, I simply have > data, and I want to create one single document at a time, using this data. > > Am I barking up the wrong tree here? Should I be looking at something > else, or is it indeed a mail merge, that I am trying to do? > > Thanks ahead of time...J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Apr 16 15:02:47 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 16 Apr 2010 15:02:47 -0500 Subject: [AccessD] Access to Word References: <4BC872F6.167F.006B.0@niagaracounty.com> Message-ID: I agree with William. We faced the same challenge about a year ago. It took a bit of time to get the Access Report to look just right, but once it was set up, the process was much simpler by using just Access instead of bringing Word into the mix. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, April 16, 2010 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to Word ...first things first ...there is no reason an image that looks fine in Word shouldn't look just as well in Access ...its probably missing a graphics filter which can usually be fixed just by setting a reference ...but if not, Lebans has some great graphics plug-in code that will do the job. ...the mail merge is as simple as pie ...but don't go there just yet. William -------------------------------------------------- From: "John Clark" Sent: Friday, April 16, 2010 2:23 PM To: "Access Developers discussion and problem solving" Subject: [AccessD] Access to Word > Well, at the risk of repeating myself...if anyone remember my attempt to > do this, back in December...I have never created a form in Word and passed > to it, data from an Access DB...and now I have a need to do such a thing. > I "got around" this, back then, by actually creating the whole document as > an Access report, as I was guided to do, by several list members here. > This was fantastic advice, and it was great in that > circumstance...however, it just isn't in the cards on this project. > > I immediately tried doing this, but the header, of all things, prevents me > from going this way...the logo just looks awful, when done in > Access...don't know why, it just does. I don't have the time to do > anything w/this, and don't know if I could anyhow, so I'm going to go > ahead and try doing this w/Word. > > My 1st question...is a mail merge what I am looking at doing? I'm only > looking to create a single document at a time...a certificate...that I > will be using a query to gather. The user will enter information on a > student, and they will then print a certificate for that student. The > query choose one single student, based on the record currently active in > the form. > > I'm following instructions for a mail merge, but I get to a point where it > wants my list of "recipients." I don't really have this, I simply have > data, and I want to create one single document at a time, using this data. > > Am I barking up the wrong tree here? Should I be looking at something > else, or is it indeed a mail merge, that I am trying to do? > > Thanks ahead of time...J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jimdettman at verizon.net Fri Apr 16 15:03:06 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Apr 2010 16:03:06 -0400 Subject: [AccessD] Update In-Reply-To: References: Message-ID: <361D2D04C72640109FD74DDD475E261A@XPS> Ouch...sorry to hear that. <> Sometimes it's a blessing in disguise! You might not think so right off, but I know many that end up happier after having a change in venue forced upon them. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, April 16, 2010 1:51 PM To: AccessD (AccessD at databaseadvisors.com); (masq at helppc.biz) Subject: [AccessD] Update Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Apr 16 15:48:03 2010 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2010 15:48:03 -0500 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <18A4494053C441CF836E48056B36AF66@creativesystemdesigns.com> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> <008601cadd7e$87c198f0$9744cad0$@net> <18A4494053C441CF836E48056B36AF66@creativesystemdesigns.com> Message-ID: <011d01cadda6$1c41e2b0$54c5a810$@net> Yes, that works. But what doesn't work is changing the report's caption and having it show in the printer's que unless the report is actually previewed first. The printer's que will show the original caption property's stored value. It's a bit odd having the reports constantly popping up on the screen and then closing but in a way it kind of works like a progress bar - replacing that bit of code :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 16, 2010 1:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi John: >From which report event is the call to the Public CurrentAcct() function made? I have reports which print directly to a printer but first have to make a few Public functions calls so the report is populated... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, April 16, 2010 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Jim, That's what I thought but unfortunately it doesn't work that way. In my original posting I included code. The CurrentAcct() function is a global function returning the account number. Only works if they report is opened for display first (as in A.D.'s code sample). John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 15, 2010 4:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Rocky: You do not have to open the Report, just put a piece of code in the OnOpen event of the report that uses a global variable to populate the header field. That variable can be easily modified, tracked and recorded via the application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 16 18:30:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 17 Apr 2010 09:30:01 +1000 Subject: [AccessD] Access to Word In-Reply-To: <4BC872F6.167F.006B.0@niagaracounty.com> References: , , <4BC872F6.167F.006B.0@niagaracounty.com> Message-ID: <4BC8F2F9.6299.5AFFA91@stuart.lexacorp.com.pg> I wouldn't use Mail Merge in this situation, I'd use the Word Object Model and a template document with bookmarks. It's what is used to create all of the job descriptions and application forms at http://www.vanguardpng.com/current_vacancies.html The core code is: Set rs = CurrentDb.OpenRecordset("select * from qryApplication where PositionNUmber = " & Position) 'Create doc with appropriate name from template with hidden bookmarks strTemplate = "VI-FORM1.DOC" strDir = BEDir() & "\JobApplns\" strDoc = "VI-Appln-" & rs!Positioncode & ".doc" FileCopy strDir & strTemplate, strDir & strDoc 'Open the Document Set objDoc = objWord.Documents.Open(strDir & strDoc) ' Insert relevant text at bookmarks objWord.Selection.GoTo What:=wdGoToBookmark, Name:="PositionNo" objWord.Selection.TypeText Text:=rs!Positioncode objWord.Selection.GoTo What:=wdGoToBookmark, Name:="Position" objWord.Selection.TypeText Text:=rs!PositionTitle objWord.Selection.GoTo What:=wdGoToBookmark, Name:="Client" ... -- Stuart On 16 Apr 2010 at 14:23, John Clark wrote: > Well, at the risk of repeating myself...if anyone remember my attempt > to do this, back in December...I have never created a form in Word and > passed to it, data from an Access DB...and now I have a need to do > such a thing. I "got around" this, back then, by actually creating the > whole document as an Access report, as I was guided to do, by several > list members here. This was fantastic advice, and it was great in that > circumstance...however, it just isn't in the cards on this project. I > immediately tried doing this, but the header, of all things, prevents > me from going this way...the logo just looks awful, when done in > Access...don't know why, it just does. I don't have the time to do > anything w/this, and don't know if I could anyhow, so I'm going to go > ahead and try doing this w/Word. > My 1st question...is a mail merge what I am looking at doing? I'm only > looking to create a single document at a time...a certificate...that I > will be using a query to gather. The user will enter information on a > student, and they will then print a certificate for that student. The > query choose one single student, based on the record currently active > in the form. > I'm following instructions for a mail merge, but I get to a point > where it wants my list of "recipients." I don't really have this, I > simply have data, and I want to create one single document at a time, > using this data. > Am I barking up the wrong tree here? Should I be looking at something > else, or is it indeed a mail merge, that I am trying to do? > Thanks ahead of time...J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 16 18:54:12 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Apr 2010 16:54:12 -0700 Subject: [AccessD] changing report caption via code for displayin printque In-Reply-To: <011d01cadda6$1c41e2b0$54c5a810$@net> References: <00f201cadc3e$c1ce5b50$456b11f0$@net> <00f301cadc46$6bbadbf0$433093d0$@net> <86D5CEEC8E38487A9F39DC9FAF6B6F49@HAL9005> <00fd01cadc54$01e021f0$05a065d0$@net> <37C70D6463BE4C29920F9EF11381CFD2@HAL9005> <008601cadd7e$87c198f0$9744cad0$@net> <18A4494053C441CF836E48056B36AF66@creativesystemdesigns.com> <011d01cadda6$1c41e2b0$54c5a810$@net> Message-ID: <75CD2BBEF85F4FA6966298A883EDC47E@creativesystemdesigns.com> Hi John: Hmmm... I have never changed the caption in real time but would assume that something =CaptionName() in the Caption property field, within the propreties list would call a similarly named public function without a problem. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, April 16, 2010 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Yes, that works. But what doesn't work is changing the report's caption and having it show in the printer's que unless the report is actually previewed first. The printer's que will show the original caption property's stored value. It's a bit odd having the reports constantly popping up on the screen and then closing but in a way it kind of works like a progress bar - replacing that bit of code :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 16, 2010 1:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi John: >From which report event is the call to the Public CurrentAcct() function made? I have reports which print directly to a printer but first have to make a few Public functions calls so the report is populated... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, April 16, 2010 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Jim, That's what I thought but unfortunately it doesn't work that way. In my original posting I included code. The CurrentAcct() function is a global function returning the account number. Only works if they report is opened for display first (as in A.D.'s code sample). John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 15, 2010 4:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Rocky: You do not have to open the Report, just put a piece of code in the OnOpen event of the report that uses a global variable to populate the header field. That variable can be easily modified, tracked and recorded via the application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque If you don't use a caption, I think the name of the report in the queue will be the report's name, yes? So could you rename the report before each run? Off the wall - output to a pdf with the file name you want, then print the pdf from inside the access program. Brute force - open the report in design view, change the caption, run, open in design view for the next account number, change the caption(...should take about two weeks to run 30,000 reports that way, but you'd get there.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 9:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for displayin printque Hi Rocky, I have a bound field on the report for the account number which comes from a query. What I want to do is change the Report's caption to include the current account number in the caption. If you preview a report and then print it (pause your printer so you can look at its que) you will see that the document name listed in the que is the report's caption. When there are 9000 documents with that particular name it becomes meaningless. So what I would like to do is change the report's caption so that the document name in the print que becomes useful. I just can't seem to figure out how to do this without previewing every report, which, would be an absurd thing to do. I recall seeing something about this in the past but I can't find the thread now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 14, 2010 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque Could you put the account numbers in a table or write a query to get all the account numbers? Then make that table or query the record source for the report with the account number as a bound field on the report? Print the report once - it will print x number of pages depending on how many account numbers are in the record source. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] changing report caption via code for display in printque BTW this is an actual ACCESS post! ;o) Access 2003 to be exact. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, April 14, 2010 8:56 PM To: _DBA-Access Subject: [AccessD] changing report caption via code for display in print que I'm working on making niceties for an application which generates about 30,000 sheets to be printed by a Imagerunner 110 device. This device uses a Linux controller box to que/hold/start the jobs. Since there are so many jobs it would be nice to be able to distinguish them while in the que. So I'm attempting to have the account number of each client show up in the caption of the report when printed in order to have the account number show in the print que of the printer. Depending on the report it should appear something like: Order Form - 029384 In my procedural code I use this type of command to print various reports: DoCmd.OpenReport "rptOrderForm", acViewNormal I placed this in the report's module expecting it to accomplish this task: Private Sub Report_Open(Cancel As Integer) Me.Caption = Me.Caption & " - " & CurrentAcct() End Sub The report will display the caption as I intended if opened in a preview window and then it will display it in the print que once printed but it will not display it if opened with acViewNormal which sends it directly to the printer. Anyone have an idea of how I can achieve the intended results? Tia, John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 16 22:05:27 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 16 Apr 2010 20:05:27 -0700 Subject: [AccessD] Update In-Reply-To: References: Message-ID: Good luck, and I suspect you're going to have to deal with making more money now than you ever have :) Doug Steele On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < cfoust at infostatsystems.com> wrote: > Well, I just got laid off after 9 years. I don't know whether to be > furious or grateful. Anyone who wants to reach me can do so at > charlotte.foust at gmail.com. I'll have to > change my advisor email address later. I'm expected to clean out my desk > and be gone. They're paying me through the end of the month! > > Charlotte Foust > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Fri Apr 16 23:43:57 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Sat, 17 Apr 2010 10:13:57 +0530 Subject: [AccessD] Update References: Message-ID: <006301cadde8$c88ceaf0$3701a8c0@adtpc> My thoughts are with you Charlotte! May things turn out for the better - very soon. You have the whole hearted support from all of us in this group. Wishing you the very best, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Saturday, April 17, 2010 00:07 Subject: Re: [AccessD] Update Terrible. My sympathies. And two weeks severance - the blows. Company in trouble? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, April 16, 2010 10:51 AM To: AccessD (AccessD at databaseadvisors.com); (masq at helppc.biz) Subject: [AccessD] Update Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust From Gustav at cactus.dk Sat Apr 17 03:16:19 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 17 Apr 2010 10:16:19 +0200 Subject: [AccessD] Update Message-ID: Hi Charlotte That sounds like an - eh - unfriendly action. And with two weeks' warning only? It wouldn't be possible in Europe. But - in contrary to many of us - you know how to work in a team, so couldn't you team up with some youngsters in your area? Many of these love to have an old wise lady around (I can say that as you don't mention retirement as an option). Also, many clients prefer to meet a truly experienced representative not looking like a skateboarder. /gustav >>> cfoust at infostatsystems.com 16-04-2010 19:50 >>> Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust From fuller.artful at gmail.com Sat Apr 17 08:25:19 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 17 Apr 2010 09:25:19 -0400 Subject: [AccessD] Nyberg's Ffil mdb In-Reply-To: <05ADCB9F369645BF8C0C5620140DEBBF@Mattys> References: <91810D67915C43599B12F101804617B0@Server> <174A69C31E290B47A4898DFFDB5BFCD901772FB6@MUKPBCC1XMB0403.collab.barclayscorp.com> <42DFAD8FA892471992811356A78FEFEE@jislaptopdev> <174A69C31E290B47A4898DFFDB5BFCD90181C22F@MUKPBCC1XMB0403.collab.barclayscorp.com> <6CF72A52E8894C2BAC137F9A320D23CD@jislaptopdev> <05ADCB9F369645BF8C0C5620140DEBBF@Mattys> Message-ID: Mike, Would you mind sending me a copy off-list too? Thanks, Arthur On Fri, Apr 16, 2010 at 2:14 PM, Mike Mattys wrote: > Attached ... > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > From wdhindman at dejpolsystems.com Sat Apr 17 14:28:15 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 17 Apr 2010 15:28:15 -0400 Subject: [AccessD] Update In-Reply-To: <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne> References: <9DC81D87C5E942879052ED8346240AC6@jislaptopdev> <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne> Message-ID: <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> ...not you by any means ...but Charlotte "was" :) William -------------------------------------------------- From: "Susan Harkins" Sent: Friday, April 16, 2010 3:28 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Update > WE'RE IN A BOX???????????? > > Susan H. > > whatever recharges >> you ...then take a look outside the box. > > -- > 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 Apr 17 18:33:40 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 18 Apr 2010 09:33:40 +1000 Subject: [AccessD] 32 bit or 64 bit Access2010 In-Reply-To: <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> References: , <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne>, <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> Message-ID: <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> It's just going to get more and more complicated to support users with different versions :-( http://www.opengatesw.net/ms-access-tutorials/Access-2010/Microsoft-Access-2010-64-Bit.htm -- Stuart From rockysmolin at bchacc.com Sat Apr 17 18:40:03 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 17 Apr 2010 16:40:03 -0700 Subject: [AccessD] 32 bit or 64 bit Access2010 In-Reply-To: <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> References: , <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne>, <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> Message-ID: <43EA7ED55BB542F7B15E38006552EAE1@HAL9005> That's a cheery note! R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, April 17, 2010 4:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] 32 bit or 64 bit Access2010 It's just going to get more and more complicated to support users with different versions :-( http://www.opengatesw.net/ms-access-tutorials/Access-2010/Microsoft-Access-2 010-64-Bit.htm -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Sat Apr 17 19:02:26 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sun, 18 Apr 2010 12:02:26 +1200 Subject: [AccessD] 32 bit or 64 bit Access2010 In-Reply-To: <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> References: <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne> <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> Message-ID: <53E0589CE8CF4E468634DBDD1669DBA2@stevePC> Stuart, Some further details available at http://msdn.microsoft.com/en-us/library/ee691831(office.14).aspx Regards Steve -------------------------------------------------- From: "Stuart McLachlan" Sent: Sunday, April 18, 2010 11:33 AM To: "Access Developers discussion and problem solving" Subject: [AccessD] 32 bit or 64 bit Access2010 > It's just going to get more and more complicated to support users with > different versions :-( > > http://www.opengatesw.net/ms-access-tutorials/Access-2010/Microsoft-Access-2010-64-Bit.htm > From stuart at lexacorp.com.pg Sat Apr 17 19:36:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 18 Apr 2010 10:36:33 +1000 Subject: [AccessD] 32 bit or 64 bit Access2010 In-Reply-To: <53E0589CE8CF4E468634DBDD1669DBA2@stevePC> References: , <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg>, <53E0589CE8CF4E468634DBDD1669DBA2@stevePC> Message-ID: <4BCA5411.18771.B134360@stuart.lexacorp.com.pg> I use API calls heavily in the majority of my Access applications. Fortunately I I have stayed clear of ActiveX and COM objects. Looks like I'm in for a major refactoring effort in my code library :-( -- Stuart On 18 Apr 2010 at 12:02, Steve Schapel wrote: > Stuart, > > Some further details available at > http://msdn.microsoft.com/en-us/library/ee691831(office.14).aspx > > Regards > Steve > > > -------------------------------------------------- > From: "Stuart McLachlan" > Sent: Sunday, April 18, 2010 11:33 AM > To: "Access Developers discussion and problem solving" > > Subject: [AccessD] 32 bit or 64 bit Access2010 > > > It's just going to get more and more complicated to support users with > > different versions :-( > > > > http://www.opengatesw.net/ms-access-tutorials/Access-2010/Microsoft-Access-2010-64-Bit.htm > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From miscellany at mvps.org Sat Apr 17 21:06:52 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sun, 18 Apr 2010 14:06:52 +1200 Subject: [AccessD] 32 bit or 64 bit Access2010 In-Reply-To: <4BCA5411.18771.B134360@stuart.lexacorp.com.pg> References: <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> <53E0589CE8CF4E468634DBDD1669DBA2@stevePC> <4BCA5411.18771.B134360@stuart.lexacorp.com.pg> Message-ID: I often use ActiveX controls. But those I rely on most heavily are now available in 64 bit versions, so that's a relief. Anecdotal evidence here, but last week a customer installed one of my Access 2003 applications on a computer which has 64 bit Access 2010 RC installed. My app uses API calls, and also several 32 bit ActiveX DLLs. It is installed with an Access 2003 Runtime using Sagekey script and Sagekey Security. The app is working fine... so far. Regards Steve -------------------------------------------------- From: "Stuart McLachlan" Sent: Sunday, April 18, 2010 12:36 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] 32 bit or 64 bit Access2010 > I use API calls heavily in the majority of my Access applications. > Fortunately I I have stayed clear of ActiveX and COM objects. > > Looks like I'm in for a major refactoring effort in my code library :-( > > -- > Stuart > > > On 18 Apr 2010 at 12:02, Steve Schapel wrote: > >> Stuart, >> >> Some further details available at >> http://msdn.microsoft.com/en-us/library/ee691831(office.14).aspx >> >> Regards >> Steve From paulrster at gmail.com Sun Apr 18 04:27:45 2010 From: paulrster at gmail.com (paul) Date: Sun, 18 Apr 2010 10:27:45 +0100 Subject: [AccessD] Update In-Reply-To: References: Message-ID: Best of luck, Charlotte. These things can be a real blow at the time, but so often they open the door to something so much better and more interesting. Henri Strzelecki, founder of Henri-Lloyd, sent me this advice when things looked their blackest once. Niema zlego ktore by na debre nie wiszto (There isn?t a bad thing that will not turn into good.) I think it might well be right. Fingers crossed for you. paul On 17 April 2010 04:05, Doug Steele wrote: > Good luck, and I suspect you're going to have to deal with making more > money > now than you ever have :) > > Doug Steele > > On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < > cfoust at infostatsystems.com> wrote: > > > Well, I just got laid off after 9 years. I don't know whether to be > > furious or grateful. Anyone who wants to reach me can do so at > > charlotte.foust at gmail.com. I'll have > to > > change my advisor email address later. I'm expected to clean out my desk > > and be gone. They're paying me through the end of the month! > > > > Charlotte Foust > > -- > From Johncliviger at aol.com Sun Apr 18 07:48:47 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sun, 18 Apr 2010 08:48:47 EDT Subject: [AccessD] Update Message-ID: <1fed4.5c2b0c05.38fc59af@aol.com> In a message dated 16/04/2010 18:57:00 GMT Daylight Time, cfoust at infostatsystems.com writes: Charlotte Hi Charlotte, So sorry to hear of your unplanned departure from paid work. However there's not such thing as bad experience its just some are more pleasant than others. BE positive! You have a wealth of saleable expertise that can be marketed within easy travelling distance form your new office (ie home). There are many small to medium organisations that need your expertise and prefer to talk to someone face-to-face. Someone they feel comfortable with and don't have to go thru a multitude of switchboards to get to. Its call personal service and there is a demand for it!!. I had your experience 12 years ago. And looking back it was a good thing although I did not think so at the time. Be positive. Take a deep breath and welcome the world of self employed Database Developers. And be sure that the buggers pay you! john cliviger From roz.clarke at barclays.com Mon Apr 19 03:21:16 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Mon, 19 Apr 2010 09:21:16 +0100 Subject: [AccessD] Update In-Reply-To: References: Message-ID: <174A69C31E290B47A4898DFFDB5BFCD90181CB5A@MUKPBCC1XMB0403.collab.barclayscorp.com> Two weeks severance is pretty shocking, even in these hard-pressed times. It must feel as though you're being pushed off a precipice. But these guys are right; you'll find something and it could well be better than what you had. I took the route in-between full time work and self-employed development, i.e. contracting, and it has been a bit scary but also immensely freeing. Consider all your options and make the most of the opportunity to rebalance your life! Good luck! Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul Sent: 18 April 2010 10:28 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Update Best of luck, Charlotte. These things can be a real blow at the time, but so often they open the door to something so much better and more interesting. Henri Strzelecki, founder of Henri-Lloyd, sent me this advice when things looked their blackest once. Niema zlego ktore by na debre nie wiszto (There isn't a bad thing that will not turn into good.) I think it might well be right. Fingers crossed for you. paul On 17 April 2010 04:05, Doug Steele wrote: > Good luck, and I suspect you're going to have to deal with making more > money now than you ever have :) > > Doug Steele > > On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < > cfoust at infostatsystems.com> wrote: > > > Well, I just got laid off after 9 years. I don't know whether to be > > furious or grateful. Anyone who wants to reach me can do so at > > charlotte.foust at gmail.com. I'll > > have > to > > change my advisor email address later. I'm expected to clean out my > > desk and be gone. They're paying me through the end of the month! > > > > Charlotte Foust > > -- > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From accessd at shaw.ca Mon Apr 19 06:01:19 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 19 Apr 2010 04:01:19 -0700 Subject: [AccessD] Update In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD90181CB5A@MUKPBCC1XMB0403.collab.barclayscorp.com> References: <174A69C31E290B47A4898DFFDB5BFCD90181CB5A@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: Roz: To be perfectly frank, in either Britian or Canada, that small of severence package, after that many years of service, especially given the employees age, unless there is extenuating circumstances like criminal behaviour, is totally illegal. The governments also takes a very dim view of off-loading costs to the taxpayers which they see as similar to tax fraud. I do not know what laws the US has on this but I would assume they a similar to rest of the free world. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of roz.clarke at barclays.com Sent: Monday, April 19, 2010 1:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update Two weeks severance is pretty shocking, even in these hard-pressed times. It must feel as though you're being pushed off a precipice. But these guys are right; you'll find something and it could well be better than what you had. I took the route in-between full time work and self-employed development, i.e. contracting, and it has been a bit scary but also immensely freeing. Consider all your options and make the most of the opportunity to rebalance your life! Good luck! Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul Sent: 18 April 2010 10:28 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Update Best of luck, Charlotte. These things can be a real blow at the time, but so often they open the door to something so much better and more interesting. Henri Strzelecki, founder of Henri-Lloyd, sent me this advice when things looked their blackest once. Niema zlego ktore by na debre nie wiszto (There isn't a bad thing that will not turn into good.) I think it might well be right. Fingers crossed for you. paul On 17 April 2010 04:05, Doug Steele wrote: > Good luck, and I suspect you're going to have to deal with making more > money now than you ever have :) > > Doug Steele > > On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < > cfoust at infostatsystems.com> wrote: > > > Well, I just got laid off after 9 years. I don't know whether to be > > furious or grateful. Anyone who wants to reach me can do so at > > charlotte.foust at gmail.com. I'll > > have > to > > change my advisor email address later. I'm expected to clean out my > > desk and be gone. They're paying me through the end of the month! > > > > Charlotte Foust > > -- > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hkotsch at arcor.de Mon Apr 19 06:14:49 2010 From: hkotsch at arcor.de (Helmut Kotsch) Date: Mon, 19 Apr 2010 13:14:49 +0200 Subject: [AccessD] Update In-Reply-To: Message-ID: Same laws in Germany. I think that at least 1 month pay for every year of service is the rule. It is very hard to get rid of somebody over 55 unless he did some unlawful thing. Needless to say that the industry doesn't like these laws and are fighting them where they can. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Jim Lawrence Gesendet: Montag, 19. April 2010 13:01 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] Update Roz: To be perfectly frank, in either Britian or Canada, that small of severence package, after that many years of service, especially given the employees age, unless there is extenuating circumstances like criminal behaviour, is totally illegal. The governments also takes a very dim view of off-loading costs to the taxpayers which they see as similar to tax fraud. I do not know what laws the US has on this but I would assume they a similar to rest of the free world. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of roz.clarke at barclays.com Sent: Monday, April 19, 2010 1:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update Two weeks severance is pretty shocking, even in these hard-pressed times. It must feel as though you're being pushed off a precipice. But these guys are right; you'll find something and it could well be better than what you had. I took the route in-between full time work and self-employed development, i.e. contracting, and it has been a bit scary but also immensely freeing. Consider all your options and make the most of the opportunity to rebalance your life! Good luck! Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul Sent: 18 April 2010 10:28 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Update Best of luck, Charlotte. These things can be a real blow at the time, but so often they open the door to something so much better and more interesting. Henri Strzelecki, founder of Henri-Lloyd, sent me this advice when things looked their blackest once. Niema zlego ktore by na debre nie wiszto (There isn't a bad thing that will not turn into good.) I think it might well be right. Fingers crossed for you. paul On 17 April 2010 04:05, Doug Steele wrote: > Good luck, and I suspect you're going to have to deal with making more > money now than you ever have :) > > Doug Steele > > On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < > cfoust at infostatsystems.com> wrote: > > > Well, I just got laid off after 9 years. I don't know whether to be > > furious or grateful. Anyone who wants to reach me can do so at > > charlotte.foust at gmail.com. I'll > > have > to > > change my advisor email address later. I'm expected to clean out my > > desk and be gone. They're paying me through the end of the month! > > > > Charlotte Foust > > -- > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 19 06:18:01 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 19 Apr 2010 07:18:01 EDT Subject: [AccessD] Update Message-ID: <12b9f.1271d23a.38fd95e9@aol.com> Jim Please remember that in the UK there are redundancy payments, which someone over 50 is 2 weeks pay for every years service. regards johnc From accessd at shaw.ca Mon Apr 19 06:42:41 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 19 Apr 2010 04:42:41 -0700 Subject: [AccessD] Update In-Reply-To: <12b9f.1271d23a.38fd95e9@aol.com> References: <12b9f.1271d23a.38fd95e9@aol.com> Message-ID: <310FA77178E9468381D9233E046BA219@creativesystemdesigns.com> Johnc: Thanks for the heads up, my comments were reiteration of understandings made by some locals here (I am in Britain right now and will likely be for a bit... It sure is quiet here now)... in which they still state one month per year, depending on age and years of service. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: Monday, April 19, 2010 4:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update Jim Please remember that in the UK there are redundancy payments, which someone over 50 is 2 weeks pay for every years service. regards johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Apr 19 07:24:09 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Apr 2010 08:24:09 -0400 Subject: [AccessD] Update In-Reply-To: <12b9f.1271d23a.38fd95e9@aol.com> References: <12b9f.1271d23a.38fd95e9@aol.com> Message-ID: <45097743B33742F28C1C7D8AE383BA40@jislaptopdev> ...in the US, every employer is required to contribute a % of payroll to the state/federal unemployment insurance fund, the rate varies depending upon the employer's employment record, those with zero to little turnover getting the lowest rate ...each terminated employee is eligible for unemployment insurance payments based upon a % their income up to certain levels (unless terminated for cause) ...that program is, I believe, currently providing benefits for upwards of 90 weeks. ...unless an employee is hired under a contract specifying termination payments as a part of their contract, the employer is not otherwise legally required to provide any severance under federal law (some state laws differ) on the grounds that they are required to contribute to the unemployment insurance fund as noted above ...most large employers, and union contracts, do provide severance but the amounts vary widely ...a week for every year once vested, is typical. ...note that an employee is eligible for the unemployment insurance payments effective immediately on date of termination even if the employer is continuing to pay severance during the same period ...and if their income is below certain levels, additional assistance is available at both the state and federal levels. ...its of course different here than in EU or Can, we are not a welfare state ...but we're not the social pariah nation some of these posts would seem to be assuming us to be. ...not looking for a political discourse, just wanting to clear the air a bit. William -------------------------------------------------- From: Sent: Monday, April 19, 2010 7:18 AM To: Subject: Re: [AccessD] Update > Jim > > Please remember that in the UK there are redundancy payments, which > someone > over 50 is 2 weeks pay for every years service. > > > regards > johnc > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From edzedz at comcast.net Mon Apr 19 09:19:22 2010 From: edzedz at comcast.net (Edward Zuris) Date: Mon, 19 Apr 2010 08:19:22 -0600 Subject: [AccessD] Update In-Reply-To: <174A69C31E290B47A4898DFFDB5BFCD90181CB5A@MUKPBCC1XMB0403.collab.barclayscorp.com> Message-ID: <000001cadfcb$4f2c0300$5bdea8c0@edz1> The old timers in the USA, have been down that path of disappointment a number of times. Best thing is to pick up the pieces and move on. Compared to Europe, the USA labor relations has gone back to the 19th century. It is like the USA is now in some kind pre-Elizabethan era where Ebenezer Scrooge would feel at home. In many states in the USA, business has rewritten many of the Laws to their benefit. How I would play it, would be to keep quiet, take the two weeks severance pay and then get on unemployment. If unemployment is contested, which is becoming to mode practice in the USA, you can say, I got severance pay. Which implies you were laid off, not fired. Its tough out there. Not much help. Face piles of trials with smiles is about all you can do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of roz.clarke at barclays.com Sent: Monday, April 19, 2010 2:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update Two weeks severance is pretty shocking, even in these hard-pressed times. It must feel as though you're being pushed off a precipice. But these guys are right; you'll find something and it could well be better than what you had. I took the route in-between full time work and self-employed development, i.e. contracting, and it has been a bit scary but also immensely freeing. Consider all your options and make the most of the opportunity to rebalance your life! Good luck! Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul Sent: 18 April 2010 10:28 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Update Best of luck, Charlotte. These things can be a real blow at the time, but so often they open the door to something so much better and more interesting. Henri Strzelecki, founder of Henri-Lloyd, sent me this advice when things looked their blackest once. Niema zlego ktore by na debre nie wiszto (There isn't a bad thing that will not turn into good.) I think it might well be right. Fingers crossed for you. paul On 17 April 2010 04:05, Doug Steele wrote: > Good luck, and I suspect you're going to have to deal with making more > money now than you ever have :) > > Doug Steele > > On Fri, Apr 16, 2010 at 10:50 AM, Charlotte Foust < > cfoust at infostatsystems.com> wrote: > > > Well, I just got laid off after 9 years. I don't know whether to be > > furious or grateful. Anyone who wants to reach me can do so at > > charlotte.foust at gmail.com. I'll > > have > to > > change my advisor email address later. I'm expected to clean out my > > desk and be gone. They're paying me through the end of the month! > > > > Charlotte Foust > > -- > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Apr 19 13:08:29 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Apr 2010 13:08:29 -0500 Subject: [AccessD] Update In-Reply-To: References: Message-ID: If you're interested in a general in house developer position in Dallas, send me your resume. We no longer have one (since I'm now the Network Administrator) and there have been several things come up recently that has gotten management rumbling to recreate my old position. Sorry to hear the news though... definitely their loss! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, April 16, 2010 12:51 PM To: AccessD (AccessD at databaseadvisors.com); (masq at helppc.biz) Subject: [AccessD] Update Well, I just got laid off after 9 years. I don't know whether to be furious or grateful. Anyone who wants to reach me can do so at charlotte.foust at gmail.com. I'll have to change my advisor email address later. I'm expected to clean out my desk and be gone. They're paying me through the end of the month! Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Apr 19 14:30:14 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Apr 2010 14:30:14 -0500 Subject: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) In-Reply-To: <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> References: , <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne>, <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> Message-ID: I'm currently in a little struggle at work over 64 bit. I guess people don't realize that when we went from 16 bit, to 32 bit, there was a major shift in paradigms when it came to computing. Several years before Windows 95, most computers being sold were 32 bit processors, even though most apps were 16 bit. Windows 95 really brought the 32 bit world to the average user. Even though Windows 95 helped make 32bit the standard, it was over ten years after the first 32 bit processor came out (1984). It's now 2010, which is 19 years after the first 64 bit processor (1991). Intel didn't come out with it's first 64 bit processor until 2001 though, so we're looking at the same 10 year(ish) gap between the processor being available, and the standardization of it's use. There are several factors that are going to push the world into 64 bit OSes. #1, memory. 4 gig is the absolute max of a 32 bit system. How many people reading this email either have or want 4 gigs or more? In a 32 bit OS, you are using 4 gigs for your entire system, so if you have 4 gigs in RAM on your motherboard, you are actually utilizing less than that, since the video ram needs memory addressing too. (So a 4 gig system, with a 512 meg video card only gets to use 3.5 gigs of it's RAM). #2, Microsoft. They are putting out 64 bit versions of Windows 7 on new computers without making a big deal of it. To the average home user getting a new computer (especially for the first time), they aren't going to notice whether their system is 32 bit or 64 bit. This is being done for reason #1. Buy a new computer with 3 gigs of memory. Well if you want to double that in a year or two, you'd have to reinstall a 64 bit OS (can't 'upgrade' from 32 bit to 64 bit). Reason #3, games! Like it or not, it's not business applications which push the computer field. ;) It's games and porn! And gaming systems have been 64 bit for quite some time. The spill over to PC games is pushing everything to 64 bit. So get on the bandwagon before it's too late! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, April 17, 2010 6:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] 32 bit or 64 bit Access2010 It's just going to get more and more complicated to support users with different versions :-( http://www.opengatesw.net/ms-access-tutorials/Access-2010/Microsoft-Acce ss-2010-64-Bit.htm -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From miscellany at mvps.org Mon Apr 19 15:29:59 2010 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 20 Apr 2010 08:29:59 +1200 Subject: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) In-Reply-To: References: <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne> <06BD924A77D44BE69F68CDE93230D79F@jislaptopdev> <4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> Message-ID: Thanks a lot, Drew, for these comments which help to put things into perspective. Much appreciated. I guess I realised it is inevitable that we all have to go that way eventually. I was hoping for a bit more time to adapt. :-) And given that there's normally no barrier to running 32 bit software on 64 bit computers, or under 64 bit OSes, initially gave me a naively false sense of security. Where the real pressure comes in, at this stage, from an Access developer's point of view, is needing to cater to those instances where the user has installed 64 bit *Office* on their computers. This, I imagine, will affect some of us in the short term more than others. Regards Steve -------------------------------------------------- From: "Drew Wutka" Sent: Tuesday, April 20, 2010 7:30 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) > I'm currently in a little struggle at work over 64 bit. I guess people > don't realize that when we went from 16 bit, to 32 bit, there was a > major shift in paradigms when it came to computing. Several years > before Windows 95, most computers being sold were 32 bit processors, > even though most apps were 16 bit. Windows 95 really brought the 32 bit > world to the average user. Even though Windows 95 helped make 32bit the > standard, it was over ten years after the first 32 bit processor came > out (1984). It's now 2010, which is 19 years after the first 64 bit > processor (1991). Intel didn't come out with it's first 64 bit > processor until 2001 though, so we're looking at the same 10 year(ish) > gap between the processor being available, and the standardization of > it's use. > > There are several factors that are going to push the world into 64 bit > OSes. #1, memory. 4 gig is the absolute max of a 32 bit system. How > many people reading this email either have or want 4 gigs or more? In a > 32 bit OS, you are using 4 gigs for your entire system, so if you have 4 > gigs in RAM on your motherboard, you are actually utilizing less than > that, since the video ram needs memory addressing too. (So a 4 gig > system, with a 512 meg video card only gets to use 3.5 gigs of it's > RAM). #2, Microsoft. They are putting out 64 bit versions of Windows 7 > on new computers without making a big deal of it. To the average home > user getting a new computer (especially for the first time), they aren't > going to notice whether their system is 32 bit or 64 bit. This is being > done for reason #1. Buy a new computer with 3 gigs of memory. Well if > you want to double that in a year or two, you'd have to reinstall a 64 > bit OS (can't 'upgrade' from 32 bit to 64 bit). Reason #3, games! Like > it or not, it's not business applications which push the computer field. > ;) It's games and porn! And gaming systems have been 64 bit for quite > some time. The spill over to PC games is pushing everything to 64 bit. > > So get on the bandwagon before it's too late! > From stuart at lexacorp.com.pg Mon Apr 19 16:23:59 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Apr 2010 07:23:59 +1000 Subject: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) In-Reply-To: References: , , Message-ID: <4BCCC9EF.19103.31C2980@stuart.lexacorp.com.pg> My feelings exactly - and I suspect that I am one those who will be more affected :-(. -- Stuart On 20 Apr 2010 at 8:29, Steve Schapel wrote: > Where the real pressure comes in, at this stage, from an Access developer's > point of view, is needing to cater to those instances where the user has > installed 64 bit *Office* on their computers. This, I imagine, will affect > some of us in the short term more than others. > > Regards > Steve > From BradM at blackforestltd.com Tue Apr 20 12:38:58 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 20 Apr 2010 12:38:58 -0500 Subject: [AccessD] Access 2007 Forms Embedded TABS? Message-ID: Is it possible to embed a "child" set of "tabbed pages" inside a "parent" tabbed page? We have done a number of experiments, but no success. I think that we are missing something. Example - Parent Form with these tabs - Page1 / Page2 / Page3 Then inside Parent Page1 we would like to have 3 "Children" tabs Page1A / Page1B / Page1C Thanks, Brad From DWUTKA at Marlow.com Tue Apr 20 13:11:08 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Apr 2010 13:11:08 -0500 Subject: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) In-Reply-To: References: <98E9DCF91DEC4CA5948E0A9EDB878253@SusanOne><06BD924A77D44BE69F68CDE93230D79F@jislaptopdev><4BCA4554.15306.AD9AF2B@stuart.lexacorp.com.pg> Message-ID: There are a LOT of issues with a 64 bit client, and older software. I'm not surprised at all that this is going to be an issue in the office world... Not only is there the processing itself, which requires specific drivers, there is the issue of how Windows installs 64 bit, 32 bit apps install to C:\Program Files (x86)\....and some versions of oracle freak over those parenthesis'.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Monday, April 19, 2010 3:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) Thanks a lot, Drew, for these comments which help to put things into perspective. Much appreciated. I guess I realised it is inevitable that we all have to go that way eventually. I was hoping for a bit more time to adapt. :-) And given that there's normally no barrier to running 32 bit software on 64 bit computers, or under 64 bit OSes, initially gave me a naively false sense of security. Where the real pressure comes in, at this stage, from an Access developer's point of view, is needing to cater to those instances where the user has installed 64 bit *Office* on their computers. This, I imagine, will affect some of us in the short term more than others. Regards Steve -------------------------------------------------- From: "Drew Wutka" Sent: Tuesday, April 20, 2010 7:30 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] 32 bit or 64 bit Access2010 (An OT reply) > I'm currently in a little struggle at work over 64 bit. I guess people > don't realize that when we went from 16 bit, to 32 bit, there was a > major shift in paradigms when it came to computing. Several years > before Windows 95, most computers being sold were 32 bit processors, > even though most apps were 16 bit. Windows 95 really brought the 32 bit > world to the average user. Even though Windows 95 helped make 32bit the > standard, it was over ten years after the first 32 bit processor came > out (1984). It's now 2010, which is 19 years after the first 64 bit > processor (1991). Intel didn't come out with it's first 64 bit > processor until 2001 though, so we're looking at the same 10 year(ish) > gap between the processor being available, and the standardization of > it's use. > > There are several factors that are going to push the world into 64 bit > OSes. #1, memory. 4 gig is the absolute max of a 32 bit system. How > many people reading this email either have or want 4 gigs or more? In a > 32 bit OS, you are using 4 gigs for your entire system, so if you have 4 > gigs in RAM on your motherboard, you are actually utilizing less than > that, since the video ram needs memory addressing too. (So a 4 gig > system, with a 512 meg video card only gets to use 3.5 gigs of it's > RAM). #2, Microsoft. They are putting out 64 bit versions of Windows 7 > on new computers without making a big deal of it. To the average home > user getting a new computer (especially for the first time), they aren't > going to notice whether their system is 32 bit or 64 bit. This is being > done for reason #1. Buy a new computer with 3 gigs of memory. Well if > you want to double that in a year or two, you'd have to reinstall a 64 > bit OS (can't 'upgrade' from 32 bit to 64 bit). Reason #3, games! Like > it or not, it's not business applications which push the computer field. > ;) It's games and porn! And gaming systems have been 64 bit for quite > some time. The spill over to PC games is pushing everything to 64 bit. > > So get on the bandwagon before it's too late! > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From newsgrps at dalyn.co.nz Tue Apr 20 14:41:08 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 21 Apr 2010 07:41:08 +1200 Subject: [AccessD] Access 2007 Forms Embedded TABS? In-Reply-To: References: Message-ID: <20100420194028.OCHD15190.mta01.xtra.co.nz@Dalyn.dalyn.co.nz> Brad, You can put your children tabs into a subform, then add the subform to your main form Page1. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand At 21/04/2010, Brad Marks wrote: >Is it possible to embed a "child" set of "tabbed pages" inside a >"parent" >tabbed page? > >We have done a number of experiments, but no success. > >I think that we are missing something. > >Example - > >Parent Form with these tabs - Page1 / Page2 / Page3 > >Then inside Parent Page1 we would like to have 3 "Children" tabs > >Page1A / Page1B / Page1C > >Thanks, >Brad From jwcolby at colbyconsulting.com Tue Apr 20 16:01:49 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 20 Apr 2010 17:01:49 -0400 Subject: [AccessD] Access 2007 Forms Embedded TABS? In-Reply-To: References: Message-ID: <4BCE163D.8010704@colbyconsulting.com> Nope, tabs cannot be placed on another tab. You have to create a subform, place the child tabs in that subform and place the subform on the parent tab. John W. Colby www.ColbyConsulting.com Brad Marks wrote: > Is it possible to embed a "child" set of "tabbed pages" inside a > "parent" > tabbed page? > > We have done a number of experiments, but no success. > > I think that we are missing something. > > > > > > Example - > > Parent Form with these tabs - Page1 / Page2 / Page3 > > Then inside Parent Page1 we would like to have 3 "Children" tabs > > Page1A / Page1B / Page1C > > > > > > > > > Thanks, > Brad > From BradM at blackforestltd.com Tue Apr 20 16:26:33 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 20 Apr 2010 16:26:33 -0500 Subject: [AccessD] Access 2007 Forms Embedded TABS? References: <4BCE163D.8010704@colbyconsulting.com> Message-ID: David and John, Thanks for the help, I appreciate it. Now that I have followed your advice, it makes sense (and it works!). Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, April 20, 2010 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 Forms Embedded TABS? Nope, tabs cannot be placed on another tab. You have to create a subform, place the child tabs in that subform and place the subform on the parent tab. John W. Colby www.ColbyConsulting.com Brad Marks wrote: > Is it possible to embed a "child" set of "tabbed pages" inside a > "parent" > tabbed page? > > We have done a number of experiments, but no success. > > I think that we are missing something. > > > > > > Example - > > Parent Form with these tabs - Page1 / Page2 / Page3 > > Then inside Parent Page1 we would like to have 3 "Children" tabs > > Page1A / Page1B / Page1C > > > > > > > > > Thanks, > Brad > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From stuart at lexacorp.com.pg Tue Apr 20 16:28:25 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2010 07:28:25 +1000 Subject: [AccessD] Access 2003 - Reports broken In-Reply-To: <4BCE163D.8010704@colbyconsulting.com> References: , <4BCE163D.8010704@colbyconsulting.com> Message-ID: <4BCE1C79.25812.2B0D2F5@stuart.lexacorp.com.pg> I've got a workstation where Access can't handle Reports. Completely uninstalled and re- installed Office a couple of time. Symptoms: Try to open/preview a report by clicking on it and nothing happens. Select a report and click on Design View - nothing happens. ! can step through the Report Design wizard and at the last step ! get a message "The wizard was unable to create the report". Docmd.Openreport in VBA returns "You cancelled the previous operation" This happens with any MDB. If I create an new empty MBD and try to create a report, I get the above results. No problems creating/working with TAbles, Queries, Forms, Macros Modules. Anyone ever seen this before? -- Stuart From Gustav at cactus.dk Wed Apr 21 00:58:22 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2010 07:58:22 +0200 Subject: [AccessD] Access 2003 - Reports broken Message-ID: Hi Stuart No, haven't seen this, but could it be a printer driver issue? Try to install a very generic driver - like Apple Postscript or HP LaserJet II - and select that as the default printer. /gustav >>> stuart at lexacorp.com.pg 20-04-2010 23:28 >>> I've got a workstation where Access can't handle Reports. Completely uninstalled and re- installed Office a couple of time. Symptoms: Try to open/preview a report by clicking on it and nothing happens. Select a report and click on Design View - nothing happens. ! can step through the Report Design wizard and at the last step ! get a message "The wizard was unable to create the report". Docmd.Openreport in VBA returns "You cancelled the previous operation" This happens with any MDB. If I create an new empty MBD and try to create a report, I get the above results. No problems creating/working with TAbles, Queries, Forms, Macros Modules. Anyone ever seen this before? -- Stuart From jimdettman at verizon.net Wed Apr 21 05:54:26 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 21 Apr 2010 06:54:26 -0400 Subject: [AccessD] Access 2003 - Reports broken In-Reply-To: References: Message-ID: <29DE69DA88954B6FA3E9D4B602052830@LaptopII> Excellent thought! In addition, I'm wondering if another login was attempted; besides the users own profile, there are customized office settings stored on a per user basis. Gut hunch though is that Gustav has got this one already... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, April 21, 2010 1:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access 2003 - Reports broken Hi Stuart No, haven't seen this, but could it be a printer driver issue? Try to install a very generic driver - like Apple Postscript or HP LaserJet II - and select that as the default printer. /gustav >>> stuart at lexacorp.com.pg 20-04-2010 23:28 >>> I've got a workstation where Access can't handle Reports. Completely uninstalled and re- installed Office a couple of time. Symptoms: Try to open/preview a report by clicking on it and nothing happens. Select a report and click on Design View - nothing happens. ! can step through the Report Design wizard and at the last step ! get a message "The wizard was unable to create the report". Docmd.Openreport in VBA returns "You cancelled the previous operation" This happens with any MDB. If I create an new empty MBD and try to create a report, I get the above results. No problems creating/working with TAbles, Queries, Forms, Macros Modules. Anyone ever seen this before? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Apr 21 06:46:07 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2010 21:46:07 +1000 Subject: [AccessD] Access 2003 - Reports broken In-Reply-To: <29DE69DA88954B6FA3E9D4B602052830@LaptopII> References: , <29DE69DA88954B6FA3E9D4B602052830@LaptopII> Message-ID: <4BCEE57F.22518.1182C62@stuart.lexacorp.com.pg> Thanks for the suggestions. I won't be back on site to check it out for a few days, but wil report back. -- Stuart On 21 Apr 2010 at 6:54, Jim Dettman wrote: > > Excellent thought! In addition, I'm wondering if another login was > attempted; besides the users own profile, there are customized office > settings stored on a per user basis. > > Gut hunch though is that Gustav has got this one already... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, April 21, 2010 1:58 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access 2003 - Reports broken > > Hi Stuart > > No, haven't seen this, but could it be a printer driver issue? > Try to install a very generic driver - like Apple Postscript or HP LaserJet > II - and select that as the default printer. > > /gustav > > > >>> stuart at lexacorp.com.pg 20-04-2010 23:28 >>> > I've got a workstation where Access can't handle Reports. Completely > uninstalled and re- > installed Office a couple of time. > > Symptoms: > > Try to open/preview a report by clicking on it and nothing happens. > Select a report and click on Design View - nothing happens. > ! can step through the Report Design wizard and at the last step ! get a > message "The wizard > was unable to create the report". > Docmd.Openreport in VBA returns "You cancelled the previous operation" > > This happens with any MDB. If I create an new empty MBD and try to create a > report, I get > the above results. No problems creating/working with TAbles, Queries, > Forms, Macros > Modules. > > Anyone ever seen this before? > > -- > 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 rockysmolin at bchacc.com Wed Apr 21 13:21:43 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 21 Apr 2010 11:21:43 -0700 Subject: [AccessD] Text format Access-->Excel Message-ID: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From sturner at mseco.com Wed Apr 21 14:00:31 2010 From: sturner at mseco.com (Steve Turner) Date: Wed, 21 Apr 2010 14:00:31 -0500 Subject: [AccessD] Text format Access-->Excel In-Reply-To: <753003F9813D492D887E729AB9FFCDE1@HAL9005> References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: Rocky Try Range(??).Select Selection.NumberFormat = "@" Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 1:22 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text format Access-->Excel Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Wed Apr 21 15:21:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 21 Apr 2010 13:21:57 -0700 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: Steve: That was my first try - I cribbed it from a macro I recorded. But it didn't seem to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, April 21, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text format Access-->Excel Rocky Try Range(??).Select Selection.NumberFormat = "@" Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 1:22 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text format Access-->Excel Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Wed Apr 21 15:49:28 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 21 Apr 2010 13:49:28 -0700 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: <006301cae194$22e45840$68ad08c0$@net> Haven't followed this thread but I just saw this spreadsheet in a Steve Bass column. He said: "Brent Wheeler suggested I try a nifty Excel spreadsheet from Sanketham. (Don't bother with the site's preview -- it never loads.) The spreadsheet is loaded with 150 smart and esoteric formulas ready for you to use, such as removing nonprintable characters from imported data, converting weights and temperatures, and tons more." http://www.box.net/shared/v0btlnm18n There might be something in there that will help. Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, April 21, 2010 1:22 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Text format Access-->Excel > > Steve: > > That was my first try - I cribbed it from a macro I recorded. But it > didn't > seem to work. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner > Sent: Wednesday, April 21, 2010 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Text format Access-->Excel > > Rocky > Try > Range(??).Select > Selection.NumberFormat = "@" > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > E-Mail: sturner at mseco.com and saturner at mseco.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, April 21, 2010 1:22 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Text format Access-->Excel > > Dear List: > > > > I'm trying to format a row in an excel spreadsheet as text but can't > seem to > get the syntax right. It starts out .Rows("5:5").NumberFormat but > don't > know what to set it equal to. I tried "@" with no luck. > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From sturner at mseco.com Wed Apr 21 15:55:30 2010 From: sturner at mseco.com (Steve Turner) Date: Wed, 21 Apr 2010 15:55:30 -0500 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: R. That's what we love about Microsoft. Things don't always work the same. I have a cash worksheet with a custom tool bar I created with 22 macros attached to it to do various things and my computer is the only one it will work with. If my assistant opens the sheet and tries to use the tool bar macro's it fails. Don't understand why. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 3:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text format Access-->Excel Steve: That was my first try - I cribbed it from a macro I recorded. But it didn't seem to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, April 21, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text format Access-->Excel Rocky Try Range(??).Select Selection.NumberFormat = "@" Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 1:22 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text format Access-->Excel Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 21 16:38:01 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 21 Apr 2010 23:38:01 +0200 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: Rocky, For me this statement in an Excel procedure: Rows("5:5").NumberFormat = "@" - will format all cells in row 5 to text. Can you please elaborate what's not working for you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 21. april 2010 22:22 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Text format Access-->Excel Steve: That was my first try - I cribbed it from a macro I recorded. But it didn't seem to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, April 21, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text format Access-->Excel Rocky Try Range(??).Select Selection.NumberFormat = "@" Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 1:22 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text format Access-->Excel Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Wed Apr 21 16:56:27 2010 From: marksimms at verizon.net (Mark Simms) Date: Wed, 21 Apr 2010 17:56:27 -0400 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: <005801cae19d$7e4e0d80$0401a8c0@MSIMMSWS> Steve - there's a lot of things that could be happening: 1) macro security settings too high 2) worksheets are password protected 3) filters are on / lists are on 4) calculation mode is not set as expected 5) workbooks are hidden And so on, and so forth... It's not easy to program such a "freeform" environment. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Turner > Sent: Wednesday, April 21, 2010 4:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Text format Access-->Excel > > R. > That's what we love about Microsoft. Things don't always work > the same. > I have a cash worksheet with a custom tool bar I created with > 22 macros attached to it to do various things and my computer > is the only one it will work with. If my assistant opens the > sheet and tries to use the tool bar macro's it fails. Don't > understand why. > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > E-Mail: sturner at mseco.com and saturner at mseco.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, April 21, 2010 3:22 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Text format Access-->Excel > > Steve: > > That was my first try - I cribbed it from a macro I recorded. > But it didn't seem to work. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Turner > Sent: Wednesday, April 21, 2010 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Text format Access-->Excel > > Rocky > Try > Range(??).Select > Selection.NumberFormat = "@" > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > E-Mail: sturner at mseco.com and saturner at mseco.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, April 21, 2010 1:22 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Text format Access-->Excel > > Dear List: > > > > I'm trying to format a row in an excel spreadsheet as text > but can't seem to get the syntax right. It starts out > .Rows("5:5").NumberFormat but don't know what to set it equal > to. I tried "@" with no luck. > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 21 17:23:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 21 Apr 2010 15:23:53 -0700 Subject: [AccessD] Text format Access-->Excel In-Reply-To: References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> Message-ID: <629A4647FA9E4F378EE2D46EE61EB6A9@HAL9005> Asger: The cells ended up as General format. But I worked around it with a different method. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, April 21, 2010 2:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text format Access-->Excel Rocky, For me this statement in an Excel procedure: Rows("5:5").NumberFormat = "@" - will format all cells in row 5 to text. Can you please elaborate what's not working for you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 21. april 2010 22:22 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Text format Access-->Excel Steve: That was my first try - I cribbed it from a macro I recorded. But it didn't seem to work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, April 21, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text format Access-->Excel Rocky Try Range(??).Select Selection.NumberFormat = "@" Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, April 21, 2010 1:22 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text format Access-->Excel Dear List: I'm trying to format a row in an excel spreadsheet as text but can't seem to get the syntax right. It starts out .Rows("5:5").NumberFormat but don't know what to set it equal to. I tried "@" with no luck. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 22 09:08:51 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 22 Apr 2010 07:08:51 -0700 Subject: [AccessD] Your New Workstation Is Waiting Message-ID: http://www.reinvented-the-workstation.com/CX1-iWS-developers/ Rocky From jwcolby at colbyconsulting.com Thu Apr 22 09:27:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 22 Apr 2010 10:27:47 -0400 Subject: [AccessD] Your New Workstation Is Waiting In-Reply-To: References: Message-ID: <4BD05CE3.2000508@colbyconsulting.com> Versatility * Fully featured ... a 24-core Intel? Xeon? processor ... * 32 cores of compute power Hmmm.... * 4 gigs of RAM... ;) Pricing... if you have to ask... John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > http://www.reinvented-the-workstation.com/CX1-iWS-developers/ > > Rocky > > > > > From darren at activebilling.com.au Thu Apr 22 09:31:56 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Fri, 23 Apr 2010 00:31:56 +1000 Subject: [AccessD] OT: Reporting Services Forums/Lists Message-ID: <8ECCB2BA01F34DBAB5487FE050884D47@darrendPC> Hi Team Anyone know of any cool lists or forums like this one is for Access but for Reporting Services? Even resource pages similar to Lebans etc for Reporting Services Feel free to reply off list as it's a bit OT Thanks in advance Darren From jwcolby at colbyconsulting.com Thu Apr 22 09:34:54 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 22 Apr 2010 10:34:54 -0400 Subject: [AccessD] Your New Workstation Is Waiting In-Reply-To: References: Message-ID: <4BD05E8E.7080407@colbyconsulting.com> http://accessories.us.dell.com/sna/products/Processors/productdetail.aspx?sku=A3336421 John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > http://www.reinvented-the-workstation.com/CX1-iWS-developers/ > > Rocky > > > > > From Gustav at cactus.dk Thu Apr 22 09:39:54 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2010 16:39:54 +0200 Subject: [AccessD] OT: Reporting Services Forums/Lists Message-ID: Hi Darren dba-vb comes to my mind ... Then you could also report your findings, please. /gustav >>> darren at activebilling.com.au 22-04-2010 16:31 >>> Hi Team Anyone know of any cool lists or forums like this one is for Access but for Reporting Services? Even resource pages similar to Lebans etc for Reporting Services Feel free to reply off list as it's a bit OT Thanks in advance Darren From garykjos at gmail.com Thu Apr 22 09:43:43 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 22 Apr 2010 09:43:43 -0500 Subject: [AccessD] Your New Workstation Is Waiting In-Reply-To: <4BD05E8E.7080407@colbyconsulting.com> References: <4BD05E8E.7080407@colbyconsulting.com> Message-ID: Not available for Home or Small Office customers. $54,999 for Large Business customers. I'll be waiting for a while. GK On Thu, Apr 22, 2010 at 9:34 AM, jwcolby wrote: > http://accessories.us.dell.com/sna/products/Processors/productdetail.aspx?sku=A3336421 > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin wrote: >> http://www.reinvented-the-workstation.com/CX1-iWS-developers/ >> >> Rocky >> >> >> >> >> > -- > 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 rockysmolin at bchacc.com Thu Apr 22 10:10:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 22 Apr 2010 08:10:29 -0700 Subject: [AccessD] Your New Workstation Is Waiting In-Reply-To: References: <4BD05E8E.7080407@colbyconsulting.com> Message-ID: On a budget? The -g model is only $39k. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, April 22, 2010 7:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Your New Workstation Is Waiting Not available for Home or Small Office customers. $54,999 for Large Business customers. I'll be waiting for a while. GK On Thu, Apr 22, 2010 at 9:34 AM, jwcolby wrote: > http://accessories.us.dell.com/sna/products/Processors/productdetail.a > spx?sku=A3336421 > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin wrote: >> http://www.reinvented-the-workstation.com/CX1-iWS-developers/ >> >> Rocky >> >> >> >> >> > -- > 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 jwcolby at colbyconsulting.com Thu Apr 22 10:19:18 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 22 Apr 2010 11:19:18 -0400 Subject: [AccessD] SPAM-LOW: Re: Your New Workstation Is Waiting In-Reply-To: References: <4BD05E8E.7080407@colbyconsulting.com> Message-ID: <4BD068F6.1010003@colbyconsulting.com> >>I'll be waiting for a while. Ya think? I could actually get rid of all of my other computers. It would be really nice if I could boot 2 blades into one OS / system, one blade into another. Notice that the max advertised memory is 24 gigs. Kinda wimpy for a 24 core server. I really need 16 cores for SQL Server with 128 gigs of ram, 8 cores for my VMWare server with 24 gigs ram, and then my workstation blade which 8 cores and 16 gigs ram will be just fine. But that is just lil ol me, I can only imagine what a real company would need. John W. Colby www.ColbyConsulting.com Gary Kjos wrote: > Not available for Home or Small Office customers. $54,999 for Large > Business customers. I'll be waiting for a while. > > GK > > On Thu, Apr 22, 2010 at 9:34 AM, jwcolby wrote: >> http://accessories.us.dell.com/sna/products/Processors/productdetail.aspx?sku=A3336421 >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin wrote: >>> http://www.reinvented-the-workstation.com/CX1-iWS-developers/ >>> >>> Rocky >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > From davidmcafee at gmail.com Thu Apr 22 11:47:41 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 22 Apr 2010 09:47:41 -0700 Subject: [AccessD] OT: Reporting Services Forums/Lists In-Reply-To: References: Message-ID: I would say they are related, not so OT, keep the questions here, so we can all learn from your questions :) (or at least on the dba-SQL list) On Thu, Apr 22, 2010 at 7:39 AM, Gustav Brock wrote: > Hi Darren > > dba-vb comes to my mind ... > > Then you could also report your findings, please. > > /gustav > > >>>> darren at activebilling.com.au 22-04-2010 16:31 >>> > Hi Team > > > > Anyone know of any cool lists or forums like this one is for Access but for > Reporting Services? > > Even resource pages similar to Lebans etc for Reporting Services > Feel free to reply off list as it's a bit OT > > Thanks in advance > > Darren > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Thu Apr 22 11:55:02 2010 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 22 Apr 2010 09:55:02 -0700 Subject: [AccessD] OT: Reporting Services Forums/Lists In-Reply-To: <8ECCB2BA01F34DBAB5487FE050884D47@darrendPC> References: <8ECCB2BA01F34DBAB5487FE050884D47@darrendPC> Message-ID: There are a bunch of reporting services articles here: www.sqlservercentral.com There is also www.serverfault.com if you have specific questions. Doug On Thu, Apr 22, 2010 at 7:31 AM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi Team > > > > Anyone know of any cool lists or forums like this one is for Access but for > Reporting Services? > > Even resource pages similar to Lebans etc for Reporting Services > Feel free to reply off list as it's a bit OT > > Thanks in advance > > Darren > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Chester_Kaup at kindermorgan.com Thu Apr 22 13:17:03 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 22 Apr 2010 13:17:03 -0500 Subject: [AccessD] Query Timeuout Problem Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C191DB4F493@houex1.kindermorgan.com> I have a query that uses three SQL server tables linked by ODBC. The query runs OK in the query grid with the query timeout set to 0. When I try to run the SQL statement in VBA it returns an ODBC connect failure message indicating to me that it time out. Here is some of the code. Maybe I am setting the timeout wrong? Dim MyDb As DAO.Database Set MyDb = CurrentDb() MyDb.QueryTimeout = 0 strSQL = "some query statements" Set RS3 = MyDb.OpenRecordset(strSql) 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 garykjos at gmail.com Thu Apr 22 13:20:38 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 22 Apr 2010 13:20:38 -0500 Subject: [AccessD] Your New Workstation Is Waiting Message-ID: There is wisdom in the old adage "Don't put all your eggs in one basket" When you put all that into one rack that bad boy better not fail. GK On Thu, Apr 22, 2010 at 10:19 AM, jwcolby wrote: > ?>>I'll be waiting for a while. > > Ya think? > > I could actually get rid of all of my other computers. ?It would be really nice if I could boot 2 > blades into one OS / system, one blade into another. ?Notice that the max advertised memory is 24 > gigs. ?Kinda wimpy for a 24 core server. > > I really need 16 cores for SQL Server with 128 gigs of ram, 8 cores for my VMWare server with 24 > gigs ram, and then my workstation blade which 8 cores and 16 gigs ram will be just fine. > > But that is just lil ol me, I can only imagine what a real company would need. > > John W. Colby > www.ColbyConsulting.com > -- Gary Kjos garykjos at gmail.com From Susan.Klos at fldoe.org Thu Apr 22 14:38:01 2010 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Thu, 22 Apr 2010 15:38:01 -0400 Subject: [AccessD] Text format Access-->Excel Message-ID: <66D9CA142291D741B515207C09AA3BC3396912@MAIL2.FLDOE.INT> Steve, where do you store your macros? They can be stored in the working workbook, a separate workbook or in the personal workbook. If stored in the personal workbook, others who want to use the macros on their machines will have to have the macros copied into their personal workbook or in a separate workbook they will need a copy of that workbook on their computers and the file name and pathway has to be the same. Sue Klos Senior Database Analyst FLDOE Susan.klos at fldoe.org Date: Wed, 21 Apr 2010 15:55:30 -0500 From: "Steve Turner" Subject: Re: [AccessD] Text format Access-->Excel To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" R. That's what we love about Microsoft. Things don't always work the same. I have a cash worksheet with a custom tool bar I created with 22 macros attached to it to do various things and my computer is the only one it will work with. If my assistant opens the sheet and tries to use the tool bar macro's it fails. Don't understand why. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com Susan Klos Senior Database Analyst Florida Department of Education Evaluation and Reporting Office Phone: 850.245.0708 Fax: 850.245-0710 email: susan.klos at fldoe.org From stuart at lexacorp.com.pg Thu Apr 22 15:38:07 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Apr 2010 06:38:07 +1000 Subject: [AccessD] Your New Workstation Is Waiting In-Reply-To: References: Message-ID: <4BD0B3AF.16796.825991D@stuart.lexacorp.com.pg> Only two monitors? No thanks, I want something a bit more high end. :-) -- Stuart On 22 Apr 2010 at 7:08, Rocky Smolin wrote: > http://www.reinvented-the-workstation.com/CX1-iWS-developers/ > > Rocky > > > > From fuller.artful at gmail.com Fri Apr 23 08:43:05 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 23 Apr 2010 09:43:05 -0400 Subject: [AccessD] OT: Friday Puzzles Message-ID: If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur From DWUTKA at Marlow.com Fri Apr 23 09:13:12 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 09:13:12 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: Message-ID: First, I'd like to be in 64th position. And tell the general that at least 45% of the men suffered all 4 conditions, up to 70% Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Fri Apr 23 09:18:39 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 10:18:39 -0400 Subject: [AccessD] OT: Friday Puzzles References: Message-ID: > You are one of 1000 people who shall be executed using the following > procedure. You are lined up single-file, shoulder to shoulder. Every other > person will be shot, starting with the first. The survivors of that round > will line up shoulder to shoulder, and the process repeated, until there > is > only one person left. Assuming that you wish to be the sole surivor, what > position in the line would you choose? You have 3 minutes to decide. =======The last person in each line? Susan H. From ssharkins at gmail.com Fri Apr 23 09:19:24 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 10:19:24 -0400 Subject: [AccessD] OT: Friday Puzzles References: Message-ID: <8FD7F4486BE343469EF44AAB3BE7E84C@SusanOne> > > And tell the general that at least 45% of the men suffered all 4 > conditions, up to 70% ======I was going to say 70%. Susan H. From sbamber at hss.com Fri Apr 23 09:19:26 2010 From: sbamber at hss.com (Simon Bamber) Date: Fri, 23 Apr 2010 15:19:26 +0100 Subject: [AccessD] OT: Friday Puzzles Message-ID: <05D396DAB16E924384091182F16B4EA01AB3D2D9@exchange2.hss.co.uk> I would prefer to be in Position 512 at the start of the shooting... Simon Bamber HIRE COMPANY OF THE YEAR 2009 This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of sbamber at hss.com and do not necessarily represent those of the company. HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 644490. Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 23 April 2010 15:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles First, I'd like to be in 64th position. And tell the general that at least 45% of the men suffered all 4 conditions, up to 70% Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Apr 23 09:24:20 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 23 Apr 2010 15:24:20 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <05D396DAB16E924384091182F16B4EA01AB3D2D9@exchange2.hss.co.uk> References: <05D396DAB16E924384091182F16B4EA01AB3D2D9@exchange2.hss.co.uk> Message-ID: <7599E7623E5843FBABE96A3741DEF5AC@Server> I WILL BE THE ONE WITH THE GUN. STUPID ME NOT TELL THE GENERAL NONE IF HE DON'T LIKE IT HE CAN STAND NO1 IN LINE -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Simon Bamber Sent: Friday, April 23, 2010 3:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles I would prefer to be in Position 512 at the start of the shooting... Simon Bamber HIRE COMPANY OF THE YEAR 2009 This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of sbamber at hss.com and do not necessarily represent those of the company. HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 644490. Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 23 April 2010 15:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles First, I'd like to be in 64th position. And tell the general that at least 45% of the men suffered all 4 conditions, up to 70% Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Fri Apr 23 09:24:35 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 09:24:35 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <05D396DAB16E924384091182F16B4EA01AB3D2D9@exchange2.hss.co.uk> References: <05D396DAB16E924384091182F16B4EA01AB3D2D9@exchange2.hss.co.uk> Message-ID: Whoops, me too, I misread the first puzzle, between reading and thinking, I dropped a zero. I to want to be in position 512! ;) But if they do this process in groups of 100, I would want to be 64th..... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Simon Bamber Sent: Friday, April 23, 2010 9:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles I would prefer to be in Position 512 at the start of the shooting... Simon Bamber HIRE COMPANY OF THE YEAR 2009 This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of sbamber at hss.com and do not necessarily represent those of the company. HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 644490. Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 23 April 2010 15:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles First, I'd like to be in 64th position. And tell the general that at least 45% of the men suffered all 4 conditions, up to 70% Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Fri Apr 23 09:28:28 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 23 Apr 2010 07:28:28 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: Message-ID: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> 1000, 500, 250, 125...oops! Dead. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 7:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > You are one of 1000 people who shall be executed using the following > procedure. You are lined up single-file, shoulder to shoulder. Every > other person will be shot, starting with the first. The survivors of > that round will line up shoulder to shoulder, and the process > repeated, until there is only one person left. Assuming that you wish > to be the sole surivor, what position in the line would you choose? > You have 3 minutes to decide. =======The last person in each line? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Apr 23 09:55:00 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 10:55:00 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> Message-ID: <96758BC5571A49299161C8A80C920088@SusanOne> Well, ya know... when your numbers up!!!!!! Susan H. > 1000, 500, 250, 125...oops! Dead. From DWUTKA at Marlow.com Fri Apr 23 10:03:02 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 10:03:02 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <96758BC5571A49299161C8A80C920088@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> <96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: First round survivors: 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 36,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,1 72,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,2 08,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,2 44,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,2 80,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,3 16,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,3 52,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,3 88,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,4 24,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,4 60,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,4 96,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,5 32,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,5 68,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,6 04,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,6 40,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,6 76,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,7 12,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,7 48,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,7 84,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,8 20,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,8 56,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,8 92,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,9 28,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,9 64,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1 000 Second round survivors: 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,10 0,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,17 2,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,24 4,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,31 6,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,38 8,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,46 0,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,53 2,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,60 4,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,67 6,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,74 8,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,82 0,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,89 2,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,96 4,968,972,976,980,984,988,992,996,1000 8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,1 76,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,3 20,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,4 64,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,6 08,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,7 52,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,8 96,904,912,920,928,936,944,952,960,968,976,984,992,1000 Third Round survivors: 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,32 0,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,60 8,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,89 6,912,928,944,960,976,992 Fourth Round survivors: 32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608 ,640,672,704,736,768,800,832,864,896,928,960,992 Fifth round Survivors: 64,128,192,256,320,384,448,512,576,640,704,768,832,896,960 Sixth Round Survivors: 128,256,384,512,640,768,896 Seventh Round Survivors: 256,512,768 Final Survivor: 512 Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 9:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Well, ya know... when your numbers up!!!!!! Susan H. > 1000, 500, 250, 125...oops! Dead. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Fri Apr 23 10:22:38 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 11:22:38 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: <06458FEBD7924387914BFB788F78AE75@SusanOne> > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. From DWUTKA at Marlow.com Fri Apr 23 10:26:38 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 10:26:38 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <06458FEBD7924387914BFB788F78AE75@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <06458FEBD7924387914BFB788F78AE75@SusanOne> Message-ID: LOL, nah, I'll stick with 'code boy' Private Sub Command1_Click() Dim Victims As Collection Dim vt As Victim Dim i As Long Dim strTemp As String Dim strPaste As String Set Victims = New Collection For i = 1 To 1000 Set vt = New Victim vt.OriginalPosition = i Victims.Add vt, "ID:" & i Set vt = Nothing Next i Do Until Victims.Count <= 1 For i = 1 To Victims.Count Step 2 Set vt = Victims(i) vt.Shot = True Set vt = Nothing Next i 'Remove shot victims strTemp = "" For Each vt In Victims If vt.Shot Then Victims.Remove "ID:" & vt.OriginalPosition Else strTemp = strTemp & vt.OriginalPosition & "," End If Next Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) strPaste = strPaste & Left(strTemp, Len(strTemp) - 1) & vbCrLf Loop Clipboard.Clear Clipboard.SetText strPaste End Sub Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Fri Apr 23 10:35:56 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2010 17:35:56 +0200 Subject: [AccessD] OT: Friday Puzzles Message-ID: Hi Drew But the general lies and he'll take you out personally just for the fun. Or, if you recall Schindler's List (the scene with the female construction engineer), he will figure out that you are the smart guy and take you out as the first. >>> DWUTKA at marlow.com 23-04-2010 17:03:02 >>> Final Survivor: 512 From Gustav at cactus.dk Fri Apr 23 10:38:29 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2010 17:38:29 +0200 Subject: [AccessD] OT: Friday Puzzles Message-ID: Hi Drew What is this? You always bark about how busy you are. Can't wait for Friday beer!? /gustav >>> DWUTKA at marlow.com 23-04-2010 17:26:38 >>> LOL, nah, I'll stick with 'code boy' Private Sub Command1_Click() Dim Victims As Collection Dim vt As Victim Dim i As Long Dim strTemp As String Dim strPaste As String Set Victims = New Collection For i = 1 To 1000 Set vt = New Victim vt.OriginalPosition = i Victims.Add vt, "ID:" & i Set vt = Nothing Next i Do Until Victims.Count <= 1 For i = 1 To Victims.Count Step 2 Set vt = Victims(i) vt.Shot = True Set vt = Nothing Next i 'Remove shot victims strTemp = "" For Each vt In Victims If vt.Shot Then Victims.Remove "ID:" & vt.OriginalPosition Else strTemp = strTemp & vt.OriginalPosition & "," End If Next Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) strPaste = strPaste & Left(strTemp, Len(strTemp) - 1) & vbCrLf Loop Clipboard.Clear Clipboard.SetText strPaste End Sub Drew From mmattys at rochester.rr.com Fri Apr 23 10:47:34 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 23 Apr 2010 11:47:34 -0400 Subject: [AccessD] OT: Friday Puzzles References: Message-ID: <368EE040C5194508A2CF47B16AE0703F@Gateway> Hi Drew, It appears that you have a reference set that I don't have What library in Victim in? Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, April 23, 2010 11:38 AM Subject: Re: [AccessD] OT: Friday Puzzles > Hi Drew > > What is this? You always bark about how busy you are. > Can't wait for Friday beer!? > > /gustav > > >>>> DWUTKA at marlow.com 23-04-2010 17:26:38 >>> > LOL, nah, I'll stick with 'code boy' > > Private Sub Command1_Click() > Dim Victims As Collection > Dim vt As Victim > Dim i As Long > Dim strTemp As String > Dim strPaste As String > Set Victims = New Collection > For i = 1 To 1000 > Set vt = New Victim > vt.OriginalPosition = i > Victims.Add vt, "ID:" & i > Set vt = Nothing > Next i > Do Until Victims.Count <= 1 > For i = 1 To Victims.Count Step 2 > Set vt = Victims(i) > vt.Shot = True > Set vt = Nothing > Next i > 'Remove shot victims > strTemp = "" > For Each vt In Victims > If vt.Shot Then > Victims.Remove "ID:" & vt.OriginalPosition > Else > strTemp = strTemp & vt.OriginalPosition & "," > End If > Next > Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) > strPaste = strPaste & Left(strTemp, Len(strTemp) - 1) & vbCrLf > Loop > Clipboard.Clear > Clipboard.SetText strPaste > End Sub > > Drew > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From sbamber at hss.com Fri Apr 23 10:55:39 2010 From: sbamber at hss.com (Simon Bamber) Date: Fri, 23 Apr 2010 16:55:39 +0100 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <06458FEBD7924387914BFB788F78AE75@SusanOne> Message-ID: <05D396DAB16E924384091182F16B4EA01AB3D2DA@exchange2.hss.co.uk> Susan, You are forgetting that the devil is in the detail and Drew dropped a zero so got shot. No second chances when you are lined up like that. Simon HIRE COMPANY OF THE YEAR 2009 This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of sbamber at hss.com and do not necessarily represent those of the company. HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 644490. Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 April 2010 16:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paulrster at gmail.com Fri Apr 23 10:56:13 2010 From: paulrster at gmail.com (paul) Date: Fri, 23 Apr 2010 16:56:13 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> <96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: How did you calculate that, Drew? In awe paul On 23 April 2010 16:03, Drew Wutka wrote: > First round survivors: > > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 > 36,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,1 > 72,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,2 > 08,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,2 > 44,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,2 > 80,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,3 > 16,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,3 > 52,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,3 > 88,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,4 > 24,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,4 > 60,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,4 > 96,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,5 > 32,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,5 > 68,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,6 > 04,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,6 > 40,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,6 > 76,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,7 > 12,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,7 > 48,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,7 > 84,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,8 > 20,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,8 > 56,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,8 > 92,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,9 > 28,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,9 > 64,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1 > 000 > > Second round survivors: > 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,10 > 0,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,17 > 2,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,24 > 4,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,31 > 6,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,38 > 8,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,46 > 0,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,53 > 2,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,60 > 4,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,67 > 6,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,74 > 8,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,82 > 0,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,89 > 2,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,96 > 4,968,972,976,980,984,988,992,996,1000 > 8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,1 > 76,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,3 > 20,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,4 > 64,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,6 > 08,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,7 > 52,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,8 > 96,904,912,920,928,936,944,952,960,968,976,984,992,1000 > > Third Round survivors: > 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,32 > 0,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,60 > 8,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,89 > 6,912,928,944,960,976,992 > > Fourth Round survivors: > 32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608 > ,640,672,704,736,768,800,832,864,896,928,960,992 > > Fifth round Survivors: > 64,128,192,256,320,384,448,512,576,640,704,768,832,896,960 > > Sixth Round Survivors: > 128,256,384,512,640,768,896 > > Seventh Round Survivors: > 256,512,768 > > Final Survivor: > 512 > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, April 23, 2010 9:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > Well, ya know... when your numbers up!!!!!! > > Susan H. > > > > 1000, 500, 250, 125...oops! Dead. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Fri Apr 23 10:59:15 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 10:59:15 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: Message-ID: Still very busy... this was the 2 minute code whip up to solve the first riddle.... ;) Admittedly, I doubt they'd let me have my laptop after they asked the question! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, April 23, 2010 10:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Friday Puzzles Hi Drew What is this? You always bark about how busy you are. Can't wait for Friday beer!? /gustav >>> DWUTKA at marlow.com 23-04-2010 17:26:38 >>> LOL, nah, I'll stick with 'code boy' Private Sub Command1_Click() Dim Victims As Collection Dim vt As Victim Dim i As Long Dim strTemp As String Dim strPaste As String Set Victims = New Collection For i = 1 To 1000 Set vt = New Victim vt.OriginalPosition = i Victims.Add vt, "ID:" & i Set vt = Nothing Next i Do Until Victims.Count <= 1 For i = 1 To Victims.Count Step 2 Set vt = Victims(i) vt.Shot = True Set vt = Nothing Next i 'Remove shot victims strTemp = "" For Each vt In Victims If vt.Shot Then Victims.Remove "ID:" & vt.OriginalPosition Else strTemp = strTemp & vt.OriginalPosition & "," End If Next Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) strPaste = strPaste & Left(strTemp, Len(strTemp) - 1) & vbCrLf Loop Clipboard.Clear Clipboard.SetText strPaste End Sub Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Apr 23 10:59:55 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 10:59:55 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <368EE040C5194508A2CF47B16AE0703F@Gateway> References: <368EE040C5194508A2CF47B16AE0703F@Gateway> Message-ID: Victim is a class, here's the code: Option Explicit Public OriginalPosition As Long Public Shot As Boolean Private Sub Class_Initialize() Shot = False End Sub ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Friday, April 23, 2010 10:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hi Drew, It appears that you have a reference set that I don't have What library in Victim in? Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, April 23, 2010 11:38 AM Subject: Re: [AccessD] OT: Friday Puzzles > Hi Drew > > What is this? You always bark about how busy you are. > Can't wait for Friday beer!? > > /gustav > > >>>> DWUTKA at marlow.com 23-04-2010 17:26:38 >>> > LOL, nah, I'll stick with 'code boy' > > Private Sub Command1_Click() > Dim Victims As Collection > Dim vt As Victim > Dim i As Long > Dim strTemp As String > Dim strPaste As String > Set Victims = New Collection > For i = 1 To 1000 > Set vt = New Victim > vt.OriginalPosition = i > Victims.Add vt, "ID:" & i > Set vt = Nothing > Next i > Do Until Victims.Count <= 1 > For i = 1 To Victims.Count Step 2 > Set vt = Victims(i) > vt.Shot = True > Set vt = Nothing > Next i > 'Remove shot victims > strTemp = "" > For Each vt In Victims > If vt.Shot Then > Victims.Remove "ID:" & vt.OriginalPosition > Else > strTemp = strTemp & vt.OriginalPosition & "," > End If > Next > Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) > strPaste = strPaste & Left(strTemp, Len(strTemp) - 1) & vbCrLf > Loop > Clipboard.Clear > Clipboard.SetText strPaste > End Sub > > Drew > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Apr 23 11:00:30 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 11:00:30 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: I just posted the code.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul Sent: Friday, April 23, 2010 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles How did you calculate that, Drew? In awe paul On 23 April 2010 16:03, Drew Wutka wrote: > First round survivors: > > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 > 36,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,1 > 72,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,2 > 08,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,2 > 44,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,2 > 80,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,3 > 16,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,3 > 52,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,3 > 88,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,4 > 24,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,4 > 60,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,4 > 96,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,5 > 32,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,5 > 68,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,6 > 04,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,6 > 40,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,6 > 76,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,7 > 12,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,7 > 48,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,7 > 84,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,8 > 20,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,8 > 56,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,8 > 92,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,9 > 28,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,9 > 64,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1 > 000 > > Second round survivors: > 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,10 > 0,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,17 > 2,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,24 > 4,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,31 > 6,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,38 > 8,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,46 > 0,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,53 > 2,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,60 > 4,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,67 > 6,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,74 > 8,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,82 > 0,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,89 > 2,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,96 > 4,968,972,976,980,984,988,992,996,1000 > 8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,1 > 76,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,3 > 20,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,4 > 64,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,6 > 08,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,7 > 52,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,8 > 96,904,912,920,928,936,944,952,960,968,976,984,992,1000 > > Third Round survivors: > 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,32 > 0,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,60 > 8,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,89 > 6,912,928,944,960,976,992 > > Fourth Round survivors: > 32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608 > ,640,672,704,736,768,800,832,864,896,928,960,992 > > Fifth round Survivors: > 64,128,192,256,320,384,448,512,576,640,704,768,832,896,960 > > Sixth Round Survivors: > 128,256,384,512,640,768,896 > > Seventh Round Survivors: > 256,512,768 > > Final Survivor: > 512 > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, April 23, 2010 9:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > Well, ya know... when your numbers up!!!!!! > > Susan H. > > > > 1000, 500, 250, 125...oops! Dead. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Apr 23 11:01:21 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 11:01:21 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <05D396DAB16E924384091182F16B4EA01AB3D2DA@exchange2.hss.co.uk> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><06458FEBD7924387914BFB788F78AE75@SusanOne> <05D396DAB16E924384091182F16B4EA01AB3D2DA@exchange2.hss.co.uk> Message-ID: True.... of course if my life depended on answering riddles before I've had any caffeine, I'd just go ahead and take the bullet...LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Simon Bamber Sent: Friday, April 23, 2010 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Susan, You are forgetting that the devil is in the detail and Drew dropped a zero so got shot. No second chances when you are lined up like that. Simon HIRE COMPANY OF THE YEAR 2009 This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of sbamber at hss.com and do not necessarily represent those of the company. HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 644490. Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 April 2010 16:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Apr 23 11:11:27 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 11:11:27 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <05D396DAB16E924384091182F16B4EA01AB3D2DA@exchange2.hss.co.uk> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><06458FEBD7924387914BFB788F78AE75@SusanOne> <05D396DAB16E924384091182F16B4EA01AB3D2DA@exchange2.hss.co.uk> Message-ID: And actually, I mis-grouped my post (clumped group three in with 2...). My code just put the numbers in with VBcrlf in between.... So the new code is: Private Sub Command1_Click() Dim Victims As Collection Dim vt As Victim Dim i As Long Dim strTemp As String Dim strPaste As String Dim intRound As Long Set Victims = New Collection For i = 1 To 1000 Set vt = New Victim vt.OriginalPosition = i Victims.Add vt, "ID:" & i Set vt = Nothing Next i intRound = 1 Do Until Victims.Count <= 1 For i = 1 To Victims.Count Step 2 Set vt = Victims(i) vt.Shot = True Set vt = Nothing Next i 'Remove shot victims strTemp = "" For Each vt In Victims If vt.Shot Then Victims.Remove "ID:" & vt.OriginalPosition Else strTemp = strTemp & vt.OriginalPosition & "," End If Next Me.List1.AddItem Left(strTemp, Len(strTemp) - 1) If Victims.Count > 1 Then strPaste = strPaste & "Round " & intRound & " Survivors:" & vbCrLf & Left(strTemp, Len(strTemp) - 1) & vbCrLf & vbCrLf Else strPaste = strPaste & "Final Survivor:" & vbCrLf & Left(strTemp, Len(strTemp) - 1) & vbCrLf End If intRound = intRound + 1 Loop Clipboard.Clear Clipboard.SetText strPaste End Sub (Watch for line wrap) With the following saved as 'Victim' Class Module: Option Explicit Public OriginalPosition As Long Public Shot As Boolean Private Sub Class_Initialize() Shot = False End Sub Which will display the results in a listbox, and put the following into the clipboard to paste (of course, this is VB6, VBA doesn't have the 'clipboard' object) Round 1 Survivors: 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 36,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,1 72,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,2 08,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,2 44,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,2 80,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,3 16,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,3 52,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,3 88,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,4 24,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,4 60,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,4 96,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,5 32,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,5 68,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,6 04,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,6 40,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,6 76,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,7 12,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,7 48,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,7 84,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,8 20,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,8 56,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,8 92,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,9 28,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,9 64,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1 000 Round 2 Survivors: 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,10 0,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,17 2,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,24 4,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,31 6,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,38 8,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,46 0,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,53 2,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,60 4,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,67 6,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,74 8,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,82 0,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,89 2,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,96 4,968,972,976,980,984,988,992,996,1000 Round 3 Survivors: 8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,1 76,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,3 20,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,4 64,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,6 08,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,7 52,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,8 96,904,912,920,928,936,944,952,960,968,976,984,992,1000 Round 4 Survivors: 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,32 0,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,60 8,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,89 6,912,928,944,960,976,992 Round 5 Survivors: 32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608 ,640,672,704,736,768,800,832,864,896,928,960,992 Round 6 Survivors: 64,128,192,256,320,384,448,512,576,640,704,768,832,896,960 Round 7 Survivors: 128,256,384,512,640,768,896 Round 8 Survivors: 256,512,768 Final Survivor: 512 Drew (code boy) Wutka -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Simon Bamber Sent: Friday, April 23, 2010 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Susan, You are forgetting that the devil is in the detail and Drew dropped a zero so got shot. No second chances when you are lined up like that. Simon The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From kathryn at bassett.net Fri Apr 23 12:54:57 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 23 Apr 2010 10:54:57 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> <96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: <003101cae30e$166474d0$432d5e70$@net> Drew solved the 1st one using code. What about the definitive answer for the second puzzle? Kathryn From sturner at mseco.com Fri Apr 23 13:19:13 2010 From: sturner at mseco.com (Steve Turner) Date: Fri, 23 Apr 2010 13:19:13 -0500 Subject: [AccessD] Text format Access-->Excel In-Reply-To: <005801cae19d$7e4e0d80$0401a8c0@MSIMMSWS> References: <753003F9813D492D887E729AB9FFCDE1@HAL9005> <005801cae19d$7e4e0d80$0401a8c0@MSIMMSWS> Message-ID: Mark, Thanks for the reply. It started me working on the problem. I hadn't much time in the past to look at it. The toolbar that came up with the sheet on her computer was looking for an old spreadsheet. I deleted the toolbar before I realized that I couldn't copy it back in. I wound up copying my Excel11.xlb file and replaced her's and now the toolbar works. She didn't have any custom toolbars in her file so it didn't replace anything she didn't already have. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Wednesday, April 21, 2010 4:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text format Access-->Excel Steve - there's a lot of things that could be happening: 1) macro security settings too high 2) worksheets are password protected 3) filters are on / lists are on 4) calculation mode is not set as expected 5) workbooks are hidden And so on, and so forth... It's not easy to program such a "freeform" environment. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Turner > Sent: Wednesday, April 21, 2010 4:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Text format Access-->Excel > > R. > That's what we love about Microsoft. Things don't always work > the same. > I have a cash worksheet with a custom tool bar I created with > 22 macros attached to it to do various things and my computer > is the only one it will work with. If my assistant opens the > sheet and tries to use the tool bar macro's it fails. Don't > understand why. > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > E-Mail: sturner at mseco.com and saturner at mseco.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, April 21, 2010 3:22 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Text format Access-->Excel > > Steve: > > That was my first try - I cribbed it from a macro I recorded. > But it didn't seem to work. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Turner > Sent: Wednesday, April 21, 2010 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Text format Access-->Excel > > Rocky > Try > Range(??).Select > Selection.NumberFormat = "@" > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > E-Mail: sturner at mseco.com and saturner at mseco.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, April 21, 2010 1:22 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Text format Access-->Excel > > Dear List: > > > > I'm trying to format a row in an excel spreadsheet as text > but can't seem to get the syntax right. It starts out > .Rows("5:5").NumberFormat but don't know what to set it equal > to. I tried "@" with no luck. > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sturner at mseco.com Fri Apr 23 13:28:41 2010 From: sturner at mseco.com (Steve Turner) Date: Fri, 23 Apr 2010 13:28:41 -0500 Subject: [AccessD] Text format Access-->Excel In-Reply-To: <66D9CA142291D741B515207C09AA3BC3396912@MAIL2.FLDOE.INT> References: <66D9CA142291D741B515207C09AA3BC3396912@MAIL2.FLDOE.INT> Message-ID: Sue, The macro's are stored in the workbook on a network drive. I found out that it was looking for an old copy of the spreadsheet instead of the current one. Deleted the toolbar before I realized I would have to rebuild it in her sheet. Excel stores the toolbars in an Excel11.xlb file so since she didn't have any custom toolbars I copied mine to her drive and it works fine now. What I probably would have had to do is relink all 22 macro's to the buttons I had set up. And add the buttons I had added since the old sheet because she didn't have all the buttons. Thanks for the help anyway. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Thursday, April 22, 2010 2:38 PM To: accessd at databaseadvisors.com Subject: [AccessD] Text format Access-->Excel Steve, where do you store your macros? They can be stored in the working workbook, a separate workbook or in the personal workbook. If stored in the personal workbook, others who want to use the macros on their machines will have to have the macros copied into their personal workbook or in a separate workbook they will need a copy of that workbook on their computers and the file name and pathway has to be the same. Sue Klos Senior Database Analyst FLDOE Susan.klos at fldoe.org Date: Wed, 21 Apr 2010 15:55:30 -0500 From: "Steve Turner" Subject: Re: [AccessD] Text format Access-->Excel To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" R. That's what we love about Microsoft. Things don't always work the same. I have a cash worksheet with a custom tool bar I created with 22 macros attached to it to do various things and my computer is the only one it will work with. If my assistant opens the sheet and tries to use the tool bar macro's it fails. Don't understand why. Steve A. Turner Controller Mid-South Engineering Co. Inc E-Mail: sturner at mseco.com and saturner at mseco.com Susan Klos Senior Database Analyst Florida Department of Education Evaluation and Reporting Office Phone: 850.245.0708 Fax: 850.245-0710 email: susan.klos at fldoe.org -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at cfl.rr.com Fri Apr 23 15:42:39 2010 From: pharold at cfl.rr.com (Perry Harold) Date: Fri, 23 Apr 2010 16:42:39 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> Message-ID: <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> If the first one is always shot it doesn't matter what position. When it gets down to only one standing if you start with the first that one is shot as well. Being in any other position would only prolong the angony. Perry ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Friday, April 23, 2010 11:03 AM Subject: Re: [AccessD] OT: Friday Puzzles > First round survivors: > > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 > 36,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,1 > 72,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,2 > 08,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,2 > 44,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,2 > 80,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,3 > 16,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,3 > 52,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,3 > 88,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,4 > 24,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,4 > 60,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,4 > 96,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,5 > 32,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,5 > 68,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,6 > 04,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,6 > 40,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,6 > 76,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,7 > 12,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,7 > 48,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,7 > 84,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,8 > 20,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,8 > 56,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,8 > 92,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,9 > 28,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,9 > 64,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,998,1 > 000 > > Second round survivors: > 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,10 > 0,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,17 > 2,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,24 > 4,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,31 > 6,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,38 > 8,392,396,400,404,408,412,416,420,424,428,432,436,440,444,448,452,456,46 > 0,464,468,472,476,480,484,488,492,496,500,504,508,512,516,520,524,528,53 > 2,536,540,544,548,552,556,560,564,568,572,576,580,584,588,592,596,600,60 > 4,608,612,616,620,624,628,632,636,640,644,648,652,656,660,664,668,672,67 > 6,680,684,688,692,696,700,704,708,712,716,720,724,728,732,736,740,744,74 > 8,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,812,816,82 > 0,824,828,832,836,840,844,848,852,856,860,864,868,872,876,880,884,888,89 > 2,896,900,904,908,912,916,920,924,928,932,936,940,944,948,952,956,960,96 > 4,968,972,976,980,984,988,992,996,1000 > 8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,1 > 76,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,3 > 20,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,4 > 64,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,6 > 08,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,7 > 52,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,8 > 96,904,912,920,928,936,944,952,960,968,976,984,992,1000 > > Third Round survivors: > 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272,288,304,32 > 0,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,60 > 8,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,89 > 6,912,928,944,960,976,992 > > Fourth Round survivors: > 32,64,96,128,160,192,224,256,288,320,352,384,416,448,480,512,544,576,608 > ,640,672,704,736,768,800,832,864,896,928,960,992 > > Fifth round Survivors: > 64,128,192,256,320,384,448,512,576,640,704,768,832,896,960 > > Sixth Round Survivors: > 128,256,384,512,640,768,896 > > Seventh Round Survivors: > 256,512,768 > > Final Survivor: > 512 > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, April 23, 2010 9:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > Well, ya know... when your numbers up!!!!!! > > Susan H. > > >> 1000, 500, 250, 125...oops! Dead. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Fri Apr 23 16:24:40 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 16:24:40 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> Message-ID: Actually, it said everyone was shot until it got down to one person. So if there were two people, the first person was shot, and the last person would then be the lone survivor. But if you look at the pattern, the 'safe' person, for each round is a power of 2. This makes sense, if you think about this problem in a binary fashion. You are getting rid of the first person, then every other person, which means every odd number. So let's take 64 people, the last person would be 00100000 and the first person would be 00000001, and every combination in between (except, the person in position 64 would be the only one with a 1 in the 64 column, and all zeros). By removing all the numbers, you are removing any number with a 1 in the 1's position. 'renumbering' them, in binary, is just removing the first digit (the 1's position). Ie, instead of 00100000 you would now have 0010000, and every combination in between 10000 and 00001. When you get to the second to last 'round', you will have one of two scenarios: 10 and 01 Or 11,10, and 01 Either way, 01 is gone (as the first person) and in the case of three numbers left, the third person is shot too (cause it's an odd number, when renumbered). So the surviving person, no matter how many there are, is the highest multiple of 2 without going over. Ie, the 64th person would survive in cases where you had 64 people to 127 people. 128th position would survive from 128 people to 255 people. 512th person would survive with 512 people to 1023 people, and so on. Boy, this was a fun riddle, still haven't heard if I was right on the second one! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold Sent: Friday, April 23, 2010 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles If the first one is always shot it doesn't matter what position. When it gets down to only one standing if you start with the first that one is shot as well. Being in any other position would only prolong the angony. Perry ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Friday, April 23, 2010 11:03 AM Subject: Re: [AccessD] OT: Friday Puzzles > First round survivors: > > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Fri Apr 23 16:57:21 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 17:57:21 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> Message-ID: <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 ==========Drew, can you GET any geekier??????????? ;) Susan H. From DWUTKA at Marlow.com Fri Apr 23 17:04:41 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 17:04:41 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> Message-ID: Yes... why? ;) Are you an anti-geekist? What if I can't go to the prom, cause I'm too geeky to get a date, shouldn't the ACLU come protect my rights here?!??! ;) (ok, took to the OT level..LOL) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 4:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 ==========Drew, can you GET any geekier??????????? ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Fri Apr 23 17:20:37 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 18:20:37 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne> Message-ID: <6D70C19D0903428F888C05BD8C91D28A@SusanOne> I'll take you to the prom, but you have to leave the laptop at home! ;) Susan H. > Yes... why? > > ;) > > Are you an anti-geekist? What if I can't go to the prom, cause I'm too > geeky to get a date, shouldn't the ACLU come protect my rights here?!??! > ;) (ok, took to the OT level..LOL) > From DWUTKA at Marlow.com Fri Apr 23 17:27:24 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 23 Apr 2010 17:27:24 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <6D70C19D0903428F888C05BD8C91D28A@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne> <6D70C19D0903428F888C05BD8C91D28A@SusanOne> Message-ID: Ah, you're a sweetie, and you'll have to frisk me to make sure I'm not bring a computer...heck, if that's the condition, everyone would have to leave their phones at home! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 5:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles I'll take you to the prom, but you have to leave the laptop at home! ;) Susan H. > Yes... why? > > ;) > > Are you an anti-geekist? What if I can't go to the prom, cause I'm too > geeky to get a date, shouldn't the ACLU come protect my rights here?!??! > ;) (ok, took to the OT level..LOL) > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From thewaddles at sbcglobal.net Fri Apr 23 20:32:27 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Fri, 23 Apr 2010 18:32:27 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: Message-ID: <003001cae34e$0040c740$00c255c0$@net> 70% get medals... I want to be #512 in the first line...And yes I did this in 3 minutes Sub FindLastMan() Call FindLastManStanding(1000) End Sub Sub FindLastManStanding(TotalCount As Variant) Dim i As Variant Dim x As Variant Dim lastRow As Variant Dim lastCol As Variant Dim col As Collection 'Fill Column A with Total Count For i = 1 To TotalCount Cells(i, 1).Value = i Next 'Determine Last Row and Last Column lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count Do While Cells(lastRow + 1, lastCol).End(xlUp).Row <> 1 'Odd Guys get shot Set col = New Collection lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count For Each i In Range(Cells(1, lastCol), Cells(lastRow + 1, lastCol).End(xlUp)) If IsOdd(i.Row) = False Then col.Add i.Value End If Next 'Populate next column with Even Guys For x = 1 To col.Count Cells(x, lastCol + 1).Value = col(x) Next Set col = Nothing Loop End Sub Function IsOdd(num As Variant) As Boolean If num Mod 2 = 1 Then IsOdd = True End If End Function Kevin Waddle thewaddles at sbcglobal.net It is necessary to rouse the heart to pray, otherwise it will become quite dry. The attributes of prayer must be: love of God, sincerity, and simplicity. --John of Kronstadt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 6:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Apr 23 21:06:12 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 23 Apr 2010 22:06:12 -0400 Subject: [AccessD] OT: Friday Puzzles References: <003001cae34e$0040c740$00c255c0$@net> Message-ID: <7607B4D29C77402190F9A0682D8D0AFF@SusanOne> > 70% get medals... =======That's what I thought too. Susan H. From andy at minstersystems.co.uk Sat Apr 24 02:40:34 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 24 Apr 2010 08:40:34 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> Message-ID: <788E84CAD0E14A86BD56732D0015FA79@MINSTER> Was "phone a friend" one of the options? Drew, let us have your cell for next time we go travelling to dangerous places. (I'm going to Utah soon - does that count?) Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 April 2010 22:57 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 ==========Drew, can you GET any geekier??????????? ;) Susan H. -- 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 Apr 24 04:13:36 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 24 Apr 2010 10:13:36 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <06458FEBD7924387914BFB788F78AE75@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <06458FEBD7924387914BFB788F78AE75@SusanOne> Message-ID: <317FD16AFA74466E8C2ECAC1C786E748@Server> Don't grovel too soon Susan, Drew was predicating his code on a false assumption. The question stated: You are one of 1000 people who shall be executed using the following.... There is NO survivor. It clearly states that YOU amongst others will be executed. You may WISH to be the survivor but you cannot because you are going to be executed. It states that in the first line. I often come across people who write code that does not do what was required but merely does what the programmer thinks is required.... How you doing Drew? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. -- 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 Apr 24 04:36:50 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 24 Apr 2010 10:36:50 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <003001cae34e$0040c740$00c255c0$@net> References: <003001cae34e$0040c740$00c255c0$@net> Message-ID: <2BCAD24EADCF4EAE800BE0969ECA73B1@Server> ..and having taken all that time you came up with the wrong answer... Sad.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 2:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles 70% get medals... I want to be #512 in the first line...And yes I did this in 3 minutes Sub FindLastMan() Call FindLastManStanding(1000) End Sub Sub FindLastManStanding(TotalCount As Variant) Dim i As Variant Dim x As Variant Dim lastRow As Variant Dim lastCol As Variant Dim col As Collection 'Fill Column A with Total Count For i = 1 To TotalCount Cells(i, 1).Value = i Next 'Determine Last Row and Last Column lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count Do While Cells(lastRow + 1, lastCol).End(xlUp).Row <> 1 'Odd Guys get shot Set col = New Collection lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count For Each i In Range(Cells(1, lastCol), Cells(lastRow + 1, lastCol).End(xlUp)) If IsOdd(i.Row) = False Then col.Add i.Value End If Next 'Populate next column with Even Guys For x = 1 To col.Count Cells(x, lastCol + 1).Value = col(x) Next Set col = Nothing Loop End Sub Function IsOdd(num As Variant) As Boolean If num Mod 2 = 1 Then IsOdd = True End If End Function Kevin Waddle thewaddles at sbcglobal.net It is necessary to rouse the heart to pray, otherwise it will become quite dry. The attributes of prayer must be: love of God, sincerity, and simplicity. --John of Kronstadt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 6:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat Apr 24 07:28:47 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 24 Apr 2010 16:28:47 +0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> Message-ID: <003a01cae3a9$b14ea560$6a01a8c0@nant> Thank you, Susan and Drew - your lovely chat (and Drew's original code) forced me to try to find a math based solution ;) - here it's (C#) (please corrent me if this solution will happen to be wrong): 1) Using lambda expressions: public static int GetSurvivorNumberUsingFunctionalProgramming(int arraySize) { Func survivorNumber = null; survivorNumber = (lineSize, power) => Math.Pow(2, power) > lineSize / 2 ? (int)Math.Pow(2, power) : survivorNumber(lineSize, power + 1); return survivorNumber(arraySize, 1); } 2) Using iteration: public static int GetSurvivorNumberUsingIteration(int arraySize) { int power = 0; while (Math.Pow(2, ++power) <= arraySize / 2) ; return (int)Math.Pow(2, power); } 3) Using recursion: public static int GetSurvivorNumberUsingRecursion(int arraySize) { return GetSurvivorNumberUsingRecursion(arraySize, 1); } public static int GetSurvivorNumberUsingRecursion(int arraySize, int power) { if (Math.Pow(2, power) > arraySize / 2) return (int)Math.Pow(2, power); return GetSurvivorNumberUsingRecursion(arraySize, power + 1); } One can make similar iterative and recursive coding solutions using VBA. Although C#'s/VB.NET's functional programming approach is more powerful/scalable as modern compilers can compile, build and "automagically" distribute execution of functional code blocks on several processor cores... Thank you Arthur for this puzzle - it forced me to start learning C# functional programming... --Shamil P.S. Here is how folks cancluate factorials using c# functional programming (look at the bottom of this topic as it has really simple recursive solution): http://blogs.msdn.com/madst/archive/2007/05/11/recursive-lambda-expressions. aspx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, April 24, 2010 1:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ==========Drew, can you GET any geekier??????????? ;) Susan H. -- From fuller.artful at gmail.com Sat Apr 24 08:26:41 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 24 Apr 2010 09:26:41 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <003a01cae3a9$b14ea560$6a01a8c0@nant> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005> <96758BC5571A49299161C8A80C920088@SusanOne> <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> <003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur From ssharkins at gmail.com Sat Apr 24 08:55:34 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 24 Apr 2010 09:55:34 -0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: <8ED2C4371B9647D3B0C16F1626738032@SusanOne> We still don't have an answer to that one, do we? Susan H. > It's also interesting that you all focused on the survivor problem. > Everyone > seems to have ignored the other one. From shamil at smsconsulting.spb.ru Sat Apr 24 10:29:38 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 24 Apr 2010 19:29:38 +0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: <003f01cae3c2$f4dbb340$6a01a8c0@nant> 8925 medals. Correct? x = size of the army y = qty of soldiers who have lost one arm, one leg, one ear and one eye; y = 0.85*(1-0.8)*0.75*0.7x Assuming that army size is between 100,000+ and 150,000 ( http://www.secondworldwar.co.uk/units.html http://usmilitary.about.com/od/army/l/blchancommand.htm ) the anwers would be foreach (int x in Enumerable.Range(100000,50001)) { decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; if (y == (decimal)(int)y) Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", x, (decimal)(int)y); } // SizeOfTheArmy=100,000+, Medals=8925 // SizeOfTheArmy=104,000+, Medals=9282 // SizeOfTheArmy=108,000+, Medals=9639 // SizeOfTheArmy=112,000+, Medals=9996 // SizeOfTheArmy=116,000+, Medals=10353 // SizeOfTheArmy=120,000+, Medals=10710 // SizeOfTheArmy=124,000+, Medals=11067 // SizeOfTheArmy=128,000+, Medals=11424 // SizeOfTheArmy=132,000+, Medals=11781 // SizeOfTheArmy=136,000+, Medals=12138 // SizeOfTheArmy=140,000+, Medals=12495 // SizeOfTheArmy=144,000+, Medals=12852 // SizeOfTheArmy=148,000+, Medals=13209 As we do not have the general's army size defined but we know that general wanted to reward teh fewest number of soldiers then we select the minimal appropriate army size = 100,000 soldiers, and then the answer will be 8925 medals. Correct? Thank you. --Shamil ??????? ????????????? ???? http://www.apn-spb.ru/opinions/article6850.htm .??? ??????, ??????? ????????: ????? ?????????? - ? ??????? ????? ??????... http://www.apn-spb.ru/opinions/article7197.htm http://www.apn-spb.ru/publications/article7223.htm Thank you, Susan and Drew - your lovely chat (and Drew's original code) forced me to try to find math based solution ;) - here it's (C#): 1) Using lambda expressions: public static int GetSurvivorNumberUsingFPS(int arraySize) { Func survivorNumber = null; survivorNumber = (lineSize, power) => Math.Pow(2, power) > lineSize / 2 ? (int)Math.Pow(2, power) : survivorNumber(lineSize, power + 1); return survivorNumber(arraySize, 1); } 2) Using iteration: public static int GetSurvivorNumberUsingIteration(int arraySize) { int power = 0; while (Math.Pow(2, ++power) <= arraySize / 2) ; return (int)Math.Pow(2, power); } 3) Using recursion: public static int GetSurvivorNumberUsingRecursion(int arraySize, int power) { if (Math.Pow(2, power) > arraySize / 2) return (int)Math.Pow(2, power); return GetSurvivorNumberUsingRecursion(arraySize, power + 1); } One can make similar iterative and recursive coding solutions using VBA. Although C#'s/VB.NET's functional programming approach is more powerful/scalable as modern compilers can compile, build and "automagically" distribute execution of functional code blocks on several processor cores... Thank you Arthur for this puzzle - it forced me to start learning C# functional programming... --Shamil This is a sample of what called lambda expressions ((recursive) functional programming) in C#/VB.NET. It is really powerfull (declarative) programming technique/approach. As one can imagine lambda expressions can be executed in parallel on several processor cores E:\DesignPatterns\VBA\Calculator.NET\VBNetCalculator\VBNetCalculator.sln C:\Documents and Settings\Administrator\Application Data\SMSConsulting\Access PowerTools 2 Power n a = arraySize n = step # (2>>n)*m where m = 1,2,..., a/2 while (2>>n) References: <003001cae34e$0040c740$00c255c0$@net> <2BCAD24EADCF4EAE800BE0969ECA73B1@Server> Message-ID: <007701cae3cc$3565d4a0$a0317de0$@net> Truly sad, being '... one of 1000 people who shall be executed..." But my answer would make me the LAST to be executed. I think I like your 'behind the gun' answer. Kevin Waddle thewaddles at sbcglobal.net Since God knows our future, our personalities, and our capacity to listen, He isn't every going to say more to us than we can deal with at the moment. ~ Charles Stanley -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, April 24, 2010 2:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles ..and having taken all that time you came up with the wrong answer... Sad.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 2:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles 70% get medals... I want to be #512 in the first line...And yes I did this in 3 minutes Sub FindLastMan() Call FindLastManStanding(1000) End Sub Sub FindLastManStanding(TotalCount As Variant) Dim i As Variant Dim x As Variant Dim lastRow As Variant Dim lastCol As Variant Dim col As Collection 'Fill Column A with Total Count For i = 1 To TotalCount Cells(i, 1).Value = i Next 'Determine Last Row and Last Column lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count Do While Cells(lastRow + 1, lastCol).End(xlUp).Row <> 1 'Odd Guys get shot Set col = New Collection lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count For Each i In Range(Cells(1, lastCol), Cells(lastRow + 1, lastCol).End(xlUp)) If IsOdd(i.Row) = False Then col.Add i.Value End If Next 'Populate next column with Even Guys For x = 1 To col.Count Cells(x, lastCol + 1).Value = col(x) Next Set col = Nothing Loop End Sub Function IsOdd(num As Variant) As Boolean If num Mod 2 = 1 Then IsOdd = True End If End Function Kevin Waddle thewaddles at sbcglobal.net It is necessary to rouse the heart to pray, otherwise it will become quite dry. The attributes of prayer must be: love of God, sincerity, and simplicity. --John of Kronstadt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 6:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Apr 24 11:49:08 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 24 Apr 2010 17:49:08 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <007701cae3cc$3565d4a0$a0317de0$@net> References: <003001cae34e$0040c740$00c255c0$@net><2BCAD24EADCF4EAE800BE0969ECA73B1@Server> <007701cae3cc$3565d4a0$a0317de0$@net> Message-ID: Nice one Kevin... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 5:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Truly sad, being '... one of 1000 people who shall be executed..." But my answer would make me the LAST to be executed. I think I like your 'behind the gun' answer. Kevin Waddle thewaddles at sbcglobal.net Since God knows our future, our personalities, and our capacity to listen, He isn't every going to say more to us than we can deal with at the moment. ~ Charles Stanley -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, April 24, 2010 2:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles ..and having taken all that time you came up with the wrong answer... Sad.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 2:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles 70% get medals... I want to be #512 in the first line...And yes I did this in 3 minutes Sub FindLastMan() Call FindLastManStanding(1000) End Sub Sub FindLastManStanding(TotalCount As Variant) Dim i As Variant Dim x As Variant Dim lastRow As Variant Dim lastCol As Variant Dim col As Collection 'Fill Column A with Total Count For i = 1 To TotalCount Cells(i, 1).Value = i Next 'Determine Last Row and Last Column lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count Do While Cells(lastRow + 1, lastCol).End(xlUp).Row <> 1 'Odd Guys get shot Set col = New Collection lastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count lastCol = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count For Each i In Range(Cells(1, lastCol), Cells(lastRow + 1, lastCol).End(xlUp)) If IsOdd(i.Row) = False Then col.Add i.Value End If Next 'Populate next column with Even Guys For x = 1 To col.Count Cells(x, lastCol + 1).Value = col(x) Next Set col = Nothing Loop End Sub Function IsOdd(num As Variant) As Boolean If num Mod 2 = 1 Then IsOdd = True End If End Function Kevin Waddle thewaddles at sbcglobal.net It is necessary to rouse the heart to pray, otherwise it will become quite dry. The attributes of prayer must be: love of God, sincerity, and simplicity. --John of Kronstadt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 23, 2010 6:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Friday Puzzles If you must have a Friday joke... "Don't make a fool of yourself. God beat you to it." Two puzzles for Friday. You are one of 1000 people who shall be executed using the following procedure. You are lined up single-file, shoulder to shoulder. Every other person will be shot, starting with the first. The survivors of that round will line up shoulder to shoulder, and the process repeated, until there is only one person left. Assuming that you wish to be the sole surivor, what position in the line would you choose? You have 3 minutes to decide. At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Apr 24 12:22:16 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 24 Apr 2010 21:22:16 +0400 Subject: [AccessD] OT: Friday Puzzles References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: <005301cae3d2$b0ee6050$6a01a8c0@nant> That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off till tomorrow's late evening/Monday). Thank you. --Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: Saturday, April 24, 2010 7:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Friday Puzzles 8925 medals. Correct? x = size of the army y = qty of soldiers who have lost one arm, one leg, one ear and one eye; y = 0.85*(1-0.8)*0.75*0.7x Assuming that army size is between 100,000+ and 150,000 ( http://www.secondworldwar.co.uk/units.html http://usmilitary.about.com/od/army/l/blchancommand.htm ) the anwers would be foreach (int x in Enumerable.Range(100000,50001)) { decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; if (y == (decimal)(int)y) Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", x, (decimal)(int)y); } // SizeOfTheArmy=100,000+, Medals=8925 // SizeOfTheArmy=104,000+, Medals=9282 // SizeOfTheArmy=108,000+, Medals=9639 // SizeOfTheArmy=112,000+, Medals=9996 // SizeOfTheArmy=116,000+, Medals=10353 // SizeOfTheArmy=120,000+, Medals=10710 // SizeOfTheArmy=124,000+, Medals=11067 // SizeOfTheArmy=128,000+, Medals=11424 // SizeOfTheArmy=132,000+, Medals=11781 // SizeOfTheArmy=136,000+, Medals=12138 // SizeOfTheArmy=140,000+, Medals=12495 // SizeOfTheArmy=144,000+, Medals=12852 // SizeOfTheArmy=148,000+, Medals=13209 As we do not have the general's army size defined but we know that general wanted to reward teh fewest number of soldiers then we select the minimal appropriate army size = 100,000 soldiers, and then the answer will be 8925 medals. Correct? Thank you. --Shamil <<< snip >>> From thewaddles at sbcglobal.net Sat Apr 24 13:23:39 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Sat, 24 Apr 2010 11:23:39 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <005301cae3d2$b0ee6050$6a01a8c0@nant> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> Message-ID: <000301cae3db$430192c0$c904b840$@net> OK... I would like to revise and extend my remarks... Assuming an army of 100, 10 lost all 4 70 lost an eye So 30 did NOT lose an eye 75 lost an ear So 25 did NOT lose an ear 80 lost an arm So 20 did NOT lose an arm 85 lost a leg So 15 did NOT lose an leg The soldiers that retained at least one of the body parts is 90 (30+25+20+15 = 90) meaning that 10 lost all 4. Kevin Waddle "The time has come," the Walrus said, "To talk of many things: Of shoes--and ships--and sealing-wax-- Of cabbages--and kings-- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, April 24, 2010 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off till tomorrow's late evening/Monday). Thank you. --Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: Saturday, April 24, 2010 7:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Friday Puzzles 8925 medals. Correct? x = size of the army y = qty of soldiers who have lost one arm, one leg, one ear and one eye; y = 0.85*(1-0.8)*0.75*0.7x Assuming that army size is between 100,000+ and 150,000 ( http://www.secondworldwar.co.uk/units.html http://usmilitary.about.com/od/army/l/blchancommand.htm ) the anwers would be foreach (int x in Enumerable.Range(100000,50001)) { decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; if (y == (decimal)(int)y) Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", x, (decimal)(int)y); } // SizeOfTheArmy=100,000+, Medals=8925 // SizeOfTheArmy=104,000+, Medals=9282 // SizeOfTheArmy=108,000+, Medals=9639 // SizeOfTheArmy=112,000+, Medals=9996 // SizeOfTheArmy=116,000+, Medals=10353 // SizeOfTheArmy=120,000+, Medals=10710 // SizeOfTheArmy=124,000+, Medals=11067 // SizeOfTheArmy=128,000+, Medals=11424 // SizeOfTheArmy=132,000+, Medals=11781 // SizeOfTheArmy=136,000+, Medals=12138 // SizeOfTheArmy=140,000+, Medals=12495 // SizeOfTheArmy=144,000+, Medals=12852 // SizeOfTheArmy=148,000+, Medals=13209 As we do not have the general's army size defined but we know that general wanted to reward teh fewest number of soldiers then we select the minimal appropriate army size = 100,000 soldiers, and then the answer will be 8925 medals. Correct? Thank you. --Shamil <<< snip >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Apr 24 18:32:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 24 Apr 2010 19:32:56 -0400 Subject: [AccessD] Hyper-V vs VMWare Message-ID: <4BD37FA8.8040708@colbyconsulting.com> Is anyone using Hyper-V? Comments, performance, comparisons? -- John W. Colby www.ColbyConsulting.com From wdhindman at dejpolsystems.com Sat Apr 24 21:05:51 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 24 Apr 2010 22:05:51 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000301cae3db$430192c0$c904b840$@net> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> Message-ID: <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> ...maybe :) ...this is a version of Lewis Carroll's original pensioner's puzzle ...and if Arthur had not changed the final question, 10 would be the correct answer ...but he did, as follows: "The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? ...if the query were what was the minimum % of soldiers who had lost all 4 body parts, the answer would be 10% ...but the query was "how many of his men had lost, at minimum, one eye, one ear, one arm and one leg" and that could be anywhere between 10% and 70% ...there is insufficient data to provide an answer to the query posited ...imnsho of course :) William -------------------------------------------------- From: "Kevin" Sent: Saturday, April 24, 2010 2:23 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > OK... > I would like to revise and extend my remarks... > Assuming an army of 100, 10 lost all 4 > > 70 lost an eye > So 30 did NOT lose an eye > 75 lost an ear > So 25 did NOT lose an ear > 80 lost an arm > So 20 did NOT lose an arm > 85 lost a leg > So 15 did NOT lose an leg > > The soldiers that retained at least one of the body parts is 90 > (30+25+20+15 > = 90) meaning that 10 lost all 4. > > Kevin Waddle > "The time has come," the Walrus said, > "To talk of many things: > Of shoes--and ships--and sealing-wax-- > Of cabbages--and kings-- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, April 24, 2010 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off > till tomorrow's late evening/Monday). > > Thank you. > > --Shamil > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] > Sent: Saturday, April 24, 2010 7:30 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: Friday Puzzles > > 8925 medals. > > Correct? > > x = size of the army > y = qty of soldiers who have lost one arm, one leg, one ear and one eye; > > y = 0.85*(1-0.8)*0.75*0.7x > > Assuming that army size is between 100,000+ and 150,000 > ( > http://www.secondworldwar.co.uk/units.html > http://usmilitary.about.com/od/army/l/blchancommand.htm > ) > > the anwers would be > > foreach (int x in Enumerable.Range(100000,50001)) > { > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; > > if (y == (decimal)(int)y) > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", > x, (decimal)(int)y); > } > > // SizeOfTheArmy=100,000+, Medals=8925 > // SizeOfTheArmy=104,000+, Medals=9282 > // SizeOfTheArmy=108,000+, Medals=9639 > // SizeOfTheArmy=112,000+, Medals=9996 > // SizeOfTheArmy=116,000+, Medals=10353 > // SizeOfTheArmy=120,000+, Medals=10710 > // SizeOfTheArmy=124,000+, Medals=11067 > // SizeOfTheArmy=128,000+, Medals=11424 > // SizeOfTheArmy=132,000+, Medals=11781 > // SizeOfTheArmy=136,000+, Medals=12138 > // SizeOfTheArmy=140,000+, Medals=12495 > // SizeOfTheArmy=144,000+, Medals=12852 > // SizeOfTheArmy=148,000+, Medals=13209 > > As we do not have the general's army size defined but we know that general > wanted to reward teh fewest number of soldiers then we select the minimal > appropriate army size = 100,000 soldiers, and then the answer will be 8925 > medals. > > Correct? > > Thank you. > > --Shamil > > <<< snip >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 24 21:21:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 24 Apr 2010 22:21:06 -0400 Subject: [AccessD] For the rest of us Message-ID: <4BD3A712.4080006@colbyconsulting.com> http://www.coolcomputing.com/article.php?sid=3861 http://www.newegg.com/Product/Product.aspx?Item=N82E16813131643 http://www.newegg.com/Product/Product.aspx?Item=N82E16819105267 24 cores for $2K plus memory. This might make my SQL Server a tad faster eh? Not that I have $2K laying around. Throw in 64 gigs of ram for around $3K and a Raid 0 Array of SSds to house my read-only databases (another $2K or so) and for the neighborhood of $8K I could get some serious computing done. Not that I have 8K laying around. This is some pretty serious hardware though, and not costing 50K either. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Apr 24 21:23:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 24 Apr 2010 22:23:59 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> Message-ID: <4BD3A7BF.109@colbyconsulting.com> Personally I think the general should be fired. Such carnage should be a war crime. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...maybe :) > > ...this is a version of Lewis Carroll's original pensioner's puzzle ...and > if Arthur had not changed the final question, 10 would be the correct answer > > ...but he did, as follows: > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and 70% > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > William > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 24, 2010 2:23 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> OK... >> I would like to revise and extend my remarks... >> Assuming an army of 100, 10 lost all 4 >> >> 70 lost an eye >> So 30 did NOT lose an eye >> 75 lost an ear >> So 25 did NOT lose an ear >> 80 lost an arm >> So 20 did NOT lose an arm >> 85 lost a leg >> So 15 did NOT lose an leg >> >> The soldiers that retained at least one of the body parts is 90 >> (30+25+20+15 >> = 90) meaning that 10 lost all 4. >> >> Kevin Waddle >> "The time has come," the Walrus said, >> "To talk of many things: >> Of shoes--and ships--and sealing-wax-- >> Of cabbages--and kings-- >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, April 24, 2010 10:22 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off >> till tomorrow's late evening/Monday). >> >> Thank you. >> >> --Shamil >> >> -----Original Message----- >> From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] >> Sent: Saturday, April 24, 2010 7:30 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] OT: Friday Puzzles >> >> 8925 medals. >> >> Correct? >> >> x = size of the army >> y = qty of soldiers who have lost one arm, one leg, one ear and one eye; >> >> y = 0.85*(1-0.8)*0.75*0.7x >> >> Assuming that army size is between 100,000+ and 150,000 >> ( >> http://www.secondworldwar.co.uk/units.html >> http://usmilitary.about.com/od/army/l/blchancommand.htm >> ) >> >> the anwers would be >> >> foreach (int x in Enumerable.Range(100000,50001)) >> { >> decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; >> >> if (y == (decimal)(int)y) >> Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", >> x, (decimal)(int)y); >> } >> >> // SizeOfTheArmy=100,000+, Medals=8925 >> // SizeOfTheArmy=104,000+, Medals=9282 >> // SizeOfTheArmy=108,000+, Medals=9639 >> // SizeOfTheArmy=112,000+, Medals=9996 >> // SizeOfTheArmy=116,000+, Medals=10353 >> // SizeOfTheArmy=120,000+, Medals=10710 >> // SizeOfTheArmy=124,000+, Medals=11067 >> // SizeOfTheArmy=128,000+, Medals=11424 >> // SizeOfTheArmy=132,000+, Medals=11781 >> // SizeOfTheArmy=136,000+, Medals=12138 >> // SizeOfTheArmy=140,000+, Medals=12495 >> // SizeOfTheArmy=144,000+, Medals=12852 >> // SizeOfTheArmy=148,000+, Medals=13209 >> >> As we do not have the general's army size defined but we know that general >> wanted to reward teh fewest number of soldiers then we select the minimal >> appropriate army size = 100,000 soldiers, and then the answer will be 8925 >> medals. >> >> Correct? >> >> Thank you. >> >> --Shamil >> >> <<< snip >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From thewaddles at sbcglobal.net Sat Apr 24 21:32:12 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Sat, 24 Apr 2010 19:32:12 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> Message-ID: <000c01cae41f$832130b0$89639210$@net> AND...having served 28 years (and counting) in the U.S. Military I believe that the answer is 0 medals. The medals would have been awarded to planners in DC that never deployed or to REMF's like me. Kevin Waddle thewaddles at sbcglobal.net Your talent is God's gift to you.? What you do with it is your gift back to God.? ~Leo Buscaglia -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, April 24, 2010 7:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ...maybe :) ...this is a version of Lewis Carroll's original pensioner's puzzle ...and if Arthur had not changed the final question, 10 would be the correct answer ...but he did, as follows: "The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? ...if the query were what was the minimum % of soldiers who had lost all 4 body parts, the answer would be 10% ...but the query was "how many of his men had lost, at minimum, one eye, one ear, one arm and one leg" and that could be anywhere between 10% and 70% ...there is insufficient data to provide an answer to the query posited ...imnsho of course :) William -------------------------------------------------- From: "Kevin" Sent: Saturday, April 24, 2010 2:23 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > OK... > I would like to revise and extend my remarks... > Assuming an army of 100, 10 lost all 4 > > 70 lost an eye > So 30 did NOT lose an eye > 75 lost an ear > So 25 did NOT lose an ear > 80 lost an arm > So 20 did NOT lose an arm > 85 lost a leg > So 15 did NOT lose an leg > > The soldiers that retained at least one of the body parts is 90 > (30+25+20+15 > = 90) meaning that 10 lost all 4. > > Kevin Waddle > "The time has come," the Walrus said, > "To talk of many things: > Of shoes--and ships--and sealing-wax-- > Of cabbages--and kings-- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, April 24, 2010 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off > till tomorrow's late evening/Monday). > > Thank you. > > --Shamil > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] > Sent: Saturday, April 24, 2010 7:30 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: Friday Puzzles > > 8925 medals. > > Correct? > > x = size of the army > y = qty of soldiers who have lost one arm, one leg, one ear and one eye; > > y = 0.85*(1-0.8)*0.75*0.7x > > Assuming that army size is between 100,000+ and 150,000 > ( > http://www.secondworldwar.co.uk/units.html > http://usmilitary.about.com/od/army/l/blchancommand.htm > ) > > the anwers would be > > foreach (int x in Enumerable.Range(100000,50001)) > { > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; > > if (y == (decimal)(int)y) > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", > x, (decimal)(int)y); > } > > // SizeOfTheArmy=100,000+, Medals=8925 > // SizeOfTheArmy=104,000+, Medals=9282 > // SizeOfTheArmy=108,000+, Medals=9639 > // SizeOfTheArmy=112,000+, Medals=9996 > // SizeOfTheArmy=116,000+, Medals=10353 > // SizeOfTheArmy=120,000+, Medals=10710 > // SizeOfTheArmy=124,000+, Medals=11067 > // SizeOfTheArmy=128,000+, Medals=11424 > // SizeOfTheArmy=132,000+, Medals=11781 > // SizeOfTheArmy=136,000+, Medals=12138 > // SizeOfTheArmy=140,000+, Medals=12495 > // SizeOfTheArmy=144,000+, Medals=12852 > // SizeOfTheArmy=148,000+, Medals=13209 > > As we do not have the general's army size defined but we know that general > wanted to reward teh fewest number of soldiers then we select the minimal > appropriate army size = 100,000 soldiers, and then the answer will be 8925 > medals. > > Correct? > > Thank you. > > --Shamil > > <<< snip >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sun Apr 25 00:52:13 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 25 Apr 2010 06:52:13 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000c01cae41f$832130b0$89639210$@net> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> <000c01cae41f$832130b0$89639210$@net> Message-ID: <33B819B207004F4BBFD37F7493E539E9@Server> I say 55% of whatever value is applied. Max "The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? ...if the query were what was the minimum % of soldiers who had lost all 4 body parts, the answer would be 10% ...but the query was "how many of his men had lost, at minimum, one eye, one ear, one arm and one leg" and that could be anywhere between 10% and 70% ...there is insufficient data to provide an answer to the query posited ...imnsho of course :) William From marklbreen at gmail.com Sun Apr 25 06:07:39 2010 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 25 Apr 2010 12:07:39 +0100 Subject: [AccessD] [dba-SQLServer] Hyper-V vs VMWare In-Reply-To: <4BD37FA8.8040708@colbyconsulting.com> References: <4BD37FA8.8040708@colbyconsulting.com> Message-ID: Hello john, Using HyperV for a year now and not a single complaint, I have to say that trying to run Win7 and run VS2008 does not get a bare metal experience, but it is absolutely for running servers, and I even use it running Win7 and with PhotoShop. Never managed to get VM ware installed or running, but they only say good things about it HTH Mark On 25 April 2010 00:32, jwcolby wrote: > Is anyone using Hyper-V? Comments, performance, comparisons? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From DWUTKA at Marlow.com Sun Apr 25 11:32:27 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 25 Apr 2010 11:32:27 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <788E84CAD0E14A86BD56732D0015FA79@MINSTER> References: <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> <788E84CAD0E14A86BD56732D0015FA79@MINSTER> Message-ID: I don't know, if you believe in golden tablets, it could be dangerous for you... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Saturday, April 24, 2010 2:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Was "phone a friend" one of the options? Drew, let us have your cell for next time we go travelling to dangerous places. (I'm going to Utah soon - does that count?) Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 April 2010 22:57 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 ==========Drew, can you GET any geekier??????????? ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Sun Apr 25 11:33:19 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 25 Apr 2010 11:33:19 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Sun Apr 25 12:33:04 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 25 Apr 2010 18:33:04 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> Message-ID: <6F90B25394A743CF8B1F61B404F20D70@Server> Me too and the only one with the correct answer!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Sunday, April 25, 2010 5:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Apr 25 12:35:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 25 Apr 2010 13:35:41 -0400 Subject: [AccessD] [dba-SQLServer] Hyper-V vs VMWare In-Reply-To: References: <4BD37FA8.8040708@colbyconsulting.com> Message-ID: <4BD47D6D.4050807@colbyconsulting.com> I run the free VMWare server on Windows 2003 and three VMs running 2003. It works well except that the software I run in the VMs somehow starts slowing down the VMs and eventually that slows down the VMWare server as well. It has gotten to the point where rebooting the server was the only way to get it back. All in all it has been just fine though. Does the Windows VM allow seeing a disk volume on the server? I use a SSD on the server, split it into volumes and assign one volume to each VM. This is used to hold a read-only database of postal information. Using the SSD makes the software running in the VM about 3 times faster than trying to do the same with the postal database contained directly in the VM's drive. John W. Colby www.ColbyConsulting.com Mark Breen wrote: > Hello john, > > Using HyperV for a year now and not a single complaint, > > I have to say that trying to run Win7 and run VS2008 does not get a bare > metal experience, but it is absolutely for running servers, and I even use > it running Win7 and with PhotoShop. > > Never managed to get VM ware installed or running, but they only say good > things about it > > HTH > > Mark > > > > On 25 April 2010 00:32, jwcolby wrote: > >> Is anyone using Hyper-V? Comments, performance, comparisons? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> From mwp.reid at qub.ac.uk Sun Apr 25 13:20:28 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 25 Apr 2010 19:20:28 +0100 Subject: [AccessD] [dba-SQLServer] Hyper-V vs VMWare In-Reply-To: <4BD47D6D.4050807@colbyconsulting.com> References: <4BD37FA8.8040708@colbyconsulting.com> , <4BD47D6D.4050807@colbyconsulting.com> Message-ID: <631CF83223105545BF43EFB52CB08295469D2B468B@EX2K7-VIRT-2.ads.qub.ac.uk> John We are running a lot of stuff on Hyper V with no problems at all. Mostly Windows 2003 servers and some SQL stuff. Long as you have tons of RAM your Ok. Martin Martin WP Reid Information Services The McClay Library Queen's University of Belfast 10 College Park Belfast BT7 1LP Tel : 02890976174 Email : mwp.reid at qub.ac.uk Sharepoint Training Portal ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: 25 April 2010 18:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-SQLServer] Hyper-V vs VMWare I run the free VMWare server on Windows 2003 and three VMs running 2003. It works well except that the software I run in the VMs somehow starts slowing down the VMs and eventually that slows down the VMWare server as well. It has gotten to the point where rebooting the server was the only way to get it back. All in all it has been just fine though. Does the Windows VM allow seeing a disk volume on the server? I use a SSD on the server, split it into volumes and assign one volume to each VM. This is used to hold a read-only database of postal information. Using the SSD makes the software running in the VM about 3 times faster than trying to do the same with the postal database contained directly in the VM's drive. John W. Colby www.ColbyConsulting.com Mark Breen wrote: > Hello john, > > Using HyperV for a year now and not a single complaint, > > I have to say that trying to run Win7 and run VS2008 does not get a bare > metal experience, but it is absolutely for running servers, and I even use > it running Win7 and with PhotoShop. > > Never managed to get VM ware installed or running, but they only say good > things about it > > HTH > > Mark > > > > On 25 April 2010 00:32, jwcolby wrote: > >> Is anyone using Hyper-V? Comments, performance, comparisons? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> 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 Sun Apr 25 13:51:34 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 25 Apr 2010 22:51:34 +0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <6F90B25394A743CF8B1F61B404F20D70@Server> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <6F90B25394A743CF8B1F61B404F20D70@Server> Message-ID: <000001cae4a8$54e7b370$6a01a8c0@nant> BTW, the answer for the fist puzzle is as straightforward as this code (C#): public static int GetSurvivorNumber(int lineSize) { return (int)Math.Pow(2, (int)Math.Log(lineSize / 2, 2) + 1); } Got it last night "out of nowhere"... Of course Drew's original "brute force" solution was a 'must have' step to get to the above 'lightweight' answer... Or one have to get studied in the modern computer science colleges where they are taught to "crack" such puzzles in seconds... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, April 25, 2010 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Me too and the only one with the correct answer!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Sunday, April 25, 2010 5:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd From max.wanadoo at gmail.com Sun Apr 25 13:57:28 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 25 Apr 2010 19:57:28 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000001cae4a8$54e7b370$6a01a8c0@nant> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant><6F90B25394A743CF8B1F61B404F20D70@Server> <000001cae4a8$54e7b370$6a01a8c0@nant> Message-ID: <161A6EA4B5B8405E93F41BD90B233069@Server> All you need to do is take the "power" value less than or equal to the greatest number. Ie, 512 because the next "power" number is 1024 which is too great. So, 2,4,8,16,32,64,128,256,stop Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, April 25, 2010 7:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles BTW, the answer for the fist puzzle is as straightforward as this code (C#): public static int GetSurvivorNumber(int lineSize) { return (int)Math.Pow(2, (int)Math.Log(lineSize / 2, 2) + 1); } Got it last night "out of nowhere"... Of course Drew's original "brute force" solution was a 'must have' step to get to the above 'lightweight' answer... Or one have to get studied in the modern computer science colleges where they are taught to "crack" such puzzles in seconds... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, April 25, 2010 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Me too and the only one with the correct answer!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Sunday, April 25, 2010 5:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sun Apr 25 14:05:52 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 25 Apr 2010 23:05:52 +0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000301cae3db$430192c0$c904b840$@net> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> Message-ID: <000701cae4aa$54eb23f0$6a01a8c0@nant> Yes, 10%, I see now. Thank you. --Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 10:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles OK... I would like to revise and extend my remarks... Assuming an army of 100, 10 lost all 4 70 lost an eye So 30 did NOT lose an eye 75 lost an ear So 25 did NOT lose an ear 80 lost an arm So 20 did NOT lose an arm 85 lost a leg So 15 did NOT lose an leg The soldiers that retained at least one of the body parts is 90 (30+25+20+15 = 90) meaning that 10 lost all 4. Kevin Waddle "The time has come," the Walrus said, "To talk of many things: Of shoes--and ships--and sealing-wax-- Of cabbages--and kings-- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, April 24, 2010 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off till tomorrow's late evening/Monday). Thank you. --Shamil <<< snip >>> From shamil at smsconsulting.spb.ru Sun Apr 25 14:09:00 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 25 Apr 2010 23:09:00 +0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <161A6EA4B5B8405E93F41BD90B233069@Server> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant><6F90B25394A743CF8B1F61B404F20D70@Server><000001cae4a8$54e7b370$6a01a8c0@nant> <161A6EA4B5B8405E93F41BD90B233069@Server> Message-ID: <000801cae4aa$c490aef0$6a01a8c0@nant> Yes. --Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, April 25, 2010 10:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles All you need to do is take the "power" value less than or equal to the greatest number. Ie, 512 because the next "power" number is 1024 which is too great. So, 2,4,8,16,32,64,128,256,stop Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, April 25, 2010 7:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles BTW, the answer for the fist puzzle is as straightforward as this code (C#): public static int GetSurvivorNumber(int lineSize) { return (int)Math.Pow(2, (int)Math.Log(lineSize / 2, 2) + 1); } Got it last night "out of nowhere"... Of course Drew's original "brute force" solution was a 'must have' step to get to the above 'lightweight' answer... Or one have to get studied in the modern computer science colleges where they are taught to "crack" such puzzles in seconds... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, April 25, 2010 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Me too and the only one with the correct answer!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Sunday, April 25, 2010 5:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Apr 25 14:27:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 25 Apr 2010 12:27:31 -0700 Subject: [AccessD] Database Needs Password Protection Message-ID: Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From dbdoug at gmail.com Sun Apr 25 14:53:15 2010 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 25 Apr 2010 12:53:15 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Hi Rocky: In my FE/BE setups, the FE always rebuilds the links to the BE(s) when it loads. The linking code provides the BE password once per table, as it builds a tabledef and adds it to the FE tabledefs. After that, I use 'Currentdb' as normal. Doug On Sun, Apr 25, 2010 at 12:27 PM, Rocky Smolin wrote: > Dear List: > > In my manufacturing software users log in with a password that gives them > 1) > read only, 2) read write, 3) administrator access. But the back end is > wide > open. So far this has not been a problem. Everywhere the system is > installed people 'play by the rules'. > > Now comes a client who wants access to the back end restricted. So I'm > trying to think of way to do that with the least disruption to the system > which BTW supports multiple back ends - the user can open a different back > end through an 'Open a Database' utility. > > In the code, of course, I'd have to change all occurrence of > > set db = CurrentDb to > > Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) > > > where the password would be in gstrPWD. > > Then I would have to add a utility accessible only by someone with admin > rights, to 1) set, 2) remove, and 3) change the password on the currently > linked back end. Don't know what that code looks like but I suppose I can > figure it out. > > Question is - is this the shortest distance between the two points? Or is > there another approach which would be faster/better/easier? > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From tinanfields at torchlake.com Sun Apr 25 16:21:29 2010 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 25 Apr 2010 17:21:29 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> Message-ID: <4BD4B259.5030401@torchlake.com> I'd just like to be number 2 in each round. T Drew Wutka wrote: > Actually, it said everyone was shot until it got down to one person. So > if there were two people, the first person was shot, and the last person > would then be the lone survivor. > > But if you look at the pattern, the 'safe' person, for each round is a > power of 2. This makes sense, if you think about this problem in a > binary fashion. > > You are getting rid of the first person, then every other person, which > means every odd number. > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 > > Either way, 01 is gone (as the first person) and in the case of three > numbers left, the third person is shot too (cause it's an odd number, > when renumbered). > > So the surviving person, no matter how many there are, is the highest > multiple of 2 without going over. > > Ie, the 64th person would survive in cases where you had 64 people to > 127 people. 128th position would survive from 128 people to 255 people. > 512th person would survive with 512 people to 1023 people, and so on. > > Boy, this was a fun riddle, still haven't heard if I was right on the > second one! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold > Sent: Friday, April 23, 2010 3:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > If the first one is always shot it doesn't matter what position. When > it > gets down to only one standing if you start with the first that one is > shot > as well. Being in any other position would only prolong the angony. > > Perry > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 23, 2010 11:03 AM > Subject: Re: [AccessD] OT: Friday Puzzles > > > >> First round survivors: >> >> >> > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > From wdhindman at dejpolsystems.com Sun Apr 25 21:09:30 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 25 Apr 2010 22:09:30 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <33B819B207004F4BBFD37F7493E539E9@Server> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net> <33B819B207004F4BBFD37F7493E539E9@Server> Message-ID: <541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> ...did you wipe that carefully after extracting it? :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Sunday, April 25, 2010 1:52 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > > > I say 55% of whatever value is applied. > > Max > > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers > should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and > 70% > > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Apr 25 21:59:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 25 Apr 2010 22:59:31 -0400 Subject: [AccessD] Who needs a Cray Message-ID: <4BD50193.9090603@colbyconsulting.com> 48 cores, 128 gigs ram... http://cgi.ebay.com/NEW-TYAN-AMD-OPTERON-6174-G34-48-CORE-MAGNY-COURS-/270529337772 -- John W. Colby www.ColbyConsulting.com From wdhindman at dejpolsystems.com Sun Apr 25 22:10:53 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 25 Apr 2010 23:10:53 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000c01cae41f$832130b0$89639210$@net> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> <000c01cae41f$832130b0$89639210$@net> Message-ID: <788E29E6905448789C07BACAF497C560@jislaptopdev> ...lol ...been a long time since I've heard "REMF" used in a sentence :) William -------------------------------------------------- From: "Kevin" Sent: Saturday, April 24, 2010 10:32 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > AND...having served 28 years (and counting) in the U.S. Military I believe > that the answer is 0 medals. > The medals would have been awarded to planners in DC that never deployed > or > to REMF's like me. > > Kevin Waddle > > thewaddles at sbcglobal.net > Your talent is God's gift to you. What you do with it is your gift back > to > God. ~Leo Buscaglia > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, April 24, 2010 7:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > ...maybe :) > > ...this is a version of Lewis Carroll's original pensioner's puzzle ...and > if Arthur had not changed the final question, 10 would be the correct > answer > > ...but he did, as follows: > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers > should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and > 70% > > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > William > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 24, 2010 2:23 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> OK... >> I would like to revise and extend my remarks... >> Assuming an army of 100, 10 lost all 4 >> >> 70 lost an eye >> So 30 did NOT lose an eye >> 75 lost an ear >> So 25 did NOT lose an ear >> 80 lost an arm >> So 20 did NOT lose an arm >> 85 lost a leg >> So 15 did NOT lose an leg >> >> The soldiers that retained at least one of the body parts is 90 >> (30+25+20+15 >> = 90) meaning that 10 lost all 4. >> >> Kevin Waddle >> "The time has come," the Walrus said, >> "To talk of many things: >> Of shoes--and ships--and sealing-wax-- >> Of cabbages--and kings-- >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, April 24, 2010 10:22 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off >> till tomorrow's late evening/Monday). >> >> Thank you. >> >> --Shamil >> >> -----Original Message----- >> From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] >> Sent: Saturday, April 24, 2010 7:30 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] OT: Friday Puzzles >> >> 8925 medals. >> >> Correct? >> >> x = size of the army >> y = qty of soldiers who have lost one arm, one leg, one ear and one eye; >> >> y = 0.85*(1-0.8)*0.75*0.7x >> >> Assuming that army size is between 100,000+ and 150,000 >> ( >> http://www.secondworldwar.co.uk/units.html >> http://usmilitary.about.com/od/army/l/blchancommand.htm >> ) >> >> the anwers would be >> >> foreach (int x in Enumerable.Range(100000,50001)) >> { >> decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; >> >> if (y == (decimal)(int)y) >> Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", >> x, (decimal)(int)y); >> } >> >> // SizeOfTheArmy=100,000+, Medals=8925 >> // SizeOfTheArmy=104,000+, Medals=9282 >> // SizeOfTheArmy=108,000+, Medals=9639 >> // SizeOfTheArmy=112,000+, Medals=9996 >> // SizeOfTheArmy=116,000+, Medals=10353 >> // SizeOfTheArmy=120,000+, Medals=10710 >> // SizeOfTheArmy=124,000+, Medals=11067 >> // SizeOfTheArmy=128,000+, Medals=11424 >> // SizeOfTheArmy=132,000+, Medals=11781 >> // SizeOfTheArmy=136,000+, Medals=12138 >> // SizeOfTheArmy=140,000+, Medals=12495 >> // SizeOfTheArmy=144,000+, Medals=12852 >> // SizeOfTheArmy=148,000+, Medals=13209 >> >> As we do not have the general's army size defined but we know that >> general >> wanted to reward teh fewest number of soldiers then we select the minimal >> appropriate army size = 100,000 soldiers, and then the answer will be >> 8925 >> medals. >> >> Correct? >> >> Thank you. >> >> --Shamil >> >> <<< snip >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 01:59:16 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 26 Apr 2010 07:59:16 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server> <541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> Message-ID: No need. Clean as a whistle. Min # with all 4 is 1. Max # with all 4 is 75 Max # with diff(least + most) is 55 QED Just suffle these up and down the line and you will see. X=injury 0 = no injury. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx0000000000 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx0000000000 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, April 26, 2010 3:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ...did you wipe that carefully after extracting it? :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Sunday, April 25, 2010 1:52 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > > > I say 55% of whatever value is applied. > > Max > > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers > should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and > 70% > > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > 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 thewaddles at sbcglobal.net Mon Apr 26 02:34:58 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Mon, 26 Apr 2010 00:34:58 -0700 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <788E29E6905448789C07BACAF497C560@jislaptopdev> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> <000c01cae41f$832130b0$89639210$@net> <788E29E6905448789C07BACAF497C560@jislaptopdev> Message-ID: <000f01cae512$fa26cfa0$ee746ee0$@net> As an Air Force guy I'm proud of the title! As well as Trash Hauler! Kevin Waddle thewaddles at sbcglobal.net Is prayer your steering wheel or your spare tire?-- Corrie Ten Boom -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, April 25, 2010 8:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles ...lol ...been a long time since I've heard "REMF" used in a sentence :) William -------------------------------------------------- From: "Kevin" Sent: Saturday, April 24, 2010 10:32 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > AND...having served 28 years (and counting) in the U.S. Military I believe > that the answer is 0 medals. > The medals would have been awarded to planners in DC that never deployed > or > to REMF's like me. > > Kevin Waddle > > thewaddles at sbcglobal.net > Your talent is God's gift to you. What you do with it is your gift back > to > God. ~Leo Buscaglia > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, April 24, 2010 7:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > ...maybe :) > > ...this is a version of Lewis Carroll's original pensioner's puzzle ...and > if Arthur had not changed the final question, 10 would be the correct > answer > > ...but he did, as follows: > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers > should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and > 70% > > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > William > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 24, 2010 2:23 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> OK... >> I would like to revise and extend my remarks... >> Assuming an army of 100, 10 lost all 4 >> >> 70 lost an eye >> So 30 did NOT lose an eye >> 75 lost an ear >> So 25 did NOT lose an ear >> 80 lost an arm >> So 20 did NOT lose an arm >> 85 lost a leg >> So 15 did NOT lose an leg >> >> The soldiers that retained at least one of the body parts is 90 >> (30+25+20+15 >> = 90) meaning that 10 lost all 4. >> >> Kevin Waddle >> "The time has come," the Walrus said, >> "To talk of many things: >> Of shoes--and ships--and sealing-wax-- >> Of cabbages--and kings-- >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, April 24, 2010 10:22 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off >> till tomorrow's late evening/Monday). >> >> Thank you. >> >> --Shamil >> >> -----Original Message----- >> From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] >> Sent: Saturday, April 24, 2010 7:30 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] OT: Friday Puzzles >> >> 8925 medals. >> >> Correct? >> >> x = size of the army >> y = qty of soldiers who have lost one arm, one leg, one ear and one eye; >> >> y = 0.85*(1-0.8)*0.75*0.7x >> >> Assuming that army size is between 100,000+ and 150,000 >> ( >> http://www.secondworldwar.co.uk/units.html >> http://usmilitary.about.com/od/army/l/blchancommand.htm >> ) >> >> the anwers would be >> >> foreach (int x in Enumerable.Range(100000,50001)) >> { >> decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; >> >> if (y == (decimal)(int)y) >> Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", >> x, (decimal)(int)y); >> } >> >> // SizeOfTheArmy=100,000+, Medals=8925 >> // SizeOfTheArmy=104,000+, Medals=9282 >> // SizeOfTheArmy=108,000+, Medals=9639 >> // SizeOfTheArmy=112,000+, Medals=9996 >> // SizeOfTheArmy=116,000+, Medals=10353 >> // SizeOfTheArmy=120,000+, Medals=10710 >> // SizeOfTheArmy=124,000+, Medals=11067 >> // SizeOfTheArmy=128,000+, Medals=11424 >> // SizeOfTheArmy=132,000+, Medals=11781 >> // SizeOfTheArmy=136,000+, Medals=12138 >> // SizeOfTheArmy=140,000+, Medals=12495 >> // SizeOfTheArmy=144,000+, Medals=12852 >> // SizeOfTheArmy=148,000+, Medals=13209 >> >> As we do not have the general's army size defined but we know that >> general >> wanted to reward teh fewest number of soldiers then we select the minimal >> appropriate army size = 100,000 soldiers, and then the answer will be >> 8925 >> medals. >> >> Correct? >> >> Thank you. >> >> --Shamil >> >> <<< snip >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Apr 26 08:17:19 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 26 Apr 2010 08:17:19 -0500 Subject: [AccessD] Senior Database Administrator Position Open Near Minneapolis Message-ID: <28F74763E7564A60A68CB84EFA40C216@danwaters> I ran across this position opening today. This is for Donaldson Company in Bloomington, MN. They are a 10,000 person company, with approximately 1000 people in Bloomington at the company's headquarters. The position description is quite long - looks like it's focused mostly on Oracle, but SQL Server experience is desirable. http://www.donaldson.com/en/about/employment/index.html Good Luck! Dan From Lambert.Heenan at chartisinsurance.com Mon Apr 26 08:17:55 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 26 Apr 2010 09:17:55 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Rocky, What kind of restrictions do they want? If they simply want to prevent users from getting into the folder that holds the backend files then you can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line of code needed. You'll need cooperation from the client's network people but... First thing you want is a windows user group into which all the users are added. This makes it much simpler when applying permissions to folders. So. First make a folder on the server say 'Databases' Next create a subfolder called 'Backends'. Third create a subfolder in Backends which you can call 'Data'. Now modify the permissions on 'Databases' granting the user group modify permissions and apply the permissions to the folder and all sub-folders. Also make sure that an administrator's ID and or the Database administrator's ID is granted full control of the folder tree. Now you need to modify the permissions on the 'Backends' folder. Open the properties sheet for the folder and select the 'Security' tab. Click the 'Advanced' button. Select the user group in the permissions listing, and click 'Edit'. In the resulting dialog box clear the check boxes for 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most importantly) 'Delete Subfolders and Files'. Click OK and OK. The end result is that the user in the user group have modify permissions to the 'Data' folder , and that is where all the backends would reside, in their own sub-folders if desired. However, the users will only be able to look inside the folder 'Databases' where they will see that there is a folder called 'Data' inside it, but they will not be able to browse into 'Data' nor delete it. Is that sufficiently restricted access? HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Mon Apr 26 08:25:23 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 06:25:23 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 6:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Rocky, What kind of restrictions do they want? If they simply want to prevent users from getting into the folder that holds the backend files then you can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line of code needed. You'll need cooperation from the client's network people but... First thing you want is a windows user group into which all the users are added. This makes it much simpler when applying permissions to folders. So. First make a folder on the server say 'Databases' Next create a subfolder called 'Backends'. Third create a subfolder in Backends which you can call 'Data'. Now modify the permissions on 'Databases' granting the user group modify permissions and apply the permissions to the folder and all sub-folders. Also make sure that an administrator's ID and or the Database administrator's ID is granted full control of the folder tree. Now you need to modify the permissions on the 'Backends' folder. Open the properties sheet for the folder and select the 'Security' tab. Click the 'Advanced' button. Select the user group in the permissions listing, and click 'Edit'. In the resulting dialog box clear the check boxes for 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most importantly) 'Delete Subfolders and Files'. Click OK and OK. The end result is that the user in the user group have modify permissions to the 'Data' folder , and that is where all the backends would reside, in their own sub-folders if desired. However, the users will only be able to look inside the folder 'Databases' where they will see that there is a folder called 'Data' inside it, but they will not be able to browse into 'Data' nor delete it. Is that sufficiently restricted access? HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Apr 26 08:27:42 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 26 Apr 2010 08:27:42 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <109A3DC084304AA7BDC36F91F8034CAB@danwaters> Hi Rocky, I think that you could: 1) Create a new blank workgroup file (a copy of System.mdw). Give it a unique name (BTWBE.mdw). 2) Join each BE file to BTWBE.mdw. 3) Create a new user name and password for your client. 4) If you want a little more security, create a procedure that shuts down the BE if CurrentUser = "Admin". Run that procedure from an AutoExec in the BE file. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From fuller.artful at gmail.com Mon Apr 26 08:35:24 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 26 Apr 2010 09:35:24 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> References: <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> <909229D82D4A49B088CDC8D2868D0BA2@SusanOne> <003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> <211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> Message-ID: That's exactly what the query was, William. "The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg." A. On Sat, Apr 24, 2010 at 10:05 PM, William Hindman < wdhindman at dejpolsystems.com> wrote: > ...maybe :) > > ...this is a version of Lewis Carroll's original pensioner's puzzle ...and > if Arthur had not changed the final question, 10 would be the correct > answer > > ...but he did, as follows: > > "The general wants to know how many of his men had lost, at minimum, one > eye, > one ear, one arm and one leg. He is stingy with the medals so he wants to > reward the fewest number of soldiers. What percentage of the soldiers > should > receive medals? > > ...if the query were what was the minimum % of soldiers who had lost all 4 > body parts, the answer would be 10% > > ...but the query was "how many of his men had lost, at minimum, one eye, > one ear, one arm and one leg" and that could be anywhere between 10% and > 70% > ...there is insufficient data to provide an answer to the query posited > ...imnsho of course :) > > William > > -------------------------------------------------- > From: "Kevin" > Sent: Saturday, April 24, 2010 2:23 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > > > OK... > > I would like to revise and extend my remarks... > > Assuming an army of 100, 10 lost all 4 > > > > 70 lost an eye > > So 30 did NOT lose an eye > > 75 lost an ear > > So 25 did NOT lose an ear > > 80 lost an arm > > So 20 did NOT lose an arm > > 85 lost a leg > > So 15 did NOT lose an leg > > > > The soldiers that retained at least one of the body parts is 90 > > (30+25+20+15 > > = 90) meaning that 10 lost all 4. > > > > Kevin Waddle > > "The time has come," the Walrus said, > > "To talk of many things: > > Of shoes--and ships--and sealing-wax-- > > Of cabbages--and kings-- > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov > > Sent: Saturday, April 24, 2010 10:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Friday Puzzles > > > > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off > > till tomorrow's late evening/Monday). > > > > Thank you. > > > > --Shamil > > > > -----Original Message----- > > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] > > Sent: Saturday, April 24, 2010 7:30 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] OT: Friday Puzzles > > > > 8925 medals. > > > > Correct? > > > > x = size of the army > > y = qty of soldiers who have lost one arm, one leg, one ear and one eye; > > > > y = 0.85*(1-0.8)*0.75*0.7x > > > > Assuming that army size is between 100,000+ and 150,000 > > ( > > http://www.secondworldwar.co.uk/units.html > > http://usmilitary.about.com/od/army/l/blchancommand.htm > > ) > > > > the anwers would be > > > > foreach (int x in Enumerable.Range(100000,50001)) > > { > > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; > > > > if (y == (decimal)(int)y) > > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", > > x, (decimal)(int)y); > > } > > > > // SizeOfTheArmy=100,000+, Medals=8925 > > // SizeOfTheArmy=104,000+, Medals=9282 > > // SizeOfTheArmy=108,000+, Medals=9639 > > // SizeOfTheArmy=112,000+, Medals=9996 > > // SizeOfTheArmy=116,000+, Medals=10353 > > // SizeOfTheArmy=120,000+, Medals=10710 > > // SizeOfTheArmy=124,000+, Medals=11067 > > // SizeOfTheArmy=128,000+, Medals=11424 > > // SizeOfTheArmy=132,000+, Medals=11781 > > // SizeOfTheArmy=136,000+, Medals=12138 > > // SizeOfTheArmy=140,000+, Medals=12495 > > // SizeOfTheArmy=144,000+, Medals=12852 > > // SizeOfTheArmy=148,000+, Medals=13209 > > > > As we do not have the general's army size defined but we know that > general > > wanted to reward teh fewest number of soldiers then we select the minimal > > appropriate army size = 100,000 soldiers, and then the answer will be > 8925 > > medals. > > > > Correct? > > > > Thank you. > > > > --Shamil > > > > <<< snip >>> > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 26 08:42:15 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 06:42:15 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <109A3DC084304AA7BDC36F91F8034CAB@danwaters> References: <109A3DC084304AA7BDC36F91F8034CAB@danwaters> Message-ID: <86E8C3D5C236456B96B24E0FE6F78519@HAL9005> Dan: Will people in the workgroup who can link to the back end through the front end also be able to open the back end directly and change the data there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, April 26, 2010 6:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Hi Rocky, I think that you could: 1) Create a new blank workgroup file (a copy of System.mdw). Give it a unique name (BTWBE.mdw). 2) Join each BE file to BTWBE.mdw. 3) Create a new user name and password for your client. 4) If you want a little more security, create a procedure that shuts down the BE if CurrentUser = "Admin". Run that procedure from an AutoExec in the BE file. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.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 Mon Apr 26 08:47:45 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 26 Apr 2010 09:47:45 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: No. Nobody will be able to open the folder in which the backends reside (except for the admins). So they cannot open them directly at all.Not being able to open the folder, they cannot discover the name of the files in there, so cannot link to them from any other application. Your task will be to restrict them from getting access to the databse window where they will see the tables and queries, and to prevent them from running any code they may craft themselves. Standard Access stuff. As long as nobody in the user pool knows the names of the backend files they will not be able to open them in any access app. They may put together themselves. They will only have access vie the approved applications. # HOLD THE PRESSES!!! #####*($*#*$#*$#*$#*$#*$*#*$*#*$*#*$*# ###################################### Dang!!! ########### Just found the elephant sized hole in my suggestion. All they need to do is import the table links from an approved application front end and bingo... they have full access to the tables. Back to the drawing board. ############################################################# Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 6:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Rocky, What kind of restrictions do they want? If they simply want to prevent users from getting into the folder that holds the backend files then you can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line of code needed. You'll need cooperation from the client's network people but... First thing you want is a windows user group into which all the users are added. This makes it much simpler when applying permissions to folders. So. First make a folder on the server say 'Databases' Next create a subfolder called 'Backends'. Third create a subfolder in Backends which you can call 'Data'. Now modify the permissions on 'Databases' granting the user group modify permissions and apply the permissions to the folder and all sub-folders. Also make sure that an administrator's ID and or the Database administrator's ID is granted full control of the folder tree. Now you need to modify the permissions on the 'Backends' folder. Open the properties sheet for the folder and select the 'Security' tab. Click the 'Advanced' button. Select the user group in the permissions listing, and click 'Edit'. In the resulting dialog box clear the check boxes for 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most importantly) 'Delete Subfolders and Files'. Click OK and OK. The end result is that the user in the user group have modify permissions to the 'Data' folder , and that is where all the backends would reside, in their own sub-folders if desired. However, the users will only be able to look inside the folder 'Databases' where they will see that there is a folder called 'Data' inside it, but they will not be able to browse into 'Data' nor delete it. Is that sufficiently restricted access? HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Apr 26 08:57:33 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 26 Apr 2010 08:57:33 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <86E8C3D5C236456B96B24E0FE6F78519@HAL9005> References: <109A3DC084304AA7BDC36F91F8034CAB@danwaters> <86E8C3D5C236456B96B24E0FE6F78519@HAL9005> Message-ID: <155E1BC42E204ACDAB448F86088E7496@danwaters> Whatever ability people have now in the FE won't change by joining the BE file to a workgroup, even if the two user names and passwords are the same. I would suggest setting up a user name/password for opening the BE to something not in the FE - just so your customer is clear that there is a difference. You might set up a test that your customer can duplicate so they are confident. By the way, I've used the technique that Lambert suggested at one of my customers. I got this out of a book named, "Real World Microsoft Access Database Protection and Security." It's currently available on Amazon. It works just fine, but you'll need to practice it and then explain it to the IT folks at your customer. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Dan: Will people in the workgroup who can link to the back end through the front end also be able to open the back end directly and change the data there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, April 26, 2010 6:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Hi Rocky, I think that you could: 1) Create a new blank workgroup file (a copy of System.mdw). Give it a unique name (BTWBE.mdw). 2) Join each BE file to BTWBE.mdw. 3) Create a new user name and password for your client. 4) If you want a little more security, create a procedure that shuts down the BE if CurrentUser = "Admin". Run that procedure from an AutoExec in the BE file. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 09:06:08 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 07:06:08 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <4CD439F5A66B46BB8C1D600511A31B77@HAL9005> "As long as nobody in the user pool knows the names of the backend files" Another problem because they need to point to tithe back end file they want to link to - the system supports any number of back ends. And the name and path of the file are displayed on the main menu so the user can verify that they are in the back end they want to be in. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 6:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection No. Nobody will be able to open the folder in which the backends reside (except for the admins). So they cannot open them directly at all.Not being able to open the folder, they cannot discover the name of the files in there, so cannot link to them from any other application. Your task will be to restrict them from getting access to the databse window where they will see the tables and queries, and to prevent them from running any code they may craft themselves. Standard Access stuff. As long as nobody in the user pool knows the names of the backend files they will not be able to open them in any access app. They may put together themselves. They will only have access vie the approved applications. # HOLD THE PRESSES!!! #####*($*#*$#*$#*$#*$#*$*#*$*#*$*#*$*# ###################################### Dang!!! ########### Just found the elephant sized hole in my suggestion. All they need to do is import the table links from an approved application front end and bingo... they have full access to the tables. Back to the drawing board. ############################################################# Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 6:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Rocky, What kind of restrictions do they want? If they simply want to prevent users from getting into the folder that holds the backend files then you can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line of code needed. You'll need cooperation from the client's network people but... First thing you want is a windows user group into which all the users are added. This makes it much simpler when applying permissions to folders. So. First make a folder on the server say 'Databases' Next create a subfolder called 'Backends'. Third create a subfolder in Backends which you can call 'Data'. Now modify the permissions on 'Databases' granting the user group modify permissions and apply the permissions to the folder and all sub-folders. Also make sure that an administrator's ID and or the Database administrator's ID is granted full control of the folder tree. Now you need to modify the permissions on the 'Backends' folder. Open the properties sheet for the folder and select the 'Security' tab. Click the 'Advanced' button. Select the user group in the permissions listing, and click 'Edit'. In the resulting dialog box clear the check boxes for 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most importantly) 'Delete Subfolders and Files'. Click OK and OK. The end result is that the user in the user group have modify permissions to the 'Data' folder , and that is where all the backends would reside, in their own sub-folders if desired. However, the users will only be able to look inside the folder 'Databases' where they will see that there is a folder called 'Data' inside it, but they will not be able to browse into 'Data' nor delete it. Is that sufficiently restricted access? HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Apr 26 09:05:30 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 09:05:30 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000001cae4a8$54e7b370$6a01a8c0@nant> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant><6F90B25394A743CF8B1F61B404F20D70@Server> <000001cae4a8$54e7b370$6a01a8c0@nant> Message-ID: Sweet! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, April 25, 2010 1:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles BTW, the answer for the fist puzzle is as straightforward as this code (C#): public static int GetSurvivorNumber(int lineSize) { return (int)Math.Pow(2, (int)Math.Log(lineSize / 2, 2) + 1); } Got it last night "out of nowhere"... Of course Drew's original "brute force" solution was a 'must have' step to get to the above 'lightweight' answer... Or one have to get studied in the modern computer science colleges where they are taught to "crack" such puzzles in seconds... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, April 25, 2010 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Me too and the only one with the correct answer!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Sunday, April 25, 2010 5:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Hey, I answered it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, April 24, 2010 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles As many of you figured out, position 512 is the surviving position. It's very interesting how many of you readers are so easily diverted from what might have been productive work! I shall endeavour to come up with more puzzles for you all. It's also interesting that you all focused on the survivor problem. Everyone seems to have ignored the other one. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Mon Apr 26 09:07:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 07:07:21 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <155E1BC42E204ACDAB448F86088E7496@danwaters> References: <109A3DC084304AA7BDC36F91F8034CAB@danwaters><86E8C3D5C236456B96B24E0FE6F78519@HAL9005> <155E1BC42E204ACDAB448F86088E7496@danwaters> Message-ID: <4698F966A3FC44409C3BA19F65DE8D05@HAL9005> "then explain it to the IT folks at your customer." Always problematical. This customer is in Bahrain which makes it doubly difficult to communicate. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, April 26, 2010 6:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Whatever ability people have now in the FE won't change by joining the BE file to a workgroup, even if the two user names and passwords are the same. I would suggest setting up a user name/password for opening the BE to something not in the FE - just so your customer is clear that there is a difference. You might set up a test that your customer can duplicate so they are confident. By the way, I've used the technique that Lambert suggested at one of my customers. I got this out of a book named, "Real World Microsoft Access Database Protection and Security." It's currently available on Amazon. It works just fine, but you'll need to practice it and then explain it to the IT folks at your customer. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Dan: Will people in the workgroup who can link to the back end through the front end also be able to open the back end directly and change the data there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, April 26, 2010 6:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Hi Rocky, I think that you could: 1) Create a new blank workgroup file (a copy of System.mdw). Give it a unique name (BTWBE.mdw). 2) Join each BE file to BTWBE.mdw. 3) Create a new user name and password for your client. 4) If you want a little more security, create a procedure that shuts down the BE if CurrentUser = "Admin". Run that procedure from an AutoExec in the BE file. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 09:28:58 2010 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 26 Apr 2010 07:28:58 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <4698F966A3FC44409C3BA19F65DE8D05@HAL9005> References: <109A3DC084304AA7BDC36F91F8034CAB@danwaters> <86E8C3D5C236456B96B24E0FE6F78519@HAL9005> <155E1BC42E204ACDAB448F86088E7496@danwaters> <4698F966A3FC44409C3BA19F65DE8D05@HAL9005> Message-ID: The other thing you need to take into consideration is that, up to Access 2003 at least, breaking the standard Access database password is trivial - a few minutes work on Google. Doug On Mon, Apr 26, 2010 at 7:07 AM, Rocky Smolin wrote: > "then explain it to the IT folks at your customer." Always problematical. > This customer is in Bahrain which makes it doubly difficult to communicate. > > From jm.hwsn at gmail.com Mon Apr 26 09:30:11 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Mon, 26 Apr 2010 09:30:11 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <4bd5a3b1.01145e0a.1b5c.2640@mx.google.com> Lambert, For A2007 you're not too far off though. In a pure (no other versions) A2007 scenario I would probably do the same. Except, I would hide the subdirectory using the "$" from the typical UNC path and encrypt and password protect the backend. Prior to that, I would create a couple of dummy tables and hide (change table attribute to hidden) then ensure the tables are not showing in the navigation pane in the front end. My explanation: If the directory is hidden, most users wouldn't be able to find the directory where the BE resides. The BE is easily encrypted with a password. Access 2007 uses 40 bit encryption to encrypt a file. But that can be pushed to 128 if really needed. If someone attempts to link or import any tables then they are required to supply the password before they can even see anything. The reason I would create dummy tables and hide them is that if someone wanted to look at the tables linked in the front end they could do that. But if the tables are hidden they won't know they are there. With a few lines of XML code in a hidden system table, ALL ribbons and commands are hidden and cannot be used except to Exit Access. Of course, it goes without saying... disable the By Pass key. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection No. Nobody will be able to open the folder in which the backends reside (except for the admins). So they cannot open them directly at all.Not being able to open the folder, they cannot discover the name of the files in there, so cannot link to them from any other application. Your task will be to restrict them from getting access to the databse window where they will see the tables and queries, and to prevent them from running any code they may craft themselves. Standard Access stuff. As long as nobody in the user pool knows the names of the backend files they will not be able to open them in any access app. They may put together themselves. They will only have access vie the approved applications. # HOLD THE PRESSES!!! #####*($*#*$#*$#*$#*$#*$*#*$*#*$*#*$*# ###################################### Dang!!! ########### Just found the elephant sized hole in my suggestion. All they need to do is import the table links from an approved application front end and bingo... they have full access to the tables. Back to the drawing board. ############################################################# Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, April 26, 2010 6:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Rocky, What kind of restrictions do they want? If they simply want to prevent users from getting into the folder that holds the backend files then you can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line of code needed. You'll need cooperation from the client's network people but... First thing you want is a windows user group into which all the users are added. This makes it much simpler when applying permissions to folders. So. First make a folder on the server say 'Databases' Next create a subfolder called 'Backends'. Third create a subfolder in Backends which you can call 'Data'. Now modify the permissions on 'Databases' granting the user group modify permissions and apply the permissions to the folder and all sub-folders. Also make sure that an administrator's ID and or the Database administrator's ID is granted full control of the folder tree. Now you need to modify the permissions on the 'Backends' folder. Open the properties sheet for the folder and select the 'Security' tab. Click the 'Advanced' button. Select the user group in the permissions listing, and click 'Edit'. In the resulting dialog box clear the check boxes for 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most importantly) 'Delete Subfolders and Files'. Click OK and OK. The end result is that the user in the user group have modify permissions to the 'Data' folder , and that is where all the backends would reside, in their own sub-folders if desired. However, the users will only be able to look inside the folder 'Databases' where they will see that there is a folder called 'Data' inside it, but they will not be able to browse into 'Data' nor delete it. Is that sufficiently restricted access? HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Apr 26 09:55:46 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Apr 2010 10:55:46 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant><005301cae3d2$b0ee6050$6a01a8c0@nant><000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev> Message-ID: <11CE30826CD8458FA3B68CD7C25D145C@jislaptopdev> ...and the answer to that is between 10 and 70 ...look up the original puzzle by Lewis Carroll and you should see that the query is much more tightly phrased ...if you copied this from somewhere else, then they are guilty of the incorrect query, not you. ...are you still in Bermuda? William -------------------------------------------------- From: "Arthur Fuller" Sent: Monday, April 26, 2010 9:35 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Friday Puzzles > That's exactly what the query was, William. "The general wants to know how > many of his men had lost, at minimum, one eye, one ear, one arm and one > leg." > > A. > > On Sat, Apr 24, 2010 at 10:05 PM, William Hindman < > wdhindman at dejpolsystems.com> wrote: > >> ...maybe :) >> >> ...this is a version of Lewis Carroll's original pensioner's puzzle >> ...and >> if Arthur had not changed the final question, 10 would be the correct >> answer >> >> ...but he did, as follows: >> >> "The general wants to know how many of his men had lost, at minimum, one >> eye, >> one ear, one arm and one leg. He is stingy with the medals so he wants to >> reward the fewest number of soldiers. What percentage of the soldiers >> should >> receive medals? >> >> ...if the query were what was the minimum % of soldiers who had lost all >> 4 >> body parts, the answer would be 10% >> >> ...but the query was "how many of his men had lost, at minimum, one eye, >> one ear, one arm and one leg" and that could be anywhere between 10% and >> 70% >> ...there is insufficient data to provide an answer to the query posited >> ...imnsho of course :) >> >> William >> >> -------------------------------------------------- >> From: "Kevin" >> Sent: Saturday, April 24, 2010 2:23 PM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> > OK... >> > I would like to revise and extend my remarks... >> > Assuming an army of 100, 10 lost all 4 >> > >> > 70 lost an eye >> > So 30 did NOT lose an eye >> > 75 lost an ear >> > So 25 did NOT lose an ear >> > 80 lost an arm >> > So 20 did NOT lose an arm >> > 85 lost a leg >> > So 15 did NOT lose an leg >> > >> > The soldiers that retained at least one of the body parts is 90 >> > (30+25+20+15 >> > = 90) meaning that 10 lost all 4. >> > >> > Kevin Waddle >> > "The time has come," the Walrus said, >> > "To talk of many things: >> > Of shoes--and ships--and sealing-wax-- >> > Of cabbages--and kings-- >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> > Salakhetdinov >> > Sent: Saturday, April 24, 2010 10:22 AM >> > To: 'Access Developers discussion and problem solving' >> > Subject: Re: [AccessD] OT: Friday Puzzles >> > >> > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm >> > off >> > till tomorrow's late evening/Monday). >> > >> > Thank you. >> > >> > --Shamil >> > >> > -----Original Message----- >> > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] >> > Sent: Saturday, April 24, 2010 7:30 PM >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] OT: Friday Puzzles >> > >> > 8925 medals. >> > >> > Correct? >> > >> > x = size of the army >> > y = qty of soldiers who have lost one arm, one leg, one ear and one >> > eye; >> > >> > y = 0.85*(1-0.8)*0.75*0.7x >> > >> > Assuming that army size is between 100,000+ and 150,000 >> > ( >> > http://www.secondworldwar.co.uk/units.html >> > http://usmilitary.about.com/od/army/l/blchancommand.htm >> > ) >> > >> > the anwers would be >> > >> > foreach (int x in Enumerable.Range(100000,50001)) >> > { >> > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; >> > >> > if (y == (decimal)(int)y) >> > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", >> > x, (decimal)(int)y); >> > } >> > >> > // SizeOfTheArmy=100,000+, Medals=8925 >> > // SizeOfTheArmy=104,000+, Medals=9282 >> > // SizeOfTheArmy=108,000+, Medals=9639 >> > // SizeOfTheArmy=112,000+, Medals=9996 >> > // SizeOfTheArmy=116,000+, Medals=10353 >> > // SizeOfTheArmy=120,000+, Medals=10710 >> > // SizeOfTheArmy=124,000+, Medals=11067 >> > // SizeOfTheArmy=128,000+, Medals=11424 >> > // SizeOfTheArmy=132,000+, Medals=11781 >> > // SizeOfTheArmy=136,000+, Medals=12138 >> > // SizeOfTheArmy=140,000+, Medals=12495 >> > // SizeOfTheArmy=144,000+, Medals=12852 >> > // SizeOfTheArmy=148,000+, Medals=13209 >> > >> > As we do not have the general's army size defined but we know that >> general >> > wanted to reward teh fewest number of soldiers then we select the >> > minimal >> > appropriate army size = 100,000 soldiers, and then the answer will be >> 8925 >> > medals. >> > >> > Correct? >> > >> > Thank you. >> > >> > --Shamil >> > >> > <<< snip >>> >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Mon Apr 26 09:58:12 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 09:58:12 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <000301cae3db$430192c0$c904b840$@net> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net> Message-ID: Not possible that way.... Look at it like this (visually): 100 soldiers. 70 lost an eye, so 30 did not lose an eye. 75 lost an ear, so 25 did not lose an ear. So let's look at this graphically, remember, we are looking at results for the same group of 100 soldiers, not different soldiers: 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| 95|100| eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | | | Above, I have shown a 'graph' of sorts, that shows groups of five. Now let's put in the ear group: 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| 95|100| eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | | | ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | | | Looking at it this way, we see that the MOST that have both is 70, and the most that have NOTHING is 25. But we don't care about who had nothing, having one or the other doesn't qualify for the generals medal of having all 4 (though we are only looking at two right now) 'conditions'. So with just the first two conditions, what is the least number that can have both? With our 'graph' here, we just have to slide one of them to the other side, like this: 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| 95|100| | | | | | |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | | | Looking at it this way, we see that the minimum number that can have both conditions is 45. It doesn't matter how you span it, if you have 70% of a group with condition A, and 75% of the SAME group with condition B, you will have AT LEAST 45% of the group with BOTH Condition A and Condition B. (So that's 100%-(%withoutA+%withoutB), or 100%-(30%+25%)=45%) If we add the other two conditions, again, it doesn't matter which way they slide on the scale, they are bigger than the first two conditions, they will always overlap them: 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| 95|100| | | | | | |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | | | | | | |arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm| leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg| | | | Still at the magic number of 45%. Now in Arthur's original post, he did have a slight slip, by stating '85% of the soldiers had lost one leg', where the other three conditions all had clauses like 'at least one', or 'at a minimum', but if we were to take that literally, it's a mathematical impossibility to have 85% only losing one leg (and nothing else). To answer his riddle, he asks who, at a minimum, lost one eye, one ear, one arm, AND one leg, which is anywhere from 45% to 70%. The minimum to the maximum overlap of the conditions. This was a great puzzle for relational database developers. When it comes to Joins, we often thing of the overlapping circles, which represent different groups of data. But when it comes to data metrics, we sometimes have to look at our joins in different ways. In this case, 4 subsets all within one set. So Arthur's puzzle could easily have been a task a developer would have to figure out for a client, here it is in a real world example: Your client wants a database to track Returned Goods. There are 4 possible conditions (A,B,C,D) in which a product will be returned. RG's can be returned for any combination of A,B,C, or D. One of the reports your client wants, is a report showing returned goods with all 4 conditions, compared to the Max and Min that could have been returned with all four conditions based on the percentages returned with each condition. (ie, assuming Arthur's percentages, as RG reasons, and not injuries), a client might have 68% returned with all four conditions, so the report would show that his returned goods are hitting all 4 conditions on the higher end of the possible range. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Saturday, April 24, 2010 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles OK... I would like to revise and extend my remarks... Assuming an army of 100, 10 lost all 4 70 lost an eye So 30 did NOT lose an eye 75 lost an ear So 25 did NOT lose an ear 80 lost an arm So 20 did NOT lose an arm 85 lost a leg So 15 did NOT lose an leg The soldiers that retained at least one of the body parts is 90 (30+25+20+15 = 90) meaning that 10 lost all 4. Kevin Waddle "The time has come," the Walrus said, "To talk of many things: Of shoes--and ships--and sealing-wax-- Of cabbages--and kings-- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, April 24, 2010 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off till tomorrow's late evening/Monday). Thank you. --Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: Saturday, April 24, 2010 7:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Friday Puzzles 8925 medals. Correct? x = size of the army y = qty of soldiers who have lost one arm, one leg, one ear and one eye; y = 0.85*(1-0.8)*0.75*0.7x Assuming that army size is between 100,000+ and 150,000 ( http://www.secondworldwar.co.uk/units.html http://usmilitary.about.com/od/army/l/blchancommand.htm ) the anwers would be foreach (int x in Enumerable.Range(100000,50001)) { decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; if (y == (decimal)(int)y) Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", x, (decimal)(int)y); } // SizeOfTheArmy=100,000+, Medals=8925 // SizeOfTheArmy=104,000+, Medals=9282 // SizeOfTheArmy=108,000+, Medals=9639 // SizeOfTheArmy=112,000+, Medals=9996 // SizeOfTheArmy=116,000+, Medals=10353 // SizeOfTheArmy=120,000+, Medals=10710 // SizeOfTheArmy=124,000+, Medals=11067 // SizeOfTheArmy=128,000+, Medals=11424 // SizeOfTheArmy=132,000+, Medals=11781 // SizeOfTheArmy=136,000+, Medals=12138 // SizeOfTheArmy=140,000+, Medals=12495 // SizeOfTheArmy=144,000+, Medals=12852 // SizeOfTheArmy=148,000+, Medals=13209 As we do not have the general's army size defined but we know that general wanted to reward teh fewest number of soldiers then we select the minimal appropriate army size = 100,000 soldiers, and then the answer will be 8925 medals. Correct? Thank you. --Shamil <<< snip >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Apr 26 10:06:30 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 10:06:30 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Apr 26 10:07:08 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 10:07:08 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <4BD4B259.5030401@torchlake.com> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne> <1E12CC110CEB450E997E1259A4D233A1@ptiorl.local> <4BD4B259.5030401@torchlake.com> Message-ID: Which means you want to be the greatest 'even' power of 2. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Sunday, April 25, 2010 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles I'd just like to be number 2 in each round. T Drew Wutka wrote: > Actually, it said everyone was shot until it got down to one person. So > if there were two people, the first person was shot, and the last person > would then be the lone survivor. > > But if you look at the pattern, the 'safe' person, for each round is a > power of 2. This makes sense, if you think about this problem in a > binary fashion. > > You are getting rid of the first person, then every other person, which > means every odd number. > > So let's take 64 people, the last person would be 00100000 and the first > person would be 00000001, and every combination in between (except, the > person in position 64 would be the only one with a 1 in the 64 column, > and all zeros). By removing all the numbers, you are removing any > number with a 1 in the 1's position. 'renumbering' them, in binary, is > just removing the first digit (the 1's position). Ie, instead of > 00100000 you would now have 0010000, and every combination in between > 10000 and 00001. When you get to the second to last 'round', you will > have one of two scenarios: > > 10 and 01 > > Or > > 11,10, and 01 > > Either way, 01 is gone (as the first person) and in the case of three > numbers left, the third person is shot too (cause it's an odd number, > when renumbered). > > So the surviving person, no matter how many there are, is the highest > multiple of 2 without going over. > > Ie, the 64th person would survive in cases where you had 64 people to > 127 people. 128th position would survive from 128 people to 255 people. > 512th person would survive with 512 people to 1023 people, and so on. > > Boy, this was a fun riddle, still haven't heard if I was right on the > second one! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold > Sent: Friday, April 23, 2010 3:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > If the first one is always shot it doesn't matter what position. When > it > gets down to only one standing if you start with the first that one is > shot > as well. Being in any other position would only prolong the angony. > > Perry > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 23, 2010 11:03 AM > Subject: Re: [AccessD] OT: Friday Puzzles > > > >> First round survivors: >> >> >> > 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,5 > > 2,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,1 > > 00,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,1 > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From wdhindman at dejpolsystems.com Mon Apr 26 10:09:19 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Apr 2010 11:09:19 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <6AF67B01807D4E1684F4861C3AC8BDCC@jislaptopdev> ...compile and encrypt the be data ...don't even think about using jet security, it's easily broken ...use a be password that is a concat of a user input and a code hidden in the fe mde ...they can link all day and never touch the data ...and if you want to go even further, store the server mac address in a hidden usys table in the be during install and make your be password validation routine do a compare against it before opening the tables ...even if they managed to copy the be to another system, and knew the user fe password to it, the concat password would fail as would the hw mac validation ...otherwise, imnsho, move to SQL Server. William -------------------------------------------------- From: "Heenan, Lambert" Sent: Monday, April 26, 2010 9:47 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Database Needs Password Protection > No. Nobody will be able to open the folder in which the backends reside > (except for the admins). So they cannot open them directly at all.Not > being able to open the folder, they cannot discover the name of the files > in there, so cannot link to them from any other application. > > Your task will be to restrict them from getting access to the databse > window where they will see the tables and queries, and to prevent them > from running any code they may craft themselves. Standard Access stuff. > > As long as nobody in the user pool knows the names of the backend files > they will not be able to open them in any access app. They may put > together themselves. They will only have access vie the approved > applications. > > # HOLD THE PRESSES!!! #####*($*#*$#*$#*$#*$#*$*#*$*#*$*#*$*# > ###################################### Dang!!! ########### > > Just found the elephant sized hole in my suggestion. All they need to do > is import the table links from an approved application front end and > bingo... they have full access to the tables. > > Back to the drawing board. > > ############################################################# > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, April 26, 2010 9:25 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > Lambert: > > His requirement is that anyone who tries to modify the back end directly > will be unable to do so but will still be able to modify the data through > the front end. It looks like with your approach a member of the group will > be able to open the back end directly and be able to modify the data in > the tables. True? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, April 26, 2010 6:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Needs Password Protection > > Rocky, > > What kind of restrictions do they want? If they simply want to prevent > users from getting into the folder that holds the backend files then you > can do all of that with Windows security (NT/2K/XP/Vista/7)and not a line > of code needed. > > You'll need cooperation from the client's network people but... > > First thing you want is a windows user group into which all the users are > added. This makes it much simpler when applying permissions to folders. > > So. First make a folder on the server say 'Databases' > > Next create a subfolder called 'Backends'. > Third create a subfolder in Backends which you can call 'Data'. > > Now modify the permissions on 'Databases' granting the user group modify > permissions and apply the permissions to the folder and all sub-folders. > Also make sure that an administrator's ID and or the Database > administrator's ID is granted full control of the folder tree. > > Now you need to modify the permissions on the 'Backends' folder. Open the > properties sheet for the folder and select the 'Security' tab. Click the > 'Advanced' button. Select the user group in the permissions listing, and > click 'Edit'. In the resulting dialog box clear the check boxes for > 'Traverse Folder / Execute File', 'List Folder /Read Data' and (most > importantly) 'Delete Subfolders and Files'. > > Click OK and OK. > > The end result is that the user in the user group have modify permissions > to the 'Data' folder , and that is where all the backends would reside, in > their own sub-folders if desired. However, the users will only be able to > look inside the folder 'Databases' where they will see that there is a > folder called 'Data' inside it, but they will not be able to browse into > 'Data' nor delete it. Is that sufficiently restricted access? > > HTH > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, April 25, 2010 3:28 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Database Needs Password Protection > > Dear List: > > In my manufacturing software users log in with a password that gives them > 1) read only, 2) read write, 3) administrator access. But the back end is > wide open. So far this has not been a problem. Everywhere the system is > installed people 'play by the rules'. > > Now comes a client who wants access to the back end restricted. So I'm > trying to think of way to do that with the least disruption to the system > which BTW supports multiple back ends - the user can open a different back > end through an 'Open a Database' utility. > > In the code, of course, I'd have to change all occurrence of > > set db = CurrentDb to > > Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) > > > where the password would be in gstrPWD. > > Then I would have to add a utility accessible only by someone with admin > rights, to 1) set, 2) remove, and 3) change the password on the currently > linked back end. Don't know what that code looks like but I suppose I can > figure it out. > > Question is - is this the shortest distance between the two points? Or is > there another approach which would be faster/better/easier? > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 10:25:13 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 08:25:13 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <06749BC964A5483583DA9FF2372A74EC@HAL9005> The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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 Apr 26 11:06:05 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 26 Apr 2010 17:06:05 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <06749BC964A5483583DA9FF2372A74EC@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> Message-ID: <2E602C84F55B4E98B70E67DC6594978D@Server> A simple encryption and password on the BE will provide this. When you first link the be to the fe you will need to provide the password but not for subsequent links if nothing changes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Apr 26 11:30:25 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Apr 2010 12:30:25 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant><000301cae3db$430192c0$c904b840$@net> Message-ID: ...sweet logic ...and wrong :) ...there goes my code boy hero :( William -------------------------------------------------- From: "Drew Wutka" Sent: Monday, April 26, 2010 10:58 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Friday Puzzles > Not possible that way.... > > Look at it like this (visually): > > 100 soldiers. > > 70 lost an eye, so 30 did not lose an eye. > > 75 lost an ear, so 25 did not lose an ear. > > So let's look at this graphically, remember, we are looking at results > for the same group of 100 soldiers, not different soldiers: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | > | | > > Above, I have shown a 'graph' of sorts, that shows groups of five. Now > let's put in the ear group: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | > | | > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > > Looking at it this way, we see that the MOST that have both is 70, and > the most that have NOTHING is 25. But we don't care about who had > nothing, having one or the other doesn't qualify for the generals medal > of having all 4 (though we are only looking at two right now) > 'conditions'. So with just the first two conditions, what is the least > number that can have both? With our 'graph' here, we just have to slide > one of them to the other side, like this: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > | | | | | > |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > > Looking at it this way, we see that the minimum number that can have > both conditions is 45. It doesn't matter how you span it, if you have > 70% of a group with condition A, and 75% of the SAME group with > condition B, you will have AT LEAST 45% of the group with BOTH Condition > A and Condition B. (So that's 100%-(%withoutA+%withoutB), or > 100%-(30%+25%)=45%) > > If we add the other two conditions, again, it doesn't matter which way > they slide on the scale, they are bigger than the first two conditions, > they will always overlap them: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > | | | | | > |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > | | | > |arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm| > leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg| | > | | > > Still at the magic number of 45%. Now in Arthur's original post, he did > have a slight slip, by stating '85% of the soldiers had lost one leg', > where the other three conditions all had clauses like 'at least one', or > 'at a minimum', but if we were to take that literally, it's a > mathematical impossibility to have 85% only losing one leg (and nothing > else). To answer his riddle, he asks who, at a minimum, lost one eye, > one ear, one arm, AND one leg, which is anywhere from 45% to 70%. The > minimum to the maximum overlap of the conditions. > > This was a great puzzle for relational database developers. When it > comes to Joins, we often thing of the overlapping circles, which > represent different groups of data. But when it comes to data metrics, > we sometimes have to look at our joins in different ways. In this case, > 4 subsets all within one set. So Arthur's puzzle could easily have been > a task a developer would have to figure out for a client, here it is in > a real world example: > > Your client wants a database to track Returned Goods. There are 4 > possible conditions (A,B,C,D) in which a product will be returned. RG's > can be returned for any combination of A,B,C, or D. One of the reports > your client wants, is a report showing returned goods with all 4 > conditions, compared to the Max and Min that could have been returned > with all four conditions based on the percentages returned with each > condition. (ie, assuming Arthur's percentages, as RG reasons, and not > injuries), a client might have 68% returned with all four conditions, so > the report would show that his returned goods are hitting all 4 > conditions on the higher end of the possible range. > > Drew > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin > Sent: Saturday, April 24, 2010 1:24 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > OK... > I would like to revise and extend my remarks... > Assuming an army of 100, 10 lost all 4 > > 70 lost an eye > So 30 did NOT lose an eye > 75 lost an ear > So 25 did NOT lose an ear > 80 lost an arm > So 20 did NOT lose an arm > 85 lost a leg > So 15 did NOT lose an leg > > The soldiers that retained at least one of the body parts is 90 > (30+25+20+15 > = 90) meaning that 10 lost all 4. > > Kevin Waddle > "The time has come," the Walrus said, > "To talk of many things: > Of shoes--and ships--and sealing-wax-- > Of cabbages--and kings-- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, April 24, 2010 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off > till tomorrow's late evening/Monday). > > Thank you. > > --Shamil > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] > Sent: Saturday, April 24, 2010 7:30 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: Friday Puzzles > > 8925 medals. > > Correct? > > x = size of the army > y = qty of soldiers who have lost one arm, one leg, one ear and one eye; > > y = 0.85*(1-0.8)*0.75*0.7x > > Assuming that army size is between 100,000+ and 150,000 > ( > http://www.secondworldwar.co.uk/units.html > http://usmilitary.about.com/od/army/l/blchancommand.htm > ) > > the anwers would be > > foreach (int x in Enumerable.Range(100000,50001)) > { > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; > > if (y == (decimal)(int)y) > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", > x, (decimal)(int)y); > } > > // SizeOfTheArmy=100,000+, Medals=8925 > // SizeOfTheArmy=104,000+, Medals=9282 > // SizeOfTheArmy=108,000+, Medals=9639 > // SizeOfTheArmy=112,000+, Medals=9996 > // SizeOfTheArmy=116,000+, Medals=10353 > // SizeOfTheArmy=120,000+, Medals=10710 > // SizeOfTheArmy=124,000+, Medals=11067 > // SizeOfTheArmy=128,000+, Medals=11424 > // SizeOfTheArmy=132,000+, Medals=11781 > // SizeOfTheArmy=136,000+, Medals=12138 > // SizeOfTheArmy=140,000+, Medals=12495 > // SizeOfTheArmy=144,000+, Medals=12852 > // SizeOfTheArmy=148,000+, Medals=13209 > > As we do not have the general's army size defined but we know that > general > wanted to reward teh fewest number of soldiers then we select the > minimal > appropriate army size = 100,000 soldiers, and then the answer will be > 8925 > medals. > > Correct? > > Thank you. > > --Shamil > > <<< snip >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Apr 26 11:37:57 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Apr 2010 12:37:57 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server><541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> Message-ID: ...you and Drew ...birds of a feather ...and both wrong ;) William -------------------------------------------------- From: "Max Wanadoo" Sent: Monday, April 26, 2010 2:59 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > > > No need. Clean as a whistle. > > Min # with all 4 is 1. > Max # with all 4 is 75 > Max # with diff(least + most) is 55 > QED > > Just suffle these up and down the line and you will see. X=injury 0 = no > injury. > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxx0000000000 > > 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxx0000000000 > > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, April 26, 2010 3:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > > ...did you wipe that carefully after extracting it? :) > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Sunday, April 25, 2010 1:52 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> >> >> I say 55% of whatever value is applied. >> >> Max >> >> >> "The general wants to know how many of his men had lost, at minimum, one >> eye, >> one ear, one arm and one leg. He is stingy with the medals so he wants to >> reward the fewest number of soldiers. What percentage of the soldiers >> should >> receive medals? >> >> ...if the query were what was the minimum % of soldiers who had lost all >> 4 >> body parts, the answer would be 10% >> >> ...but the query was "how many of his men had lost, at minimum, one eye, >> one ear, one arm and one leg" and that could be anywhere between 10% and >> 70% >> >> ...there is insufficient data to provide an answer to the query posited >> ...imnsho of course :) >> >> 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 DWUTKA at Marlow.com Mon Apr 26 11:52:36 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 11:52:36 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: First of all Rocky, you must understand that there is currently NO way to secure an Access mdb (2003 or earlier) that a person with power user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe 2007's password system is harder to crack, but it'll eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). When it comes to security, one must always realize that no system is 100% secured. With that in mind, if you are keeping with an Access FE/BE scenario, you must decide what level and how you want to implement security. Obviously breaking from the Access FE/BE model would make your security much more difficult to break. But let's stick with your model. First, as it's already been mentioned, database passwords have cracking utilities out there that anyone with Google access can find and use. Plus, a database password is just a door (with a publicly obtainable lock picking kit), it does nothing about read/write. Second, NT security is just a bigger more secure door. So if you want to give user A access to read/write a database that his normal NT account only has read permissions for, they would have to log in with a new account (on their computer), or you have to jump through hoops having them open the db with 'run as'. Access User Level security has flaws, but it the best tool to lock down an Access FE/BE system. It's not available in a 2007 format database. Here's how Access User Level security works: User names, group names, passwords and user group membership, are stored in an .mdw file. This file IS crackable. Just like access database passwords. (However, if you keep reading, there is a way to guard against that....). For the purposes of making this a little easier to understand, I'm going to ignore groups. There are no real special features of a group. Groups just allow you to give multiple users the same permissions more easily. Permissions for Users and Groups are stored in the .mdb. The way an .mdw file works, is that when a user is created, you are prompted for their name and user ID (UID). The only time you get prompted for the UID is during user creation. The combination of the USER NAME and the UID is what is used in the creation of the 'hash' that the .mdw hands off to JET, to be used in the .mdb. The password is irrelevant. It is only used in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which also will always have the same UID). So when you open a standard .mdb with Access, Access tries it's 'default' .mdw with Admin as the username, and a blank password, if the .mdw has a blank password for the Admin account, it returns a 'hash' representing the Admin account to Access, which it then uses with JET to interact with the .mdb it is opening. If there is a password on the Admin account in the .mdw, it then prompts the user for a User Name and password, and if a correct combination is entered, that 'hash' is then sent to JET to open the .mdb. So to sum up so far, the .mdw just gives Access a 'hash', which is the combination of the User Name and UID, to use in an .mdb. The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for data, design read/write, etc, for every object type in the .mdb, including the database itself). These permissions go off the hash (though the interface shows you user names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. Someone that knows DAO pretty well can actually spoof the 'hash', without an .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know you can do it. However, as I said, if you can ignore this one flaw (which you have too, if you want to 'secure' an .mdb with sticking to an Access FE/BE scenario), then you just have to follow some simple rules to secure a database with an .mdw. First, don't give the Admin account ANY permissions that you don't want EVERYONE to have. Because it doesn't matter if you put a password in YOUR .mdw, simply creating a new .mdw allows any user to have the same credentials without a password (because the 'hash' provided by a new blank .mdw will be the same as any .mdw you put a password on the Admin account). Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. So if you limit who has the .mdw's with higher level access, you limit who can actually do admin level tasks (with the exception of the DAO loophole). Record the Usernames and UID's that you use to create an account, because a lost or corrupted .mdw account can only be recreated with that information. Other than that, Access User Level security can allow you to control every aspect of 'security' within an .mdw, in regards to any Access object. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Mon Apr 26 12:00:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 10:00:48 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <2E602C84F55B4E98B70E67DC6594978D@Server> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> <2E602C84F55B4E98B70E67DC6594978D@Server> Message-ID: <26D3531C35D4459E93F774B875A8C37D@HAL9005> During log in in this app, the user provides their user name and user password which defines their level of access to the data through the front end - read only, read/write, administrator. As the app supports multiple back ends, there is a utility in the app to open a different database. At that point, the user would have to supply the password. But if the user has to supply the database password to link the tables, then they can still open modify back end directly by supplying that password, yes? Which would defeat this user's primary requirement that no one be able to access the back end without going through the front end. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection A simple encryption and password on the BE will provide this. When you first link the be to the fe you will need to provide the password but not for subsequent links if nothing changes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 12:00:50 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 26 Apr 2010 18:00:50 +0100 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server><541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> Message-ID: He was on the right track but his arithmetic is flawed. I had already posted the graphical answer. No doubt he cribbed his idea from mine - but that is Code Boy for you...!! You on the other hand are....well, on the other hand... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, April 26, 2010 5:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ...you and Drew ...birds of a feather ...and both wrong ;) William -------------------------------------------------- From: "Max Wanadoo" Sent: Monday, April 26, 2010 2:59 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > > > No need. Clean as a whistle. > > Min # with all 4 is 1. > Max # with all 4 is 75 > Max # with diff(least + most) is 55 > QED > > Just suffle these up and down the line and you will see. X=injury 0 = no > injury. > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxx0000000000 > > 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxxxxxxxxxxxx0000000000 > > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, April 26, 2010 3:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > > ...did you wipe that carefully after extracting it? :) > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Sunday, April 25, 2010 1:52 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> >> >> I say 55% of whatever value is applied. >> >> Max >> >> >> "The general wants to know how many of his men had lost, at minimum, one >> eye, >> one ear, one arm and one leg. He is stingy with the medals so he wants to >> reward the fewest number of soldiers. What percentage of the soldiers >> should >> receive medals? >> >> ...if the query were what was the minimum % of soldiers who had lost all >> 4 >> body parts, the answer would be 10% >> >> ...but the query was "how many of his men had lost, at minimum, one eye, >> one ear, one arm and one leg" and that could be anywhere between 10% and >> 70% >> >> ...there is insufficient data to provide an answer to the query posited >> ...imnsho of course :) >> >> 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 rockysmolin at bchacc.com Mon Apr 26 12:18:00 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 10:18:00 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: <26068701B29E4D40BECD5241789EA4A5@HAL9005> Drew: Thanks for the info. I'm really resisting going the mdw route because so far, over the last x years, this user is the only one who has asked for stronger password access than is already built in to the application. In order to avoid having to support multiple Fes with mods from different customers, I hide the custom mods and trigger their visibility based on the serial number of the user to whom the FE is licensed. This works well. So I'd like not to put anything into this application that makes it harder for everyone else. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection First of all Rocky, you must understand that there is currently NO way to secure an Access mdb (2003 or earlier) that a person with power user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe 2007's password system is harder to crack, but it'll eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). When it comes to security, one must always realize that no system is 100% secured. With that in mind, if you are keeping with an Access FE/BE scenario, you must decide what level and how you want to implement security. Obviously breaking from the Access FE/BE model would make your security much more difficult to break. But let's stick with your model. First, as it's already been mentioned, database passwords have cracking utilities out there that anyone with Google access can find and use. Plus, a database password is just a door (with a publicly obtainable lock picking kit), it does nothing about read/write. Second, NT security is just a bigger more secure door. So if you want to give user A access to read/write a database that his normal NT account only has read permissions for, they would have to log in with a new account (on their computer), or you have to jump through hoops having them open the db with 'run as'. Access User Level security has flaws, but it the best tool to lock down an Access FE/BE system. It's not available in a 2007 format database. Here's how Access User Level security works: User names, group names, passwords and user group membership, are stored in an .mdw file. This file IS crackable. Just like access database passwords. (However, if you keep reading, there is a way to guard against that....). For the purposes of making this a little easier to understand, I'm going to ignore groups. There are no real special features of a group. Groups just allow you to give multiple users the same permissions more easily. Permissions for Users and Groups are stored in the .mdb. The way an .mdw file works, is that when a user is created, you are prompted for their name and user ID (UID). The only time you get prompted for the UID is during user creation. The combination of the USER NAME and the UID is what is used in the creation of the 'hash' that the .mdw hands off to JET, to be used in the .mdb. The password is irrelevant. It is only used in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which also will always have the same UID). So when you open a standard .mdb with Access, Access tries it's 'default' .mdw with Admin as the username, and a blank password, if the .mdw has a blank password for the Admin account, it returns a 'hash' representing the Admin account to Access, which it then uses with JET to interact with the .mdb it is opening. If there is a password on the Admin account in the .mdw, it then prompts the user for a User Name and password, and if a correct combination is entered, that 'hash' is then sent to JET to open the .mdb. So to sum up so far, the .mdw just gives Access a 'hash', which is the combination of the User Name and UID, to use in an .mdb. The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for data, design read/write, etc, for every object type in the .mdb, including the database itself). These permissions go off the hash (though the interface shows you user names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. Someone that knows DAO pretty well can actually spoof the 'hash', without an .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know you can do it. However, as I said, if you can ignore this one flaw (which you have too, if you want to 'secure' an .mdb with sticking to an Access FE/BE scenario), then you just have to follow some simple rules to secure a database with an .mdw. First, don't give the Admin account ANY permissions that you don't want EVERYONE to have. Because it doesn't matter if you put a password in YOUR .mdw, simply creating a new .mdw allows any user to have the same credentials without a password (because the 'hash' provided by a new blank .mdw will be the same as any .mdw you put a password on the Admin account). Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. So if you limit who has the .mdw's with higher level access, you limit who can actually do admin level tasks (with the exception of the DAO loophole). Record the Usernames and UID's that you use to create an account, because a lost or corrupted .mdw account can only be recreated with that information. Other than that, Access User Level security can allow you to control every aspect of 'security' within an .mdw, in regards to any Access object. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Apr 26 12:21:25 2010 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 26 Apr 2010 10:21:25 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <26D3531C35D4459E93F774B875A8C37D@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> <2E602C84F55B4E98B70E67DC6594978D@Server> <26D3531C35D4459E93F774B875A8C37D@HAL9005> Message-ID: Can't you code the password for the BE into the login/linking logic? Doug On Mon, Apr 26, 2010 at 10:00 AM, Rocky Smolin wrote: > During log in in this app, the user provides their user name and user > password which defines their level of access to the data through the front > end - read only, read/write, administrator. > > As the app supports multiple back ends, there is a utility in the app to > open a different database. At that point, the user would have to supply > the > password. > > But if the user has to supply the database password to link the tables, > then > they can still open modify back end directly by supplying that password, > yes? Which would defeat this user's primary requirement that no one be > able > to access the back end without going through the front end. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 26, 2010 9:06 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > > A simple encryption and password on the BE will provide this. > > When you first link the be to the fe you will need to provide the password > but not for subsequent links if nothing changes. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, April 26, 2010 4:25 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > The basic problem is that the user need to be able to access the back end > through the front end but not be able to open the back end directly. Would > User Level Security provide that capability? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, April 26, 2010 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Needs Password Protection > > Access User Level security would be faster and easier, though it may be > more > of a learning curve for you. In a way, it's a lot like NT security (but > far > less secure), so it's second nature to me. > > If you would like some details on how to implement it, let me know. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, April 25, 2010 2:28 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Database Needs Password Protection > > Dear List: > > In my manufacturing software users log in with a password that gives them > 1) > read only, 2) read write, 3) administrator access. But the back end is > wide > open. So far this has not been a problem. Everywhere the system is > installed people 'play by the rules'. > > Now comes a client who wants access to the back end restricted. So I'm > trying to think of way to do that with the least disruption to the system > which BTW supports multiple back ends - the user can open a different back > end through an 'Open a Database' utility. > > In the code, of course, I'd have to change all occurrence of > > set db = CurrentDb to > > Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) > > > where the password would be in gstrPWD. > > Then I would have to add a utility accessible only by someone with admin > rights, to 1) set, 2) remove, and 3) change the password on the currently > linked back end. Don't know what that code looks like but I suppose I can > figure it out. > > Question is - is this the shortest distance between the two points? Or is > there another approach which would be faster/better/easier? > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > The information contained in this transmission is intended only for the > person or entity to which it is addressed and may contain II-VI Proprietary > and/or II-VI Business Sensitive material. If you are not the intended > recipient, please contact the sender immediately and destroy the material > in > its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended recipient > is > prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 12:23:24 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 26 Apr 2010 18:23:24 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <26D3531C35D4459E93F774B875A8C37D@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005><2E602C84F55B4E98B70E67DC6594978D@Server> <26D3531C35D4459E93F774B875A8C37D@HAL9005> Message-ID: <64577FF3587948EB9D701343F3E20068@Server> Not the user, you. When you set the links up in the first place it will ask for the password. Thereafter it wont. At this point you ship it to the client. Havent tried it on different BE's though. Have you tried it? Easy to set up, just give the BE a pwd and then run your app. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 6:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection During log in in this app, the user provides their user name and user password which defines their level of access to the data through the front end - read only, read/write, administrator. As the app supports multiple back ends, there is a utility in the app to open a different database. At that point, the user would have to supply the password. But if the user has to supply the database password to link the tables, then they can still open modify back end directly by supplying that password, yes? Which would defeat this user's primary requirement that no one be able to access the back end without going through the front end. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection A simple encryption and password on the BE will provide this. When you first link the be to the fe you will need to provide the password but not for subsequent links if nothing changes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Apr 26 12:26:16 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Apr 2010 13:26:16 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Drew, <> Also watch out for the USERS group, which is the same as well. You need to create a custom group. <> You really don't to. As you pointed out, the only thing handed off to the DB is the SID (Security ID). As long as you know how to create the proper SID, you don't need the original MDW. Other then that, nice detail! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 12:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection First of all Rocky, you must understand that there is currently NO way to secure an Access mdb (2003 or earlier) that a person with power user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe 2007's password system is harder to crack, but it'll eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). When it comes to security, one must always realize that no system is 100% secured. With that in mind, if you are keeping with an Access FE/BE scenario, you must decide what level and how you want to implement security. Obviously breaking from the Access FE/BE model would make your security much more difficult to break. But let's stick with your model. First, as it's already been mentioned, database passwords have cracking utilities out there that anyone with Google access can find and use. Plus, a database password is just a door (with a publicly obtainable lock picking kit), it does nothing about read/write. Second, NT security is just a bigger more secure door. So if you want to give user A access to read/write a database that his normal NT account only has read permissions for, they would have to log in with a new account (on their computer), or you have to jump through hoops having them open the db with 'run as'. Access User Level security has flaws, but it the best tool to lock down an Access FE/BE system. It's not available in a 2007 format database. Here's how Access User Level security works: User names, group names, passwords and user group membership, are stored in an .mdw file. This file IS crackable. Just like access database passwords. (However, if you keep reading, there is a way to guard against that....). For the purposes of making this a little easier to understand, I'm going to ignore groups. There are no real special features of a group. Groups just allow you to give multiple users the same permissions more easily. Permissions for Users and Groups are stored in the .mdb. The way an .mdw file works, is that when a user is created, you are prompted for their name and user ID (UID). The only time you get prompted for the UID is during user creation. The combination of the USER NAME and the UID is what is used in the creation of the 'hash' that the .mdw hands off to JET, to be used in the .mdb. The password is irrelevant. It is only used in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which also will always have the same UID). So when you open a standard .mdb with Access, Access tries it's 'default' .mdw with Admin as the username, and a blank password, if the .mdw has a blank password for the Admin account, it returns a 'hash' representing the Admin account to Access, which it then uses with JET to interact with the .mdb it is opening. If there is a password on the Admin account in the .mdw, it then prompts the user for a User Name and password, and if a correct combination is entered, that 'hash' is then sent to JET to open the .mdb. So to sum up so far, the .mdw just gives Access a 'hash', which is the combination of the User Name and UID, to use in an .mdb. The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for data, design read/write, etc, for every object type in the .mdb, including the database itself). These permissions go off the hash (though the interface shows you user names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. Someone that knows DAO pretty well can actually spoof the 'hash', without an .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know you can do it. However, as I said, if you can ignore this one flaw (which you have too, if you want to 'secure' an .mdb with sticking to an Access FE/BE scenario), then you just have to follow some simple rules to secure a database with an .mdw. First, don't give the Admin account ANY permissions that you don't want EVERYONE to have. Because it doesn't matter if you put a password in YOUR .mdw, simply creating a new .mdw allows any user to have the same credentials without a password (because the 'hash' provided by a new blank .mdw will be the same as any .mdw you put a password on the Admin account). Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. So if you limit who has the .mdw's with higher level access, you limit who can actually do admin level tasks (with the exception of the DAO loophole). Record the Usernames and UID's that you use to create an account, because a lost or corrupted .mdw account can only be recreated with that information. Other than that, Access User Level security can allow you to control every aspect of 'security' within an .mdw, in regards to any Access object. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Apr 26 12:37:42 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Apr 2010 13:37:42 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <06749BC964A5483583DA9FF2372A74EC@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> Message-ID: <7BD7DC16A8C2470F9BA41AE2AEA63E04@XPS> Rocky, Yes, you can do that, but it's a lot of work. What you need to do is setup one user (or group) with full access to the tables and take all ownership of everything. Then create another user (or group) with no access. All data access must then occur through queries with the "Run with owner permissions" set to true. Your users can then use the application normally (by using the queries you defined), but cannot link, import, or open the BE directly and get anything. This setup is covered in the security FAQ on Microsoft's web site. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 11:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 12:55:26 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 10:55:26 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: <06749BC964A5483583DA9FF2372A74EC@HAL9005><2E602C84F55B4E98B70E67DC6594978D@Server><26D3531C35D4459E93F774B875A8C37D@HAL9005> Message-ID: <5347980896D148ACB6D390B3002EC829@HAL9005> I could but 1) there may be more than one BE that a user wants to link to, 2) the client will want to be able to change the password without me having to recode the FE and send an update, 3) users of the app currently can move the BE wherever they want to and relink through the FE utility. So the PW would need to be stored outside the FE. This could be done in a password mdb residing in the same folder with the BE, but then they also have the ability to move the BE where they want it - like they want to do a 'what if' so they copy the BE to their local drive, rename it and link to it to do their 'what if'. No end of trouble here. At the moment, I'm pressing the client for exactly what their security requirements are to see if I can't get him to reduce the requirement or buy off on it completely. As I say, all other clients to this point are in environments where they're not concerned about people going into the back end ad hoc and making changes. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, April 26, 2010 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Can't you code the password for the BE into the login/linking logic? Doug On Mon, Apr 26, 2010 at 10:00 AM, Rocky Smolin wrote: > During log in in this app, the user provides their user name and user > password which defines their level of access to the data through the > front end - read only, read/write, administrator. > > As the app supports multiple back ends, there is a utility in the app > to open a different database. At that point, the user would have to > supply the password. > > But if the user has to supply the database password to link the > tables, then they can still open modify back end directly by supplying > that password, yes? Which would defeat this user's primary > requirement that no one be able to access the back end without going > through the front end. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 26, 2010 9:06 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > > A simple encryption and password on the BE will provide this. > > When you first link the be to the fe you will need to provide the > password but not for subsequent links if nothing changes. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Monday, April 26, 2010 4:25 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > The basic problem is that the user need to be able to access the back > end through the front end but not be able to open the back end > directly. Would User Level Security provide that capability? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, April 26, 2010 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Needs Password Protection > > Access User Level security would be faster and easier, though it may > be more of a learning curve for you. In a way, it's a lot like NT > security (but far less secure), so it's second nature to me. > > If you would like some details on how to implement it, let me know. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Sunday, April 25, 2010 2:28 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Database Needs Password Protection > > Dear List: > > In my manufacturing software users log in with a password that gives > them > 1) > read only, 2) read write, 3) administrator access. But the back end > is wide open. So far this has not been a problem. Everywhere the > system is installed people 'play by the rules'. > > Now comes a client who wants access to the back end restricted. So > I'm trying to think of way to do that with the least disruption to the > system which BTW supports multiple back ends - the user can open a > different back end through an 'Open a Database' utility. > > In the code, of course, I'd have to change all occurrence of > > set db = CurrentDb to > > Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & > gstrPWD) > > > where the password would be in gstrPWD. > > Then I would have to add a utility accessible only by someone with > admin rights, to 1) set, 2) remove, and 3) change the password on the > currently linked back end. Don't know what that code looks like but I > suppose I can figure it out. > > Question is - is this the shortest distance between the two points? > Or is there another approach which would be faster/better/easier? > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 12:57:02 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 10:57:02 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <64577FF3587948EB9D701343F3E20068@Server> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005><2E602C84F55B4E98B70E67DC6594978D@Server><26D3531C35D4459E93F774B875A8C37D@HAL9005> <64577FF3587948EB9D701343F3E20068@Server> Message-ID: <254BF89B158742298FEC07D6767BBFD9@HAL9005> No can do for this app. As I replied to Doug: 1) there may be more than one BE that a user wants to link to, 2) the client will want to be able to change the password without me having to recode the FE and send an update, 3) users of the app currently can move the BE wherever they want to and relink through the FE utility. This isn't a one off but a commercial product I sell as a canned package. (www.e-z-mrp.com) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Not the user, you. When you set the links up in the first place it will ask for the password. Thereafter it wont. At this point you ship it to the client. Havent tried it on different BE's though. Have you tried it? Easy to set up, just give the BE a pwd and then run your app. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 6:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection During log in in this app, the user provides their user name and user password which defines their level of access to the data through the front end - read only, read/write, administrator. As the app supports multiple back ends, there is a utility in the app to open a different database. At that point, the user would have to supply the password. But if the user has to supply the database password to link the tables, then they can still open modify back end directly by supplying that password, yes? Which would defeat this user's primary requirement that no one be able to access the back end without going through the front end. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection A simple encryption and password on the BE will provide this. When you first link the be to the fe you will need to provide the password but not for subsequent links if nothing changes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 12:58:23 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 10:58:23 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <7BD7DC16A8C2470F9BA41AE2AEA63E04@XPS> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> <7BD7DC16A8C2470F9BA41AE2AEA63E04@XPS> Message-ID: <4F6AAF9EBC014D2A94CBC93291016286@HAL9005> Sounds like some serious rewrite of the app - lots of direct access to tables through DAO. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, April 26, 2010 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Rocky, Yes, you can do that, but it's a lot of work. What you need to do is setup one user (or group) with full access to the tables and take all ownership of everything. Then create another user (or group) with no access. All data access must then occur through queries with the "Run with owner permissions" set to true. Your users can then use the application normally (by using the queries you defined), but cannot link, import, or open the BE directly and get anything. This setup is covered in the security FAQ on Microsoft's web site. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 11:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 13:15:17 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 26 Apr 2010 19:15:17 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <254BF89B158742298FEC07D6767BBFD9@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005><2E602C84F55B4E98B70E67DC6594978D@Server><26D3531C35D4459E93F774B875A8C37D@HAL9005><64577FF3587948EB9D701343F3E20068@Server> <254BF89B158742298FEC07D6767BBFD9@HAL9005> Message-ID: <5C2A918950E3486BB45D4499B2DE4B06@Server> Put the SAME password on each of the BE and then relink them Then run the app and swap the BE around Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 6:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection No can do for this app. As I replied to Doug: 1) there may be more than one BE that a user wants to link to, 2) the client will want to be able to change the password without me having to recode the FE and send an update, 3) users of the app currently can move the BE wherever they want to and relink through the FE utility. This isn't a one off but a commercial product I sell as a canned package. (www.e-z-mrp.com) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Not the user, you. When you set the links up in the first place it will ask for the password. Thereafter it wont. At this point you ship it to the client. Havent tried it on different BE's though. Have you tried it? Easy to set up, just give the BE a pwd and then run your app. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 6:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection During log in in this app, the user provides their user name and user password which defines their level of access to the data through the front end - read only, read/write, administrator. As the app supports multiple back ends, there is a utility in the app to open a different database. At that point, the user would have to supply the password. But if the user has to supply the database password to link the tables, then they can still open modify back end directly by supplying that password, yes? Which would defeat this user's primary requirement that no one be able to access the back end without going through the front end. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection A simple encryption and password on the BE will provide this. When you first link the be to the fe you will need to provide the password but not for subsequent links if nothing changes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection The basic problem is that the user need to be able to access the back end through the front end but not be able to open the back end directly. Would User Level Security provide that capability? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection Access User Level security would be faster and easier, though it may be more of a learning curve for you. In a way, it's a lot like NT security (but far less secure), so it's second nature to me. If you would like some details on how to implement it, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, April 25, 2010 2:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Needs Password Protection Dear List: In my manufacturing software users log in with a password that gives them 1) read only, 2) read write, 3) administrator access. But the back end is wide open. So far this has not been a problem. Everywhere the system is installed people 'play by the rules'. Now comes a client who wants access to the back end restricted. So I'm trying to think of way to do that with the least disruption to the system which BTW supports multiple back ends - the user can open a different back end through an 'Open a Database' utility. In the code, of course, I'd have to change all occurrence of set db = CurrentDb to Set db = DBEngine.OpenDatabase(gstrDB, False, False, ";pwd=" & gstrPWD) where the password would be in gstrPWD. Then I would have to add a utility accessible only by someone with admin rights, to 1) set, 2) remove, and 3) change the password on the currently linked back end. Don't know what that code looks like but I suppose I can figure it out. Question is - is this the shortest distance between the two points? Or is there another approach which would be faster/better/easier? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Apr 26 13:21:13 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Apr 2010 14:21:13 -0400 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <4F6AAF9EBC014D2A94CBC93291016286@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> <7BD7DC16A8C2470F9BA41AE2AEA63E04@XPS> <4F6AAF9EBC014D2A94CBC93291016286@HAL9005> Message-ID: Rocky, We'll access of everything through a query at least. And yes, it takes a serious amount of work. I did it once and swore I'd never do it again. Access/JET security is so crackable it's just not worth it. But it is doable... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 1:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Sounds like some serious rewrite of the app - lots of direct access to tables through DAO. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, April 26, 2010 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Rocky, Yes, you can do that, but it's a lot of work. What you need to do is setup one user (or group) with full access to the tables and take all ownership of everything. <> From accessd at shaw.ca Mon Apr 26 13:22:11 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Apr 2010 11:22:11 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <5347980896D148ACB6D390B3002EC829@HAL9005> References: <06749BC964A5483583DA9FF2372A74EC@HAL9005> <2E602C84F55B4E98B70E67DC6594978D@Server> <26D3531C35D4459E93F774B875A8C37D@HAL9005> <5347980896D148ACB6D390B3002EC829@HAL9005> Message-ID: <65BED2EFDEB444D2A5446FE489BB3FB9@creativesystemdesigns.com> Hi Rocky: At the end of the day, if the user requires complete standard level of security they will have to go with a different BE... a real SQL like MS SQL, Oracle or MySQL or something like that. (I was just saying exactly that to a potentially new municipal government client this morning. (What a coincidence?!) We will be moving all the queries to procedures with parameteres (no sequel script passing allowed) on their Oracle DB which they already have in place). Otherwise your client will just have to accept the potential and limits of MS Access. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection I could but 1) there may be more than one BE that a user wants to link to, 2) the client will want to be able to change the password without me having to recode the FE and send an update, 3) users of the app currently can move the BE wherever they want to and relink through the FE utility. So the PW would need to be stored outside the FE. This could be done in a password mdb residing in the same folder with the BE, but then they also have the ability to move the BE where they want it - like they want to do a 'what if' so they copy the BE to their local drive, rename it and link to it to do their 'what if'. No end of trouble here. At the moment, I'm pressing the client for exactly what their security requirements are to see if I can't get him to reduce the requirement or buy off on it completely. As I say, all other clients to this point are in environments where they're not concerned about people going into the back end ad hoc and making changes. Rocky From DWUTKA at Marlow.com Mon Apr 26 13:27:19 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 13:27:19 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant><000301cae3db$430192c0$c904b840$@net> Message-ID: That's not very helpful, where is my logic wrong? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, April 26, 2010 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ...sweet logic ...and wrong :) ...there goes my code boy hero :( William -------------------------------------------------- From: "Drew Wutka" Sent: Monday, April 26, 2010 10:58 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Friday Puzzles > Not possible that way.... > > Look at it like this (visually): > > 100 soldiers. > > 70 lost an eye, so 30 did not lose an eye. > > 75 lost an ear, so 25 did not lose an ear. > > So let's look at this graphically, remember, we are looking at results > for the same group of 100 soldiers, not different soldiers: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | > | | > > Above, I have shown a 'graph' of sorts, that shows groups of five. Now > let's put in the ear group: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | > | | > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > > Looking at it this way, we see that the MOST that have both is 70, and > the most that have NOTHING is 25. But we don't care about who had > nothing, having one or the other doesn't qualify for the generals medal > of having all 4 (though we are only looking at two right now) > 'conditions'. So with just the first two conditions, what is the least > number that can have both? With our 'graph' here, we just have to slide > one of them to the other side, like this: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > | | | | | > |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > > Looking at it this way, we see that the minimum number that can have > both conditions is 45. It doesn't matter how you span it, if you have > 70% of a group with condition A, and 75% of the SAME group with > condition B, you will have AT LEAST 45% of the group with BOTH Condition > A and Condition B. (So that's 100%-(%withoutA+%withoutB), or > 100%-(30%+25%)=45%) > > If we add the other two conditions, again, it doesn't matter which way > they slide on the scale, they are bigger than the first two conditions, > they will always overlap them: > > 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| > 95|100| > | | | | | > |eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| > ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| | | | > | | > | | | > |arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm| > leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg|leg| | > | | > > Still at the magic number of 45%. Now in Arthur's original post, he did > have a slight slip, by stating '85% of the soldiers had lost one leg', > where the other three conditions all had clauses like 'at least one', or > 'at a minimum', but if we were to take that literally, it's a > mathematical impossibility to have 85% only losing one leg (and nothing > else). To answer his riddle, he asks who, at a minimum, lost one eye, > one ear, one arm, AND one leg, which is anywhere from 45% to 70%. The > minimum to the maximum overlap of the conditions. > > This was a great puzzle for relational database developers. When it > comes to Joins, we often thing of the overlapping circles, which > represent different groups of data. But when it comes to data metrics, > we sometimes have to look at our joins in different ways. In this case, > 4 subsets all within one set. So Arthur's puzzle could easily have been > a task a developer would have to figure out for a client, here it is in > a real world example: > > Your client wants a database to track Returned Goods. There are 4 > possible conditions (A,B,C,D) in which a product will be returned. RG's > can be returned for any combination of A,B,C, or D. One of the reports > your client wants, is a report showing returned goods with all 4 > conditions, compared to the Max and Min that could have been returned > with all four conditions based on the percentages returned with each > condition. (ie, assuming Arthur's percentages, as RG reasons, and not > injuries), a client might have 68% returned with all four conditions, so > the report would show that his returned goods are hitting all 4 > conditions on the higher end of the possible range. > > Drew > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin > Sent: Saturday, April 24, 2010 1:24 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > OK... > I would like to revise and extend my remarks... > Assuming an army of 100, 10 lost all 4 > > 70 lost an eye > So 30 did NOT lose an eye > 75 lost an ear > So 25 did NOT lose an ear > 80 lost an arm > So 20 did NOT lose an arm > 85 lost a leg > So 15 did NOT lose an leg > > The soldiers that retained at least one of the body parts is 90 > (30+25+20+15 > = 90) meaning that 10 lost all 4. > > Kevin Waddle > "The time has come," the Walrus said, > "To talk of many things: > Of shoes--and ships--and sealing-wax-- > Of cabbages--and kings-- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, April 24, 2010 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > That's wrong, and a bit(?)/plain(?) stupid, sorry. Any, takers? (I'm off > till tomorrow's late evening/Monday). > > Thank you. > > --Shamil > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] > Sent: Saturday, April 24, 2010 7:30 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: Friday Puzzles > > 8925 medals. > > Correct? > > x = size of the army > y = qty of soldiers who have lost one arm, one leg, one ear and one eye; > > y = 0.85*(1-0.8)*0.75*0.7x > > Assuming that army size is between 100,000+ and 150,000 > ( > http://www.secondworldwar.co.uk/units.html > http://usmilitary.about.com/od/army/l/blchancommand.htm > ) > > the anwers would be > > foreach (int x in Enumerable.Range(100000,50001)) > { > decimal y = 0.85m * (1.0m-0.8m) * 0.75m * 0.7m * x; > > if (y == (decimal)(int)y) > Console.WriteLine("// SizeOfTheArmy={0:#,0}+, Medals={1} ", > x, (decimal)(int)y); > } > > // SizeOfTheArmy=100,000+, Medals=8925 > // SizeOfTheArmy=104,000+, Medals=9282 > // SizeOfTheArmy=108,000+, Medals=9639 > // SizeOfTheArmy=112,000+, Medals=9996 > // SizeOfTheArmy=116,000+, Medals=10353 > // SizeOfTheArmy=120,000+, Medals=10710 > // SizeOfTheArmy=124,000+, Medals=11067 > // SizeOfTheArmy=128,000+, Medals=11424 > // SizeOfTheArmy=132,000+, Medals=11781 > // SizeOfTheArmy=136,000+, Medals=12138 > // SizeOfTheArmy=140,000+, Medals=12495 > // SizeOfTheArmy=144,000+, Medals=12852 > // SizeOfTheArmy=148,000+, Medals=13209 > > As we do not have the general's army size defined but we know that > general > wanted to reward teh fewest number of soldiers then we select the > minimal > appropriate army size = 100,000 soldiers, and then the answer will be > 8925 > medals. > > Correct? > > Thank you. > > --Shamil > > <<< snip >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Mon Apr 26 14:00:13 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 26 Apr 2010 19:00:13 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <26068701B29E4D40BECD5241789EA4A5@HAL9005> References: , , <26068701B29E4D40BECD5241789EA4A5@HAL9005> Message-ID: Rocky, Can I ask in a slightly different way??? 1. Are you trying to keep people from opening the backend directly? 2. Can the user link to the BE from any access MDB or just your app? Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 10:18:00 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Drew: > > Thanks for the info. I'm really resisting going the mdw route because so > far, over the last x years, this user is the only one who has asked for > stronger password access than is already built in to the application. > > In order to avoid having to support multiple Fes with mods from different > customers, I hide the custom mods and trigger their visibility based on the > serial number of the user to whom the FE is licensed. This works well. > > So I'd like not to put anything into this application that makes it harder > for everyone else. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, April 26, 2010 9:53 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Needs Password Protection > > First of all Rocky, you must understand that there is currently NO way to > secure an Access mdb (2003 or earlier) that a person with power user or > better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe > 2007's password system is harder to crack, but it'll eventually be cracked > too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). > When it comes to security, one must always realize that no system is 100% > secured. > > With that in mind, if you are keeping with an Access FE/BE scenario, you > must decide what level and how you want to implement security. > Obviously breaking from the Access FE/BE model would make your security much > more difficult to break. But let's stick with your model. > > First, as it's already been mentioned, database passwords have cracking > utilities out there that anyone with Google access can find and use. > Plus, a database password is just a door (with a publicly obtainable lock > picking kit), it does nothing about read/write. > > Second, NT security is just a bigger more secure door. So if you want to > give user A access to read/write a database that his normal NT account only > has read permissions for, they would have to log in with a new account (on > their computer), or you have to jump through hoops having them open the db > with 'run as'. > > Access User Level security has flaws, but it the best tool to lock down an > Access FE/BE system. It's not available in a 2007 format database. > > Here's how Access User Level security works: > > User names, group names, passwords and user group membership, are stored in > an .mdw file. This file IS crackable. Just like access database passwords. > (However, if you keep reading, there is a way to guard against that....). > For the purposes of making this a little easier to understand, I'm going to > ignore groups. There are no real special features of a group. Groups just > allow you to give multiple users the same permissions more easily. > > Permissions for Users and Groups are stored in the .mdb. > > The way an .mdw file works, is that when a user is created, you are prompted > for their name and user ID (UID). The only time you get prompted for the > UID is during user creation. The combination of the USER NAME and the UID > is what is used in the creation of the 'hash' that the .mdw hands off to > JET, to be used in the .mdb. The password is irrelevant. It is only used > in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which > also will always have the same UID). So when you open a standard .mdb with > Access, Access tries it's 'default' > .mdw with Admin as the username, and a blank password, if the .mdw has a > blank password for the Admin account, it returns a 'hash' representing the > Admin account to Access, which it then uses with JET to interact with the > .mdb it is opening. If there is a password on the Admin account in the > .mdw, it then prompts the user for a User Name and password, and if a > correct combination is entered, that 'hash' is then sent to JET to open the > .mdb. > > So to sum up so far, the .mdw just gives Access a 'hash', which is the > combination of the User Name and UID, to use in an .mdb. > > The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for > data, design read/write, etc, for every object type in the .mdb, including > the database itself). These permissions go off the hash (though the > interface shows you user names(and groups) from the current .mdw). This is > where the fatal flaw in Access User Level security is. > Someone that knows DAO pretty well can actually spoof the 'hash', without an > .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know > you can do it. However, as I said, if you can ignore this one flaw (which > you have too, if you want to 'secure' an .mdb with sticking to an Access > FE/BE scenario), then you just have to follow some simple rules to secure a > database with an .mdw. > > First, don't give the Admin account ANY permissions that you don't want > EVERYONE to have. Because it doesn't matter if you put a password in YOUR > .mdw, simply creating a new .mdw allows any user to have the same > credentials without a password (because the 'hash' provided by a new blank > .mdw will be the same as any .mdw you put a password on the Admin account). > > Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. > So if you limit who has the .mdw's with higher level access, you limit who > can actually do admin level tasks (with the exception of the DAO loophole). > > Record the Usernames and UID's that you use to create an account, because a > lost or corrupted .mdw account can only be recreated with that information. > > Other than that, Access User Level security can allow you to control every > aspect of 'security' within an .mdw, in regards to any Access object. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, April 26, 2010 8:25 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > Lambert: > > His requirement is that anyone who tries to modify the back end directly > will be unable to do so but will still be able to modify the data through > the front end. It looks like with your approach a member of the group will > be able to open the back end directly and be able to modify the data in the > tables. True? > > Rocky > > The information contained in this transmission is intended only for the > person or entity to which it is addressed and may contain II-VI Proprietary > and/or II-VI Business Sensitive material. If you are not the intended > recipient, please contact the sender immediately and destroy the material in > its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended recipient is > prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 From rockysmolin at bchacc.com Mon Apr 26 15:00:38 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 13:00:38 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , <26068701B29E4D40BECD5241789EA4A5@HAL9005> Message-ID: <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005> Mark: 1) yes 2) any access mdb Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, April 26, 2010 12:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection Rocky, Can I ask in a slightly different way??? 1. Are you trying to keep people from opening the backend directly? 2. Can the user link to the BE from any access MDB or just your app? Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 10:18:00 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Drew: > > Thanks for the info. I'm really resisting going the mdw route because > so far, over the last x years, this user is the only one who has asked > for stronger password access than is already built in to the application. > > In order to avoid having to support multiple Fes with mods from > different customers, I hide the custom mods and trigger their > visibility based on the serial number of the user to whom the FE is licensed. This works well. > > So I'd like not to put anything into this application that makes it > harder for everyone else. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, April 26, 2010 9:53 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Needs Password Protection > > First of all Rocky, you must understand that there is currently NO way > to secure an Access mdb (2003 or earlier) that a person with power > user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. > I believe 2007's password system is harder to crack, but it'll > eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). > When it comes to security, one must always realize that no system is > 100% secured. > > With that in mind, if you are keeping with an Access FE/BE scenario, > you must decide what level and how you want to implement security. > Obviously breaking from the Access FE/BE model would make your > security much more difficult to break. But let's stick with your model. > > First, as it's already been mentioned, database passwords have > cracking utilities out there that anyone with Google access can find and use. > Plus, a database password is just a door (with a publicly obtainable > lock picking kit), it does nothing about read/write. > > Second, NT security is just a bigger more secure door. So if you want > to give user A access to read/write a database that his normal NT > account only has read permissions for, they would have to log in with > a new account (on their computer), or you have to jump through hoops > having them open the db with 'run as'. > > Access User Level security has flaws, but it the best tool to lock > down an Access FE/BE system. It's not available in a 2007 format database. > > Here's how Access User Level security works: > > User names, group names, passwords and user group membership, are > stored in an .mdw file. This file IS crackable. Just like access database passwords. > (However, if you keep reading, there is a way to guard against that....). > For the purposes of making this a little easier to understand, I'm > going to ignore groups. There are no real special features of a group. > Groups just allow you to give multiple users the same permissions more easily. > > Permissions for Users and Groups are stored in the .mdb. > > The way an .mdw file works, is that when a user is created, you are > prompted for their name and user ID (UID). The only time you get > prompted for the UID is during user creation. The combination of the > USER NAME and the UID is what is used in the creation of the 'hash' > that the .mdw hands off to JET, to be used in the .mdb. The password > is irrelevant. It is only used in the normal usage of an .mdw. Every > .mdw has an 'Admin' account, (which also will always have the same > UID). So when you open a standard .mdb with Access, Access tries it's 'default' > .mdw with Admin as the username, and a blank password, if the .mdw has > a blank password for the Admin account, it returns a 'hash' > representing the Admin account to Access, which it then uses with JET > to interact with the .mdb it is opening. If there is a password on the > Admin account in the .mdw, it then prompts the user for a User Name > and password, and if a correct combination is entered, that 'hash' is > then sent to JET to open the .mdb. > > So to sum up so far, the .mdw just gives Access a 'hash', which is the > combination of the User Name and UID, to use in an .mdb. > > The .mdb then has permissions, for EVERYTHING > (read/insert/update/delete for data, design read/write, etc, for every > object type in the .mdb, including the database itself). These > permissions go off the hash (though the interface shows you user > names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. > Someone that knows DAO pretty well can actually spoof the 'hash', > without an .mdw at all. Don't ask me how, I'm really not that great at > DAO, but I know you can do it. However, as I said, if you can ignore > this one flaw (which you have too, if you want to 'secure' an .mdb > with sticking to an Access FE/BE scenario), then you just have to > follow some simple rules to secure a database with an .mdw. > > First, don't give the Admin account ANY permissions that you don't > want EVERYONE to have. Because it doesn't matter if you put a password > in YOUR .mdw, simply creating a new .mdw allows any user to have the > same credentials without a password (because the 'hash' provided by a > new blank .mdw will be the same as any .mdw you put a password on the Admin account). > > Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. > So if you limit who has the .mdw's with higher level access, you limit > who can actually do admin level tasks (with the exception of the DAO loophole). > > Record the Usernames and UID's that you use to create an account, > because a lost or corrupted .mdw account can only be recreated with that information. > > Other than that, Access User Level security can allow you to control > every aspect of 'security' within an .mdw, in regards to any Access object. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Monday, April 26, 2010 8:25 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Database Needs Password Protection > > Lambert: > > His requirement is that anyone who tries to modify the back end > directly will be unable to do so but will still be able to modify the > data through the front end. It looks like with your approach a member > of the group will be able to open the back end directly and be able to > modify the data in the tables. True? > > Rocky > > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Apr 26 16:55:28 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 16:55:28 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server><541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> Message-ID: I am really curious where you guys are getting this 'math' error.' Here is the puzzle, as posted: " At the end of a battle, the general regrouped his soldiers. They had done badly. 70% of them had lost, at least, one eye. 75% had lost at least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had lost one leg. The general wants to know how many of his men had lost, at minimum, one eye, one ear, one arm and one leg. He is stingy with the medals so he wants to reward the fewest number of soldiers. What percentage of the soldiers should receive medals? You have 5 minutes to decide." Using that statement, as worded, if there are 100 soldiers in the general's group: 70 lost an eye 75 lost an ear 80 lost an arm 85 lost a leg So unless you use faulty logic that there are really 310 soldiers, there are at a MAXIMUM of 70 that lost all four body parts, and a minimum of 45. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, April 26, 2010 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles He was on the right track but his arithmetic is flawed. I had already posted the graphical answer. No doubt he cribbed his idea from mine - but that is Code Boy for you...!! You on the other hand are....well, on the other hand... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, April 26, 2010 5:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles ...you and Drew ...birds of a feather ...and both wrong ;) William -------------------------------------------------- From: "Max Wanadoo" Sent: Monday, April 26, 2010 2:59 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Friday Puzzles > > > No need. Clean as a whistle. > > Min # with all 4 is 1. > Max # with all 4 is 75 > Max # with diff(least + most) is 55 > QED > > Just suffle these up and down the line and you will see. X=injury 0 = no > injury. > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx > xxxxxxxxxxxxxxxxxxxxxxxx > > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx > xxxxxxxxxxxxxx0000000000 > > 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx > xxxxxxxxxxxxxx0000000000 > > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, April 26, 2010 3:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > > ...did you wipe that carefully after extracting it? :) > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Sunday, April 25, 2010 1:52 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> >> >> I say 55% of whatever value is applied. >> >> Max >> >> >> "The general wants to know how many of his men had lost, at minimum, one >> eye, >> one ear, one arm and one leg. He is stingy with the medals so he wants to >> reward the fewest number of soldiers. What percentage of the soldiers >> should >> receive medals? >> >> ...if the query were what was the minimum % of soldiers who had lost all >> 4 >> body parts, the answer would be 10% >> >> ...but the query was "how many of his men had lost, at minimum, one eye, >> one ear, one arm and one leg" and that could be anywhere between 10% and >> 70% >> >> ...there is insufficient data to provide an answer to the query posited >> ...imnsho of course :) >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Apr 26 16:57:38 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 16:57:38 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <26068701B29E4D40BECD5241789EA4A5@HAL9005> References: <26068701B29E4D40BECD5241789EA4A5@HAL9005> Message-ID: I hear ya. You can make it invisible to your other customers too. The real kicker is the learning curve to understand how to set it up and use it right. So while this is probably the fastest, most secure, and less intrusive method, the learning curve for someone that hasn't used this very often overshadows it's usefulness. Feel free to holler for help if you do decide to try it. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Drew: Thanks for the info. I'm really resisting going the mdw route because so far, over the last x years, this user is the only one who has asked for stronger password access than is already built in to the application. In order to avoid having to support multiple Fes with mods from different customers, I hide the custom mods and trigger their visibility based on the serial number of the user to whom the FE is licensed. This works well. So I'd like not to put anything into this application that makes it harder for everyone else. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection First of all Rocky, you must understand that there is currently NO way to secure an Access mdb (2003 or earlier) that a person with power user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe 2007's password system is harder to crack, but it'll eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). When it comes to security, one must always realize that no system is 100% secured. With that in mind, if you are keeping with an Access FE/BE scenario, you must decide what level and how you want to implement security. Obviously breaking from the Access FE/BE model would make your security much more difficult to break. But let's stick with your model. First, as it's already been mentioned, database passwords have cracking utilities out there that anyone with Google access can find and use. Plus, a database password is just a door (with a publicly obtainable lock picking kit), it does nothing about read/write. Second, NT security is just a bigger more secure door. So if you want to give user A access to read/write a database that his normal NT account only has read permissions for, they would have to log in with a new account (on their computer), or you have to jump through hoops having them open the db with 'run as'. Access User Level security has flaws, but it the best tool to lock down an Access FE/BE system. It's not available in a 2007 format database. Here's how Access User Level security works: User names, group names, passwords and user group membership, are stored in an .mdw file. This file IS crackable. Just like access database passwords. (However, if you keep reading, there is a way to guard against that....). For the purposes of making this a little easier to understand, I'm going to ignore groups. There are no real special features of a group. Groups just allow you to give multiple users the same permissions more easily. Permissions for Users and Groups are stored in the .mdb. The way an .mdw file works, is that when a user is created, you are prompted for their name and user ID (UID). The only time you get prompted for the UID is during user creation. The combination of the USER NAME and the UID is what is used in the creation of the 'hash' that the .mdw hands off to JET, to be used in the .mdb. The password is irrelevant. It is only used in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which also will always have the same UID). So when you open a standard .mdb with Access, Access tries it's 'default' .mdw with Admin as the username, and a blank password, if the .mdw has a blank password for the Admin account, it returns a 'hash' representing the Admin account to Access, which it then uses with JET to interact with the .mdb it is opening. If there is a password on the Admin account in the .mdw, it then prompts the user for a User Name and password, and if a correct combination is entered, that 'hash' is then sent to JET to open the .mdb. So to sum up so far, the .mdw just gives Access a 'hash', which is the combination of the User Name and UID, to use in an .mdb. The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for data, design read/write, etc, for every object type in the .mdb, including the database itself). These permissions go off the hash (though the interface shows you user names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. Someone that knows DAO pretty well can actually spoof the 'hash', without an .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know you can do it. However, as I said, if you can ignore this one flaw (which you have too, if you want to 'secure' an .mdb with sticking to an Access FE/BE scenario), then you just have to follow some simple rules to secure a database with an .mdw. First, don't give the Admin account ANY permissions that you don't want EVERYONE to have. Because it doesn't matter if you put a password in YOUR .mdw, simply creating a new .mdw allows any user to have the same credentials without a password (because the 'hash' provided by a new blank .mdw will be the same as any .mdw you put a password on the Admin account). Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. So if you limit who has the .mdw's with higher level access, you limit who can actually do admin level tasks (with the exception of the DAO loophole). Record the Usernames and UID's that you use to create an account, because a lost or corrupted .mdw account can only be recreated with that information. Other than that, Access User Level security can allow you to control every aspect of 'security' within an .mdw, in regards to any Access object. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Apr 26 17:00:43 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 17:00:43 -0500 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: Message-ID: Ya, I said I wasn't really going to make it more confusing by talking about groups too. Also, that SID hand off is the DAO 'loophole' I mentioned. But the 'password' tools out there need access to the .mdw. Personally, if MS wanted to nail down Access' security, they would give Jet the option to use NTFS security internally to the .mdb. That way, the user accounts would be authenticated against a MUCH more secure system. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, April 26, 2010 12:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Drew, <> Also watch out for the USERS group, which is the same as well. You need to create a custom group. <> You really don't to. As you pointed out, the only thing handed off to the DB is the SID (Security ID). As long as you know how to create the proper SID, you don't need the original MDW. Other then that, nice detail! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 12:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Needs Password Protection First of all Rocky, you must understand that there is currently NO way to secure an Access mdb (2003 or earlier) that a person with power user or better skills couldn't overcome, IN AN ACCESS FE/BE SCENARIO. I believe 2007's password system is harder to crack, but it'll eventually be cracked too. (Everyone thought WPA2 security was uncrackable, it's not anymore...). When it comes to security, one must always realize that no system is 100% secured. With that in mind, if you are keeping with an Access FE/BE scenario, you must decide what level and how you want to implement security. Obviously breaking from the Access FE/BE model would make your security much more difficult to break. But let's stick with your model. First, as it's already been mentioned, database passwords have cracking utilities out there that anyone with Google access can find and use. Plus, a database password is just a door (with a publicly obtainable lock picking kit), it does nothing about read/write. Second, NT security is just a bigger more secure door. So if you want to give user A access to read/write a database that his normal NT account only has read permissions for, they would have to log in with a new account (on their computer), or you have to jump through hoops having them open the db with 'run as'. Access User Level security has flaws, but it the best tool to lock down an Access FE/BE system. It's not available in a 2007 format database. Here's how Access User Level security works: User names, group names, passwords and user group membership, are stored in an .mdw file. This file IS crackable. Just like access database passwords. (However, if you keep reading, there is a way to guard against that....). For the purposes of making this a little easier to understand, I'm going to ignore groups. There are no real special features of a group. Groups just allow you to give multiple users the same permissions more easily. Permissions for Users and Groups are stored in the .mdb. The way an .mdw file works, is that when a user is created, you are prompted for their name and user ID (UID). The only time you get prompted for the UID is during user creation. The combination of the USER NAME and the UID is what is used in the creation of the 'hash' that the .mdw hands off to JET, to be used in the .mdb. The password is irrelevant. It is only used in the normal usage of an .mdw. Every .mdw has an 'Admin' account, (which also will always have the same UID). So when you open a standard .mdb with Access, Access tries it's 'default' .mdw with Admin as the username, and a blank password, if the .mdw has a blank password for the Admin account, it returns a 'hash' representing the Admin account to Access, which it then uses with JET to interact with the .mdb it is opening. If there is a password on the Admin account in the .mdw, it then prompts the user for a User Name and password, and if a correct combination is entered, that 'hash' is then sent to JET to open the .mdb. So to sum up so far, the .mdw just gives Access a 'hash', which is the combination of the User Name and UID, to use in an .mdb. The .mdb then has permissions, for EVERYTHING (read/insert/update/delete for data, design read/write, etc, for every object type in the .mdb, including the database itself). These permissions go off the hash (though the interface shows you user names(and groups) from the current .mdw). This is where the fatal flaw in Access User Level security is. Someone that knows DAO pretty well can actually spoof the 'hash', without an .mdw at all. Don't ask me how, I'm really not that great at DAO, but I know you can do it. However, as I said, if you can ignore this one flaw (which you have too, if you want to 'secure' an .mdb with sticking to an Access FE/BE scenario), then you just have to follow some simple rules to secure a database with an .mdw. First, don't give the Admin account ANY permissions that you don't want EVERYONE to have. Because it doesn't matter if you put a password in YOUR .mdw, simply creating a new .mdw allows any user to have the same credentials without a password (because the 'hash' provided by a new blank .mdw will be the same as any .mdw you put a password on the Admin account). Next, the cracking tools that 'hack' .mdw's must have access to the .mdw. So if you limit who has the .mdw's with higher level access, you limit who can actually do admin level tasks (with the exception of the DAO loophole). Record the Usernames and UID's that you use to create an account, because a lost or corrupted .mdw account can only be recreated with that information. Other than that, Access User Level security can allow you to control every aspect of 'security' within an .mdw, in regards to any Access object. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 8:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Lambert: His requirement is that anyone who tries to modify the back end directly will be unable to do so but will still be able to modify the data through the front end. It looks like with your approach a member of the group will be able to open the back end directly and be able to modify the data in the tables. True? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From stuart at lexacorp.com.pg Mon Apr 26 17:25:34 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2010 08:25:34 +1000 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: , , Message-ID: <4BD612DE.15371.407E313@stuart.lexacorp.com.pg> I was sailing at the weekend and catching up with work yesterday so I have only just had a look at this thread. Here's my take on it. Assume 100 soldiers to avoid having to retype "percent" all the time. 1. 15 did not lose a leg 2. 20 did not an arm 3. 25 did not an ear 4. 30 did not lose an eye Best case (for the general): These were all different soldiers, that means that 90 fall into one of these categories and 10 lost all four items. . Worst case: All of the cat 1,2 and 3 soldiers also fall into cat 4 - in which case 70 lost all four items. -- Stuart On 26 Apr 2010 at 13:27, Drew Wutka wrote: > That's not very helpful, where is my logic wrong? > > Drew > From rockysmolin at bchacc.com Mon Apr 26 17:36:19 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 15:36:19 -0700 Subject: [AccessD] Move Folder Message-ID: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Dear List: What is the best way (through code, of course) to move a folder and all of its subfolders and files to a new location? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From stuart at lexacorp.com.pg Mon Apr 26 17:47:51 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2010 08:47:51 +1000 Subject: [AccessD] Move Folder In-Reply-To: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Message-ID: <4BD61817.15116.41C484B@stuart.lexacorp.com.pg> If you use a File System Object, it's quite simple - I think I have some code somewhere which I will try to dig out. But I don't like using FSO because it relies on Scripting being available. Without it, you have to re-iterate through the subfolder, recreate them in a new location and filecopy/kill everything in the first location. I may have some code somewhere for that to. -- Stuart On 26 Apr 2010 at 15:36, Rocky Smolin wrote: > Dear List: > > What is the best way (through code, of course) to move a folder and all of > its subfolders and files to a new location? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > From DWUTKA at Marlow.com Mon Apr 26 17:47:42 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 17:47:42 -0500 Subject: [AccessD] Move Folder In-Reply-To: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Message-ID: Robocopy..... command line utility. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 5:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Move Folder Dear List: What is the best way (through code, of course) to move a folder and all of its subfolders and files to a new location? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Mon Apr 26 18:16:15 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 16:16:15 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Message-ID: That looks like it'll do the job - unless he wants it in an Access form prompting for source and target locations. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Folder Robocopy..... command line utility. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 5:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Move Folder Dear List: What is the best way (through code, of course) to move a folder and all of its subfolders and files to a new location? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Apr 26 18:17:23 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 16:17:23 -0700 Subject: [AccessD] Move Folder In-Reply-To: <4BD61817.15116.41C484B@stuart.lexacorp.com.pg> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> <4BD61817.15116.41C484B@stuart.lexacorp.com.pg> Message-ID: Good idea. I used FSO once before. He's a bit more adept as a user than most - knows how to set a reference if he has to. But I'm forwarding Drew's suggestion of Robocopy to see if that will do the job. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, April 26, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Folder If you use a File System Object, it's quite simple - I think I have some code somewhere which I will try to dig out. But I don't like using FSO because it relies on Scripting being available. Without it, you have to re-iterate through the subfolder, recreate them in a new location and filecopy/kill everything in the first location. I may have some code somewhere for that to. -- Stuart On 26 Apr 2010 at 15:36, Rocky Smolin wrote: > Dear List: > > What is the best way (through code, of course) to move a folder and all of > its subfolders and files to a new location? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Mon Apr 26 18:21:39 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Mon, 26 Apr 2010 19:21:39 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <317FD16AFA74466E8C2ECAC1C786E748@Server> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><06458FEBD7924387914BFB788F78AE75@SusanOne> <317FD16AFA74466E8C2ECAC1C786E748@Server> Message-ID: Priceless !!! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, April 24, 2010 05:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Puzzles Don't grovel too soon Susan, Drew was predicating his code on a false assumption. The question stated: You are one of 1000 people who shall be executed using the following.... There is NO survivor. It clearly states that YOU amongst others will be executed. You may WISH to be the survivor but you cannot because you are going to be executed. It states that in the first line. I often come across people who write code that does not do what was required but merely does what the programmer thinks is required.... How you doing Drew? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, April 23, 2010 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles > Final Survivor: > 512 I grumb...grovel at your feet o' great one. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Mon Apr 26 18:37:33 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 26 Apr 2010 17:37:33 -0600 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , Message-ID: You can run Robocopy from an Access form: ShellWait "Robocopy.exe """ & strSourcePath & """ \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V /log+:\\Gracsrv\GOMFiles\Robocopy.log" The above was part of a data migration routine I wrote a while back. There was a discussion about ShellWait a couple or 3 months back. In the excerpted line above, r(1) was the 2nd field in a recordset that was being iterated as strSourcePath was changed in the code loop as well. The optional switches for Robocopy are numerous and in this case include appending the results in a log file. There are recursive folder move routines that work as well and I've written more than a fiew based on the Access Developer Handbook, but there is another quite easy approach: Name "Z:\Launch\Test" as "S:\dash\Taste" will move all the files below the folder named Test. I use this to move files a fair bit. It moves the files and sub folders nicely. It will not create the dash folder but it will create the Taste folder and move everything that was in Test to the new Taste folder so you may need to create the path with MkDir building out from the root, but once you've got the base path, it creates all the sub folders. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 16:16:15 -0700 > Subject: Re: [AccessD] Move Folder > > That looks like it'll do the job - unless he wants it in an Access form > prompting for source and target locations. > > Rocky > > > -----Original Message----- > Sent: Monday, April 26, 2010 3:48 PM > Subject: Re: [AccessD] Move Folder > > Robocopy..... command line utility. > > Drew > > -----Original Message----- > > Dear List: > > What is the best way (through code, of course) to move a folder and all of > its subfolders and files to a new location? > > > > MTIA > > > > Rocky Smolin > _________________________________________________________________ Videos that have everyone talking! Now also in HD! http://go.microsoft.com/?linkid=9724465 From stuart at lexacorp.com.pg Mon Apr 26 18:52:17 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2010 09:52:17 +1000 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, <4BD61817.15116.41C484B@stuart.lexacorp.com.pg>, Message-ID: <4BD62731.32099.457481D@stuart.lexacorp.com.pg> I've never looked at Robocopy before. I just found that it comes build in with Vista and later so typed "Robocopy /?" at the commandline. I'd like to retract my previous response. My new response is: My preferred way to move a folder through code is by building a Robocopy command string and passing it to a Shell() :-) -- Stuart On 26 Apr 2010 at 16:17, Rocky Smolin wrote: > Good idea. I used FSO once before. He's a bit more adept as a user than > most - knows how to set a reference if he has to. > > But I'm forwarding Drew's suggestion of Robocopy to see if that will do the > job. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Monday, April 26, 2010 3:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Move Folder > > If you use a File System Object, it's quite simple - I think I have some > code somewhere which I will try to dig out. > > But I don't like using FSO because it relies on Scripting being available. > > Without it, you have to re-iterate through the subfolder, recreate them in a > new location and filecopy/kill everything in the first location. I may have > some code somewhere for that to. > > -- > Stuart > > > > On 26 Apr 2010 at 15:36, Rocky Smolin wrote: > > > Dear List: > > > > What is the best way (through code, of course) to move a folder and all of > > its subfolders and files to a new location? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 19:00:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 17:00:57 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Message-ID: Nope. Wants it in a module - pass the two arguments - source folder with path, target folder. I give him the module, he'll set up the calling form. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Move Folder That looks like it'll do the job - unless he wants it in an Access form prompting for source and target locations. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Folder Robocopy..... command line utility. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 5:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Move Folder Dear List: What is the best way (through code, of course) to move a folder and all of its subfolders and files to a new location? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 26 19:04:55 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 17:04:55 -0700 Subject: [AccessD] Move Folder In-Reply-To: <4BD62731.32099.457481D@stuart.lexacorp.com.pg> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, <4BD61817.15116.41C484B@stuart.lexacorp.com.pg>, <4BD62731.32099.457481D@stuart.lexacorp.com.pg> Message-ID: <19A4730C4B1F459688D9BF504A9B8CD2@HAL9005> Well, client wants me to send a module with a function that accepts two arguments - source folder, and target path. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, April 26, 2010 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Folder I've never looked at Robocopy before. I just found that it comes build in with Vista and later so typed "Robocopy /?" at the commandline. I'd like to retract my previous response. My new response is: My preferred way to move a folder through code is by building a Robocopy command string and passing it to a Shell() :-) -- Stuart On 26 Apr 2010 at 16:17, Rocky Smolin wrote: > Good idea. I used FSO once before. He's a bit more adept as a user than > most - knows how to set a reference if he has to. > > But I'm forwarding Drew's suggestion of Robocopy to see if that will do the > job. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Monday, April 26, 2010 3:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Move Folder > > If you use a File System Object, it's quite simple - I think I have some > code somewhere which I will try to dig out. > > But I don't like using FSO because it relies on Scripting being available. > > Without it, you have to re-iterate through the subfolder, recreate them in a > new location and filecopy/kill everything in the first location. I may have > some code somewhere for that to. > > -- > Stuart > > > > On 26 Apr 2010 at 15:36, Rocky Smolin wrote: > > > Dear List: > > > > What is the best way (through code, of course) to move a folder and all of > > its subfolders and files to a new location? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 19:10:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 17:10:29 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , Message-ID: <67F770D72504462583FAB0551549519B@HAL9005> Name "Z:\Launch\Test" as "S:\dash\Taste" That looks like the most efficient way. He wants a module that accepts the source folder and target paths. So using your example I would call my module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which would have just this: Public Sub MoveIt(argSource, argTarget) Name argSource & " as " & argTarget MsgBox "Folder Moved" End sub But is Name a key word that does this moving? I've never seen it in VBA like that. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Monday, April 26, 2010 4:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Move Folder You can run Robocopy from an Access form: ShellWait "Robocopy.exe """ & strSourcePath & """ \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V /log+:\\Gracsrv\GOMFiles\Robocopy.log" The above was part of a data migration routine I wrote a while back. There was a discussion about ShellWait a couple or 3 months back. In the excerpted line above, r(1) was the 2nd field in a recordset that was being iterated as strSourcePath was changed in the code loop as well. The optional switches for Robocopy are numerous and in this case include appending the results in a log file. There are recursive folder move routines that work as well and I've written more than a fiew based on the Access Developer Handbook, but there is another quite easy approach: Name "Z:\Launch\Test" as "S:\dash\Taste" will move all the files below the folder named Test. I use this to move files a fair bit. It moves the files and sub folders nicely. It will not create the dash folder but it will create the Taste folder and move everything that was in Test to the new Taste folder so you may need to create the path with MkDir building out from the root, but once you've got the base path, it creates all the sub folders. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 16:16:15 -0700 > Subject: Re: [AccessD] Move Folder > > That looks like it'll do the job - unless he wants it in an Access > form prompting for source and target locations. > > Rocky > > > -----Original Message----- > Sent: Monday, April 26, 2010 3:48 PM > Subject: Re: [AccessD] Move Folder > > Robocopy..... command line utility. > > Drew > > -----Original Message----- > > Dear List: > > What is the best way (through code, of course) to move a folder and > all of its subfolders and files to a new location? > > > > MTIA > > > > Rocky Smolin > _________________________________________________________________ Videos that have everyone talking! Now also in HD! http://go.microsoft.com/?linkid=9724465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Mon Apr 26 19:35:25 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 26 Apr 2010 18:35:25 -0600 Subject: [AccessD] Move Folder In-Reply-To: <67F770D72504462583FAB0551549519B@HAL9005> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , , , , , <67F770D72504462583FAB0551549519B@HAL9005> Message-ID: >From the debug Immediate window, I typed Filecopy, clicked in the word and hit F1. From there click the link to 'See Also' and click the "Name Statement" in the Visual Basic Reference. Name Statement: Renames a disk file, directory, or folder. Syntax Name oldpathname As newpathname The Name statement syntax has these parts: oldpathname: Required. String expression that specifies the existing file name and location ? may include directory or folder, and drive. newpathname: Required. String expression that specifies the new file name and location ? may include directory or folder, and drive. The file name specified by newpathname can't already exist. Remarks The Name statement renames a file and moves it to a different directory or folder, if necessary. Name can move a file across drives, but it can only rename an existing directory or folder when both newpathname and oldpathname are located on the same drive. Name cannot create a new file, directory, or folder. Using Name on an open file produces an error. You must close an open file before renaming it. Name arguments cannot include multiple-character (*) and single-character (?) wildcards. You can use Robocoy provided you get the quotemarks correct. That's why I gave you an example. I use a ShellWait API call so that it proceeds synchronously. The code doesn't continue until the copy is complete. I prefer the Robocopy myself, but Name works fine in most instances. The remarks seem to indicate that Name won't do exactly what I said it does, but, I tested it before the previous posting and it works on our Windows Server system with the VBA that comes with Access 2003 just fine. The quick way to test it is to just try it from the immediate window. I'd test for existing initial folder, non existent target folder and success result with Dir before your msgbox. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 17:10:29 -0700 > Subject: Re: [AccessD] Move Folder > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > That looks like the most efficient way. He wants a module that accepts the > source folder and target paths. So using your example I would call my > module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which would have just this: > > Public Sub MoveIt(argSource, argTarget) > > Name argSource & " as " & argTarget > MsgBox "Folder Moved" > > End sub > > But is Name a key word that does this moving? I've never seen it in VBA > like that. > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Monday, April 26, 2010 4:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Move Folder > > > You can run Robocopy from an Access form: > > > > ShellWait "Robocopy.exe """ & strSourcePath & """ > \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V > /log+:\\Gracsrv\GOMFiles\Robocopy.log" > > The above was part of a data migration routine I wrote a while back. There > was a discussion about ShellWait a couple or 3 months back. In the > excerpted line above, r(1) was the 2nd field in a recordset that was being > iterated as strSourcePath was changed in the code loop as well. The > optional switches for Robocopy are numerous and in this case include > appending the results in a log file. > > > > There are recursive folder move routines that work as well and I've written > more than a fiew based on the Access Developer Handbook, but there is > another quite easy approach: > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > will move all the files below the folder named Test. I use this to move > files a fair bit. It moves the files and sub folders nicely. It will not > create the dash folder but it will create the Taste folder and move > everything that was in Test to the new Taste folder so you may need to > create the path with MkDir building out from the root, but once you've got > the base path, it creates all the sub folders. > > > > > Ciao J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 16:16:15 -0700 > > Subject: Re: [AccessD] Move Folder > > > > That looks like it'll do the job - unless he wants it in an Access > > form prompting for source and target locations. > > > > Rocky > > > > > > -----Original Message----- > > Sent: Monday, April 26, 2010 3:48 PM > > Subject: Re: [AccessD] Move Folder > > > > Robocopy..... command line utility. > > > > Drew > > > > -----Original Message----- > > > > Dear List: > > > > What is the best way (through code, of course) to move a folder and > > all of its subfolders and files to a new location? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > > _________________________________________________________________ > Videos that have everyone talking! Now also in HD! > http://go.microsoft.com/?linkid=9724465 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Got a phone? Get Hotmail & Messenger for mobile! http://go.microsoft.com/?linkid=9724464 From stuart at lexacorp.com.pg Mon Apr 26 19:40:00 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2010 10:40:00 +1000 Subject: [AccessD] Move Folder In-Reply-To: <19A4730C4B1F459688D9BF504A9B8CD2@HAL9005> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, <4BD62731.32099.457481D@stuart.lexacorp.com.pg>, <19A4730C4B1F459688D9BF504A9B8CD2@HAL9005> Message-ID: <4BD63260.11525.482F4FF@stuart.lexacorp.com.pg> Function MoveDir(Source as String, Destination as String) Dim strShell as String strShell = "Robocopy """ & Source & """ """ & Destination & """ /E /COPYALL /MOVE " Shell strShell End Function Note the escaped quotes around Source and Destination to handle paths containing spaces. If you want to wait for this to finish before doing anything else, refer to the list thread "Shelling to a batch file" on 6/7 March 2010 for a ShellWait() function. -- Stuart On 26 Apr 2010 at 17:04, Rocky Smolin wrote: > Well, client wants me to send a module with a function that accepts two > arguments - source folder, and target path. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Monday, April 26, 2010 4:52 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Move Folder > > I've never looked at Robocopy before. I just found that it comes build in > with Vista and later so typed "Robocopy /?" at the commandline. > > I'd like to retract my previous response. My new response is: > > My preferred way to move a folder through code is by building a Robocopy > command string > and passing it to a Shell() :-) > > > -- > Stuart > > > > On 26 Apr 2010 at 16:17, Rocky Smolin wrote: > > > Good idea. I used FSO once before. He's a bit more adept as a user than > > most - knows how to set a reference if he has to. > > > > But I'm forwarding Drew's suggestion of Robocopy to see if that will do > the > > job. > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > > Sent: Monday, April 26, 2010 3:48 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Move Folder > > > > If you use a File System Object, it's quite simple - I think I have some > > code somewhere which I will try to dig out. > > > > But I don't like using FSO because it relies on Scripting being available. > > > > Without it, you have to re-iterate through the subfolder, recreate them in > a > > new location and filecopy/kill everything in the first location. I may > have > > some code somewhere for that to. > > > > -- > > Stuart > > > > > > > > On 26 Apr 2010 at 15:36, Rocky Smolin wrote: > > > > > Dear List: > > > > > > What is the best way (through code, of course) to move a folder and all > of > > > its subfolders and files to a new location? > > > > > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > > > Beach Access Software > > > > > > 858-259-4334 > > > > > > www.e-z-mrp.com > > > > > > www.bchacc.com > > > > > > > > > > > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Apr 26 19:39:09 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 26 Apr 2010 19:39:09 -0500 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005> Message-ID: Robocopy has logging for the results... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Move Folder That looks like it'll do the job - unless he wants it in an Access form prompting for source and target locations. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, April 26, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Folder Robocopy..... command line utility. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, April 26, 2010 5:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Move Folder Dear List: What is the best way (through code, of course) to move a folder and all of its subfolders and files to a new location? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwelz at hotmail.com Mon Apr 26 20:26:28 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 26 Apr 2010 19:26:28 -0600 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , Message-ID: To quote: 'The optional switches for Robocopy are numerous and in this case include appending the results in a log file.' The problem with a log is you need to parse the text log to report issues and I doubt that is within the scope of Rocky's 'do it in a form with source and destination parameters'. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: DWUTKA at marlow.com > Subject: Re: [AccessD] Move Folder > > Robocopy has logging for the results... > > Drew > > -----Original Message----- > Subject: Re: [AccessD] Move Folder > > That looks like it'll do the job - unless he wants it in an Access form > prompting for source and target locations. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, April 26, 2010 3:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Move Folder > > Robocopy..... command line utility. > > Drew _________________________________________________________________ Hotmail & Messenger are available on your phone. Try now. http://go.microsoft.com/?linkid=9724461 From jwcolby at colbyconsulting.com Mon Apr 26 20:42:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 26 Apr 2010 21:42:12 -0400 Subject: [AccessD] And why not? Message-ID: <4BD640F4.5040001@colbyconsulting.com> The move to exaflop supercomputers Today, the world's fastest supercomputers are topping out at about 1 petaflop--or 1,000 trillion floating point operations per second. Biswas said there are about five such computers on Earth today, two at the LINK Oak Ridge National Lab in Tennessee, one in China, and one in Germany. And Pleiades is just behind that. But already, he said, the next-generation thinking in the industry is envisioning machines capable of exaflop computing, which is the equivalent of 1,000 petaflops. Of course, as with any new supercomputing threshold, the question isn't necessarily whether it's possible to build the hardware, but whether it's also possible to optimize applications for such a powerful system. And not only that, Biswas said, but there's also a crucial question of whether it's possible to build machines that powerful and yet have them be energy efficient. A petaflop supercomputer draws about 7 megawatts of power, he explained. That would mean that without increased efficiencies, an exaflop machine would draw 7 gigawatts. And that's simply out of the question. "You can't expect to have a nuclear reactor sitting next to a supercomputer," he said. ;) -- John W. Colby www.ColbyConsulting.com From wdhindman at dejpolsystems.com Mon Apr 26 20:39:18 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Apr 2010 21:39:18 -0400 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server><541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> Message-ID: <258417D43FB6470584BC9C2652FC221F@jislaptopdev> Drew ...this is a well known puzzle with literally hundreds, if not thousands, of proofs posted across the net. ...bing Lewis Carroll pensioner puzzle ...the minimum is 10, not 45. William -------------------------------------------------- From: "Drew Wutka" Sent: Monday, April 26, 2010 5:55 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Friday Puzzles > I am really curious where you guys are getting this 'math' error.' > > Here is the puzzle, as posted: > > " At the end of a battle, the general regrouped his soldiers. They had > done badly. 70% of them had lost, at least, one eye. 75% had lost at > least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had > lost one leg. > The general wants to know how many of his men had lost, at minimum, one > eye, one ear, one arm and one leg. He is stingy with the medals so he > wants to reward the fewest number of soldiers. What percentage of the > soldiers should receive medals? You have 5 minutes to decide." > > Using that statement, as worded, if there are 100 soldiers in the > general's group: > > 70 lost an eye > > 75 lost an ear > > 80 lost an arm > > 85 lost a leg > > So unless you use faulty logic that there are really 310 soldiers, there > are at a MAXIMUM of 70 that lost all four body parts, and a minimum of > 45. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 26, 2010 12:01 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > He was on the right track but his arithmetic is flawed. > > I had already posted the graphical answer. No doubt he cribbed his idea > from mine - but that is Code Boy for you...!! > > You on the other hand are....well, on the other hand... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Monday, April 26, 2010 5:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > ...you and Drew ...birds of a feather ...and both wrong ;) > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Monday, April 26, 2010 2:59 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> >> >> No need. Clean as a whistle. >> >> Min # with all 4 is 1. >> Max # with all 4 is 75 >> Max # with diff(least + most) is 55 >> QED >> >> Just suffle these up and down the line and you will see. X=injury 0 = > no >> injury. >> >> >> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxxxxxxxxxxxx >> >> > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxxxxxxxxxxxx >> >> > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxx0000000000 >> >> > 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxx0000000000 >> >> >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman >> Sent: Monday, April 26, 2010 3:10 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> >> ...did you wipe that carefully after extracting it? :) >> >> William >> >> -------------------------------------------------- >> From: "Max Wanadoo" >> Sent: Sunday, April 25, 2010 1:52 AM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: Re: [AccessD] OT: Friday Puzzles >> >>> >>> >>> I say 55% of whatever value is applied. >>> >>> Max >>> >>> >>> "The general wants to know how many of his men had lost, at minimum, > one >>> eye, >>> one ear, one arm and one leg. He is stingy with the medals so he > wants to >>> reward the fewest number of soldiers. What percentage of the soldiers >>> should >>> receive medals? >>> >>> ...if the query were what was the minimum % of soldiers who had lost > all >>> 4 >>> body parts, the answer would be 10% >>> >>> ...but the query was "how many of his men had lost, at minimum, one > eye, >>> one ear, one arm and one leg" and that could be anywhere between 10% > and >>> 70% >>> >>> ...there is insufficient data to provide an answer to the query > posited >>> ...imnsho of course :) >>> >>> 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Apr 26 22:10:20 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 26 Apr 2010 20:10:20 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , , , , , <67F770D72504462583FAB0551549519B@HAL9005> Message-ID: Thanks Jurgen. I used F1 to try to find the Name stuff but couldn't. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Monday, April 26, 2010 5:35 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Move Folder >From the debug Immediate window, I typed Filecopy, clicked in the word and hit F1. From there click the link to 'See Also' and click the "Name Statement" in the Visual Basic Reference. Name Statement: Renames a disk file, directory, or folder. Syntax Name oldpathname As newpathname The Name statement syntax has these parts: oldpathname: Required. String expression that specifies the existing file name and location ? may include directory or folder, and drive. newpathname: Required. String expression that specifies the new file name and location ? may include directory or folder, and drive. The file name specified by newpathname can't already exist. Remarks The Name statement renames a file and moves it to a different directory or folder, if necessary. Name can move a file across drives, but it can only rename an existing directory or folder when both newpathname and oldpathname are located on the same drive. Name cannot create a new file, directory, or folder. Using Name on an open file produces an error. You must close an open file before renaming it. Name arguments cannot include multiple-character (*) and single-character (?) wildcards. You can use Robocoy provided you get the quotemarks correct. That's why I gave you an example. I use a ShellWait API call so that it proceeds synchronously. The code doesn't continue until the copy is complete. I prefer the Robocopy myself, but Name works fine in most instances. The remarks seem to indicate that Name won't do exactly what I said it does, but, I tested it before the previous posting and it works on our Windows Server system with the VBA that comes with Access 2003 just fine. The quick way to test it is to just try it from the immediate window. I'd test for existing initial folder, non existent target folder and success result with Dir before your msgbox. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 17:10:29 -0700 > Subject: Re: [AccessD] Move Folder > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > That looks like the most efficient way. He wants a module that accepts > the source folder and target paths. So using your example I would call > my module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which would have just this: > > Public Sub MoveIt(argSource, argTarget) > > Name argSource & " as " & argTarget > MsgBox "Folder Moved" > > End sub > > But is Name a key word that does this moving? I've never seen it in > VBA like that. > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Monday, April 26, 2010 4:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Move Folder > > > You can run Robocopy from an Access form: > > > > ShellWait "Robocopy.exe """ & strSourcePath & """ > \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V > /log+:\\Gracsrv\GOMFiles\Robocopy.log" > > The above was part of a data migration routine I wrote a while back. > There was a discussion about ShellWait a couple or 3 months back. In > the excerpted line above, r(1) was the 2nd field in a recordset that > was being iterated as strSourcePath was changed in the code loop as > well. The optional switches for Robocopy are numerous and in this case > include appending the results in a log file. > > > > There are recursive folder move routines that work as well and I've > written more than a fiew based on the Access Developer Handbook, but > there is another quite easy approach: > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > will move all the files below the folder named Test. I use this to > move files a fair bit. It moves the files and sub folders nicely. It > will not create the dash folder but it will create the Taste folder > and move everything that was in Test to the new Taste folder so you > may need to create the path with MkDir building out from the root, but > once you've got the base path, it creates all the sub folders. > > > > > Ciao J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 16:16:15 -0700 > > Subject: Re: [AccessD] Move Folder > > > > That looks like it'll do the job - unless he wants it in an Access > > form prompting for source and target locations. > > > > Rocky > > > > > > -----Original Message----- > > Sent: Monday, April 26, 2010 3:48 PM > > Subject: Re: [AccessD] Move Folder > > > > Robocopy..... command line utility. > > > > Drew > > > > -----Original Message----- > > > > Dear List: > > > > What is the best way (through code, of course) to move a folder and > > all of its subfolders and files to a new location? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > > _________________________________________________________________ > Videos that have everyone talking! Now also in HD! > http://go.microsoft.com/?linkid=9724465 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Got a phone? Get Hotmail & Messenger for mobile! http://go.microsoft.com/?linkid=9724464 -- 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 Apr 26 22:56:21 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 27 Apr 2010 04:56:21 +0100 Subject: [AccessD] And why not? In-Reply-To: <4BD640F4.5040001@colbyconsulting.com> References: <4BD640F4.5040001@colbyconsulting.com> Message-ID: <801BA672E2594F9D872A8F607D410796@Server> ...and thinking about the basics...how thick would the power cable have to be? Don't think it would plug into my wall socket somehow. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, April 27, 2010 2:42 AM To: Access Developers discussion and problem solving Subject: [AccessD] And why not? The move to exaflop supercomputers Today, the world's fastest supercomputers are topping out at about 1 petaflop--or 1,000 trillion floating point operations per second. Biswas said there are about five such computers on Earth today, two at the LINK Oak Ridge National Lab in Tennessee, one in China, and one in Germany. And Pleiades is just behind that. But already, he said, the next-generation thinking in the industry is envisioning machines capable of exaflop computing, which is the equivalent of 1,000 petaflops. Of course, as with any new supercomputing threshold, the question isn't necessarily whether it's possible to build the hardware, but whether it's also possible to optimize applications for such a powerful system. And not only that, Biswas said, but there's also a crucial question of whether it's possible to build machines that powerful and yet have them be energy efficient. A petaflop supercomputer draws about 7 megawatts of power, he explained. That would mean that without increased efficiencies, an exaflop machine would draw 7 gigawatts. And that's simply out of the question. "You can't expect to have a nuclear reactor sitting next to a supercomputer," he said. ;) -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 27 05:28:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 27 Apr 2010 06:28:41 -0400 Subject: [AccessD] And why not? In-Reply-To: <801BA672E2594F9D872A8F607D410796@Server> References: <4BD640F4.5040001@colbyconsulting.com> <801BA672E2594F9D872A8F607D410796@Server> Message-ID: <4BD6BC59.60900@colbyconsulting.com> It becomes real obvious why Intel and AMD are focusing so much energy on making their CPUs more efficient. There are lots of companies building their own data centers with near-super computer capacity. Think Google, Bing and Yahoo for starters, Amazon and other cloud vendors etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > ...and thinking about the basics...how thick would the power cable have to > be? > > Don't think it would plug into my wall socket somehow. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, April 27, 2010 2:42 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] And why not? > > The move to exaflop supercomputers > Today, the world's fastest supercomputers are topping out at about 1 > petaflop--or 1,000 trillion > floating point operations per second. Biswas said there are about five such > computers on Earth > today, two at the LINK Oak Ridge National Lab in Tennessee, one in China, > and one in Germany. And > Pleiades is just behind that. But already, he said, the next-generation > thinking in the industry is > envisioning machines capable of exaflop computing, which is the equivalent > of 1,000 petaflops. > > Of course, as with any new supercomputing threshold, the question isn't > necessarily whether it's > possible to build the hardware, but whether it's also possible to optimize > applications for such a > powerful system. And not only that, Biswas said, but there's also a crucial > question of whether it's > possible to build machines that powerful and yet have them be energy > efficient. > > A petaflop supercomputer draws about 7 megawatts of power, he explained. > That would mean that > without increased efficiencies, an exaflop machine would draw 7 gigawatts. > And that's simply out of > the question. "You can't expect to have a nuclear reactor sitting next to a > supercomputer," he said. > > ;) > From jwcolby at colbyconsulting.com Tue Apr 27 05:28:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 27 Apr 2010 06:28:41 -0400 Subject: [AccessD] And why not? In-Reply-To: <801BA672E2594F9D872A8F607D410796@Server> References: <4BD640F4.5040001@colbyconsulting.com> <801BA672E2594F9D872A8F607D410796@Server> Message-ID: <4BD6BC59.60900@colbyconsulting.com> It becomes real obvious why Intel and AMD are focusing so much energy on making their CPUs more efficient. There are lots of companies building their own data centers with near-super computer capacity. Think Google, Bing and Yahoo for starters, Amazon and other cloud vendors etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > ...and thinking about the basics...how thick would the power cable have to > be? > > Don't think it would plug into my wall socket somehow. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, April 27, 2010 2:42 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] And why not? > > The move to exaflop supercomputers > Today, the world's fastest supercomputers are topping out at about 1 > petaflop--or 1,000 trillion > floating point operations per second. Biswas said there are about five such > computers on Earth > today, two at the LINK Oak Ridge National Lab in Tennessee, one in China, > and one in Germany. And > Pleiades is just behind that. But already, he said, the next-generation > thinking in the industry is > envisioning machines capable of exaflop computing, which is the equivalent > of 1,000 petaflops. > > Of course, as with any new supercomputing threshold, the question isn't > necessarily whether it's > possible to build the hardware, but whether it's also possible to optimize > applications for such a > powerful system. And not only that, Biswas said, but there's also a crucial > question of whether it's > possible to build machines that powerful and yet have them be energy > efficient. > > A petaflop supercomputer draws about 7 megawatts of power, he explained. > That would mean that > without increased efficiencies, an exaflop machine would draw 7 gigawatts. > And that's simply out of > the question. "You can't expect to have a nuclear reactor sitting next to a > supercomputer," he said. > > ;) > From DWUTKA at Marlow.com Tue Apr 27 09:25:55 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 27 Apr 2010 09:25:55 -0500 Subject: [AccessD] OT: Friday Puzzles In-Reply-To: <258417D43FB6470584BC9C2652FC221F@jislaptopdev> References: <62692E97A91A4FEC9E59F5248B9E1C3F@HAL9005><96758BC5571A49299161C8A80C920088@SusanOne><1E12CC110CEB450E997E1259A4D233A1@ptiorl.local><909229D82D4A49B088CDC8D2868D0BA2@SusanOne><003a01cae3a9$b14ea560$6a01a8c0@nant> <005301cae3d2$b0ee6050$6a01a8c0@nant> <000301cae3db$430192c0$c904b840$@net><211C7D92B4C1440D978AE24D77B512F4@jislaptopdev><000c01cae41f$832130b0$89639210$@net><33B819B207004F4BBFD37F7493E539E9@Server><541E2B78C002471A9751D2C3A5EA97CF@jislaptopdev> <258417D43FB6470584BC9C2652 FC221F@jislaptopdev> Message-ID: Hmmmmmm, interesting. I really need to be getting more sleep...... 5| 10| 15| 20| 25| 30| 35| 40| 45| 50| 55| 60| 65| 70| 75| 80| 85| 90| 95|100| eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye|eye| | | | | | | | | | | |ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear|ear| arm|arm|arm|arm| | | | | |arm|arm|arm|arm|arm|arm|arm|arm|arm|arm|arm| leg|leg|leg|leg|leg|leg|leg|leg|leg| | | |leg|leg|leg|leg|leg|leg|leg|leg| 65 and 70 are the only overlaps there. Go figure. Can't learn if you don't admit your wrong sometimes! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, April 26, 2010 8:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Puzzles Drew ...this is a well known puzzle with literally hundreds, if not thousands, of proofs posted across the net. ...bing Lewis Carroll pensioner puzzle ...the minimum is 10, not 45. William -------------------------------------------------- From: "Drew Wutka" Sent: Monday, April 26, 2010 5:55 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Friday Puzzles > I am really curious where you guys are getting this 'math' error.' > > Here is the puzzle, as posted: > > " At the end of a battle, the general regrouped his soldiers. They had > done badly. 70% of them had lost, at least, one eye. 75% had lost at > least one ear. 80% had lost, at minimum, an arm. 85% of the soldiers had > lost one leg. > The general wants to know how many of his men had lost, at minimum, one > eye, one ear, one arm and one leg. He is stingy with the medals so he > wants to reward the fewest number of soldiers. What percentage of the > soldiers should receive medals? You have 5 minutes to decide." > > Using that statement, as worded, if there are 100 soldiers in the > general's group: > > 70 lost an eye > > 75 lost an ear > > 80 lost an arm > > 85 lost a leg > > So unless you use faulty logic that there are really 310 soldiers, there > are at a MAXIMUM of 70 that lost all four body parts, and a minimum of > 45. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, April 26, 2010 12:01 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Friday Puzzles > > He was on the right track but his arithmetic is flawed. > > I had already posted the graphical answer. No doubt he cribbed his idea > from mine - but that is Code Boy for you...!! > > You on the other hand are....well, on the other hand... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Monday, April 26, 2010 5:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Friday Puzzles > > ...you and Drew ...birds of a feather ...and both wrong ;) > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Monday, April 26, 2010 2:59 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Friday Puzzles > >> >> >> No need. Clean as a whistle. >> >> Min # with all 4 is 1. >> Max # with all 4 is 75 >> Max # with diff(least + most) is 55 >> QED >> >> Just suffle these up and down the line and you will see. X=injury 0 = > no >> injury. >> >> >> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxxxxxxxxxxxx >> >> > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxxxxxxxxxxxx >> >> > 000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxx0000000000 >> >> > 0000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > xxxx >> xxxxxxxxxxxxxx0000000000 >> >> >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman >> Sent: Monday, April 26, 2010 3:10 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Friday Puzzles >> >> >> ...did you wipe that carefully after extracting it? :) >> >> William >> >> -------------------------------------------------- >> From: "Max Wanadoo" >> Sent: Sunday, April 25, 2010 1:52 AM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: Re: [AccessD] OT: Friday Puzzles >> >>> >>> >>> I say 55% of whatever value is applied. >>> >>> Max >>> >>> >>> "The general wants to know how many of his men had lost, at minimum, > one >>> eye, >>> one ear, one arm and one leg. He is stingy with the medals so he > wants to >>> reward the fewest number of soldiers. What percentage of the soldiers >>> should >>> receive medals? >>> >>> ...if the query were what was the minimum % of soldiers who had lost > all >>> 4 >>> body parts, the answer would be 10% >>> >>> ...but the query was "how many of his men had lost, at minimum, one > eye, >>> one ear, one arm and one leg" and that could be anywhere between 10% > and >>> 70% >>> >>> ...there is insufficient data to provide an answer to the query > posited >>> ...imnsho of course :) >>> >>> 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From John.Clark at niagaracounty.com Tue Apr 27 09:36:01 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 27 Apr 2010 10:36:01 -0400 Subject: [AccessD] test Message-ID: <4BD6BE11.167F.006B.0@niagaracounty.com> my email doesn't seem to be getting here...can you hear me now? From paul.hartland at googlemail.com Tue Apr 27 09:42:18 2010 From: paul.hartland at googlemail.com (Paul Hartland) Date: Tue, 27 Apr 2010 15:42:18 +0100 Subject: [AccessD] test In-Reply-To: <4BD6BE11.167F.006B.0@niagaracounty.com> References: <4BD6BE11.167F.006B.0@niagaracounty.com> Message-ID: yes On 27 April 2010 15:36, John Clark wrote: > my email doesn't seem to be getting here...can you hear me now? > -- > 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 John.Clark at niagaracounty.com Tue Apr 27 09:51:51 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 27 Apr 2010 10:51:51 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <4BD6BE11.167F.006B.0@niagaracounty.com> References: <4BD6BE11.167F.006B.0@niagaracounty.com> Message-ID: <4BD6C1C6.167F.006B.0@niagaracounty.com> I've got something to run by y'all, which seems even too strange to ask...but, I've been looking into it for a bit now, and I'm not getting anywhere. I recently inherited a program, which is used by a fellow county, to keep track of something we do. The user department prints some reports, and one of the items they need to print is a certificate. What this does currently is open MS Word and print the cert, but it doesn't seem to be connected in any way and just basically opens the last cert in Word, and they retype the pertinent data, which is just about 4 things (i.e. Name, SSN, Address, and maybe one or two more things). OK, here's the thing...obviously...to me anyhow...it doesn't seem very "proper" to open up Word and have to type out anything...the data should just "happen" automagically. So, I wanted to setup the document to be a merge (I think). But, after gaining advice from many of you people, I don't think that is worthy of "plan A" either, because this seems to be version specific and I don't want to worry about that...believe me, in this place, people don't plan things out and it WILL be a problem in the future. So, I decided to go about this the same way I did w/my last program. Again, guided by several on this list, I recreated the form I needed, w/in Access, and just did it as an Access report. Everything brought together at run-time and all self contained. But, here is why I am asking for input... This form has our letterhead w/in it...just a logo and address, pretty much. No problem, I'll just add it to the report's design. But, it looks terrible! The same seal that I have in word, looks awful in Access. I tried many different versions of our county seal, and they all look terrible in an Access report. Does anyone have any insight on why exactly this is the case? BTW, it is 2007 that I am using for this. Thanks for any enlightenment! J Clark From John.Clark at niagaracounty.com Tue Apr 27 09:54:21 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 27 Apr 2010 10:54:21 -0400 Subject: [AccessD] test In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com> Message-ID: <4BD6C25B.167F.006B.0@niagaracounty.com> Thanks...yeah, I see it coming through now. I don't know what was going on, but I sent a message yesterday that didn't appear to come through, and it failed again this morning. Our system is currently fine, and now this is coming through, so I sent again. It looked like I had an issue w/the address...but I just replied, as I usually do, to an earlier post and replaced text and subject w/my own. Oh, well, hopefully it works now. From garykjos at gmail.com Tue Apr 27 09:57:16 2010 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 27 Apr 2010 09:57:16 -0500 Subject: [AccessD] test In-Reply-To: <4BD6BE11.167F.006B.0@niagaracounty.com> References: <4BD6BE11.167F.006B.0@niagaracounty.com> Message-ID: Loud and clear. On Tue, Apr 27, 2010 at 9:36 AM, John Clark wrote: > my email doesn't seem to be getting here...can you hear me now? > -- > 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 shamil at smsconsulting.spb.ru Tue Apr 27 13:02:27 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 27 Apr 2010 22:02:27 +0400 Subject: [AccessD] Add-In Express 2009 for MS Office and .NET - Message-ID: <000601cae633$cda120d0$6501a8c0@nant> Hi All -- I have got v.0.0.2 of Access.PowerTools Add-In (Beta) published here http://accesspowertools.codeplex.com/WorkItem/View.aspx?WorkItemId=20 as downloadable zip-file attachment. Please test it in your spare time if you have some, and post your feedback. (For testing you have to have at least .NET Framework 3.5 SP1 installed on your PC together with MS Access 2000, XP, 2003, 2007 or 2010. ) As you can find here: http://accesspowertools.codeplex.com/workitem/list/basic I have got fixed quite some issues found in prev. version by Max and William. I currently decided to postpone/drop "Click-Once" add-in deployment feature as Add-In Express 2010 for .NET has a new feature, which they call "Click-Twice" (http://www.add-in-express.com/creating-addins-blog/2010/04/09/clicktwice-ms i-web-deployment/): this new feature currently look more appropriate for me, and maybe I will get it implemented and deployed in the future versions of Access.PowerTools Add-in. Some delay with current release was caused mainly by the fact that I've been waiting for 100 downloads of previous version - as soon as I have got that much downloads a few days ago, I have started to work on new release, which Beta 1 is published today. Source code for the new v.0.0.2 is planned to be published soon. Please post you comments/proposals here or better on http://accesspowertools.codeplex.com/, and you can find your comments/proposals accepted, implemented and released in future versions of Access.PowerTools Add-In... Thank you. --Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, February 18, 2010 8:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Add-In Express 2009 for MS Office and .NET - Shamil ...will do ...your schedule is fine ...I work for a living as well :) ...hope you get your vacation in, I could sure use one myself William -------------------------------------------------- From: "Shamil Salakhetdinov" Sent: Thursday, February 18, 2010 11:17 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Add-In Express 2009 for MS Office and .NET - > Hi William -- > > Thank you for your notes. I have added them to the project's Issue > Tracker. > Please feel free next time to add your notes directly there. > > In setup folder of add-in there should be \Logs subfolder with a log file, > which could give me some clues why add-in hangs in some cases. > Please send it to me privately. > > As I noted earlier this release was aimed at testing add-in setup for > different MS Access and MS Windows versions - and that worked well. > Add-in also works well with test databases supplied with it. > > I hope most/all of the current issues can be solved but please take into > account that add-in uses undocumented feature, and it may happen that for > some cases it will not work at all... > > It would be helpful if you can make an entry directly on project site (new > discussion viki) with links to the issues, which you qualify as critical, > and arranged in the order you wanted to have them fixed. > > If I will not leave for short holiday next week then I will try to make > critical fixes that next week... > (Planned date for the next release - middle of March (in general I'm > planning currently one release for every month of this year)) > > I'm currently working for a customer project which is rather urgent for > release.... > > Thank you. > > -- > Shamil > <<< snip >>> From mmattys at rochester.rr.com Tue Apr 27 15:31:35 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Tue, 27 Apr 2010 16:31:35 -0400 Subject: [AccessD] Weird problem - ugly logo in reports References: <4BD6BE11.167F.006B.0@niagaracounty.com> <4BD6C1C6.167F.006B.0@niagaracounty.com> Message-ID: <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Hi John, Since I can remember, Access has always converted all images to bitmap first, thereby bloating your database. I doubt this has changed in 2007. After that, Access places the bitmap into your report at the width and height you specify, often removing scanlines and pixelating in the process of making it fit. Long ago, we decided to export to either bookmarked dot or rtf templates and they come out spectacularly. Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "John Clark" To: Sent: Tuesday, April 27, 2010 10:51 AM Subject: [AccessD] Weird problem - ugly logo in reports > I've got something to run by y'all, which seems even too strange to > ask...but, I've been looking into it for a bit now, and I'm not getting > anywhere. > > I recently inherited a program, which is used by a fellow county, to keep > track of something we do. The user department prints some reports, and one > of the items they need to print is a certificate. What this does currently > is open MS Word and print the cert, but it doesn't seem to be connected in > any way and just basically opens the last cert in Word, and they retype > the pertinent data, which is just about 4 things (i.e. Name, SSN, Address, > and maybe one or two more things). > > OK, here's the thing...obviously...to me anyhow...it doesn't seem very > "proper" to open up Word and have to type out anything...the data should > just "happen" automagically. So, I wanted to setup the document to be a > merge (I think). But, after gaining advice from many of you people, I > don't think that is worthy of "plan A" either, because this seems to be > version specific and I don't want to worry about that...believe me, in > this place, people don't plan things out and it WILL be a problem in the > future. > > So, I decided to go about this the same way I did w/my last program. > Again, guided by several on this list, I recreated the form I needed, w/in > Access, and just did it as an Access report. Everything brought together > at run-time and all self contained. > > But, here is why I am asking for input... > > This form has our letterhead w/in it...just a logo and address, pretty > much. No problem, I'll just add it to the report's design. But, it looks > terrible! The same seal that I have in word, looks awful in Access. I > tried many different versions of our county seal, and they all look > terrible in an Access report. > > Does anyone have any insight on why exactly this is the case? > > BTW, it is 2007 that I am using for this. > > Thanks for any enlightenment! > > J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Tue Apr 27 15:35:33 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 27 Apr 2010 16:35:33 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <4BD6C1C6.167F.006B.0@niagaracounty.com> References: <4BD6BE11.167F.006B.0@niagaracounty.com> <4BD6C1C6.167F.006B.0@niagaracounty.com> Message-ID: <0C08E2C9137D406ABCEB8DE7982B5B5C@jislaptopdev> ...lots of questions... ...what do you mean by "terrible"? ...is it distorted, the edges jagged, poor quality ...what? ...did you embed it in an image control set to Clip mode and resize the control to fit? ...what resolution is it designed at? ...what graphics format is it in? ...Word has native graphics filters that Access does not unless you reference the Word or Office Object ...first thing I'd try ...Lebans.com has a graphics filter for Access that uses Intel's native graphics ...it works quite well ...if all else fails, use one of the graphics conversion programs to convert it to an emf format which Access can use regardless ...hth William -------------------------------------------------- From: "John Clark" Sent: Tuesday, April 27, 2010 10:51 AM To: Subject: [AccessD] Weird problem - ugly logo in reports > I've got something to run by y'all, which seems even too strange to > ask...but, I've been looking into it for a bit now, and I'm not getting > anywhere. > > I recently inherited a program, which is used by a fellow county, to keep > track of something we do. The user department prints some reports, and one > of the items they need to print is a certificate. What this does currently > is open MS Word and print the cert, but it doesn't seem to be connected in > any way and just basically opens the last cert in Word, and they retype > the pertinent data, which is just about 4 things (i.e. Name, SSN, Address, > and maybe one or two more things). > > OK, here's the thing...obviously...to me anyhow...it doesn't seem very > "proper" to open up Word and have to type out anything...the data should > just "happen" automagically. So, I wanted to setup the document to be a > merge (I think). But, after gaining advice from many of you people, I > don't think that is worthy of "plan A" either, because this seems to be > version specific and I don't want to worry about that...believe me, in > this place, people don't plan things out and it WILL be a problem in the > future. > > So, I decided to go about this the same way I did w/my last program. > Again, guided by several on this list, I recreated the form I needed, w/in > Access, and just did it as an Access report. Everything brought together > at run-time and all self contained. > > But, here is why I am asking for input... > > This form has our letterhead w/in it...just a logo and address, pretty > much. No problem, I'll just add it to the report's design. But, it looks > terrible! The same seal that I have in word, looks awful in Access. I > tried many different versions of our county seal, and they all look > terrible in an Access report. > > Does anyone have any insight on why exactly this is the case? > > BTW, it is 2007 that I am using for this. > > Thanks for any enlightenment! > > J Clark > -- > 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 Apr 27 16:08:12 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 27 Apr 2010 22:08:12 +0100 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com> <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: Yes, And also in Access you have THREE options on how to view the image. Try each one in turn from the properties dialog. It can be CLIP, STRETCH or ZOOM and each one will display differently. Also, open it in an editor, say MS Office Picture Manager and make sure you have it exactly as you want it, sized etc. It needs to be a Bitmap Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Tuesday, April 27, 2010 9:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Weird problem - ugly logo in reports Hi John, Since I can remember, Access has always converted all images to bitmap first, thereby bloating your database. I doubt this has changed in 2007. After that, Access places the bitmap into your report at the width and height you specify, often removing scanlines and pixelating in the process of making it fit. Long ago, we decided to export to either bookmarked dot or rtf templates and they come out spectacularly. Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "John Clark" To: Sent: Tuesday, April 27, 2010 10:51 AM Subject: [AccessD] Weird problem - ugly logo in reports > I've got something to run by y'all, which seems even too strange to > ask...but, I've been looking into it for a bit now, and I'm not getting > anywhere. > > I recently inherited a program, which is used by a fellow county, to keep > track of something we do. The user department prints some reports, and one > of the items they need to print is a certificate. What this does currently > is open MS Word and print the cert, but it doesn't seem to be connected in > any way and just basically opens the last cert in Word, and they retype > the pertinent data, which is just about 4 things (i.e. Name, SSN, Address, > and maybe one or two more things). > > OK, here's the thing...obviously...to me anyhow...it doesn't seem very > "proper" to open up Word and have to type out anything...the data should > just "happen" automagically. So, I wanted to setup the document to be a > merge (I think). But, after gaining advice from many of you people, I > don't think that is worthy of "plan A" either, because this seems to be > version specific and I don't want to worry about that...believe me, in > this place, people don't plan things out and it WILL be a problem in the > future. > > So, I decided to go about this the same way I did w/my last program. > Again, guided by several on this list, I recreated the form I needed, w/in > Access, and just did it as an Access report. Everything brought together > at run-time and all self contained. > > But, here is why I am asking for input... > > This form has our letterhead w/in it...just a logo and address, pretty > much. No problem, I'll just add it to the report's design. But, it looks > terrible! The same seal that I have in word, looks awful in Access. I > tried many different versions of our county seal, and they all look > terrible in an Access report. > > Does anyone have any insight on why exactly this is the case? > > BTW, it is 2007 that I am using for this. > > Thanks for any enlightenment! > > J Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Tue Apr 27 16:16:27 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Tue, 27 Apr 2010 17:16:27 -0400 Subject: [AccessD] Weird problem - ugly logo in reports References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: I should mention that a Word Template allows you to use the Send To: option and neatly embeds the report into an Outlook email ... Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 27, 2010 5:08 PM Subject: Re: [AccessD] Weird problem - ugly logo in reports > Yes, > And also in Access you have THREE options on how to view the image. > Try each one in turn from the properties dialog. > It can be CLIP, STRETCH or ZOOM and each one will display differently. > > Also, open it in an editor, say MS Office Picture Manager and make sure > you > have it exactly as you want it, sized etc. > > It needs to be a Bitmap > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Tuesday, April 27, 2010 9:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Weird problem - ugly logo in reports > > > > Hi John, > > Since I can remember, Access has always converted all images to bitmap > first, > thereby bloating your database. I doubt this has changed in 2007. > > After that, Access places the bitmap into your report at the width and > height you specify, > often removing scanlines and pixelating in the process of making it fit. > > Long ago, we decided to export to either bookmarked dot or rtf templates > and they come out spectacularly. > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > ----- Original Message ----- > From: "John Clark" > To: > Sent: Tuesday, April 27, 2010 10:51 AM > Subject: [AccessD] Weird problem - ugly logo in reports > > >> I've got something to run by y'all, which seems even too strange to >> ask...but, I've been looking into it for a bit now, and I'm not getting >> anywhere. >> >> I recently inherited a program, which is used by a fellow county, to keep >> track of something we do. The user department prints some reports, and >> one > >> of the items they need to print is a certificate. What this does >> currently > >> is open MS Word and print the cert, but it doesn't seem to be connected >> in > >> any way and just basically opens the last cert in Word, and they retype >> the pertinent data, which is just about 4 things (i.e. Name, SSN, >> Address, > >> and maybe one or two more things). >> >> OK, here's the thing...obviously...to me anyhow...it doesn't seem very >> "proper" to open up Word and have to type out anything...the data should >> just "happen" automagically. So, I wanted to setup the document to be a >> merge (I think). But, after gaining advice from many of you people, I >> don't think that is worthy of "plan A" either, because this seems to be >> version specific and I don't want to worry about that...believe me, in >> this place, people don't plan things out and it WILL be a problem in the >> future. >> >> So, I decided to go about this the same way I did w/my last program. >> Again, guided by several on this list, I recreated the form I needed, >> w/in > >> Access, and just did it as an Access report. Everything brought together >> at run-time and all self contained. >> >> But, here is why I am asking for input... >> >> This form has our letterhead w/in it...just a logo and address, pretty >> much. No problem, I'll just add it to the report's design. But, it looks >> terrible! The same seal that I have in word, looks awful in Access. I >> tried many different versions of our county seal, and they all look >> terrible in an Access report. >> >> Does anyone have any insight on why exactly this is the case? >> >> BTW, it is 2007 that I am using for this. >> >> Thanks for any enlightenment! >> >> J Clark >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Wed Apr 28 01:45:32 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 28 Apr 2010 02:45:32 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: ???? I use jpgs and gifs w/o any problem. William -------------------------------------------------- From: "Max Wanadoo" Sent: Tuesday, April 27, 2010 5:08 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Weird problem - ugly logo in reports > Yes, > And also in Access you have THREE options on how to view the image. > Try each one in turn from the properties dialog. > It can be CLIP, STRETCH or ZOOM and each one will display differently. > > Also, open it in an editor, say MS Office Picture Manager and make sure > you > have it exactly as you want it, sized etc. > > It needs to be a Bitmap > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Tuesday, April 27, 2010 9:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Weird problem - ugly logo in reports > > > > Hi John, > > Since I can remember, Access has always converted all images to bitmap > first, > thereby bloating your database. I doubt this has changed in 2007. > > After that, Access places the bitmap into your report at the width and > height you specify, > often removing scanlines and pixelating in the process of making it fit. > > Long ago, we decided to export to either bookmarked dot or rtf templates > and they come out spectacularly. > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > ----- Original Message ----- > From: "John Clark" > To: > Sent: Tuesday, April 27, 2010 10:51 AM > Subject: [AccessD] Weird problem - ugly logo in reports > > >> I've got something to run by y'all, which seems even too strange to >> ask...but, I've been looking into it for a bit now, and I'm not getting >> anywhere. >> >> I recently inherited a program, which is used by a fellow county, to keep >> track of something we do. The user department prints some reports, and >> one > >> of the items they need to print is a certificate. What this does >> currently > >> is open MS Word and print the cert, but it doesn't seem to be connected >> in > >> any way and just basically opens the last cert in Word, and they retype >> the pertinent data, which is just about 4 things (i.e. Name, SSN, >> Address, > >> and maybe one or two more things). >> >> OK, here's the thing...obviously...to me anyhow...it doesn't seem very >> "proper" to open up Word and have to type out anything...the data should >> just "happen" automagically. So, I wanted to setup the document to be a >> merge (I think). But, after gaining advice from many of you people, I >> don't think that is worthy of "plan A" either, because this seems to be >> version specific and I don't want to worry about that...believe me, in >> this place, people don't plan things out and it WILL be a problem in the >> future. >> >> So, I decided to go about this the same way I did w/my last program. >> Again, guided by several on this list, I recreated the form I needed, >> w/in > >> Access, and just did it as an Access report. Everything brought together >> at run-time and all self contained. >> >> But, here is why I am asking for input... >> >> This form has our letterhead w/in it...just a logo and address, pretty >> much. No problem, I'll just add it to the report's design. But, it looks >> terrible! The same seal that I have in word, looks awful in Access. I >> tried many different versions of our county seal, and they all look >> terrible in an Access report. >> >> Does anyone have any insight on why exactly this is the case? >> >> BTW, it is 2007 that I am using for this. >> >> Thanks for any enlightenment! >> >> J Clark >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From darren at activebilling.com.au Wed Apr 28 02:00:55 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Wed, 28 Apr 2010 17:00:55 +1000 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <4BD6C1C6.167F.006B.0@niagaracounty.com> References: <4BD6BE11.167F.006B.0@niagaracounty.com> <4BD6C1C6.167F.006B.0@niagaracounty.com> Message-ID: Hi John I agree with your sentiments about Word and converting it to an Access report I have to ask-Are these embedded objects you are trying to display? (IE BLOBs or OLE objects?) If so - try and steer clear of that and just store the path to the image in a table somewhere (Text 255 char) and then retrieve that value and pass it to the DOT picture property of an ImageControl EG assume path = "C:\Images\Corporate\ourlgo.jpg" Assume form with an image control called "imgLogoDisplay" Code would be something like Me.imgLogoDisplay.picture = "C:\Images\Corporate\Ourlogo" I've not issues with this - Using a combination of BMP and JPG (and others) files for years - the biggest issue is getting the Zoom, Clip etc options right at design time. DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, 28 April 2010 12:52 AM To: accessd at databaseadvisors.com Subject: [AccessD] Weird problem - ugly logo in reports I've got something to run by y'all, which seems even too strange to ask...but, I've been looking into it for a bit now, and I'm not getting anywhere. I recently inherited a program, which is used by a fellow county, to keep track of something we do. The user department prints some reports, and one of the items they need to print is a certificate. What this does currently is open MS Word and print the cert, but it doesn't seem to be connected in any way and just basically opens the last cert in Word, and they retype the pertinent data, which is just about 4 things (i.e. Name, SSN, Address, and maybe one or two more things). OK, here's the thing...obviously...to me anyhow...it doesn't seem very "proper" to open up Word and have to type out anything...the data should just "happen" automagically. So, I wanted to setup the document to be a merge (I think). But, after gaining advice from many of you people, I don't think that is worthy of "plan A" either, because this seems to be version specific and I don't want to worry about that...believe me, in this place, people don't plan things out and it WILL be a problem in the future. So, I decided to go about this the same way I did w/my last program. Again, guided by several on this list, I recreated the form I needed, w/in Access, and just did it as an Access report. Everything brought together at run-time and all self contained. But, here is why I am asking for input... This form has our letterhead w/in it...just a logo and address, pretty much. No problem, I'll just add it to the report's design. But, it looks terrible! The same seal that I have in word, looks awful in Access. I tried many different versions of our county seal, and they all look terrible in an Access report. Does anyone have any insight on why exactly this is the case? BTW, it is 2007 that I am using for this. Thanks for any enlightenment! J Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Wed Apr 28 09:10:49 2010 From: jwcolby at gmail.com (John W Colby) Date: Wed, 28 Apr 2010 10:10:49 -0400 Subject: [AccessD] My email is down Message-ID: <4BD841E9.9090809@gmail.com> You have probably been getting bounce messages. My apologies. -- John W. Colby www.ColbyConsulting.com From jwcolby at gmail.com Wed Apr 28 10:07:30 2010 From: jwcolby at gmail.com (jwcolby) Date: Wed, 28 Apr 2010 11:07:30 -0400 Subject: [AccessD] test Message-ID: <4BD84F32.10902@gmail.com> Is there anybody out there... From shamil at smsconsulting.spb.ru Wed Apr 28 10:11:53 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 28 Apr 2010 19:11:53 +0400 Subject: [AccessD] test In-Reply-To: <4BD84F32.10902@gmail.com> References: <4BD84F32.10902@gmail.com> Message-ID: <000301cae6e5$23c961a0$6501a8c0@nant> Yes! :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 7:08 PM To: accessd at databaseadvisors.com Subject: [AccessD] test Is there anybody out there... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Apr 28 10:17:08 2010 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 28 Apr 2010 10:17:08 -0500 Subject: [AccessD] test In-Reply-To: <4BD84F32.10902@gmail.com> References: <4BD84F32.10902@gmail.com> Message-ID: Hello! On Wed, Apr 28, 2010 at 10:07 AM, jwcolby wrote: > Is there anybody out there... > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From DWUTKA at Marlow.com Wed Apr 28 10:18:59 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 28 Apr 2010 10:18:59 -0500 Subject: [AccessD] test In-Reply-To: <4BD84F32.10902@gmail.com> References: <4BD84F32.10902@gmail.com> Message-ID: Yes. I admitted I was wrong, and the list just went quiet! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] test Is there anybody out there... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at gmail.com Wed Apr 28 10:27:39 2010 From: jwcolby at gmail.com (jwcolby) Date: Wed, 28 Apr 2010 11:27:39 -0400 Subject: [AccessD] test In-Reply-To: <000301cae6e5$23c961a0$6501a8c0@nant> References: <4BD84F32.10902@gmail.com> <000301cae6e5$23c961a0$6501a8c0@nant> Message-ID: <4BD853EB.1070609@gmail.com> Holy cow batman! My ColbyConsulting website and email is down. I downloaded and installed the new thunderbird (to my server thank god!). I told it to set up gmail as my email account. It went off and started "organizing" me. I now have 47 bajillion folders and accounts and subforlder and... I have no clue at all what to use or why I have all this stuff, and furthermore I can't delete the folders I do not want. I have an inbox with "local folders" jwcolby at gmail.com. I have a "drafts". Not under the inbox mind you, just "out there". I have a "Sent", with subfolders for local folders sent - jwcolby at ... sent mail - jwcolby at ... AT THIS POINT ONE HAS TO ASK... what is the difference between sent and sent mail. What else would be sent besides mail? I have an "all mail". I have a spam I have a trash under which I have local folders trash (looks like a manilla folder) trash (looks like a green alien I have an Outbox I have a Local Folders outbox I have a jwcolby at ... gmail starred AccessD Infoengine In short I have TWENTY FOUR FOLDERS AND SUBFOLDERS AND THIS AND THAT all supposedly to deal with my email. Mind you I have not even begun to create subfolders to sort my email, this is all just crap that Thunderbird decided it needed in order to organize my email. I wonder if I can uninstall Thunderbird and move on to something more ... user friendly. Not Happy In North Carolina. aka jwcolby On 4/28/2010 11:11 AM, Shamil Salakhetdinov wrote: > Yes! :) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 7:08 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] test > > Is there anybody out there... > > > From Chester_Kaup at kindermorgan.com Wed Apr 28 10:41:02 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 28 Apr 2010 10:41:02 -0500 Subject: [AccessD] Query Timeout Problem Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629A6@houex1.kindermorgan.com> I have a query that uses three SQL server tables linked by ODBC. The query runs OK in the query grid with the query timeout set to 0. When I try to run the SQL statement in VBA it returns an ODBC connect failure message indicating to me that it time out. Here is some of the code. Maybe I am setting the timeout wrong? Dim MyDb As DAO.Database Set MyDb = CurrentDb() MyDb.QueryTimeout = 0 strSQL = "some query statements" Set RS3 = MyDb.OpenRecordset(strSql) 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 Lambert.Heenan at chartisinsurance.com Wed Apr 28 10:43:55 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 28 Apr 2010 11:43:55 -0400 Subject: [AccessD] Thunderbird and Gmail (Was 'test') In-Reply-To: <4BD853EB.1070609@gmail.com> References: <4BD84F32.10902@gmail.com> <000301cae6e5$23c961a0$6501a8c0@nant> <4BD853EB.1070609@gmail.com> Message-ID: So you told Thunderbird to use MAPI to hook up to Gmail? All those folders were created at Gmail's behest I think. You'll get used to it eventually. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 11:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] test Holy cow batman! My ColbyConsulting website and email is down. I downloaded and installed the new thunderbird (to my server thank god!). I told it to set up gmail as my email account. It went off and started "organizing" me. I now have 47 bajillion folders and accounts and subforlder and... I have no clue at all what to use or why I have all this stuff, and furthermore I can't delete the folders I do not want. I have an inbox with "local folders" jwcolby at gmail.com. I have a "drafts". Not under the inbox mind you, just "out there". I have a "Sent", with subfolders for local folders sent - jwcolby at ... sent mail - jwcolby at ... AT THIS POINT ONE HAS TO ASK... what is the difference between sent and sent mail. What else would be sent besides mail? I have an "all mail". I have a spam I have a trash under which I have local folders trash (looks like a manilla folder) trash (looks like a green alien I have an Outbox I have a Local Folders outbox I have a jwcolby at ... gmail starred AccessD Infoengine In short I have TWENTY FOUR FOLDERS AND SUBFOLDERS AND THIS AND THAT all supposedly to deal with my email. Mind you I have not even begun to create subfolders to sort my email, this is all just crap that Thunderbird decided it needed in order to organize my email. I wonder if I can uninstall Thunderbird and move on to something more ... user friendly. Not Happy In North Carolina. aka jwcolby On 4/28/2010 11:11 AM, Shamil Salakhetdinov wrote: > Yes! :) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 7:08 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] test > > Is there anybody out there... > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Wed Apr 28 10:49:04 2010 From: jwcolby at gmail.com (John W Colby) Date: Wed, 28 Apr 2010 11:49:04 -0400 Subject: [AccessD] Query Timeout Problem In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629A6@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629A6@houex1.kindermorgan.com> Message-ID: <4BD858F0.90909@gmail.com> You can set the timeout directly in the query properties. Open the query in design view. Right click the top pane or otherwise open the properties dialog. Look for ODBC timeout. I have no idea if 0 is a valid value in this property. 0 means wait forever. John W. Colby www.ColbyConsulting.com Kaup, Chester wrote: > I have a query that uses three SQL server tables linked by ODBC. The query runs OK in the query grid with the query timeout set to 0. When I try to run the SQL statement in VBA it returns an ODBC connect failure message indicating to me that it time out. Here is some of the code. Maybe I am setting the timeout wrong? > > Dim MyDb As DAO.Database > Set MyDb = CurrentDb() > MyDb.QueryTimeout = 0 > > strSQL = "some query statements" > > Set RS3 = MyDb.OpenRecordset(strSql) > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. > > From Chester_Kaup at kindermorgan.com Wed Apr 28 11:12:44 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 28 Apr 2010 11:12:44 -0500 Subject: [AccessD] Query Timeout Problem In-Reply-To: <4BD858F0.90909@gmail.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629A6@houex1.kindermorgan.com> <4BD858F0.90909@gmail.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629C2@houex1.kindermorgan.com> It is not a hard coded query. The SQL string is built in VBA. It thus appears that the querytimeout command does not work. Tried changing value to 500 with no change. Maybe the ODBCTimeout property? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W Colby Sent: Wednesday, April 28, 2010 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Timeout Problem You can set the timeout directly in the query properties. Open the query in design view. Right click the top pane or otherwise open the properties dialog. Look for ODBC timeout. I have no idea if 0 is a valid value in this property. 0 means wait forever. John W. Colby www.ColbyConsulting.com Kaup, Chester wrote: > I have a query that uses three SQL server tables linked by ODBC. The query runs OK in the query grid with the query timeout set to 0. When I try to run the SQL statement in VBA it returns an ODBC connect failure message indicating to me that it time out. Here is some of the code. Maybe I am setting the timeout wrong? > > Dim MyDb As DAO.Database > Set MyDb = CurrentDb() > MyDb.QueryTimeout = 0 > > strSQL = "some query statements" > > Set RS3 = MyDb.OpenRecordset(strSql) > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Apr 28 11:22:54 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 28 Apr 2010 17:22:54 +0100 Subject: [AccessD] test In-Reply-To: References: <4BD84F32.10902@gmail.com> Message-ID: Drew, I thought I was wrong once, but when I checked back I found I was mistaken... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, April 28, 2010 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] test Yes. I admitted I was wrong, and the list just went quiet! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] test Is there anybody out there... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Wed Apr 28 11:49:10 2010 From: edzedz at comcast.net (Edward Zuris) Date: Wed, 28 Apr 2010 10:49:10 -0600 Subject: [AccessD] Query Timeout Problem In-Reply-To: <4BD858F0.90909@gmail.com> Message-ID: <000201cae6f2$ba3610e0$5bdea8c0@edz1> I use the value of zero for my long executing ODBC queries. The down side, if over the internet, wait forever can be a very long wait. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W Colby Sent: Wednesday, April 28, 2010 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Timeout Problem You can set the timeout directly in the query properties. Open the query in design view. Right click the top pane or otherwise open the properties dialog. Look for ODBC timeout. I have no idea if 0 is a valid value in this property. 0 means wait forever. John W. Colby www.ColbyConsulting.com Kaup, Chester wrote: > I have a query that uses three SQL server tables linked by ODBC. The > query runs OK in the query grid with the query timeout set to 0. When > I try to run the SQL statement in VBA it returns an ODBC connect > failure message indicating to me that it time out. Here is some of the > code. Maybe I am setting the timeout wrong? > > Dim MyDb As DAO.Database > Set MyDb = CurrentDb() > MyDb.QueryTimeout = 0 > > strSQL = "some query statements" > > Set RS3 = MyDb.OpenRecordset(strSql) > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Wed Apr 28 11:58:20 2010 From: edzedz at comcast.net (Edward Zuris) Date: Wed, 28 Apr 2010 10:58:20 -0600 Subject: [AccessD] Query Timeout Problem In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C191DE629C2@houex1.kindermorgan.com> Message-ID: <000301cae6f4$0206f6e0$5bdea8c0@edz1> One answer might be to have VBA create the query and then maybe change its ODBCTimeout property. Dim qdfNew As QueryDef ' ***************************************************** ' Remove Previous SQL. ' On Error Resume Next dbsV2H.QueryDefs.Delete "qry_GetPolicyA" On Error GoTo 0 ' ***************************************************** ' Create a Query. ' Set qdfNew = dbsV2H.CreateQueryDef("qry_GetPolicyA", sSQLString) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, April 28, 2010 10:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Timeout Problem It is not a hard coded query. The SQL string is built in VBA. It thus appears that the querytimeout command does not work. Tried changing value to 500 with no change. Maybe the ODBCTimeout property? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W Colby Sent: Wednesday, April 28, 2010 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Timeout Problem You can set the timeout directly in the query properties. Open the query in design view. Right click the top pane or otherwise open the properties dialog. Look for ODBC timeout. I have no idea if 0 is a valid value in this property. 0 means wait forever. John W. Colby www.ColbyConsulting.com Kaup, Chester wrote: > I have a query that uses three SQL server tables linked by ODBC. The > query runs OK in the query grid with the query timeout set to 0. When > I try to run the SQL statement in VBA it returns an ODBC connect > failure message indicating to me that it time out. Here is some of the > code. Maybe I am setting the timeout wrong? > > Dim MyDb As DAO.Database > Set MyDb = CurrentDb() > MyDb.QueryTimeout = 0 > > strSQL = "some query statements" > > Set RS3 = MyDb.OpenRecordset(strSql) > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Apr 28 12:17:41 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 28 Apr 2010 18:17:41 +0100 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: <433BEF21A1564D4FAE887C3FA3375B7D@Server> Oops, did I say that. Sorry, can be bmp, jpg or gif. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, April 28, 2010 7:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Weird problem - ugly logo in reports ???? I use jpgs and gifs w/o any problem. William -------------------------------------------------- From: "Max Wanadoo" Sent: Tuesday, April 27, 2010 5:08 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Weird problem - ugly logo in reports > Yes, > And also in Access you have THREE options on how to view the image. > Try each one in turn from the properties dialog. > It can be CLIP, STRETCH or ZOOM and each one will display differently. > > Also, open it in an editor, say MS Office Picture Manager and make sure > you > have it exactly as you want it, sized etc. > > It needs to be a Bitmap > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Tuesday, April 27, 2010 9:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Weird problem - ugly logo in reports > > > > Hi John, > > Since I can remember, Access has always converted all images to bitmap > first, > thereby bloating your database. I doubt this has changed in 2007. > > After that, Access places the bitmap into your report at the width and > height you specify, > often removing scanlines and pixelating in the process of making it fit. > > Long ago, we decided to export to either bookmarked dot or rtf templates > and they come out spectacularly. > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > ----- Original Message ----- > From: "John Clark" > To: > Sent: Tuesday, April 27, 2010 10:51 AM > Subject: [AccessD] Weird problem - ugly logo in reports > > >> I've got something to run by y'all, which seems even too strange to >> ask...but, I've been looking into it for a bit now, and I'm not getting >> anywhere. >> >> I recently inherited a program, which is used by a fellow county, to keep >> track of something we do. The user department prints some reports, and >> one > >> of the items they need to print is a certificate. What this does >> currently > >> is open MS Word and print the cert, but it doesn't seem to be connected >> in > >> any way and just basically opens the last cert in Word, and they retype >> the pertinent data, which is just about 4 things (i.e. Name, SSN, >> Address, > >> and maybe one or two more things). >> >> OK, here's the thing...obviously...to me anyhow...it doesn't seem very >> "proper" to open up Word and have to type out anything...the data should >> just "happen" automagically. So, I wanted to setup the document to be a >> merge (I think). But, after gaining advice from many of you people, I >> don't think that is worthy of "plan A" either, because this seems to be >> version specific and I don't want to worry about that...believe me, in >> this place, people don't plan things out and it WILL be a problem in the >> future. >> >> So, I decided to go about this the same way I did w/my last program. >> Again, guided by several on this list, I recreated the form I needed, >> w/in > >> Access, and just did it as an Access report. Everything brought together >> at run-time and all self contained. >> >> But, here is why I am asking for input... >> >> This form has our letterhead w/in it...just a logo and address, pretty >> much. No problem, I'll just add it to the report's design. But, it looks >> terrible! The same seal that I have in word, looks awful in Access. I >> tried many different versions of our county seal, and they all look >> terrible in an Access report. >> >> Does anyone have any insight on why exactly this is the case? >> >> BTW, it is 2007 that I am using for this. >> >> Thanks for any enlightenment! >> >> J Clark >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Wed Apr 28 12:26:08 2010 From: edzedz at comcast.net (Edward Zuris) Date: Wed, 28 Apr 2010 11:26:08 -0600 Subject: [AccessD] An embarrassing question Message-ID: <000001cae6f7$e4798440$5bdea8c0@edz1> I have an embarrassing question to ask. While working on my computer in Access 2000, I can clone, create, and rename forms with ease. However, at the client's site, working from an administrator account, I can't do that. The first time the new form just disappears. Then with any following attempts Access 2000 claims I am creating a duplicate form or object. What do I have to do to over come this embarrassment? Thanks. . . Sincerely, Ed Zuris. From rockysmolin at bchacc.com Wed Apr 28 12:30:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 28 Apr 2010 10:30:29 -0700 Subject: [AccessD] Password Protected Database Message-ID: Dear List: Is there a simple way to tell if an mdb is password protected other than trying to open it and trapping the error? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From hkotsch at arcor.de Wed Apr 28 12:33:21 2010 From: hkotsch at arcor.de (Helmut Kotsch) Date: Wed, 28 Apr 2010 19:33:21 +0200 Subject: [AccessD] An embarrassing question In-Reply-To: <000001cae6f7$e4798440$5bdea8c0@edz1> Message-ID: Could it be that the customers access doesn't show hidden objects. Go to options and check whether hidden object are displayed. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Edward Zuris Gesendet: Mittwoch, 28. April 2010 19:26 An: accessd at databaseadvisors.com Betreff: [AccessD] An embarrassing question I have an embarrassing question to ask. While working on my computer in Access 2000, I can clone, create, and rename forms with ease. However, at the client's site, working from an administrator account, I can't do that. The first time the new form just disappears. Then with any following attempts Access 2000 claims I am creating a duplicate form or object. What do I have to do to over come this embarrassment? Thanks. . . Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Wed Apr 28 13:41:03 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 28 Apr 2010 14:41:03 -0400 Subject: [AccessD] An embarrassing question In-Reply-To: <000001cae6f7$e4798440$5bdea8c0@edz1> References: <000001cae6f7$e4798440$5bdea8c0@edz1> Message-ID: <48E44494B4294324A863984E82F68491@XPS> If this is with one specific DB, I would suspect database corruption. If with all, then the Access install itself. To test, open Access, create a new DB, create a simple form, then try to copy it. If it works, then it's the DB that is the issue. If not, then it's Access. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Wednesday, April 28, 2010 1:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] An embarrassing question I have an embarrassing question to ask. While working on my computer in Access 2000, I can clone, create, and rename forms with ease. However, at the client's site, working from an administrator account, I can't do that. The first time the new form just disappears. Then with any following attempts Access 2000 claims I am creating a duplicate form or object. What do I have to do to over come this embarrassment? Thanks. . . Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Wed Apr 28 14:27:02 2010 From: edzedz at comcast.net (Edward Zuris) Date: Wed, 28 Apr 2010 13:27:02 -0600 Subject: [AccessD] An embarrassing question In-Reply-To: Message-ID: <001701cae708$c80277c0$5bdea8c0@edz1> I'll check later today. Could it be some kind of protection thing with the system.mdw But I haven't played with that in over five-six-seven years. I have forgotten almost everything about system.mdw, and even if it could be the cause of anything like this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Wednesday, April 28, 2010 11:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] An embarrassing question Could it be that the customers access doesn't show hidden objects. Go to options and check whether hidden object are displayed. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Edward Zuris Gesendet: Mittwoch, 28. April 2010 19:26 An: accessd at databaseadvisors.com Betreff: [AccessD] An embarrassing question I have an embarrassing question to ask. While working on my computer in Access 2000, I can clone, create, and rename forms with ease. However, at the client's site, working from an administrator account, I can't do that. The first time the new form just disappears. Then with any following attempts Access 2000 claims I am creating a duplicate form or object. What do I have to do to over come this embarrassment? Thanks. . . Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Apr 28 14:28:06 2010 From: edzedz at comcast.net (Edward Zuris) Date: Wed, 28 Apr 2010 13:28:06 -0600 Subject: [AccessD] An embarrassing question In-Reply-To: <48E44494B4294324A863984E82F68491@XPS> Message-ID: <001801cae708$ee1775f0$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 Jim Dettman Sent: Wednesday, April 28, 2010 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] An embarrassing question If this is with one specific DB, I would suspect database corruption. If with all, then the Access install itself. To test, open Access, create a new DB, create a simple form, then try to copy it. If it works, then it's the DB that is the issue. If not, then it's Access. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Wednesday, April 28, 2010 1:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] An embarrassing question I have an embarrassing question to ask. While working on my computer in Access 2000, I can clone, create, and rename forms with ease. However, at the client's site, working from an administrator account, I can't do that. The first time the new form just disappears. Then with any following attempts Access 2000 claims I am creating a duplicate form or object. What do I have to do to over come this embarrassment? Thanks. . . Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Apr 28 15:11:29 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 28 Apr 2010 15:11:29 -0500 Subject: [AccessD] test In-Reply-To: References: <4BD84F32.10902@gmail.com> Message-ID: LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, April 28, 2010 11:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] test Drew, I thought I was wrong once, but when I checked back I found I was mistaken... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, April 28, 2010 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] test Yes. I admitted I was wrong, and the list just went quiet! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 10:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] test Is there anybody out there... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From stuart at lexacorp.com.pg Wed Apr 28 16:16:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 29 Apr 2010 07:16:01 +1000 Subject: [AccessD] test In-Reply-To: <4BD853EB.1070609@gmail.com> References: <4BD84F32.10902@gmail.com>, <000301cae6e5$23c961a0$6501a8c0@nant>, <4BD853EB.1070609@gmail.com> Message-ID: <4BD8A591.10697.E14EEEA@stuart.lexacorp.com.pg> Looks like it may have configured itself as an IMAP mail client using GMail as your server. In other words, by default your mail stays on GMail servers and you read it from there, but you also have a set of local folders on your PC and you can store copies of messages in them for when you are off-line. You can also compose and send (and store your Copy To Self either locally or working in GMails folders. "Local folders" is a folder (with sub directories) on your hard drive. "jwcolby at gmail.com" is not a real folder, it is just a link mapped to the "root" of your GMail folders. -- Stuart On 28 Apr 2010 at 11:27, jwcolby wrote: > Holy cow batman! > > My ColbyConsulting website and email is down. > > I downloaded and installed the new thunderbird (to my server thank > god!). I told it to set up gmail as my email account. It went off and > started "organizing" me. I now have 47 bajillion folders and accounts > and subforlder and... > > I have no clue at all what to use or why I have all this stuff, and > furthermore I can't delete the folders I do not want. > > I have an inbox with > "local folders" > jwcolby at gmail.com. > I have a "drafts". Not under the inbox mind you, just "out there". > I have a "Sent", with subfolders for > local folders > sent - jwcolby at ... > sent mail - jwcolby at ... > > AT THIS POINT ONE HAS TO ASK... what is the difference between sent and > sent mail. What else would be sent besides mail? > > I have an "all mail". > > I have a spam > > I have a trash under which I have > local folders > trash (looks like a manilla folder) > trash (looks like a green alien > > I have an Outbox > > I have a Local Folders > outbox > > I have a jwcolby at ... > gmail > starred > AccessD > Infoengine > > In short I have TWENTY FOUR FOLDERS AND SUBFOLDERS AND THIS AND THAT all > supposedly to deal with my email. Mind you I have not even begun to > create subfolders to sort my email, this is all just crap that > Thunderbird decided it needed in order to organize my email. > > I wonder if I can uninstall Thunderbird and move on to something more > ... user friendly. > > Not Happy In North Carolina. > aka jwcolby > > On 4/28/2010 11:11 AM, Shamil Salakhetdinov wrote: > > Yes! :) > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Wednesday, April 28, 2010 7:08 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] test > > > > Is there anybody out there... > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Apr 28 16:18:13 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 29 Apr 2010 07:18:13 +1000 Subject: [AccessD] Thunderbird and Gmail (Was 'test') In-Reply-To: References: <4BD84F32.10902@gmail.com>, <4BD853EB.1070609@gmail.com>, Message-ID: <4BD8A615.24089.E16F0DD@stuart.lexacorp.com.pg> IMAP - not MAPI :-) On 28 Apr 2010 at 11:43, Heenan, Lambert wrote: > So you told Thunderbird to use MAPI to hook up to Gmail? All those folders were created at Gmail's behest I think. > > You'll get used to it eventually. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 11:28 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] test > > Holy cow batman! > > My ColbyConsulting website and email is down. > > I downloaded and installed the new thunderbird (to my server thank god!). I told it to set up gmail as my email account. It went off and started "organizing" me. I now have 47 bajillion folders and accounts and subforlder and... > > I have no clue at all what to use or why I have all this stuff, and furthermore I can't delete the folders I do not want. > > I have an inbox with > "local folders" > jwcolby at gmail.com. > I have a "drafts". Not under the inbox mind you, just "out there". > I have a "Sent", with subfolders for > local folders > sent - jwcolby at ... > sent mail - jwcolby at ... > > AT THIS POINT ONE HAS TO ASK... what is the difference between sent and sent mail. What else would be sent besides mail? > > I have an "all mail". > > I have a spam > > I have a trash under which I have > local folders > trash (looks like a manilla folder) > trash (looks like a green alien > > I have an Outbox > > I have a Local Folders > outbox > > I have a jwcolby at ... > gmail > starred > AccessD > Infoengine > > In short I have TWENTY FOUR FOLDERS AND SUBFOLDERS AND THIS AND THAT all supposedly to deal with my email. Mind you I have not even begun to create subfolders to sort my email, this is all just crap that Thunderbird decided it needed in order to organize my email. > > I wonder if I can uninstall Thunderbird and move on to something more ... user friendly. > > Not Happy In North Carolina. > aka jwcolby > > On 4/28/2010 11:11 AM, Shamil Salakhetdinov wrote: > > Yes! :) > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Wednesday, April 28, 2010 7:08 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] test > > > > Is there anybody out there... > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 28 17:44:25 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 28 Apr 2010 15:44:25 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , , , , , <67F770D72504462583FAB0551549519B@HAL9005> Message-ID: <7CE75179EFA8465AA5A6EDE6EC0FC1AD@HAL9005> Jurgen: Just a follow up - Name was the best solution - simple, effective. Client is happy. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Monday, April 26, 2010 5:35 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Move Folder >From the debug Immediate window, I typed Filecopy, clicked in the word and hit F1. From there click the link to 'See Also' and click the "Name Statement" in the Visual Basic Reference. Name Statement: Renames a disk file, directory, or folder. Syntax Name oldpathname As newpathname The Name statement syntax has these parts: oldpathname: Required. String expression that specifies the existing file name and location ? may include directory or folder, and drive. newpathname: Required. String expression that specifies the new file name and location ? may include directory or folder, and drive. The file name specified by newpathname can't already exist. Remarks The Name statement renames a file and moves it to a different directory or folder, if necessary. Name can move a file across drives, but it can only rename an existing directory or folder when both newpathname and oldpathname are located on the same drive. Name cannot create a new file, directory, or folder. Using Name on an open file produces an error. You must close an open file before renaming it. Name arguments cannot include multiple-character (*) and single-character (?) wildcards. You can use Robocoy provided you get the quotemarks correct. That's why I gave you an example. I use a ShellWait API call so that it proceeds synchronously. The code doesn't continue until the copy is complete. I prefer the Robocopy myself, but Name works fine in most instances. The remarks seem to indicate that Name won't do exactly what I said it does, but, I tested it before the previous posting and it works on our Windows Server system with the VBA that comes with Access 2003 just fine. The quick way to test it is to just try it from the immediate window. I'd test for existing initial folder, non existent target folder and success result with Dir before your msgbox. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 17:10:29 -0700 > Subject: Re: [AccessD] Move Folder > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > That looks like the most efficient way. He wants a module that accepts > the source folder and target paths. So using your example I would call > my module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which would have just this: > > Public Sub MoveIt(argSource, argTarget) > > Name argSource & " as " & argTarget > MsgBox "Folder Moved" > > End sub > > But is Name a key word that does this moving? I've never seen it in > VBA like that. > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Monday, April 26, 2010 4:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Move Folder > > > You can run Robocopy from an Access form: > > > > ShellWait "Robocopy.exe """ & strSourcePath & """ > \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V > /log+:\\Gracsrv\GOMFiles\Robocopy.log" > > The above was part of a data migration routine I wrote a while back. > There was a discussion about ShellWait a couple or 3 months back. In > the excerpted line above, r(1) was the 2nd field in a recordset that > was being iterated as strSourcePath was changed in the code loop as > well. The optional switches for Robocopy are numerous and in this case > include appending the results in a log file. > > > > There are recursive folder move routines that work as well and I've > written more than a fiew based on the Access Developer Handbook, but > there is another quite easy approach: > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > will move all the files below the folder named Test. I use this to > move files a fair bit. It moves the files and sub folders nicely. It > will not create the dash folder but it will create the Taste folder > and move everything that was in Test to the new Taste folder so you > may need to create the path with MkDir building out from the root, but > once you've got the base path, it creates all the sub folders. > > > > > Ciao J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 16:16:15 -0700 > > Subject: Re: [AccessD] Move Folder > > > > That looks like it'll do the job - unless he wants it in an Access > > form prompting for source and target locations. > > > > Rocky > > > > > > -----Original Message----- > > Sent: Monday, April 26, 2010 3:48 PM > > Subject: Re: [AccessD] Move Folder > > > > Robocopy..... command line utility. > > > > Drew > > > > -----Original Message----- > > > > Dear List: > > > > What is the best way (through code, of course) to move a folder and > > all of its subfolders and files to a new location? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > > _________________________________________________________________ > Videos that have everyone talking! Now also in HD! > http://go.microsoft.com/?linkid=9724465 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Got a phone? Get Hotmail & Messenger for mobile! http://go.microsoft.com/?linkid=9724464 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Apr 28 19:37:22 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 28 Apr 2010 18:37:22 -0600 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <433BEF21A1564D4FAE887C3FA3375B7D@Server> References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway>, , <433BEF21A1564D4FAE887C3FA3375B7D@Server> Message-ID: Where photos aren't needed, my preference is WMF files because they are tiny and fast. Being vector based they, scale very well to all sizes. At one time I defined a font to match the logo characters and added an opening parenthesis and underline to match the 'swoop' that underlines our name. This keeps our logo a bit more proprietary in that only network users have the font and anything we scan, print or send as PDF looks right. The logo can't be directly stolen from emailed DOC or XLS attachments though it didn't appear quite correct with substituted fonts at the recipient end. We wound up sticking to the WMF standard and our corporate logo is 7k and looks great from 1/4" to full page tabloid. Some views in Access on screen show jaggies but the printed output is always flawless. I've always had a strong preference to use Word and Excel for reporting. An Access report looks fine for a snapshot in yimr, but I've found it many times more useful to run a dump to Excel and provide some auto filters and cross sheet summarization. One typical example is our crew list that we use to track the daily location of our workers. Each office gets a 7 sheet Excel workbook instead of the former Access report. We never stored the crew list data but merely changed the ID of the Job that a worker was assigned to and ran a report. The result was that our managers printed the crew list daily and had no access to history except in a binder. They now have an interface that allows them to enter a date for their region and it pulls up the historical document. Certain cells are locked and others available for editing to allow our area superintendent to select a status for a worker including whether they were late, left early, on modified work. It would be possible to complicate the database by storing a history of employee assignments by date and run a historical report but this is an unnecessary complication. We run our office meeting minutes on a combination Word/Excel file that allows editing during the meeting. I have many reports that smiply don't make sense without the ability to add specific notes and mark records for exclusion or exception for the time the report needs to be interpreted. I have much greater formatting flexibility using Word when it comes to columns and alternate headers and page breaks than I do with a simple Access report. There are occasions where an Access report can be built more quickly and the non-editable nature of the output offers an advantage, but I generally prefer the flexibility of using Excel and Word or even MS Project for reporting. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: max.wanadoo at gmail.com > Date: Wed, 28 Apr 2010 18:17:41 +0100 > > Oops, did I say that. > > Sorry, can be bmp, jpg or gif. > > Max > > > -----Original Message----- > Sent: Wednesday, April 28, 2010 7:46 AM > > ???? I use jpgs and gifs w/o any problem. > > William > > From: "Max Wanadoo" > Subject: Re: [AccessD] Weird problem - ugly logo in reports > > > Yes, > > And also in Access you have THREE options on how to view the image. > > Try each one in turn from the properties dialog. > > It can be CLIP, STRETCH or ZOOM and each one will display differently. > > > > Also, open it in an editor, say MS Office Picture Manager and make sure > > you > > have it exactly as you want it, sized etc. > > > > It needs to be a Bitmap > > > > Max > > -----Original Message----- > > Sent: Tuesday, April 27, 2010 9:32 PM > > Subject: Re: [AccessD] Weird problem - ugly logo in reports > > > > > > > > Hi John, > > > > Since I can remember, Access has always converted all images to bitmap > > first, > > thereby bloating your database. I doubt this has changed in 2007. > > > > After that, Access places the bitmap into your report at the width and > > height you specify, > > often removing scanlines and pixelating in the process of making it fit. > > > > Long ago, we decided to export to either bookmarked dot or rtf templates > > and they come out spectacularly. > > > > Michael R Mattys > > Business Process Developers > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "John Clark" John.Clark at niagaracounty.com > Sent: Tuesday, April 27, 2010 10:51 AM > > > > > >> I've got something to run by y'all, which seems even too strange to > >> ask...but, I've been looking into it for a bit now, and I'm not getting > >> anywhere. > >> > >> I recently inherited a program, which is used by a fellow county, to keep > >> track of something we do. The user department prints some reports, and > >> one > > > >> of the items they need to print is a certificate. What this does > >> currently > > > >> is open MS Word and print the cert, but it doesn't seem to be connected > >> in > > > >> any way and just basically opens the last cert in Word, and they retype > >> the pertinent data, which is just about 4 things (i.e. Name, SSN, > >> Address, > > > >> and maybe one or two more things). > >> > >> OK, here's the thing...obviously...to me anyhow...it doesn't seem very > >> "proper" to open up Word and have to type out anything...the data should > >> just "happen" automagically. So, I wanted to setup the document to be a > >> merge (I think). But, after gaining advice from many of you people, I > >> don't think that is worthy of "plan A" either, because this seems to be > >> version specific and I don't want to worry about that...believe me, in > >> this place, people don't plan things out and it WILL be a problem in the > >> future. > >> > >> So, I decided to go about this the same way I did w/my last program. > >> Again, guided by several on this list, I recreated the form I needed, > >> w/in > > > >> Access, and just did it as an Access report. Everything brought together > >> at run-time and all self contained. > >> > >> But, here is why I am asking for input... > >> > >> This form has our letterhead w/in it...just a logo and address, pretty > >> much. No problem, I'll just add it to the report's design. But, it looks > >> terrible! The same seal that I have in word, looks awful in Access. I > >> tried many different versions of our county seal, and they all look > >> terrible in an Access report. > >> > >> Does anyone have any insight on why exactly this is the case? > >> > >> BTW, it is 2007 that I am using for this. > >> > >> Thanks for any enlightenment! > >> > >> J Clark _________________________________________________________________ Live connected. Get Hotmail & Messenger on your phone. http://go.microsoft.com/?linkid=9724462 From jwelz at hotmail.com Wed Apr 28 19:58:40 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 28 Apr 2010 18:58:40 -0600 Subject: [AccessD] Move Folder In-Reply-To: <7CE75179EFA8465AA5A6EDE6EC0FC1AD@HAL9005> References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , , , , , , , , , <67F770D72504462583FAB0551549519B@HAL9005>, , <7CE75179EFA8465AA5A6EDE6EC0FC1AD@HAL9005> Message-ID: Nice to know it works even if your help didn't reference the Name statement. I consider robocopy a 'best' practice but it entails a learning curve and a fair bit more work to do well and it doesn't support a progress indication. If you need it all, a recursive API copy routine can give you the fairly useless Windows progress bar. Sometimes KISS is 'best'. I hope you check at least for non-existence of the target folder prior to the Name execution and creation of the target after execution with the VBA Dir Function and trap any errors arising from open files or non-existent paths. Perhaps some constraints relating to drives are in order considering the excerpts from the help file I posted below. I have not had a failure relating to naming to a different drive but the help says it shouldn't work. That may depend on the exact software environment you're working with or you may not need to move files across drives so it could be a non-issue. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Wed, 28 Apr 2010 15:44:25 -0700 > Subject: Re: [AccessD] Move Folder > > Jurgen: > > Just a follow up - Name was the best solution - simple, effective. Client > is happy. > > Thanks. > > Rocky > > > -----Original Message----- > Sent: Monday, April 26, 2010 5:35 PM > Subject: Re: [AccessD] Move Folder > > > >From the debug Immediate window, I typed Filecopy, clicked in the word and > hit F1. From there click the link to 'See Also' and click the "Name > Statement" in the Visual Basic Reference. > > > > Name Statement: > > > > Renames a disk file, directory, or folder. > Syntax > > > > Name oldpathname As newpathname > The Name statement syntax has these parts: > > oldpathname: Required. String expression that specifies the existing file > name and location ? may include directory or folder, and drive. > > newpathname: Required. String expression that specifies the new file name > and location ? may include directory or folder, and drive. The file name > specified by newpathname can't already exist. > > Remarks > > The Name statement renames a file and moves it to a different directory or > folder, if necessary. Name can move a file across drives, but it can only > rename an existing directory or folder when both newpathname and oldpathname > are located on the same drive. Name cannot create a new file, directory, or > folder. > Using Name on an open file produces an error. You must close an open file > before renaming it. Name arguments cannot include multiple-character (*) and > single-character (?) wildcards. > > You can use Robocoy provided you get the quotemarks correct. That's why I > gave you an example. I use a ShellWait API call so that it proceeds > synchronously. The code doesn't continue until the copy is complete. I > prefer the Robocopy myself, but Name works fine in most instances. The > remarks seem to indicate that Name won't do exactly what I said it does, > but, I tested it before the previous posting and it works on our Windows > Server system with the VBA that comes with Access 2003 just fine. > > The quick way to test it is to just try it from the immediate window. I'd > test for existing initial folder, non existent target folder and success > result with Dir before your msgbox. > > Ciao J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 17:10:29 -0700 > > Subject: Re: [AccessD] Move Folder > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > That looks like the most efficient way. He wants a module that accepts > > the source folder and target paths. So using your example I would call > > my module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which would have just > this: > > > > Public Sub MoveIt(argSource, argTarget) > > > > Name argSource & " as " & argTarget > > MsgBox "Folder Moved" > > > > End sub > > > > But is Name a key word that does this moving? I've never seen it in > > VBA like that. > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > > Sent: Monday, April 26, 2010 4:38 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Move Folder > > > > > > You can run Robocopy from an Access form: > > > > > > > > ShellWait "Robocopy.exe """ & strSourcePath & """ > > \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V > > /log+:\\Gracsrv\GOMFiles\Robocopy.log" > > > > The above was part of a data migration routine I wrote a while back. > > There was a discussion about ShellWait a couple or 3 months back. In > > the excerpted line above, r(1) was the 2nd field in a recordset that > > was being iterated as strSourcePath was changed in the code loop as > > well. The optional switches for Robocopy are numerous and in this case > > include appending the results in a log file. > > > > > > > > There are recursive folder move routines that work as well and I've > > written more than a fiew based on the Access Developer Handbook, but > > there is another quite easy approach: > > > > > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > > > > > will move all the files below the folder named Test. I use this to > > move files a fair bit. It moves the files and sub folders nicely. It > > will not create the dash folder but it will create the Taste folder > > and move everything that was in Test to the new Taste folder so you > > may need to create the path with MkDir building out from the root, but > > once you've got the base path, it creates all the sub folders. > > > > > > > > > > Ciao J?rgen Welz > > > > Edmonton, Alberta > > > > jwelz at hotmail.com > > > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Mon, 26 Apr 2010 16:16:15 -0700 > > > Subject: Re: [AccessD] Move Folder > > > > > > That looks like it'll do the job - unless he wants it in an Access > > > form prompting for source and target locations. > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > Sent: Monday, April 26, 2010 3:48 PM > > > Subject: Re: [AccessD] Move Folder > > > > > > Robocopy..... command line utility. > > > > > > Drew > > > > > > -----Original Message----- > > > > > > Dear List: > > > > > > What is the best way (through code, of course) to move a folder and > > > all of its subfolders and files to a new location? > > > > > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin _________________________________________________________________ Videos that have everyone talking! Now also in HD! http://go.microsoft.com/?linkid=9724465 From rockysmolin at bchacc.com Wed Apr 28 22:06:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 28 Apr 2010 20:06:12 -0700 Subject: [AccessD] Move Folder In-Reply-To: References: <94D6D709ECFC4A05863786C8D2AF2CDB@HAL9005>, , , , , , , , , , <67F770D72504462583FAB0551549519B@HAL9005>, , <7CE75179EFA8465AA5A6EDE6EC0FC1AD@HAL9005> Message-ID: Jurgen Re: existence of target folder - no problem - I use the folder browser to let the user select both the source and target folders. That way no typos. Paths can get really long these days as well. So typing them in would be error prone. If you want a look at it it's a pretty small mdb - one module (Folder Browser), one form - I can shoot it over. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Wednesday, April 28, 2010 5:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Move Folder Nice to know it works even if your help didn't reference the Name statement. I consider robocopy a 'best' practice but it entails a learning curve and a fair bit more work to do well and it doesn't support a progress indication. If you need it all, a recursive API copy routine can give you the fairly useless Windows progress bar. Sometimes KISS is 'best'. I hope you check at least for non-existence of the target folder prior to the Name execution and creation of the target after execution with the VBA Dir Function and trap any errors arising from open files or non-existent paths. Perhaps some constraints relating to drives are in order considering the excerpts from the help file I posted below. I have not had a failure relating to naming to a different drive but the help says it shouldn't work. That may depend on the exact software environment you're working with or you may not need to move files across drives so it could be a non-issue. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Wed, 28 Apr 2010 15:44:25 -0700 > Subject: Re: [AccessD] Move Folder > > Jurgen: > > Just a follow up - Name was the best solution - simple, effective. > Client is happy. > > Thanks. > > Rocky > > > -----Original Message----- > Sent: Monday, April 26, 2010 5:35 PM > Subject: Re: [AccessD] Move Folder > > > >From the debug Immediate window, I typed Filecopy, clicked in the > >word and > hit F1. From there click the link to 'See Also' and click the "Name > Statement" in the Visual Basic Reference. > > > > Name Statement: > > > > Renames a disk file, directory, or folder. > Syntax > > > > Name oldpathname As newpathname > The Name statement syntax has these parts: > > oldpathname: Required. String expression that specifies the existing > file name and location ? may include directory or folder, and drive. > > newpathname: Required. String expression that specifies the new file > name and location ? may include directory or folder, and drive. The > file name specified by newpathname can't already exist. > > Remarks > > The Name statement renames a file and moves it to a different > directory or folder, if necessary. Name can move a file across drives, > but it can only rename an existing directory or folder when both > newpathname and oldpathname are located on the same drive. Name cannot > create a new file, directory, or folder. > Using Name on an open file produces an error. You must close an open > file before renaming it. Name arguments cannot include > multiple-character (*) and single-character (?) wildcards. > > You can use Robocoy provided you get the quotemarks correct. That's > why I gave you an example. I use a ShellWait API call so that it > proceeds synchronously. The code doesn't continue until the copy is > complete. I prefer the Robocopy myself, but Name works fine in most > instances. The remarks seem to indicate that Name won't do exactly > what I said it does, but, I tested it before the previous posting and > it works on our Windows Server system with the VBA that comes with Access 2003 just fine. > > The quick way to test it is to just try it from the immediate window. > I'd test for existing initial folder, non existent target folder and > success result with Dir before your msgbox. > > Ciao J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 17:10:29 -0700 > > Subject: Re: [AccessD] Move Folder > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > That looks like the most efficient way. He wants a module that > > accepts the source folder and target paths. So using your example I > > would call my module MoveIt("Z:\Launch\Test", "S:\dash\Taste") which > > would have just > this: > > > > Public Sub MoveIt(argSource, argTarget) > > > > Name argSource & " as " & argTarget > > MsgBox "Folder Moved" > > > > End sub > > > > But is Name a key word that does this moving? I've never seen it in > > VBA like that. > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen > > Welz > > Sent: Monday, April 26, 2010 4:38 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Move Folder > > > > > > You can run Robocopy from an Access form: > > > > > > > > ShellWait "Robocopy.exe """ & strSourcePath & """ > > \\Gracsrv\GOMFiles\Estimates\" & r(1) & _ " /E /V > > /log+:\\Gracsrv\GOMFiles\Robocopy.log" > > > > The above was part of a data migration routine I wrote a while back. > > There was a discussion about ShellWait a couple or 3 months back. In > > the excerpted line above, r(1) was the 2nd field in a recordset that > > was being iterated as strSourcePath was changed in the code loop as > > well. The optional switches for Robocopy are numerous and in this > > case include appending the results in a log file. > > > > > > > > There are recursive folder move routines that work as well and I've > > written more than a fiew based on the Access Developer Handbook, but > > there is another quite easy approach: > > > > > > > > Name "Z:\Launch\Test" as "S:\dash\Taste" > > > > > > > > will move all the files below the folder named Test. I use this to > > move files a fair bit. It moves the files and sub folders nicely. It > > will not create the dash folder but it will create the Taste folder > > and move everything that was in Test to the new Taste folder so you > > may need to create the path with MkDir building out from the root, > > but once you've got the base path, it creates all the sub folders. > > > > > > > > > > Ciao J?rgen Welz > > > > Edmonton, Alberta > > > > jwelz at hotmail.com > > > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Mon, 26 Apr 2010 16:16:15 -0700 > > > Subject: Re: [AccessD] Move Folder > > > > > > That looks like it'll do the job - unless he wants it in an Access > > > form prompting for source and target locations. > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > Sent: Monday, April 26, 2010 3:48 PM > > > Subject: Re: [AccessD] Move Folder > > > > > > Robocopy..... command line utility. > > > > > > Drew > > > > > > -----Original Message----- > > > > > > Dear List: > > > > > > What is the best way (through code, of course) to move a folder > > > and all of its subfolders and files to a new location? > > > > > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin _________________________________________________________________ Videos that have everyone talking! Now also in HD! http://go.microsoft.com/?linkid=9724465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Apr 28 23:44:24 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 28 Apr 2010 21:44:24 -0700 Subject: [AccessD] Password Protected Database Message-ID: Dear List: Is there a simple way to tell if an mdb is password protected other than trying to open it without a password and trapping the error? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From wdhindman at dejpolsystems.com Thu Apr 29 00:57:34 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 29 Apr 2010 01:57:34 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway>, , <433BEF21A1564D4FAE887C3FA3375B7D@Server> Message-ID: <9837F7EA47DE4C92A6C445237ED33B72@jislaptopdev> Jurgen ...WMF is the 16 bit version, EMF is the 32 bit version ...they are vector formats but can contain rasters so you have to be sure the source is a raster in order to retain scalability ...works wonders for things like logos if you have the resources to vectorize them ...there are definitely instances where Word is the better medium but I find them limited ...with an access report, I control the end product ...and with Leban's rtf ocx, it is very flexible ...a word doc can be modified by the user to say anything they want ...that can be good or bad, depending on the user ...but you always cede control of the final output to them ...I avoid Excel like the plague ...too many ways for the user to "oops" the data imnsho William -------------------------------------------------- From: "Jurgen Welz" Sent: Wednesday, April 28, 2010 8:37 PM To: Subject: Re: [AccessD] Weird problem - ugly logo in reports > > Where photos aren't needed, my preference is WMF files because they are > tiny and fast. Being vector based they, scale very well to all sizes. At > one time I defined a font to match the logo characters and added an > opening parenthesis and underline to match the 'swoop' that underlines our > name. This keeps our logo a bit more proprietary in that only network > users have the font and anything we scan, print or send as PDF looks > right. The logo can't be directly stolen from emailed DOC or XLS > attachments though it didn't appear quite correct with substituted fonts > at the recipient end. We wound up sticking to the WMF standard and our > corporate logo is 7k and looks great from 1/4" to full page tabloid. Some > views in Access on screen show jaggies but the printed output is always > flawless. > > > > I've always had a strong preference to use Word and Excel for reporting. > An Access report looks fine for a snapshot in yimr, but I've found it many > times more useful to run a dump to Excel and provide some auto filters and > cross sheet summarization. One typical example is our crew list that we > use to track the daily location of our workers. Each office gets a 7 > sheet Excel workbook instead of the former Access report. We never stored > the crew list data but merely changed the ID of the Job that a worker was > assigned to and ran a report. The result was that our managers printed > the crew list daily and had no access to history except in a binder. They > now have an interface that allows them to enter a date for their region > and it pulls up the historical document. Certain cells are locked and > others available for editing to allow our area superintendent to select a > status for a worker including whether they were late, left early, on > modified work. It would be possible to complicate the database by storing > a history of employee assignments by date and run a historical report but > this is an unnecessary complication. > > > > We run our office meeting minutes on a combination Word/Excel file that > allows editing during the meeting. I have many reports that smiply don't > make sense without the ability to add specific notes and mark records for > exclusion or exception for the time the report needs to be interpreted. I > have much greater formatting flexibility using Word when it comes to > columns and alternate headers and page breaks than I do with a simple > Access report. There are occasions where an Access report can be built > more quickly and the non-editable nature of the output offers an > advantage, but I generally prefer the flexibility of using Excel and Word > or even MS Project for reporting. > > Ciao J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > > >> From: max.wanadoo at gmail.com >> Date: Wed, 28 Apr 2010 18:17:41 +0100 >> >> Oops, did I say that. >> >> Sorry, can be bmp, jpg or gif. >> >> Max >> >> >> -----Original Message----- >> Sent: Wednesday, April 28, 2010 7:46 AM >> >> ???? I use jpgs and gifs w/o any problem. >> >> William >> >> From: "Max Wanadoo" >> Subject: Re: [AccessD] Weird problem - ugly logo in reports >> >> > Yes, >> > And also in Access you have THREE options on how to view the image. >> > Try each one in turn from the properties dialog. >> > It can be CLIP, STRETCH or ZOOM and each one will display differently. >> > >> > Also, open it in an editor, say MS Office Picture Manager and make sure >> > you >> > have it exactly as you want it, sized etc. >> > >> > It needs to be a Bitmap >> > >> > Max > > >> > -----Original Message----- >> > Sent: Tuesday, April 27, 2010 9:32 PM >> > Subject: Re: [AccessD] Weird problem - ugly logo in reports >> > >> > >> > >> > Hi John, >> > >> > Since I can remember, Access has always converted all images to bitmap >> > first, >> > thereby bloating your database. I doubt this has changed in 2007. >> > >> > After that, Access places the bitmap into your report at the width and >> > height you specify, >> > often removing scanlines and pixelating in the process of making it >> > fit. >> > >> > Long ago, we decided to export to either bookmarked dot or rtf >> > templates >> > and they come out spectacularly. >> > >> > Michael R Mattys >> > Business Process Developers >> > www.mattysconsulting.com >> > >> > ----- Original Message ----- >> > From: "John Clark" John.Clark at niagaracounty.com > > Sent: Tuesday, April 27, 2010 10:51 AM >> > >> > >> >> I've got something to run by y'all, which seems even too strange to >> >> ask...but, I've been looking into it for a bit now, and I'm not >> >> getting >> >> anywhere. >> >> >> >> I recently inherited a program, which is used by a fellow county, to >> >> keep >> >> track of something we do. The user department prints some reports, and >> >> one >> > >> >> of the items they need to print is a certificate. What this does >> >> currently >> > >> >> is open MS Word and print the cert, but it doesn't seem to be >> >> connected >> >> in >> > >> >> any way and just basically opens the last cert in Word, and they >> >> retype >> >> the pertinent data, which is just about 4 things (i.e. Name, SSN, >> >> Address, >> > >> >> and maybe one or two more things). >> >> >> >> OK, here's the thing...obviously...to me anyhow...it doesn't seem very >> >> "proper" to open up Word and have to type out anything...the data >> >> should >> >> just "happen" automagically. So, I wanted to setup the document to be >> >> a >> >> merge (I think). But, after gaining advice from many of you people, I >> >> don't think that is worthy of "plan A" either, because this seems to >> >> be >> >> version specific and I don't want to worry about that...believe me, in >> >> this place, people don't plan things out and it WILL be a problem in >> >> the >> >> future. >> >> >> >> So, I decided to go about this the same way I did w/my last program. >> >> Again, guided by several on this list, I recreated the form I needed, >> >> w/in >> > >> >> Access, and just did it as an Access report. Everything brought >> >> together >> >> at run-time and all self contained. >> >> >> >> But, here is why I am asking for input... >> >> >> >> This form has our letterhead w/in it...just a logo and address, pretty >> >> much. No problem, I'll just add it to the report's design. But, it >> >> looks >> >> terrible! The same seal that I have in word, looks awful in Access. I >> >> tried many different versions of our county seal, and they all look >> >> terrible in an Access report. >> >> >> >> Does anyone have any insight on why exactly this is the case? >> >> >> >> BTW, it is 2007 that I am using for this. >> >> >> >> Thanks for any enlightenment! >> >> >> >> J Clark > > _________________________________________________________________ > Live connected. Get Hotmail & Messenger on your phone. > http://go.microsoft.com/?linkid=9724462 > -- > 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 Apr 29 08:09:09 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2010 09:09:09 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> References: <4BD6BE11.167F.006B.0@niagaracounty.com> <4BD6C1C6.167F.006B.0@niagaracounty.com> <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: <4BD94CB7.167F.006B.0@niagaracounty.com> I was headed this way...linking to a .dot, or actually I wanted to merge the data into it. But, while trying to "learn" this, for my last project, I was advised to stick w/the Access reports. And, more recently, input I got seemed to point towards future problems w/we change versions...I work in an environment where versions to very sometimes. I don't want to get frantic call someday, w/one of the users changes over to a new version of MS Word and this no longer works...and they've got a customer waiting for the printout. But, this does seem like maybe the easiest way. I already have it piped out to a .doc...it came that way and I just had to fix it...and they just amend four field on the certificate. Changing this to a .dot would probably be easy as changing the link and using the existing document to create a .dot. This doesn't push out the data though, correct? This would be a blank certificate that they need to fill in? >>> "Mike Mattys" 4/27/2010 4:31 PM >>> Hi John, Since I can remember, Access has always converted all images to bitmap first, thereby bloating your database. I doubt this has changed in 2007. After that, Access places the bitmap into your report at the width and height you specify, often removing scanlines and pixelating in the process of making it fit. Long ago, we decided to export to either bookmarked dot or rtf templates and they come out spectacularly. Michael R Mattys Business Process Developers www.mattysconsulting.com From mmattys at rochester.rr.com Thu Apr 29 08:28:21 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 29 Apr 2010 09:28:21 -0400 Subject: [AccessD] Weird problem - ugly logo in reports References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> <4BD94CB7.167F.006B.0@niagaracounty.com> Message-ID: <88B2E6AD56B44465B8B8C42389ECEBE5@Gateway> Hi John, Having inserted bookmarks in the dot, we use the Word object model from Access (open a dao recordset) to open the document, select the bookmark and fill it with data for each record. Sometimes it is necessary to output to rtf (the whole recordset), but then you just insert file into doc. Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "John Clark" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2010 9:09 AM Subject: Re: [AccessD] Weird problem - ugly logo in reports >I was headed this way...linking to a .dot, or actually I wanted to merge >the data into it. But, while trying to "learn" this, for my last project, I >was advised to stick w/the Access reports. And, more recently, input I got >seemed to point towards future problems w/we change versions...I work in an >environment where versions to very sometimes. I don't want to get frantic >call someday, w/one of the users changes over to a new version of MS Word >and this no longer works...and they've got a customer waiting for the >printout. > > But, this does seem like maybe the easiest way. I already have it piped > out to a .doc...it came that way and I just had to fix it...and they just > amend four field on the certificate. Changing this to a .dot would > probably be easy as changing the link and using the existing document to > create a .dot. > > This doesn't push out the data though, correct? This would be a blank > certificate that they need to fill in? > >>>> "Mike Mattys" 4/27/2010 4:31 PM >>> > > > Hi John, > > Since I can remember, Access has always converted all images to bitmap > first, > thereby bloating your database. I doubt this has changed in 2007. > > After that, Access places the bitmap into your report at the width and > height you specify, > often removing scanlines and pixelating in the process of making it fit. > > Long ago, we decided to export to either bookmarked dot or rtf templates > and they come out spectacularly. > > Michael R Mattys > Business Process Developers > www.mattysconsulting.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 Thu Apr 29 08:29:25 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2010 09:29:25 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: <0C08E2C9137D406ABCEB8DE7982B5B5C@jislaptopdev> References: <4BD6BE11.167F.006B.0@niagaracounty.com> <4BD6C1C6.167F.006B.0@niagaracounty.com> <0C08E2C9137D406ABCEB8DE7982B5B5C@jislaptopdev> Message-ID: <4BD95177.167F.006B.0@niagaracounty.com> OK...let's see if I can give lots of answers... >>> "William Hindman" 4/27/2010 4:35 PM >>> ...lots of questions... ...what do you mean by "terrible"? ...is it distorted, the edges jagged, poor quality ...what? *** basically poor quality. The image looks fine on its own, and it looks fine in a MS Word doc, but in access it looks "smudged." You know w/you have a stamp w/too much ink? Yeah...sort of like that. ...did you embed it in an image control set to Clip mode and resize the control to fit? *** Well, this may be my problem...the resize part anyhow. W/I resize this, it is bigger than the whole form. But, still, why would it look good in Word? ...what resolution is it designed at? *** it looks like 198 dpi ...what graphics format is it in? *** I've used .bmp, .jpg, .tif...and I tried cutting and pasting from the word doc. ...Word has native graphics filters that Access does not unless you reference the Word or Office Object *** Ah, I see. I do have a ref set for "Microsoft Word 12.0 Object Library" but I'm guessing I need to invoke something? ...first thing I'd try ...Lebans.com has a graphics filter for Access that uses Intel's native graphics ...it works quite well *** I'll head out there in a bit and check this out. ...if all else fails, use one of the graphics conversion programs to convert it to an emf format which Access can use regardless *** I will look into this too ...hth *** So do I bud...so do I. I hate w/something relatively minor like this holds me up. From John.Clark at niagaracounty.com Thu Apr 29 08:32:14 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2010 09:32:14 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com> <4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: <4BD95220.167F.006B.0@niagaracounty.com> Yeah, these don't seem to make much difference. Although, by looking into this, I did discover that my image is really large, in reality, and looks decent, if I allow it to blow up to full size...which I cannot. I will try the MSO pic Mgr though...thanks >>> "Max Wanadoo" 4/27/2010 5:08 PM >>> Yes, And also in Access you have THREE options on how to view the image. Try each one in turn from the properties dialog. It can be CLIP, STRETCH or ZOOM and each one will display differently. Also, open it in an editor, say MS Office Picture Manager and make sure you have it exactly as you want it, sized etc. It needs to be a Bitmap Max From John.Clark at niagaracounty.com Thu Apr 29 08:33:48 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2010 09:33:48 -0400 Subject: [AccessD] Weird problem - ugly logo in reports In-Reply-To: References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> Message-ID: <4BD9527E.167F.006B.0@niagaracounty.com> This sounds like it might be an option for me. So, I "send" the data FROM Access? Do you know where I can find some instruction on this...link maybe? >>> "Mike Mattys" 4/27/2010 5:16 PM >>> I should mention that a Word Template allows you to use the Send To: option and neatly embeds the report into an Outlook email ... Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 27, 2010 5:08 PM Subject: Re: [AccessD] Weird problem - ugly logo in reports From mmattys at rochester.rr.com Thu Apr 29 08:57:33 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 29 Apr 2010 09:57:33 -0400 Subject: [AccessD] Weird problem - ugly logo in reports References: <4BD6BE11.167F.006B.0@niagaracounty.com><4BD6C1C6.167F.006B.0@niagaracounty.com><4822B75BC3F1479ABAC409EAA30CE72E@Gateway> <4BD9527E.167F.006B.0@niagaracounty.com> Message-ID: Hi John, I haven't got any links for you, this is a 7-10 year old process. My brother, Eric, and I work processes out, we're an IT dept. for several companies. Some research, some trial and error, some collected code. Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "John Clark" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2010 9:33 AM Subject: Re: [AccessD] Weird problem - ugly logo in reports > This sounds like it might be an option for me. So, I "send" the data FROM > Access? Do you know where I can find some instruction on this...link > maybe? > >>>> "Mike Mattys" 4/27/2010 5:16 PM >>> > > > I should mention that a Word Template allows you > to use the Send To: option and neatly embeds the report > into an Outlook email ... > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com From markamatte at hotmail.com Thu Apr 29 09:48:01 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 14:48:01 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005> References: , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005> Message-ID: That being the case...create a form in the BE...open it on startup...form does 2 things... 1. turn off shift bypass. 2. closed MDB I accidentally locked myself out of an MDB with this once. They can still link to it from any access database...but cannot open it directly. Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 13:00:38 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > 1) yes > 2) any access mdb > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Monday, April 26, 2010 12:00 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > Rocky, > > > > Can I ask in a slightly different way??? > > > > 1. Are you trying to keep people from opening the backend directly? > > 2. Can the user link to the BE from any access MDB or just your app? > > > > Thanks, > > > > Mark A. Matte > _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 From jwcolby at colbyconsulting.com Wed Apr 28 08:39:38 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 28 Apr 2010 09:39:38 -0400 Subject: [AccessD] hosting a website in-house Message-ID: <4BD83A9A.8050401@colbyconsulting.com> I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- John W. Colby www.ColbyConsulting.com From rockysmolin at bchacc.com Thu Apr 29 10:31:09 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 08:31:09 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005> Message-ID: Mark: Being able to link to it from another mdb is, I think, a deal breaker for this guy. Also, he may need access to the back end himself. I think I have to go with the password protection - I just need to figure out a simple way to know if a database has a password. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 7:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection That being the case...create a form in the BE...open it on startup...form does 2 things... 1. turn off shift bypass. 2. closed MDB I accidentally locked myself out of an MDB with this once. They can still link to it from any access database...but cannot open it directly. Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 26 Apr 2010 13:00:38 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > 1) yes > 2) any access mdb > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Monday, April 26, 2010 12:00 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > Rocky, > > > > Can I ask in a slightly different way??? > > > > 1. Are you trying to keep people from opening the backend directly? > > 2. Can the user link to the BE from any access MDB or just your app? > > > > Thanks, > > > > Mark A. Matte > _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28 326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 29 10:34:54 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 08:34:54 -0700 Subject: [AccessD] hosting a website in-house In-Reply-To: <4BD83A9A.8050401@colbyconsulting.com> References: <4BD83A9A.8050401@colbyconsulting.com> Message-ID: I have my web sites hosted by GoDaddy. It's really cheap, very reliable, requires no work on my part (probably the leading reason to go outside), and no worries about my equipment being up. And their customer support is outstanding. So the question is, what is the advantage of hosting your own website versus buying a hosting service outside? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 6:40 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] hosting a website in-house I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 27 17:39:54 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 27 Apr 2010 18:39:54 -0400 Subject: [AccessD] test Message-ID: <4BD767BA.2040309@colbyconsulting.com> slow day? -- John W. Colby www.ColbyConsulting.com From roz.clarke at barclays.com Thu Apr 29 10:43:23 2010 From: roz.clarke at barclays.com (roz.clarke at barclays.com) Date: Thu, 29 Apr 2010 16:43:23 +0100 Subject: [AccessD] test In-Reply-To: <4BD767BA.2040309@colbyconsulting.com> References: <4BD767BA.2040309@colbyconsulting.com> Message-ID: <174A69C31E290B47A4898DFFDB5BFCD9019A2325@MUKPBCC1XMB0403.collab.barclayscorp.com> Not especially :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 27 April 2010 23:40 To: Access Developers discussion and problem solving Subject: [AccessD] test slow day? -- John W. Colby www.ColbyConsulting.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 are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From dw-murphy at cox.net Thu Apr 29 10:54:43 2010 From: dw-murphy at cox.net (dw-murphy at cox.net) Date: Thu, 29 Apr 2010 8:54:43 -0700 Subject: [AccessD] hosting a website in-house In-Reply-To: Message-ID: <20100429115443.HCH47.185288.imail@fed1rmwml30> If you time is worth anything using a hosting service is the way to go. Seems like keeping up with security, patches, etc is a continuing education that really doesn't help access development. If this is a hobby go for it. Doug ---- Rocky Smolin wrote: > I have my web sites hosted by GoDaddy. It's really cheap, very reliable, > requires no work on my part (probably the leading reason to go outside), and > no worries about my equipment being up. And their customer support is > outstanding. > > So the question is, what is the advantage of hosting your own website versus > buying a hosting service outside? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 6:40 AM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] hosting a website in-house > > I just need a reality check as to whether trying to host a website in-house > is insane, doable, easy, difficult? If I did this it would be for my own > web site (very low traffic), and would need to include email (also low > traffic). If I lost internet (which I get over the local cable) then > obviously I would be out of commission for the duration of that outage. > > I have been in this home / office for close to four years and have had only > one single extended outage (11 hours, due to weather). > > I have a server that I keep up 24/7. I have battery backup etc. I run VMs > and it seems like I could put something like this in a VM so that I could > move it to another machine if I had a machine issue. > > I am actively considering building a new server with 16 or 24 cores because > it would be a big boost for my SQL Server work and with so many cores it > seems like having a VM running my web site might make sense. > > -- > 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 max.wanadoo at gmail.com Thu Apr 29 11:00:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 17:00:25 +0100 Subject: [AccessD] hosting a website in-house In-Reply-To: <20100429115443.HCH47.185288.imail@fed1rmwml30> References: <20100429115443.HCH47.185288.imail@fed1rmwml30> Message-ID: <46B8ABC31CF244A8B4AC3843817AE289@Server> Hmmm, Never touch mine. Cost me zero minutes each week. Cant even remember what OS it uses. It just sits there and works. Files get updated overnight by batch files calling executables etc and also over the network. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net Sent: Thursday, April 29, 2010 4:55 PM To: Access Developers discussion and problem solving Cc: Rocky Smolin Subject: Re: [AccessD] hosting a website in-house If you time is worth anything using a hosting service is the way to go. Seems like keeping up with security, patches, etc is a continuing education that really doesn't help access development. If this is a hobby go for it. Doug ---- Rocky Smolin wrote: > I have my web sites hosted by GoDaddy. It's really cheap, very reliable, > requires no work on my part (probably the leading reason to go outside), and > no worries about my equipment being up. And their customer support is > outstanding. > > So the question is, what is the advantage of hosting your own website versus > buying a hosting service outside? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 6:40 AM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] hosting a website in-house > > I just need a reality check as to whether trying to host a website in-house > is insane, doable, easy, difficult? If I did this it would be for my own > web site (very low traffic), and would need to include email (also low > traffic). If I lost internet (which I get over the local cable) then > obviously I would be out of commission for the duration of that outage. > > I have been in this home / office for close to four years and have had only > one single extended outage (11 hours, due to weather). > > I have a server that I keep up 24/7. I have battery backup etc. I run VMs > and it seems like I could put something like this in a VM so that I could > move it to another machine if I had a machine issue. > > I am actively considering building a new server with 16 or 24 cores because > it would be a big boost for my SQL Server work and with so many cores it > seems like having a VM running my web site might make sense. > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Thu Apr 29 11:24:16 2010 From: jwcolby at gmail.com (John W Colby) Date: Thu, 29 Apr 2010 12:24:16 -0400 Subject: [AccessD] hosting a website in-house In-Reply-To: <46B8ABC31CF244A8B4AC3843817AE289@Server> References: <20100429115443.HCH47.185288.imail@fed1rmwml30> <46B8ABC31CF244A8B4AC3843817AE289@Server> Message-ID: <4BD9B2B0.6070702@gmail.com> Do you think it would run efficiently in a VM? It seems that would be one way to help isolate it from my network, and also to move it to another machine in case of machine issues. I think the big hosting providers do this don't they? Does anyone use DNN on their own in-house system? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, > > Never touch mine. Cost me zero minutes each week. Cant even remember what > OS it uses. It just sits there and works. > Files get updated overnight by batch files calling executables etc and also > over the network. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net > Sent: Thursday, April 29, 2010 4:55 PM > To: Access Developers discussion and problem solving > Cc: Rocky Smolin > Subject: Re: [AccessD] hosting a website in-house > > If you time is worth anything using a hosting service is the way to go. > Seems like keeping up with security, patches, etc is a continuing education > that really doesn't help access development. If this is a hobby go for it. > > Doug > > ---- Rocky Smolin wrote: > >> I have my web sites hosted by GoDaddy. It's really cheap, very reliable, >> requires no work on my part (probably the leading reason to go outside), >> > and > >> no worries about my equipment being up. And their customer support is >> outstanding. >> >> So the question is, what is the advantage of hosting your own website >> > versus > >> buying a hosting service outside? >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, April 28, 2010 6:40 AM >> To: Access Developers discussion and problem solving; VBA >> Subject: [AccessD] hosting a website in-house >> >> I just need a reality check as to whether trying to host a website >> > in-house > >> is insane, doable, easy, difficult? If I did this it would be for my own >> web site (very low traffic), and would need to include email (also low >> traffic). If I lost internet (which I get over the local cable) then >> obviously I would be out of commission for the duration of that outage. >> >> I have been in this home / office for close to four years and have had >> > only > >> one single extended outage (11 hours, due to weather). >> >> I have a server that I keep up 24/7. I have battery backup etc. I run >> > VMs > >> and it seems like I could put something like this in a VM so that I could >> move it to another machine if I had a machine issue. >> >> I am actively considering building a new server with 16 or 24 cores >> > because > >> it would be a big boost for my SQL Server work and with so many cores it >> seems like having a VM running my web site might make sense. >> >> -- >> 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 accessd at shaw.ca Thu Apr 29 11:40:21 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 09:40:21 -0700 Subject: [AccessD] hosting a website in-house In-Reply-To: <4BD83A9A.8050401@colbyconsulting.com> References: <4BD83A9A.8050401@colbyconsulting.com> Message-ID: Hi John: There are a number of initial site configuration and process steps you have to go through, I assuming you are using IIS, which comes with all MS current servers, but once you get use to it, it is very easy... you can pop out website after website with gay abandon. If you need any help with specifics I would be more than glad to help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 6:40 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] hosting a website in-house I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- 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 jimdettman at verizon.net Thu Apr 29 11:54:49 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 29 Apr 2010 12:54:49 -0400 Subject: [AccessD] hosting a website in-house In-Reply-To: <4BD9B2B0.6070702@gmail.com> References: <20100429115443.HCH47.185288.imail@fed1rmwml30> <46B8ABC31CF244A8B4AC3843817AE289@Server> <4BD9B2B0.6070702@gmail.com> Message-ID: <63F6B9B899564F0CA0504BBF5C7E70AA@XPS> John, <> That's all they do. In fact now, you usually pay extra if you want a physical server. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W Colby Sent: Thursday, April 29, 2010 12:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] hosting a website in-house Do you think it would run efficiently in a VM? It seems that would be one way to help isolate it from my network, and also to move it to another machine in case of machine issues. I think the big hosting providers do this don't they? Does anyone use DNN on their own in-house system? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, > > Never touch mine. Cost me zero minutes each week. Cant even remember what > OS it uses. It just sits there and works. > Files get updated overnight by batch files calling executables etc and also > over the network. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net > Sent: Thursday, April 29, 2010 4:55 PM > To: Access Developers discussion and problem solving > Cc: Rocky Smolin > Subject: Re: [AccessD] hosting a website in-house > > If you time is worth anything using a hosting service is the way to go. > Seems like keeping up with security, patches, etc is a continuing education > that really doesn't help access development. If this is a hobby go for it. > > Doug > > ---- Rocky Smolin wrote: > >> I have my web sites hosted by GoDaddy. It's really cheap, very reliable, >> requires no work on my part (probably the leading reason to go outside), >> > and > >> no worries about my equipment being up. And their customer support is >> outstanding. >> >> So the question is, what is the advantage of hosting your own website >> > versus > >> buying a hosting service outside? >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, April 28, 2010 6:40 AM >> To: Access Developers discussion and problem solving; VBA >> Subject: [AccessD] hosting a website in-house >> >> I just need a reality check as to whether trying to host a website >> > in-house > >> is insane, doable, easy, difficult? If I did this it would be for my own >> web site (very low traffic), and would need to include email (also low >> traffic). If I lost internet (which I get over the local cable) then >> obviously I would be out of commission for the duration of that outage. >> >> I have been in this home / office for close to four years and have had >> > only > >> one single extended outage (11 hours, due to weather). >> >> I have a server that I keep up 24/7. I have battery backup etc. I run >> > VMs > >> and it seems like I could put something like this in a VM so that I could >> move it to another machine if I had a machine issue. >> >> I am actively considering building a new server with 16 or 24 cores >> > because > >> it would be a big boost for my SQL Server work and with so many cores it >> seems like having a VM running my web site might make sense. >> >> -- >> 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 >> > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Apr 29 11:58:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 17:58:25 +0100 Subject: [AccessD] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com> Message-ID: <3BB62B532B9D4EC0A0B6024900697998@Server> I use bog standard windows - think it is XP with abyss web server. No MS Servers No IIS Content is hand written programs in access to output html also Serif WebPlus X4 and A4Desk. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 29, 2010 5:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house Hi John: There are a number of initial site configuration and process steps you have to go through, I assuming you are using IIS, which comes with all MS current servers, but once you get use to it, it is very easy... you can pop out website after website with gay abandon. If you need any help with specifics I would be more than glad to help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 6:40 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] hosting a website in-house I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- 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 accessd at shaw.ca Thu Apr 29 12:03:34 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 10:03:34 -0700 Subject: [AccessD] hosting a website in-house In-Reply-To: <3BB62B532B9D4EC0A0B6024900697998@Server> References: <4BD83A9A.8050401@colbyconsulting.com> <3BB62B532B9D4EC0A0B6024900697998@Server> Message-ID: Max, so where is that link to your web site(s)? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, April 29, 2010 9:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house I use bog standard windows - think it is XP with abyss web server. No MS Servers No IIS Content is hand written programs in access to output html also Serif WebPlus X4 and A4Desk. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 29, 2010 5:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house Hi John: There are a number of initial site configuration and process steps you have to go through, I assuming you are using IIS, which comes with all MS current servers, but once you get use to it, it is very easy... you can pop out website after website with gay abandon. If you need any help with specifics I would be more than glad to help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 6:40 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] hosting a website in-house I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Apr 29 12:06:55 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 17:06:55 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , Message-ID: Rocky, So...I guess code that will tell you what the password is would do the trick? You will have to test against different versions...but I think it works up to 2003... I'll find it...and send offline.... Let me know if this would solve your situation. Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 08:31:09 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > Being able to link to it from another mdb is, I think, a deal breaker for > this guy. Also, he may need access to the back end himself. I think I have > to go with the password protection - I just need to figure out a simple way > to know if a database has a password. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 7:48 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > That being the case...create a form in the BE...open it on startup...form > does 2 things... > 1. turn off shift bypass. > 2. closed MDB > > I accidentally locked myself out of an MDB with this once. > > They can still link to it from any access database...but cannot open it > directly. > > Mark A. Matte > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > 1) yes > > 2) any access mdb > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Monday, April 26, 2010 12:00 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Rocky, > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > Thanks, > > > > > > > > Mark A. Matte _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 From max.wanadoo at gmail.com Thu Apr 29 12:12:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 18:12:25 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , Message-ID: <5B12539433534C80B8AB007A7F41BD5C@Server> Hmm. Mark, can you post it to the list please. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 6:07 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection Rocky, So...I guess code that will tell you what the password is would do the trick? You will have to test against different versions...but I think it works up to 2003... I'll find it...and send offline.... Let me know if this would solve your situation. Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 08:31:09 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > Being able to link to it from another mdb is, I think, a deal breaker for > this guy. Also, he may need access to the back end himself. I think I have > to go with the password protection - I just need to figure out a simple way > to know if a database has a password. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 7:48 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > That being the case...create a form in the BE...open it on startup...form > does 2 things... > 1. turn off shift bypass. > 2. closed MDB > > I accidentally locked myself out of an MDB with this once. > > They can still link to it from any access database...but cannot open it > directly. > > Mark A. Matte > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > 1) yes > > 2) any access mdb > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Monday, April 26, 2010 12:00 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Rocky, > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > Thanks, > > > > > > > > Mark A. Matte _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Apr 29 12:13:06 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 18:13:06 +0100 Subject: [AccessD] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com><3BB62B532B9D4EC0A0B6024900697998@Server> Message-ID: Not saying...ha..its is our admin site for staff only. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 29, 2010 6:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house Max, so where is that link to your web site(s)? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, April 29, 2010 9:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house I use bog standard windows - think it is XP with abyss web server. No MS Servers No IIS Content is hand written programs in access to output html also Serif WebPlus X4 and A4Desk. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, April 29, 2010 5:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] hosting a website in-house Hi John: There are a number of initial site configuration and process steps you have to go through, I assuming you are using IIS, which comes with all MS current servers, but once you get use to it, it is very easy... you can pop out website after website with gay abandon. If you need any help with specifics I would be more than glad to help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, April 28, 2010 6:40 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] hosting a website in-house I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, difficult? If I did this it would be for my own web site (very low traffic), and would need to include email (also low traffic). If I lost internet (which I get over the local cable) then obviously I would be out of commission for the duration of that outage. I have been in this home / office for close to four years and have had only one single extended outage (11 hours, due to weather). I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I could put something like this in a VM so that I could move it to another machine if I had a machine issue. I am actively considering building a new server with 16 or 24 cores because it would be a big boost for my SQL Server work and with so many cores it seems like having a VM running my web site might make sense. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 29 12:36:24 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 10:36:24 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , Message-ID: Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 10:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection Rocky, So...I guess code that will tell you what the password is would do the trick? You will have to test against different versions...but I think it works up to 2003... I'll find it...and send offline.... Let me know if this would solve your situation. Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 08:31:09 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > Being able to link to it from another mdb is, I think, a deal breaker > for this guy. Also, he may need access to the back end himself. I > think I have to go with the password protection - I just need to > figure out a simple way to know if a database has a password. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, April 29, 2010 7:48 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > That being the case...create a form in the BE...open it on > startup...form does 2 things... > 1. turn off shift bypass. > 2. closed MDB > > I accidentally locked myself out of an MDB with this once. > > They can still link to it from any access database...but cannot open > it directly. > > Mark A. Matte > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > 1) yes > > 2) any access mdb > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Monday, April 26, 2010 12:00 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Rocky, > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > Thanks, > > > > > > > > Mark A. Matte _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Apr 29 12:38:25 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 17:38:25 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <5B12539433534C80B8AB007A7F41BD5C@Server> References: , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, ,,, , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server> Message-ID: There is some irony here... Subject = 'Database Needs Password Protection'. Email= Code to display/crack password. Would it be appropriate to post publically? Mark > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:12:25 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > Hmm. > > Mark, can you post it to the list please. > > Thanks > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 6:07 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > Rocky, > > > > So...I guess code that will tell you what the password is would do the > trick? You will have to test against different versions...but I think it > works up to 2003... > > > > I'll find it...and send offline.... > > > > Let me know if this would solve your situation. > > > > Thanks, > > > > Mark A. Matte > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 08:31:09 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > Being able to link to it from another mdb is, I think, a deal breaker for > > this guy. Also, he may need access to the back end himself. I think I have > > to go with the password protection - I just need to figure out a simple > way > > to know if a database has a password. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Thursday, April 29, 2010 7:48 AM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > That being the case...create a form in the BE...open it on startup...form > > does 2 things... > > 1. turn off shift bypass. > > 2. closed MDB > > > > I accidentally locked myself out of an MDB with this once. > > > > They can still link to it from any access database...but cannot open it > > directly. > > > > Mark A. Matte > > > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Mark: > > > > > > 1) yes > > > 2) any access mdb > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > Matte > > > Sent: Monday, April 26, 2010 12:00 PM > > > To: accessd at databaseadvisors.com > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > Rocky, > > > > > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Mark A. Matte > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W > L:en-US:WM_HMP:042010_1 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 From rockysmolin at bchacc.com Thu Apr 29 12:53:37 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 10:53:37 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server> Message-ID: <3C87BA04EDB44FF29055D6652D899A1B@HAL9005> Mark: Had a problem with it though - I put it in an mdb, passed a password protected mdb with a password of 9 alphanumeric characters but the password it retrieved was 3 bytes of hex that weren't printable characters. This is A2K3. Could it be looking in the wrong place in the mdb file? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 10:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection There is some irony here... Subject = 'Database Needs Password Protection'. Email= Code to display/crack password. Would it be appropriate to post publically? Mark > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:12:25 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > Hmm. > > Mark, can you post it to the list please. > > Thanks > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, April 29, 2010 6:07 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > Rocky, > > > > So...I guess code that will tell you what the password is would do the > trick? You will have to test against different versions...but I think > it works up to 2003... > > > > I'll find it...and send offline.... > > > > Let me know if this would solve your situation. > > > > Thanks, > > > > Mark A. Matte > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 08:31:09 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > Being able to link to it from another mdb is, I think, a deal > > breaker for this guy. Also, he may need access to the back end > > himself. I think I have to go with the password protection - I just > > need to figure out a simple > way > > to know if a database has a password. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Thursday, April 29, 2010 7:48 AM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > That being the case...create a form in the BE...open it on > > startup...form does 2 things... > > 1. turn off shift bypass. > > 2. closed MDB > > > > I accidentally locked myself out of an MDB with this once. > > > > They can still link to it from any access database...but cannot open > > it directly. > > > > Mark A. Matte > > > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Mark: > > > > > > 1) yes > > > 2) any access mdb > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > Matte > > > Sent: Monday, April 26, 2010 12:00 PM > > > To: accessd at databaseadvisors.com > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > Rocky, > > > > > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Mark A. Matte > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAG > L:ON:W > L:en-US:WM_HMP:042010_1 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Apr 29 12:54:56 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 18:54:56 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server> Message-ID: <46DC0CA959AC40668BA43D30C8DE8843@Server> What irony? You are posting to an Access list and say you have code to determine if a be is password protected. I was replying to JBs posting re running own web site on own PC which is subject to attacks. The attacks are logged and the access program parses the log file to extract the information. Sorry, but it that upsets you, forget posting your code. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 6:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection There is some irony here... Subject = 'Database Needs Password Protection'. Email= Code to display/crack password. Would it be appropriate to post publically? Mark > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:12:25 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > Hmm. > > Mark, can you post it to the list please. > > Thanks > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 6:07 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > Rocky, > > > > So...I guess code that will tell you what the password is would do the > trick? You will have to test against different versions...but I think it > works up to 2003... > > > > I'll find it...and send offline.... > > > > Let me know if this would solve your situation. > > > > Thanks, > > > > Mark A. Matte > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 08:31:09 -0700 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Mark: > > > > Being able to link to it from another mdb is, I think, a deal breaker for > > this guy. Also, he may need access to the back end himself. I think I have > > to go with the password protection - I just need to figure out a simple > way > > to know if a database has a password. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Thursday, April 29, 2010 7:48 AM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > That being the case...create a form in the BE...open it on startup...form > > does 2 things... > > 1. turn off shift bypass. > > 2. closed MDB > > > > I accidentally locked myself out of an MDB with this once. > > > > They can still link to it from any access database...but cannot open it > > directly. > > > > Mark A. Matte > > > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Mark: > > > > > > 1) yes > > > 2) any access mdb > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > Matte > > > Sent: Monday, April 26, 2010 12:00 PM > > > To: accessd at databaseadvisors.com > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > Rocky, > > > > > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Mark A. Matte > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W > L:en-US:WM_HMP:042010_1 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 29 13:48:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 29 Apr 2010 14:48:05 -0400 Subject: [AccessD] A strange situation Message-ID: <4BD9D465.7090301@colbyconsulting.com> I have a security system where there are groups of users. Each group is represented by a bit position in a long integer. 1 = GroupA, 2 = GroupB, 4 = GroupC etc. I have a form which has 32 check boxes on it. These check boxes represent the bit positions in a long integer. IOW each bit position represents a group. The form has methods to take a long integer and set / clear the associated check box as well as hide / display check boxes. All of that works. The form with the check boxes will be a subform on a parent form that allows the user to set security for a specific form. This parent form displays records in a table. The records have a form name, and long integer fields for AllowEdit, AllowDelete etc. The parent form form thus has five text boxes representing the properties of a form - Visible, AllowEdit, AllowDelete, AllowInsert etc. Each text box will display a long integer which represents the OR of a set of groups which can perform the operation. As I click into one of these text boxes I need to make the "checkbox" subform "visible". I may click into that subform and click check boxes representing bit positions which are groups that can perform that operation (allowedits etc). Or... I may click into another of the text boxes. As I click into the text box, the subform displayed has to set / clear the check boxes representing the groups contained in the bit positions of the long integer contained in the text box. Simple enough eh? The problem is making visible just the subform for the "current" text box. The only way I can think of to do this is a tab control which is kind of clumsy but works. Place an instance of the check box subform on a tab, one tab for each property. As the user clicks into one of the "property" text boxes, the correct tab is selected, displaying the subform for that text box. One problem is that as the user clicks OUT of the subform, the check box values have to be rolled back into a long integer and placed into the correct text box for that subform. The subform itself has a method that performs this rollup and hands back the long integer, the problem is that the OnExit of the subform has to do the placement of the long integer into the associated text box. This is turning into a lot of very ugly code in the parent form module. This is begging for a class solution to compartmentalize the code but things are getting intertwined. OnEnter of the text box has to call its subform and pass it the long integer it contains. OnExit of the subform control has to know what text box to pass the value back to. OnEnter of the text box has to select the correct tab of the tab control. Whooo doggy, things are getting fun. -- John W. Colby www.ColbyConsulting.com From markamatte at hotmail.com Thu Apr 29 14:13:44 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 19:13:44 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <46DC0CA959AC40668BA43D30C8DE8843@Server> References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , ,,, , ,,<08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, ,,, , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <46DC0CA959AC40668BA43D30C8DE8843@Server> Message-ID: I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. Don't remember where I got it...but... Here is the code that tells you the password of an MDB. Should be able to use for your purpose. Thanks, Mark Call: StPasswordOfStDatabase (Me!Database) Function: Public Function StPasswordOfStDatabase(stDatabase As String) As String Dim hFile As Integer Dim ich As Integer Dim stBuffer As String Dim rgbytRaw() As Byte Dim rgbytPassword() As Byte Dim rgbytNoPassword() As Byte ' Create the byte array with the 20 bytes that are present when there ' is no database password rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) ' Grab the 20 bytes from the real file whose password ' we are supposed to retrieve hFile = FreeFile Open stDatabase For Binary As #hFile Seek #hFile, 66 + 1 rgbytRaw = InputB(20, #hFile) Close #hFile ' Enough prep, lets get the password now. ReDim rgbytPassword(0 To 19) For ich = 0 To 19 rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) Next ich ' Add a trailing Null so one will always be found, even if the password is 20 ' characters. Then grab up to the first null we find and return the password stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) Forms!form1!Password = StPasswordOfStDatabase End Function '**************************END********************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:54:56 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > > What irony? > > You are posting to an Access list and say you have code to determine if a > be is password protected. > > I was replying to JBs posting re running own web site on own PC which is > subject to attacks. The attacks are logged and the access program parses the > log file to extract the information. > > Sorry, but it that upsets you, forget posting your code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 6:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 From markamatte at hotmail.com Thu Apr 29 14:22:05 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 19:22:05 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <3C87BA04EDB44FF29055D6652D899A1B@HAL9005> References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , ,,, , ,,<08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, ,,, , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <3C87BA04EDB44FF29055D6652D899A1B@HAL9005> Message-ID: Sorry...just tested it...apparently it only works on 97 and 2000 database versions. > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 10:53:37 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > Had a problem with it though - I put it in an mdb, passed a password > protected mdb with a password of 9 alphanumeric characters but the password > it retrieved was 3 bytes of hex that weren't printable characters. This is > A2K3. Could it be looking in the wrong place in the mdb file? > > Regards, > > Rocky > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 10:38 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > > > From: max.wanadoo at gmail.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 18:12:25 +0100 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Hmm. > > > > Mark, can you post it to the list please. > > > > Thanks > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Thursday, April 29, 2010 6:07 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Rocky, > > > > > > > > So...I guess code that will tell you what the password is would do the > > trick? You will have to test against different versions...but I think > > it works up to 2003... > > > > > > > > I'll find it...and send offline.... > > > > > > > > Let me know if this would solve your situation. > > > > > > > > Thanks, > > > > > > > > Mark A. Matte > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Thu, 29 Apr 2010 08:31:09 -0700 > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Mark: > > > > > > Being able to link to it from another mdb is, I think, a deal > > > breaker for this guy. Also, he may need access to the back end > > > himself. I think I have to go with the password protection - I just > > > need to figure out a simple > > way > > > to know if a database has a password. > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > Matte > > > Sent: Thursday, April 29, 2010 7:48 AM > > > To: accessd at databaseadvisors.com > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > That being the case...create a form in the BE...open it on > > > startup...form does 2 things... > > > 1. turn off shift bypass. > > > 2. closed MDB > > > > > > I accidentally locked myself out of an MDB with this once. > > > > > > They can still link to it from any access database...but cannot open > > > it directly. > > > > > > Mark A. Matte > > > > > > > > > > From: rockysmolin at bchacc.com > > > > To: accessd at databaseadvisors.com > > > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > Mark: > > > > > > > > 1) yes > > > > 2) any access mdb > > > > > > > > Rocky > > > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > > Matte > > > > Sent: Monday, April 26, 2010 12:00 PM > > > > To: accessd at databaseadvisors.com > > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > > > > Rocky, > > > > > > > > > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > Mark A. Matte > > > > _________________________________________________________________ > > Hotmail has tools for the New Busy. Search, chat and e-mail from your > inbox. > > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAG > > L:ON:W > > L:en-US:WM_HMP:042010_1 > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W > L:en-US:WM_HMP:042010_1 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 From markamatte at hotmail.com Thu Apr 29 14:22:23 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 29 Apr 2010 19:22:23 +0000 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , ,,, , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, ,,,,, , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , ,,, , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , , , <46DC0CA959AC40668BA43D30C8DE8843@Server>, Message-ID: Sorry...just tested it...apparently it only works on 97 and 2000 database versions. > From: markamatte at hotmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 19:13:44 +0000 > Subject: Re: [AccessD] Database Needs Password Protection > > > I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. > > Don't remember where I got it...but... > > Here is the code that tells you the password of an MDB. Should be able to use for your purpose. > > Thanks, > > Mark > > Call: StPasswordOfStDatabase (Me!Database) > > Function: > Public Function StPasswordOfStDatabase(stDatabase As String) As String > Dim hFile As Integer > Dim ich As Integer > Dim stBuffer As String > Dim rgbytRaw() As Byte > Dim rgbytPassword() As Byte > Dim rgbytNoPassword() As Byte > > ' Create the byte array with the 20 bytes that are present when there > ' is no database password > rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ > ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ > ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ > ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) > > ' Grab the 20 bytes from the real file whose password > ' we are supposed to retrieve > hFile = FreeFile > Open stDatabase For Binary As #hFile > Seek #hFile, 66 + 1 > rgbytRaw = InputB(20, #hFile) > Close #hFile > > ' Enough prep, lets get the password now. > ReDim rgbytPassword(0 To 19) > For ich = 0 To 19 > rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) > Next ich > > ' Add a trailing Null so one will always be found, even if the password is 20 > ' characters. Then grab up to the first null we find and return the password > stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar > StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) > Forms!form1!Password = StPasswordOfStDatabase > End Function > '**************************END********************** > > > > From: max.wanadoo at gmail.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 18:54:56 +0100 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > What irony? > > > > You are posting to an Access list and say you have code to determine if a > > be is password protected. > > > > I was replying to JBs posting re running own web site on own PC which is > > subject to attacks. The attacks are logged and the access program parses the > > log file to extract the information. > > > > Sorry, but it that upsets you, forget posting your code. > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Thursday, April 29, 2010 6:38 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > There is some irony here... > > > > > > > > Subject = 'Database Needs Password Protection'. > > > > Email= Code to display/crack password. > > > > > > > > Would it be appropriate to post publically? > > > > > > > > Mark > > > > _________________________________________________________________ > The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. > http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 From max.wanadoo at gmail.com Thu Apr 29 14:25:11 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 20:25:11 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <46DC0CA959AC40668BA43D30C8DE8843@Server> Message-ID: Ok Mark, thanks, But, you were x-referencing my emails based on different subjects. Anyway, lets move on. I doubt very much that a person of your calibre is in need of any code to parse a text file anyway 8-; Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. Don't remember where I got it...but... Here is the code that tells you the password of an MDB. Should be able to use for your purpose. Thanks, Mark Call: StPasswordOfStDatabase (Me!Database) Function: Public Function StPasswordOfStDatabase(stDatabase As String) As String Dim hFile As Integer Dim ich As Integer Dim stBuffer As String Dim rgbytRaw() As Byte Dim rgbytPassword() As Byte Dim rgbytNoPassword() As Byte ' Create the byte array with the 20 bytes that are present when there ' is no database password rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) ' Grab the 20 bytes from the real file whose password ' we are supposed to retrieve hFile = FreeFile Open stDatabase For Binary As #hFile Seek #hFile, 66 + 1 rgbytRaw = InputB(20, #hFile) Close #hFile ' Enough prep, lets get the password now. ReDim rgbytPassword(0 To 19) For ich = 0 To 19 rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) Next ich ' Add a trailing Null so one will always be found, even if the password is 20 ' characters. Then grab up to the first null we find and return the password stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) Forms!form1!Password = StPasswordOfStDatabase End Function '**************************END********************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:54:56 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > > What irony? > > You are posting to an Access list and say you have code to determine if a > be is password protected. > > I was replying to JBs posting re running own web site on own PC which is > subject to attacks. The attacks are logged and the access program parses the > log file to extract the information. > > Sorry, but it that upsets you, forget posting your code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 6:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID283 26::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 29 14:39:38 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 12:39:38 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <3C87BA04EDB44FF29055D6652D899A1B@HAL9005> Message-ID: <0BD2F5D82CB447A0877D36CCCB982257@HAL9005> I looked around for the format of the 2003 mdb to see where the password might be - probably just a question of the offset from the start of the file - but couldn't find the spec. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 12:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection Sorry...just tested it...apparently it only works on 97 and 2000 database versions. > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 10:53:37 -0700 > Subject: Re: [AccessD] Database Needs Password Protection > > Mark: > > Had a problem with it though - I put it in an mdb, passed a password > protected mdb with a password of 9 alphanumeric characters but the > password it retrieved was 3 bytes of hex that weren't printable > characters. This is A2K3. Could it be looking in the wrong place in the mdb file? > > Regards, > > Rocky > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, April 29, 2010 10:38 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > > > From: max.wanadoo at gmail.com > > To: accessd at databaseadvisors.com > > Date: Thu, 29 Apr 2010 18:12:25 +0100 > > Subject: Re: [AccessD] Database Needs Password Protection > > > > Hmm. > > > > Mark, can you post it to the list please. > > > > Thanks > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Thursday, April 29, 2010 6:07 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Rocky, > > > > > > > > So...I guess code that will tell you what the password is would do > > the trick? You will have to test against different versions...but I > > think it works up to 2003... > > > > > > > > I'll find it...and send offline.... > > > > > > > > Let me know if this would solve your situation. > > > > > > > > Thanks, > > > > > > > > Mark A. Matte > > > > > From: rockysmolin at bchacc.com > > > To: accessd at databaseadvisors.com > > > Date: Thu, 29 Apr 2010 08:31:09 -0700 > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > Mark: > > > > > > Being able to link to it from another mdb is, I think, a deal > > > breaker for this guy. Also, he may need access to the back end > > > himself. I think I have to go with the password protection - I > > > just need to figure out a simple > > way > > > to know if a database has a password. > > > > > > Rocky > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > > Matte > > > Sent: Thursday, April 29, 2010 7:48 AM > > > To: accessd at databaseadvisors.com > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > That being the case...create a form in the BE...open it on > > > startup...form does 2 things... > > > 1. turn off shift bypass. > > > 2. closed MDB > > > > > > I accidentally locked myself out of an MDB with this once. > > > > > > They can still link to it from any access database...but cannot > > > open it directly. > > > > > > Mark A. Matte > > > > > > > > > > From: rockysmolin at bchacc.com > > > > To: accessd at databaseadvisors.com > > > > Date: Mon, 26 Apr 2010 13:00:38 -0700 > > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > Mark: > > > > > > > > 1) yes > > > > 2) any access mdb > > > > > > > > Rocky > > > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark > > > > A Matte > > > > Sent: Monday, April 26, 2010 12:00 PM > > > > To: accessd at databaseadvisors.com > > > > Subject: Re: [AccessD] Database Needs Password Protection > > > > > > > > > > > > Rocky, > > > > > > > > > > > > > > > > Can I ask in a slightly different way??? > > > > > > > > > > > > > > > > 1. Are you trying to keep people from opening the backend directly? > > > > > > > > 2. Can the user link to the BE from any access MDB or just your app? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > Mark A. Matte > > > > _________________________________________________________________ > > Hotmail has tools for the New Busy. Search, chat and e-mail from > > your > inbox. > > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMT > > AG > > L:ON:W > > L:en-US:WM_HMP:042010_1 > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAG > L:ON:W > L:en-US:WM_HMP:042010_1 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_3 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Apr 29 14:45:57 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 20:45:57 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <46DC0CA959AC40668BA43D30C8DE8843@Server> Message-ID: <07E18F21EBD449618AF84E3D10CDF0F6@Server> But, just a thought Mark, I thought you were going to post code to see if a be WAS password protected WITHOUT having to open if and trap the code - I think this is what Rocky was asking for but I may have misunderstood. That was what I was asking you to post. Not code to determine what a password was. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. Don't remember where I got it...but... Here is the code that tells you the password of an MDB. Should be able to use for your purpose. Thanks, Mark Call: StPasswordOfStDatabase (Me!Database) Function: Public Function StPasswordOfStDatabase(stDatabase As String) As String Dim hFile As Integer Dim ich As Integer Dim stBuffer As String Dim rgbytRaw() As Byte Dim rgbytPassword() As Byte Dim rgbytNoPassword() As Byte ' Create the byte array with the 20 bytes that are present when there ' is no database password rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) ' Grab the 20 bytes from the real file whose password ' we are supposed to retrieve hFile = FreeFile Open stDatabase For Binary As #hFile Seek #hFile, 66 + 1 rgbytRaw = InputB(20, #hFile) Close #hFile ' Enough prep, lets get the password now. ReDim rgbytPassword(0 To 19) For ich = 0 To 19 rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) Next ich ' Add a trailing Null so one will always be found, even if the password is 20 ' characters. Then grab up to the first null we find and return the password stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) Forms!form1!Password = StPasswordOfStDatabase End Function '**************************END********************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:54:56 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > > What irony? > > You are posting to an Access list and say you have code to determine if a > be is password protected. > > I was replying to JBs posting re running own web site on own PC which is > subject to attacks. The attacks are logged and the access program parses the > log file to extract the information. > > Sorry, but it that upsets you, forget posting your code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, April 29, 2010 6:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID283 26::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 29 15:00:27 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 13:00:27 -0700 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <07E18F21EBD449618AF84E3D10CDF0F6@Server> References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <46DC0CA959AC40668BA43D30C8DE8843@Server> <07E18F21EBD449618AF84E3D10CDF0F6@Server> Message-ID: <00534091CE134A4E88A0F62EF5BCA1AE@HAL9005> Code to determine the password would be frosting. Knowing IF there was a password was my original problem. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, April 29, 2010 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection But, just a thought Mark, I thought you were going to post code to see if a be WAS password protected WITHOUT having to open if and trap the code - I think this is what Rocky was asking for but I may have misunderstood. That was what I was asking you to post. Not code to determine what a password was. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. Don't remember where I got it...but... Here is the code that tells you the password of an MDB. Should be able to use for your purpose. Thanks, Mark Call: StPasswordOfStDatabase (Me!Database) Function: Public Function StPasswordOfStDatabase(stDatabase As String) As String Dim hFile As Integer Dim ich As Integer Dim stBuffer As String Dim rgbytRaw() As Byte Dim rgbytPassword() As Byte Dim rgbytNoPassword() As Byte ' Create the byte array with the 20 bytes that are present when there ' is no database password rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) ' Grab the 20 bytes from the real file whose password ' we are supposed to retrieve hFile = FreeFile Open stDatabase For Binary As #hFile Seek #hFile, 66 + 1 rgbytRaw = InputB(20, #hFile) Close #hFile ' Enough prep, lets get the password now. ReDim rgbytPassword(0 To 19) For ich = 0 To 19 rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) Next ich ' Add a trailing Null so one will always be found, even if the password is 20 ' characters. Then grab up to the first null we find and return the password stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) Forms!form1!Password = StPasswordOfStDatabase End Function '**************************END********************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:54:56 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > > What irony? > > You are posting to an Access list and say you have code to determine > if a be is password protected. > > I was replying to JBs posting re running own web site on own PC which > is subject to attacks. The attacks are logged and the access program > parses the > log file to extract the information. > > Sorry, but it that upsets you, forget posting your code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, April 29, 2010 6:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID283 26::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 29 15:06:34 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 29 Apr 2010 21:06:34 +0100 Subject: [AccessD] Database Needs Password Protection In-Reply-To: <00534091CE134A4E88A0F62EF5BCA1AE@HAL9005> References: , , , , , , , , , , , , , <26068701B29E4D40BECD5241789EA4A5@HAL9005>, , , , , , , , <08841CE02AEA41E796607ECDF7DEDC7C@HAL9005>, , , , , , , , , , <5B12539433534C80B8AB007A7F41BD5C@Server>, , <46DC0CA959AC40668BA43D30C8DE8843@Server><07E18F21EBD449618AF84E3D10CDF0F6@Server> <00534091CE134A4E88A0F62EF5BCA1AE@HAL9005> Message-ID: <879ED283A34B481BB8DB016AAE6B0F1B@Server> Yes, that is what I thought you were asking for and that Mark had an answer to. I *think* you have to test it and trap (as you first said). I know of no other way. Others may. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, April 29, 2010 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection Code to determine the password would be frosting. Knowing IF there was a password was my original problem. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, April 29, 2010 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Needs Password Protection But, just a thought Mark, I thought you were going to post code to see if a be WAS password protected WITHOUT having to open if and trap the code - I think this is what Rocky was asking for but I may have misunderstood. That was what I was asking you to post. Not code to determine what a password was. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, April 29, 2010 8:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Needs Password Protection I'm not upset...it was just a question Max...and I do see irony the subject is about protecting a database...the code is how to bypass that protection. Don't remember where I got it...but... Here is the code that tells you the password of an MDB. Should be able to use for your purpose. Thanks, Mark Call: StPasswordOfStDatabase (Me!Database) Function: Public Function StPasswordOfStDatabase(stDatabase As String) As String Dim hFile As Integer Dim ich As Integer Dim stBuffer As String Dim rgbytRaw() As Byte Dim rgbytPassword() As Byte Dim rgbytNoPassword() As Byte ' Create the byte array with the 20 bytes that are present when there ' is no database password rgbytNoPassword = ChrB(134) & ChrB(251) & ChrB(236) & ChrB(55) & ChrB(93) & _ ChrB(68) & ChrB(156) & ChrB(250) & ChrB(198) & ChrB(94) & _ ChrB(40) & ChrB(230) & ChrB(19) & ChrB(182) & ChrB(138) & _ ChrB(96) & ChrB(84) & ChrB(148) & ChrB(123) & ChrB(54) ' Grab the 20 bytes from the real file whose password ' we are supposed to retrieve hFile = FreeFile Open stDatabase For Binary As #hFile Seek #hFile, 66 + 1 rgbytRaw = InputB(20, #hFile) Close #hFile ' Enough prep, lets get the password now. ReDim rgbytPassword(0 To 19) For ich = 0 To 19 rgbytPassword(ich) = rgbytRaw(ich) Xor rgbytNoPassword(ich) Next ich ' Add a trailing Null so one will always be found, even if the password is 20 ' characters. Then grab up to the first null we find and return the password stBuffer = StrConv(rgbytPassword, vbUnicode) & vbNullChar StPasswordOfStDatabase = Left$(stBuffer, InStr(1, stBuffer, vbNullChar, vbBinaryCompare) - 1) Forms!form1!Password = StPasswordOfStDatabase End Function '**************************END********************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 29 Apr 2010 18:54:56 +0100 > Subject: Re: [AccessD] Database Needs Password Protection > > > What irony? > > You are posting to an Access list and say you have code to determine > if a be is password protected. > > I was replying to JBs posting re running own web site on own PC which > is subject to attacks. The attacks are logged and the access program > parses the > log file to extract the information. > > Sorry, but it that upsets you, forget posting your code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, April 29, 2010 6:38 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Database Needs Password Protection > > > There is some irony here... > > > > Subject = 'Database Needs Password Protection'. > > Email= Code to display/crack password. > > > > Would it be appropriate to post publically? > > > > Mark > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID283 26::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 29 17:17:18 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2010 08:17:18 +1000 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: <4BD83A9A.8050401@colbyconsulting.com> References: <4BD83A9A.8050401@colbyconsulting.com> Message-ID: <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> Do-able but insane. But look at the cost of basic hosting packages and trade that off against (roughly in order of priority): 1. your additional time to administer web and mail servers and especially to keep them fully patched and up to date. 2. the additional security risks in exposing your systems to the public 3. the additional demand on your limited bandwidth ( not just from website hits, but from the continuous probes you will be getting on your web and mail servers). At the moment, your mail provider is probably blocking a lot of spam from ever getting to colby.com - once you are runnning your own mail server, you will have to deal with it all. 4. the cost of using your resources (power, disk space, cpu cycles) - you may think it negligible, but wait until your domain gets hit by a spam flood :-( It just doesn't make sense!! OK maybe I'm biased since we have recently set up http://www.pngconnect.com :-) -- Stuart On 28 Apr 2010 at 9:39, jwcolby wrote: > I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, > difficult? If I did this it would be for my own web site (very low traffic), and would need to > include email (also low traffic). If I lost internet (which I get over the local cable) then > obviously I would be out of commission for the duration of that outage. > > I have been in this home / office for close to four years and have had only one single extended > outage (11 hours, due to weather). > > I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I > could put something like this in a VM so that I could move it to another machine if I had a machine > issue. > > I am actively considering building a new server with 16 or 24 cores because it would be a big boost > for my SQL Server work and with so many cores it seems like having a VM running my web site might > make sense. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Apr 29 17:23:11 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2010 08:23:11 +1000 Subject: [AccessD] hosting a website in-house In-Reply-To: <46B8ABC31CF244A8B4AC3843817AE289@Server> References: , <20100429115443.HCH47.185288.imail@fed1rmwml30>, <46B8ABC31CF244A8B4AC3843817AE289@Server> Message-ID: <4BDA06CF.5034.52A2D32@stuart.lexacorp.com.pg> What's your domain? -- Stuart > > Hmmm, > > Never touch mine. Cost me zero minutes each week. Cant even remember what > OS it uses. It just sits there and works. > Files get updated overnight by batch files calling executables etc and also > over the network. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net > Sent: Thursday, April 29, 2010 4:55 PM > To: Access Developers discussion and problem solving > Cc: Rocky Smolin > Subject: Re: [AccessD] hosting a website in-house > > If you time is worth anything using a hosting service is the way to go. > Seems like keeping up with security, patches, etc is a continuing education > that really doesn't help access development. If this is a hobby go for it. > > Doug > > ---- Rocky Smolin wrote: > > I have my web sites hosted by GoDaddy. It's really cheap, very reliable, > > requires no work on my part (probably the leading reason to go outside), > and > > no worries about my equipment being up. And their customer support is > > outstanding. > > > > So the question is, what is the advantage of hosting your own website > versus > > buying a hosting service outside? > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Wednesday, April 28, 2010 6:40 AM > > To: Access Developers discussion and problem solving; VBA > > Subject: [AccessD] hosting a website in-house > > > > I just need a reality check as to whether trying to host a website > in-house > > is insane, doable, easy, difficult? If I did this it would be for my own > > web site (very low traffic), and would need to include email (also low > > traffic). If I lost internet (which I get over the local cable) then > > obviously I would be out of commission for the duration of that outage. > > > > I have been in this home / office for close to four years and have had > only > > one single extended outage (11 hours, due to weather). > > > > I have a server that I keep up 24/7. I have battery backup etc. I run > VMs > > and it seems like I could put something like this in a VM so that I could > > move it to another machine if I had a machine issue. > > > > I am actively considering building a new server with 16 or 24 cores > because > > it would be a big boost for my SQL Server work and with so many cores it > > seems like having a VM running my web site might make sense. > > > > -- > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 29 17:26:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2010 08:26:01 +1000 Subject: [AccessD] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com>, , Message-ID: <4BDA0779.12805.52CC646@stuart.lexacorp.com.pg> Ahah! So you are not hosting a public domain the way JC is talking about. That's a completely different kettle of fish. -- Stuart On 29 Apr 2010 at 18:13, Max Wanadoo wrote: > > Not saying...ha..its is our admin site for staff only. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Thursday, April 29, 2010 6:04 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] hosting a website in-house > > Max, so where is that link to your web site(s)? Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, April 29, 2010 9:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] hosting a website in-house > > > I use bog standard windows - think it is XP with abyss web server. > > No MS Servers > No IIS > > Content is hand written programs in access to output html also Serif WebPlus > X4 and A4Desk. > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Thursday, April 29, 2010 5:40 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] hosting a website in-house > > Hi John: > > There are a number of initial site configuration and process steps you have > to go through, I assuming you are using IIS, which comes with all MS current > servers, but once you get use to it, it is very easy... you can pop out > website after website with gay abandon. > > If you need any help with specifics I would be more than glad to help. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, April 28, 2010 6:40 AM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] hosting a website in-house > > I just need a reality check as to whether trying to host a website in-house > is insane, doable, easy, > difficult? If I did this it would be for my own web site (very low > traffic), and would need to > include email (also low traffic). If I lost internet (which I get over the > local cable) then > obviously I would be out of commission for the duration of that outage. > > I have been in this home / office for close to four years and have had only > one single extended > outage (11 hours, due to weather). > > I have a server that I keep up 24/7. I have battery backup etc. I run VMs > and it seems like I > could put something like this in a VM so that I could move it to another > machine if I had a machine > issue. > > I am actively considering building a new server with 16 or 24 cores because > it would be a big boost > for my SQL Server work and with so many cores it seems like having a VM > running my web site might > make sense. > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Apr 29 18:00:24 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 16:00:24 -0700 Subject: [AccessD] More Password Stuff Message-ID: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> Dear List: I'm making some progress on this user's requirement to password protect his back end. He says it's OK to hard code his password in the front end (it's an mde). But I ran into a problem relinking the back end. I'm using Tribble's relinker (with some minor mods) - and I need it because this app supports multiple back ends - there's a database Open utility which allows the user to open a copy of the back end or any other back end cloned from the original delivered back end (no modifications to the tables, please). I get to this piece of code where the link is refreshed: For Each tdf In db.TableDefs Call frmProgressMeter.pmIncrement( _ strIncrementMessage:="Checking table: " & tdf.Name) If Len(tdf.Connect) > 0 Then intI = intI + 1 If InStr(1, gstrRegisteredName, "ABC") <> 0 Then tdf.Connect = ";DATABASE=" & varFileName & ";pwd='abcdefgh'" Else .Connect = ";DATABASE=" & varFileName End If MsgBox tdf.Connect ' The RefreshLink might fail if the new path ' isn't OK. So trap errors inline. On Error Resume Next tdf.RefreshLink If Err <> 0 And InStr(1, tdf.Name, "MWCI") = 0 Then MsgBox strError, vbExclamation, "Table Link Failure - " & tdf.Name & Err Application.Quit End If End If varFileName contains the patha and name of then back end. The app starts out linked to a back end that has no password. I use the app's Open a Database Utility to point to the back end with the password and call Tribble's Relinker. If the registered user name contains ABC (true in this case) then I set the Connect property of the Table Def (tdf) using the password. Otherwise, not. When it comes down to tdf.RefreshLink, I get an 'Invalid Password' error. Does anyone know why this should happen? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From accessd at shaw.ca Thu Apr 29 18:26:20 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 16:26:20 -0700 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> References: <4BD83A9A.8050401@colbyconsulting.com> <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> Message-ID: <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> That is wrong Stewart. I have been hosting a web site or two for over 10 years and unless it is getting hit by 100 plus sessions the impact is low. Mind you, when you start having 100K hits then you are right. After the website is set up the administration costs in time and effort are low. Traditionally, unless the website is under heavy utilization maintenance is nothing... it just runs itself. Running your own IIS or Apache server does not imply being hit with spam or a security risk...that is what routers are for. As for costs of a stand-alone server, you can just use an old beater, running Linux... for any details post the question on the VB List as my son-in-law, who is now on that list, as he is the senior tech for a huge website business and can give you the skinny on how to cheaply build your own small hosting with all the bell and whistles. I would say host your own. It is a lot of fun to set up and run. Even my daughters can setup their own servers...so it just goes to show that real men and women roll their own. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 3:17 PM To: Access Developers discussion and problem solving; VBA Subject: Re: [AccessD] [dba-VB] hosting a website in-house Do-able but insane. But look at the cost of basic hosting packages and trade that off against (roughly in order of priority): 1. your additional time to administer web and mail servers and especially to keep them fully patched and up to date. 2. the additional security risks in exposing your systems to the public 3. the additional demand on your limited bandwidth ( not just from website hits, but from the continuous probes you will be getting on your web and mail servers). At the moment, your mail provider is probably blocking a lot of spam from ever getting to colby.com - once you are runnning your own mail server, you will have to deal with it all. 4. the cost of using your resources (power, disk space, cpu cycles) - you may think it negligible, but wait until your domain gets hit by a spam flood :-( It just doesn't make sense!! OK maybe I'm biased since we have recently set up http://www.pngconnect.com :-) -- Stuart On 28 Apr 2010 at 9:39, jwcolby wrote: > I just need a reality check as to whether trying to host a website in-house is insane, doable, easy, > difficult? If I did this it would be for my own web site (very low traffic), and would need to > include email (also low traffic). If I lost internet (which I get over the local cable) then > obviously I would be out of commission for the duration of that outage. > > I have been in this home / office for close to four years and have had only one single extended > outage (11 hours, due to weather). > > I have a server that I keep up 24/7. I have battery backup etc. I run VMs and it seems like I > could put something like this in a VM so that I could move it to another machine if I had a machine > issue. > > I am actively considering building a new server with 16 or 24 cores because it would be a big boost > for my SQL Server work and with so many cores it seems like having a VM running my web site might > make sense. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Apr 29 18:35:21 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 16:35:21 -0700 Subject: [AccessD] More Password Stuff In-Reply-To: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> References: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> Message-ID: <9D1EF53FE7A441A7AA3084DCB7AB5DF6@creativesystemdesigns.com> Hi Rocky: I just pulled this from a site: ...figured it out. If you are connecting to a password protected BE, you HAVE to provide the OPTIONAL parameters as follows: DBEngine(0).OpenDatabase(strDBPath, False, False, "MS Access;PWD=xxx10") If you don't it just raises the password error. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, April 29, 2010 4:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More Password Stuff Dear List: I'm making some progress on this user's requirement to password protect his back end. He says it's OK to hard code his password in the front end (it's an mde). But I ran into a problem relinking the back end. I'm using Tribble's relinker (with some minor mods) - and I need it because this app supports multiple back ends - there's a database Open utility which allows the user to open a copy of the back end or any other back end cloned from the original delivered back end (no modifications to the tables, please). I get to this piece of code where the link is refreshed: For Each tdf In db.TableDefs Call frmProgressMeter.pmIncrement( _ strIncrementMessage:="Checking table: " & tdf.Name) If Len(tdf.Connect) > 0 Then intI = intI + 1 If InStr(1, gstrRegisteredName, "ABC") <> 0 Then tdf.Connect = ";DATABASE=" & varFileName & ";pwd='abcdefgh'" Else .Connect = ";DATABASE=" & varFileName End If MsgBox tdf.Connect ' The RefreshLink might fail if the new path ' isn't OK. So trap errors inline. On Error Resume Next tdf.RefreshLink If Err <> 0 And InStr(1, tdf.Name, "MWCI") = 0 Then MsgBox strError, vbExclamation, "Table Link Failure - " & tdf.Name & Err Application.Quit End If End If varFileName contains the patha and name of then back end. The app starts out linked to a back end that has no password. I use the app's Open a Database Utility to point to the back end with the password and call Tribble's Relinker. If the registered user name contains ABC (true in this case) then I set the Connect property of the Table Def (tdf) using the password. Otherwise, not. When it comes down to tdf.RefreshLink, I get an 'Invalid Password' error. Does anyone know why this should happen? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From stuart at lexacorp.com.pg Thu Apr 29 18:50:24 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2010 09:50:24 +1000 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> References: <4BD83A9A.8050401@colbyconsulting.com>, <4BDA056E.24476.524C961@stuart.lexacorp.com.pg>, <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> Message-ID: <4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). From dbdoug at gmail.com Thu Apr 29 20:04:06 2010 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 29 Apr 2010 18:04:06 -0700 Subject: [AccessD] More Password Stuff In-Reply-To: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> References: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> Message-ID: FWIW, here is the heart of the code that I use - basically, it drops then recreates the tdf, rather than relinking it: DoCmd.RunSQL "Drop table [" & thistable & "]" Set tdf = CurrentDb.CreateTableDef(thistable) tdf.Connect = ";DATABASE=" & myr!dbPath & myr!DBName & ".mdb;pwd=" & "zzyzzz" tdf.SourceTableName = thistable CurrentDb.TableDefs.Append tdf Doug On Thu, Apr 29, 2010 at 4:00 PM, Rocky Smolin wrote: > Dear List: > > I'm making some progress on this user's requirement to password protect his > back end. He says it's OK to hard code his password in the front end (it's > an mde). > > But I ran into a problem relinking the back end. I'm using Tribble's > relinker (with some minor mods) - and I need it because this app supports > multiple back ends - there's a database Open utility which allows the user > to open a copy of the back end or any other back end cloned from the > original delivered back end (no modifications to the tables, please). > > I get to this piece of code where the link is refreshed: > > For Each tdf In db.TableDefs > > Call frmProgressMeter.pmIncrement( _ > strIncrementMessage:="Checking table: " & tdf.Name) > > If Len(tdf.Connect) > 0 Then > > intI = intI + 1 > > If InStr(1, gstrRegisteredName, "ABC") <> 0 Then > tdf.Connect = ";DATABASE=" & varFileName & ";pwd='abcdefgh'" > Else > .Connect = ";DATABASE=" & varFileName > End If > > > MsgBox tdf.Connect > ' The RefreshLink might fail if the new path > ' isn't OK. So trap errors inline. > On Error Resume Next > tdf.RefreshLink > > > If Err <> 0 And InStr(1, tdf.Name, "MWCI") = 0 Then > MsgBox strError, vbExclamation, "Table Link Failure - " & tdf.Name & > Err > Application.Quit > End If > > > End If > > > varFileName contains the patha and name of then back end. > > The app starts out linked to a back end that has no password. I use the > app's Open a Database Utility to point to the back end with the password > and > call Tribble's Relinker. > > If the registered user name contains ABC (true in this case) then I set the > Connect property of the Table Def (tdf) using the password. Otherwise, > not. > > When it comes down to tdf.RefreshLink, I get an 'Invalid Password' error. > > Does anyone know why this should happen? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From brad.marks1 at gmail.com Thu Apr 29 21:49:10 2010 From: brad.marks1 at gmail.com (Brad Marks) Date: Thu, 29 Apr 2010 19:49:10 -0700 Subject: [AccessD] Access 2007 ODBC Connection to SQL Server Message-ID: This is probably a really dumb question, but I am fairly new to SQL Server plus I may have some brain damage due to many years of working with DB2. I am trying to build an ODBC connection to a SQL Server Database so that I can access it with Access 2007. I have been given the Server Name and the Database Name. When setting up the ODBC connection, I can see the Server in a drop-down, but I cannot see the Database Name. (I can see other Databases in the drop-down). The funny thing is that another person on another PC can see the database name that was given. This seems really strange. Is this possibly due to a security/authorization setting? I am really puzzled. Thanks, Brad From rockysmolin at bchacc.com Thu Apr 29 22:13:32 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 29 Apr 2010 20:13:32 -0700 Subject: [AccessD] More Password Stuff In-Reply-To: References: <5CE24A7B44954502A0AB12BCA161D24F@HAL9005> Message-ID: <489CFAE0F2714A3EA6417F98292430FF@HAL9005> Doug: I think that may be the answer. I was looking at the code and coming to the conclusion that I needed two db objects - one for the source and one for the target db, since one or both might have a password. Then have to figure out how to make two tdfs and get them to work together. Your way looks way simpler. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Thursday, April 29, 2010 6:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] More Password Stuff FWIW, here is the heart of the code that I use - basically, it drops then recreates the tdf, rather than relinking it: DoCmd.RunSQL "Drop table [" & thistable & "]" Set tdf = CurrentDb.CreateTableDef(thistable) tdf.Connect = ";DATABASE=" & myr!dbPath & myr!DBName & ".mdb;pwd=" & "zzyzzz" tdf.SourceTableName = thistable CurrentDb.TableDefs.Append tdf Doug On Thu, Apr 29, 2010 at 4:00 PM, Rocky Smolin wrote: > Dear List: > > I'm making some progress on this user's requirement to password > protect his back end. He says it's OK to hard code his password in > the front end (it's an mde). > > But I ran into a problem relinking the back end. I'm using Tribble's > relinker (with some minor mods) - and I need it because this app > supports multiple back ends - there's a database Open utility which > allows the user to open a copy of the back end or any other back end > cloned from the original delivered back end (no modifications to the tables, please). > > I get to this piece of code where the link is refreshed: > > For Each tdf In db.TableDefs > > Call frmProgressMeter.pmIncrement( _ > strIncrementMessage:="Checking table: " & tdf.Name) > > If Len(tdf.Connect) > 0 Then > > intI = intI + 1 > > If InStr(1, gstrRegisteredName, "ABC") <> 0 Then > tdf.Connect = ";DATABASE=" & varFileName & ";pwd='abcdefgh'" > Else > .Connect = ";DATABASE=" & varFileName End If > > > MsgBox tdf.Connect > ' The RefreshLink might fail if the new path > ' isn't OK. So trap errors inline. > On Error Resume Next > tdf.RefreshLink > > > If Err <> 0 And InStr(1, tdf.Name, "MWCI") = 0 Then > MsgBox strError, vbExclamation, "Table Link Failure - " & tdf.Name & > Err > Application.Quit > End If > > > End If > > > varFileName contains the patha and name of then back end. > > The app starts out linked to a back end that has no password. I use the > app's Open a Database Utility to point to the back end with the password > and > call Tribble's Relinker. > > If the registered user name contains ABC (true in this case) then I set the > Connect property of the Table Def (tdf) using the password. Otherwise, > not. > > When it comes down to tdf.RefreshLink, I get an 'Invalid Password' error. > > Does anyone know why this should happen? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 29 23:08:19 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 29 Apr 2010 21:08:19 -0700 Subject: [AccessD] Access 2007 ODBC Connection to SQL Server In-Reply-To: References: Message-ID: >From the Select Data Source window, Click on the Machine Data Source tab. If you don't see your connection there, click on New. Select either system or user data source. Scroll down and choose SQL Server. Click Next Click Finish Give the connection a name (I usually name them Server-Database) Give the connection a description, usually the same as above Choose the Server. Click Next. You should be able to choose your db name, choose SQL on Windows authentication and test your connection from the next screen. HTH David On Thu, Apr 29, 2010 at 7:49 PM, Brad Marks wrote: > This is probably a really dumb question, but I am fairly new to SQL Server > plus I may have some brain damage due to many years of working with DB2. > > I am trying to build an ODBC connection to a SQL Server Database so that I > can access it with Access 2007. > > I have been given the Server Name and the Database Name. > > When setting up the ODBC connection, I can see the Server in a drop-down, > but I cannot see the Database Name. (I can see other Databases in the > drop-down). ? The funny thing is that another person on another PC can see > the database name that was given. > > This seems really strange. ?Is this possibly due to a security/authorization > setting? ?I am really puzzled. > > Thanks, > > Brad > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Apr 30 00:31:40 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 22:31:40 -0700 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: <4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> References: <4BD83A9A.8050401@colbyconsulting.com> <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> <4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 30 00:56:23 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 29 Apr 2010 22:56:23 -0700 Subject: [AccessD] Access 2007 ODBC Connection to SQL Server In-Reply-To: References: Message-ID: <5E5681F9FF444ADC9DC2EF531FBE524E@creativesystemdesigns.com> Hi Brad: I have posted this here can couple of times but here is the method I use when creating a connection to a server of various types. 1. Create an empty text file on the desktop but make the extension ".udl" 2. An ODBC module will appear and then you can create a connection to a MS SQL or any other standard database connection. You can then test to see if the connection does connect. 3. If you want to take that connection text so you can insert that info in you Access application rename the ODBC connection module to a file with a ".txt" extension. You can switch back and forth by just changing the extension. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, April 29, 2010 7:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Access 2007 ODBC Connection to SQL Server This is probably a really dumb question, but I am fairly new to SQL Server plus I may have some brain damage due to many years of working with DB2. I am trying to build an ODBC connection to a SQL Server Database so that I can access it with Access 2007. I have been given the Server Name and the Database Name. When setting up the ODBC connection, I can see the Server in a drop-down, but I cannot see the Database Name. (I can see other Databases in the drop-down). The funny thing is that another person on another PC can see the database name that was given. This seems really strange. Is this possibly due to a security/authorization setting? I am really puzzled. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Fri Apr 30 09:51:44 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 30 Apr 2010 09:51:44 -0500 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com><4BDA056E.24476.524C961@stuart.lexacorp.com.pg><593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com><4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: Just to throw in my two cents, our company uses Postini, which is a google owned (I think) spam filter. Basically, you point your MX record to Postini, they get your mail, and forward it to your mail server. That way, all the spam hits them first, and they filter everything for you. I don't know how much a single user account costs, but it's worth looking into. When I ran my own mail server, it was constantly flooded with spam. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Apr 30 10:06:48 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 30 Apr 2010 16:06:48 +0100 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com><4BDA056E.24476.524C961@stuart.lexacorp.com.pg><593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com><4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: <786AB5B6646146BB8300283AB8BB715D@Server> Google does this for free. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, April 30, 2010 3:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house Just to throw in my two cents, our company uses Postini, which is a google owned (I think) spam filter. Basically, you point your MX record to Postini, they get your mail, and forward it to your mail server. That way, all the spam hits them first, and they filter everything for you. I don't know how much a single user account costs, but it's worth looking into. When I ran my own mail server, it was constantly flooded with spam. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 30 11:16:05 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 30 Apr 2010 09:16:05 -0700 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com> <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> <4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: For small clients I have been redirecting their email to gmail and have it forwarded to their regular email... Of course there is definitely a volume limitation. But thanks for the info. I will look into it. (I believe it is in the neighbourhood of $7.00 per year per person but there are volume discounts and a number of alternative companies also providing that type of service). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, April 30, 2010 7:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house Just to throw in my two cents, our company uses Postini, which is a google owned (I think) spam filter. Basically, you point your MX record to Postini, they get your mail, and forward it to your mail server. That way, all the spam hits them first, and they filter everything for you. I don't know how much a single user account costs, but it's worth looking into. When I ran my own mail server, it was constantly flooded with spam. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Fri Apr 30 12:19:46 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 30 Apr 2010 12:19:46 -0500 Subject: [AccessD] Access 2007 ODBC Connection to SQL Server References: <5E5681F9FF444ADC9DC2EF531FBE524E@creativesystemdesigns.com> Message-ID: Jim, Thanks for the tip. I will add this to my bag of tricks. The problem that I was having last night with building an ODBC connection was resolved this morning. I turns out that when my User_ID was set up, it was not given all of the authorizations that it needed. The end result was that when I tried to set up the ODBC connection, I could "see" the DB Server, but I could not see all of the databases on the DB Server. After a little time with the Windows Server Administrator we discovered the missing authorization piece and he added it for me. After this, I could see all of the databases on the DB Server. Thanks again for your ideas as they may come in handy down the road. Brad PS. In my prior life (IBM mainframe) the security that I worked with was a bit different. You could always see all file names, etc, but security controlled what you could do with the files. I am not quite adjusted to the Microsoft world where you don't see things based on security. Sort of makes sense, but a bit confusing for me still. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 ODBC Connection to SQL Server Hi Brad: I have posted this here can couple of times but here is the method I use when creating a connection to a server of various types. 1. Create an empty text file on the desktop but make the extension ".udl" 2. An ODBC module will appear and then you can create a connection to a MS SQL or any other standard database connection. You can then test to see if the connection does connect. 3. If you want to take that connection text so you can insert that info in you Access application rename the ODBC connection module to a file with a ".txt" extension. You can switch back and forth by just changing the extension. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, April 29, 2010 7:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Access 2007 ODBC Connection to SQL Server This is probably a really dumb question, but I am fairly new to SQL Server plus I may have some brain damage due to many years of working with DB2. I am trying to build an ODBC connection to a SQL Server Database so that I can access it with Access 2007. I have been given the Server Name and the Database Name. When setting up the ODBC connection, I can see the Server in a drop-down, but I cannot see the Database Name. (I can see other Databases in the drop-down). The funny thing is that another person on another PC can see the database name that was given. This seems really strange. Is this possibly due to a security/authorization setting? I am really puzzled. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adtp at airtelmail.in Fri Apr 30 13:39:21 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Sat, 1 May 2010 00:09:21 +0530 Subject: [AccessD] A strange situation References: <4BD9D465.7090301@colbyconsulting.com> Message-ID: <002301cae894$93d14610$3701a8c0@personal4a8ede> J.C., It is presumed that the subform carrying the check boxes representing various groups is an unbound one, serving as a convenient means for setting permissions, which get stored in bound text boxes on parent form. Prima-facie, it should be feasible to accomplish the stated objective without resorting to any tab control. In fact even the subform could be dispensed with and all the unbound check boxes placed on the main form itself. As and when any of the pertinent text boxes becomes the active control, the status of check boxes gets synchronized accordingly. Correspondingly, as soon as a check box is clicked, the composite value in pertinent text box gets updated simultaneously, without waiting for any exit from the subform. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Friday, April 30, 2010 00:18 Subject: [AccessD] A strange situation I have a security system where there are groups of users. Each group is represented by a bit position in a long integer. 1 = GroupA, 2 = GroupB, 4 = GroupC etc. I have a form which has 32 check boxes on it. These check boxes represent the bit positions in a long integer. IOW each bit position represents a group. The form has methods to take a long integer and set / clear the associated check box as well as hide / display check boxes. All of that works. The form with the check boxes will be a subform on a parent form that allows the user to set security for a specific form. This parent form displays records in a table. The records have a form name, and long integer fields for AllowEdit, AllowDelete etc. The parent form form thus has five text boxes representing the properties of a form - Visible, AllowEdit, AllowDelete, AllowInsert etc. Each text box will display a long integer which represents the OR of a set of groups which can perform the operation. As I click into one of these text boxes I need to make the "checkbox" subform "visible". I may click into that subform and click check boxes representing bit positions which are groups that can perform that operation (allowedits etc). Or... I may click into another of the text boxes. As I click into the text box, the subform displayed has to set / clear the check boxes representing the groups contained in the bit positions of the long integer contained in the text box. Simple enough eh? The problem is making visible just the subform for the "current" text box. The only way I can think of to do this is a tab control which is kind of clumsy but works. Place an instance of the check box subform on a tab, one tab for each property. As the user clicks into one of the "property" text boxes, the correct tab is selected, displaying the subform for that text box. One problem is that as the user clicks OUT of the subform, the check box values have to be rolled back into a long integer and placed into the correct text box for that subform. The subform itself has a method that performs this rollup and hands back the long integer, the problem is that the OnExit of the subform has to do the placement of the long integer into the associated text box. This is turning into a lot of very ugly code in the parent form module. This is begging for a class solution to compartmentalize the code but things are getting intertwined. OnEnter of the text box has to call its subform and pass it the long integer it contains. OnExit of the subform control has to know what text box to pass the value back to. OnEnter of the text box has to select the correct tab of the tab control. Whooo doggy, things are getting fun. -- John W. Colby www.ColbyConsulting.com From DWUTKA at Marlow.com Fri Apr 30 15:19:47 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 30 Apr 2010 15:19:47 -0500 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com><4BDA056E.24476.524C961@stuart.lexacorp.com.pg><593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com><4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: Yeah, the decision of Postini was our corporate owners. We were using an in house system with it's own server. The advantage there was that the controller was much more personal and concise. I have a few issues with Postini. One of which is that we have users that their maximum screening settings still let's too much spam through. But there are several advantages. One big one is that I get a text message if they can't connect to us, so everything at my office could go completely dead and I'll still be alerted to that from Postini. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 11:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house For small clients I have been redirecting their email to gmail and have it forwarded to their regular email... Of course there is definitely a volume limitation. But thanks for the info. I will look into it. (I believe it is in the neighbourhood of $7.00 per year per person but there are volume discounts and a number of alternative companies also providing that type of service). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, April 30, 2010 7:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house Just to throw in my two cents, our company uses Postini, which is a google owned (I think) spam filter. Basically, you point your MX record to Postini, they get your mail, and forward it to your mail server. That way, all the spam hits them first, and they filter everything for you. I don't know how much a single user account costs, but it's worth looking into. When I ran my own mail server, it was constantly flooded with spam. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From wdhindman at dejpolsystems.com Fri Apr 30 15:32:16 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 30 Apr 2010 16:32:16 -0400 Subject: [AccessD] A strange situation In-Reply-To: <002301cae894$93d14610$3701a8c0@personal4a8ede> References: <4BD9D465.7090301@colbyconsulting.com> <002301cae894$93d14610$3701a8c0@personal4a8ede> Message-ID: <741400C7D50D4D169360DEBBBF60871C@jislaptopdev> ...more than that, why use 32 checkboxes at all? ...just strikes me as a clumsy user interface ...why not a multi-select listbox or combo that you can hide/unhide at will on the main form itself ...give it a Like* search box header to avoid long scrolls if needed. William -------------------------------------------------- From: "A.D. Tejpal" Sent: Friday, April 30, 2010 2:39 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] A strange situation > J.C., > > It is presumed that the subform carrying the check boxes representing > various groups is an unbound one, serving as a convenient means for > setting permissions, which get stored in bound text boxes on parent form. > > Prima-facie, it should be feasible to accomplish the stated objective > without resorting to any tab control. In fact even the subform could be > dispensed with and all the unbound check boxes placed on the main form > itself. > > As and when any of the pertinent text boxes becomes the active control, > the status of check boxes gets synchronized accordingly. Correspondingly, > as soon as a check box is clicked, the composite value in pertinent text > box gets updated simultaneously, without waiting for any exit from the > subform. > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: jwcolby > To: Access Developers discussion and problem solving > Sent: Friday, April 30, 2010 00:18 > Subject: [AccessD] A strange situation > > > I have a security system where there are groups of users. Each group is > represented by a bit position in a long integer. 1 = GroupA, 2 = GroupB, > 4 = GroupC etc. > > I have a form which has 32 check boxes on it. These check boxes > represent the bit positions in a long integer. IOW each bit position > represents a group. The form has methods to take a long integer and set / > clear the associated check box as well as hide / display check boxes. > > All of that works. > > The form with the check boxes will be a subform on a parent form that > allows the user to set security for a specific form. This parent form > displays records in a table. The records have a form name, and long > integer fields for AllowEdit, AllowDelete etc. > > The parent form form thus has five text boxes representing the properties > of a form - Visible, AllowEdit, AllowDelete, AllowInsert etc. Each text > box will display a long integer which represents the OR of a set of groups > which can perform the operation. > > As I click into one of these text boxes I need to make the "checkbox" > subform "visible". I may click into that subform and click check boxes > representing bit positions which are groups that can perform that > operation (allowedits etc). > > Or... I may click into another of the text boxes. > > As I click into the text box, the subform displayed has to set / clear > the check boxes representing the groups contained in the bit positions of > the long integer contained in the text box. > > Simple enough eh? > > The problem is making visible just the subform for the "current" text > box. The only way I can think of to do this is a tab control which is > kind of clumsy but works. Place an instance of the check box subform on a > tab, one tab for each property. As the user clicks into one of the > "property" text boxes, the correct tab is selected, displaying the subform > for that text box. > > One problem is that as the user clicks OUT of the subform, the check box > values have to be rolled back into a long integer and placed into the > correct text box for that subform. The subform itself has a method that > performs this rollup and hands back the long integer, the problem is that > the OnExit of the subform has to do the placement of the long integer into > the associated text box. > > This is turning into a lot of very ugly code in the parent form module. > This is begging for a class solution to compartmentalize the code but > things are getting intertwined. OnEnter of the text box has to call its > subform and pass it the long integer it contains. OnExit of the subform > control has to know what text box to pass the value back to. OnEnter of > the text box has to select the correct tab of the tab control. > > Whooo doggy, things are getting fun. > -- > 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 accessd at shaw.ca Fri Apr 30 15:36:38 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 30 Apr 2010 13:36:38 -0700 Subject: [AccessD] [dba-VB] hosting a website in-house In-Reply-To: References: <4BD83A9A.8050401@colbyconsulting.com> <4BDA056E.24476.524C961@stuart.lexacorp.com.pg> <593EB4D481D64F67BF97FA917B1D8C23@creativesystemdesigns.com> <4BDA1B40.32190.57A05D6@stuart.lexacorp.com.pg> Message-ID: Currently, I have a number of email accounts through my ISP (Shaw) and yes, we do get some spam but it is rare... maybe one of two a week for all accounts. That is acceptable to me. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, April 30, 2010 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house Yeah, the decision of Postini was our corporate owners. We were using an in house system with it's own server. The advantage there was that the controller was much more personal and concise. I have a few issues with Postini. One of which is that we have users that their maximum screening settings still let's too much spam through. But there are several advantages. One big one is that I get a text message if they can't connect to us, so everything at my office could go completely dead and I'll still be alerted to that from Postini. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 11:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house For small clients I have been redirecting their email to gmail and have it forwarded to their regular email... Of course there is definitely a volume limitation. But thanks for the info. I will look into it. (I believe it is in the neighbourhood of $7.00 per year per person but there are volume discounts and a number of alternative companies also providing that type of service). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, April 30, 2010 7:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house Just to throw in my two cents, our company uses Postini, which is a google owned (I think) spam filter. Basically, you point your MX record to Postini, they get your mail, and forward it to your mail server. That way, all the spam hits them first, and they filter everything for you. I don't know how much a single user account costs, but it's worth looking into. When I ran my own mail server, it was constantly flooded with spam. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, April 30, 2010 12:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [dba-VB] hosting a website in-house Hi Stuart: You are right, if John was talking about an email server... now that is a waste of time and resources. I thought the conversation was about hosting a website... apologies. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 29, 2010 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-VB] hosting a website in-house JC included email in his specs. Running your own email server does imply being hit with spam. -- Stuart On 29 Apr 2010 at 16:26, Jim Lawrence wrote: ... > > Running your own IIS or Apache server does not imply being hit with spam or > a security risk...that is what routers are for. > ... > > > I just need a reality check as to whether trying to host a website > > in-house is insane, doable, easy, > > difficult? If I did this it would be for my own web site (very low > > traffic), and would need to include email (also low traffic). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Apr 30 15:53:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 30 Apr 2010 16:53:12 -0400 Subject: [AccessD] A strange situation In-Reply-To: <741400C7D50D4D169360DEBBBF60871C@jislaptopdev> References: <4BD9D465.7090301@colbyconsulting.com> <002301cae894$93d14610$3701a8c0@personal4a8ede> <741400C7D50D4D169360DEBBBF60871C@jislaptopdev> Message-ID: <4BDB4338.30707@colbyconsulting.com> Well... I like it except for two issues. 1) Users occasionally get confused between what is selected - dark or light. Or is that just me? ') 2) If there are a lot of groups it would either require a long list control or a scroll. There are potentially up to 32 groups, though in practice we only have a handful at the moment. I am going to be setting up "table driven" security where a table has records for each form with the visible, allowedits etc properties. The "security officer" can manipulate these records via the form we are discussing. Additionally The user will be able to manipulate visible and enabled properties for controls on the form as they are manipulating the form properties. A list is MUCH simpler, that is for sure. The list would contain the names of the security groups. The "selected" groups would be able to manipulate the property. The programming would be much simpler for sure. I am going to give this a run and see what it looks like. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...more than that, why use 32 checkboxes at all? ...just strikes me as a > clumsy user interface ...why not a multi-select listbox or combo that you > can hide/unhide at will on the main form itself ...give it a Like* search > box header to avoid long scrolls if needed. > > William From wdhindman at dejpolsystems.com Fri Apr 30 18:05:00 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 30 Apr 2010 19:05:00 -0400 Subject: [AccessD] A strange situation In-Reply-To: <4BDB4338.30707@colbyconsulting.com> References: <4BD9D465.7090301@colbyconsulting.com> <002301cae894$93d14610$3701a8c0@personal4a8ede><741400C7D50D4D169360DEBBBF60871C@jislaptopdev> <4BDB4338.30707@colbyconsulting.com> Message-ID: ...me, I just hate checkboxes :) ...can you cascade the choices to shorten the lists? ...or drag n' drop from one listbox to another to show selections ...or move to using the listview rather than the listbox ...it provides so much more flexibility in the user interface, conditional formatting by rows, colors, checkboxes, etc. ...especially nice if you already use the treeview ...if this is a full access install, then the fieldlist from the accwiz.dll is available as well with a lot more flexibility and no registration required ...see Lebans for code. William -------------------------------------------------- From: "jwcolby" Sent: Friday, April 30, 2010 4:53 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] A strange situation > Well... > > I like it except for two issues. > > 1) Users occasionally get confused between what is selected - dark or > light. Or is that just me? ') > 2) If there are a lot of groups it would either require a long list > control or a scroll. There are > potentially up to 32 groups, though in practice we only have a handful at > the moment. > > I am going to be setting up "table driven" security where a table has > records for each form with the > visible, allowedits etc properties. The "security officer" can manipulate > these records via the > form we are discussing. > > Additionally The user will be able to manipulate visible and enabled > properties for controls on the > form as they are manipulating the form properties. A list is MUCH > simpler, that is for sure. > > The list would contain the names of the security groups. The "selected" > groups would be able to > manipulate the property. The programming would be much simpler for sure. > > I am going to give this a run and see what it looks like. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...more than that, why use 32 checkboxes at all? ...just strikes me as a >> clumsy user interface ...why not a multi-select listbox or combo that you >> can hide/unhide at will on the main form itself ...give it a Like* search >> box header to avoid long scrolls if needed. >> >> William > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >