From pedro at plex.nl Fri Oct 1 12:48:15 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 01 Oct 2010 12:48:15 (CEST) Subject: [AccessD] need help with date-query Message-ID: <201010011048.o91AmFAb008416@mailhostC.plex.net> Dear List, For the Cataract performance indicators, i have to find out how many patients with a cataract operation at both eyes, have done a post-checkup after the first operation, but not before 14 days. So i have a table with three fields. Patientnr Code Date 01111111 031241 01-04-10 01111111 190013 20-04-10 01111111 031241 25-04-10 01111111 190011 26-04-10 02222222 031241 01-05-10 02222222 190011 05-05-10 02222222 190012 07-05-10 02222222 031241 01-06-10 02222222 190013 04-06-10 04444444 031241 01-07-10 04444444 190013 20-07-10 04444444 190013 22-07-10 The code for cataract operation is: 031241 The codes for post-checkups are: 190011, 190012, 190013 as result i would like: Patientnr Days 01111111 19 Patientnr 02222222 does not match the criteria, because the post-checkup is 4 days after the first operation. Patientnr 04444444 does not match the criteria, although the post-checkup is 19 days after the operation, there isn't a second operation. I'll hope someone can help me with this. Although i can level the patients down to those who have two operations and checkups, but when there are more then one checkup, i have to control them by hand. This is a lot of work. Thanks Pedro From stuart at lexacorp.com.pg Fri Oct 1 06:33:32 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 01 Oct 2010 21:33:32 +1000 Subject: [AccessD] need help with date-query In-Reply-To: <201010011048.o91AmFAb008416@mailhostC.plex.net> References: <201010011048.o91AmFAb008416@mailhostC.plex.net> Message-ID: <4CA5C70C.5520.FC3B3D6@stuart.lexacorp.com.pg> Patient 02222222 also had a check up 34 days after the first op. Are you saying that it doesn't count because it is after the second op? On 1 Oct 2010 at 12:48, pedro at plex.nl wrote: > Dear List, > > For the Cataract performance indicators, i have to find out how many > patients with a cataract operation at both eyes, have done a > post-checkup after the first operation, but not before 14 days. > > So i have a table with three fields. > > Patientnr Code Date > 01111111 031241 01-04-10 > 01111111 190013 20-04-10 > 01111111 031241 25-04-10 > 01111111 190011 26-04-10 > 02222222 031241 01-05-10 > 02222222 190011 05-05-10 > 02222222 190012 07-05-10 > 02222222 031241 01-06-10 > 02222222 190013 04-06-10 > 04444444 031241 01-07-10 > 04444444 190013 20-07-10 > 04444444 190013 22-07-10 > > > The code for cataract operation is: 031241 > The codes for post-checkups are: 190011, 190012, 190013 > > > as result i would like: > Patientnr Days > 01111111 19 > > > Patientnr 02222222 does not match the criteria, because the > post-checkup is 4 days after the first operation. > > Patientnr 04444444 does not match the criteria, although the > post-checkup is 19 days after the operation, there isn't a second > operation. > > > I'll hope someone can help me with this. > Although i can level the patients down to those who have two > operations and checkups, but when there are more then one checkup, i > have to control them by hand. This is a lot of work. > > Thanks > > Pedro > -- > 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 Oct 1 06:46:57 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 01 Oct 2010 21:46:57 +1000 Subject: [AccessD] need help with date-query In-Reply-To: <201010011048.o91AmFAb008416@mailhostC.plex.net> References: <201010011048.o91AmFAb008416@mailhostC.plex.net> Message-ID: <4CA5CA31.23662.FCFFBBF@stuart.lexacorp.com.pg> This: SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]-Min([tblcataracts].[date]) AS DaysAfterFirst, [tblCataracts_1].[date]-Max([tblcataracts].[date]) AS DaysAfterSecond FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = tblCataracts_1.Patientnr WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date HAVING (((Count(tblCataracts.Patientnr))>1) AND (([tblCataracts_1].[date]- Min([tblcataracts].[date]))>13)); will return this: Patientnr FirstOp SecondOpDate FollowUpDate DaysAfterFirst DaysAfterSecond 01111111 1/04/2010 25/04/2010 20/04/2010 19 -5 01111111 1/04/2010 25/04/2010 26/04/2010 25 1 02222222 1/05/2010 1/06/2010 4/06/2010 34 3 If you want to exclude follow ups after the second operation, you can use the following to just return the first record: SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]- Min([tblcataracts].[date]) AS DaysAfterFirst FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = tblCataracts_1.Patientnr WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date HAVING ((([tblCataracts_1].[date]-Min([tblcataracts].[date]))>13) AND (([tblCataracts_1].[date]-Max([tblcataracts].[date]))<0) AND ((Count(tblCataracts.Patientnr))>1)); -- Stuart On 1 Oct 2010 at 12:48, pedro at plex.nl wrote: > Dear List, > > For the Cataract performance indicators, i have to find out how many > patients with a cataract operation at both eyes, have done a > post-checkup after the first operation, but not before 14 days. > > So i have a table with three fields. > > Patientnr Code Date > 01111111 031241 01-04-10 > 01111111 190013 20-04-10 > 01111111 031241 25-04-10 > 01111111 190011 26-04-10 > 02222222 031241 01-05-10 > 02222222 190011 05-05-10 > 02222222 190012 07-05-10 > 02222222 031241 01-06-10 > 02222222 190013 04-06-10 > 04444444 031241 01-07-10 > 04444444 190013 20-07-10 > 04444444 190013 22-07-10 > > > The code for cataract operation is: 031241 > The codes for post-checkups are: 190011, 190012, 190013 > > > as result i would like: > Patientnr Days > 01111111 19 > > > Patientnr 02222222 does not match the criteria, because the > post-checkup is 4 days after the first operation. > > Patientnr 04444444 does not match the criteria, although the > post-checkup is 19 days after the operation, there isn't a second > operation. > > > I'll hope someone can help me with this. > Although i can level the patients down to those who have two > operations and checkups, but when there are more then one checkup, i > have to control them by hand. This is a lot of work. > > Thanks > > Pedro > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Fri Oct 1 09:21:57 2010 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 01 Oct 2010 16:21:57 +0200 Subject: [AccessD] need help with date-query In-Reply-To: <4CA5CA31.23662.FCFFBBF@stuart.lexacorp.com.pg> References: <201010011048.o91AmFAb008416@mailhostC.plex.net> <4CA5CA31.23662.FCFFBBF@stuart.lexacorp.com.pg> Message-ID: <4CA5EE85.20902@plex.nl> Hello Stuart, "Patient 02222222 also had a check up 34 days after the first op. Are you saying that it doesn't count because it is after the second op?" Maybe i wasn't clear enough. Except the criteria i mentioned in my question, there is one more thing that is important: I only need the count of the days of the last postup-check between the two dates in case of an operation at both eyes. I don't know if the queries have to be adjusted, but i can't test it now, because i just went home, and have again time on monday to do so. Thanks already for your help. Pedro Op 1-10-2010 13:46, Stuart McLachlan schreef: > This: > > SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) > AS SecondOpDate, > tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]-Min([tblcataracts].[date]) AS > DaysAfterFirst, > [tblCataracts_1].[date]-Max([tblcataracts].[date]) AS DaysAfterSecond > FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = > tblCataracts_1.Patientnr > WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) > GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date > HAVING (((Count(tblCataracts.Patientnr))>1) AND (([tblCataracts_1].[date]- > Min([tblcataracts].[date]))>13)); > > > will return this: > > Patientnr FirstOp SecondOpDate FollowUpDate DaysAfterFirst DaysAfterSecond > 01111111 1/04/2010 25/04/2010 20/04/2010 19 -5 > 01111111 1/04/2010 25/04/2010 26/04/2010 25 1 > 02222222 1/05/2010 1/06/2010 4/06/2010 34 3 > > > If you want to exclude follow ups after the second operation, you can use the following to just > return the first record: > > SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) > AS SecondOpDate, tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]- > Min([tblcataracts].[date]) AS DaysAfterFirst > FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = > tblCataracts_1.Patientnr > WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) > GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date > HAVING ((([tblCataracts_1].[date]-Min([tblcataracts].[date]))>13) AND > (([tblCataracts_1].[date]-Max([tblcataracts].[date]))<0) AND > ((Count(tblCataracts.Patientnr))>1)); > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Dear List, > > > > For the Cataract performance indicators, i have to find out how many > > patients with a cataract operation at both eyes, have done a > > post-checkup after the first operation, but not before 14 days. > > > > So i have a table with three fields. > > > > Patientnr Code Date > > 01111111 031241 01-04-10 > > 01111111 190013 20-04-10 > > 01111111 031241 25-04-10 > > 01111111 190011 26-04-10 > > 02222222 031241 01-05-10 > > 02222222 190011 05-05-10 > > 02222222 190012 07-05-10 > > 02222222 031241 01-06-10 > > 02222222 190013 04-06-10 > > 04444444 031241 01-07-10 > > 04444444 190013 20-07-10 > > 04444444 190013 22-07-10 > > > > > > The code for cataract operation is: 031241 > > The codes for post-checkups are: 190011, 190012, 190013 > > > > > > as result i would like: > > Patientnr Days > > 01111111 19 > > > > > > Patientnr 02222222 does not match the criteria, because the > > post-checkup is 4 days after the first operation. > > > > Patientnr 04444444 does not match the criteria, although the > > post-checkup is 19 days after the operation, there isn't a second > > operation. > > > > > > I'll hope someone can help me with this. > > Although i can level the patients down to those who have two > > operations and checkups, but when there are more then one checkup, i > > have to control them by hand. This is a lot of work. > > > > Thanks > > > > Pedro From jwcolby at colbyconsulting.com Fri Oct 1 09:54:09 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 01 Oct 2010 10:54:09 -0400 Subject: [AccessD] New server doesn't get domain name resolution In-Reply-To: <1813.24.35.23.165.1285866734.squirrel@mail.expedient.net> References: <4CA4BFB5.7010208@colbyconsulting.com> <1813.24.35.23.165.1285866734.squirrel@mail.expedient.net> Message-ID: <4CA5F611.5080107@colbyconsulting.com> Mike, It just started magically working when I rebooted the router and the machine. John W. Colby www.ColbyConsulting.com On 9/30/2010 1:12 PM, Michael Bahr wrote: > John, did you do a port forward in the router and the range of ports? > > Mike > >> I built a new server last night and installed Windows 2003. I was on the >> internet, I installed >> about 90 updates to Server 2003. >> >> Today I can ping ip addresses but I cannot ping the domain name, iow >> Google is 66.249.92.104. In >> Firefox (or in ping) I can see that number but I cannot see Google.com. >> >> I have told the local area connections / tcp/ip properties to use 4.2.2.1 >> and 4.2.2.2 as my DNS >> server but for some reason the translation request doesn't seem to leave >> my LAN. My router is what >> does my local DNS and I can directly ping another computer in my network >> by name, but I can't ping >> out to the internet by name. Just for the newest server though. >> >> Is there some way to tell my router that my new server exists and it needs >> this stuff. >> -- >> 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 charlotte.foust at gmail.com Fri Oct 1 10:33:09 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 1 Oct 2010 08:33:09 -0700 Subject: [AccessD] Is there a way to dynamically hide fields if needed In-Reply-To: References: Message-ID: Hiding a column that contains all zero values may seem like a good idea, but wouldn't it be confusing to users if a column sometimes appeared and sometimes vanished? Charlotte Foust On Thu, Sep 30, 2010 at 5:31 PM, David McAfee wrote: > I'm working in an ADP. > > I have the pseudo pivot table since I am working in SQL2000 (PIVOT > wasn't available until SQL2005) > > SELECT > SplitID, ?IncDetID, SplitTypeID, SplitAmt > FROM tblSplit > WHERE IncDetID = 5199 > > returns > > SplitID ?IncDetID SplitTypeID SplitAmt > ---------- ------------- ---------------- ------------- > 36 ? ? ? ? ?5199 ? ? ? ?1 ? ? ? ? ? ? 15.00 > 37 ? ? ? ? ?5199 ? ? ? ?7 ? ? ? ? ? ? ? 5.00 > > > My pseudo pivot table: > SELECT IncDetID, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS DlrPay, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS SvcMgr, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) AS PartsDept, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS SvcAdv, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS SvcDept, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS SvcTech, > ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS Contest > ? ? ? ?FROM tblSPlit > ? ? ? ?GROUP BY IncDetID > > returns: > > IncDetID ?DlrPay ? SvcMgr PartsDept SvcAdv ?SvcDept SvcTech Contest > ------------ ----------- ------------- -------------- ------------ > ------------ ------------ ----------- > 5199 ? ? ? ?15.00 ? ? ? ? 0.00 ? ? ? 0.00 ? ? ? ?0.00 ? ? ? 0.00 > 0.00 ? ? ?5.00 > > > In the actual final display, there are many tables joined to this, so > the resultset really looks like: > > CustNo ? InvNo ? ? ? ?ItemNo ? ? ?Qty ? ?Unit Price ? ?IncentiveAmt > TotalIncentive ? ?DlrPay ? ?SvcMgr ? ?PartsDept ? SvcAdv ? SvcDept > SvcTech ? Contest > ------------ --------------- ------------- ----------- > ---------------- --------------------- ---------------------- > ------------- -------------- ---------------- ------------- > -------------- -------------- -------------- > 07235 ? ? 54521337 ? 02951 ? ? ? ? 6 ? ? ? ? ?54.95 ? ? ? ? ? ? ?20.00 > ? ? ? ? ?120.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ? 0.00 ? ? ? ? ? 0.00 ? ? ? ? 5.00 > 07235 ? ? 54521337 ? 03111 ? ? ? ?12 ? ? ? ? 40.95 ? ? ? ? ? ? ?17.00 > ? ? ? ? 204.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 2.00 > 07235 ? ? 54521337 ? 01121 ? ? ? ?24 ? ? ? ? 30.95 ? ? ? ? ? ? ?20.00 > ? ? ? ? 480.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 5.00 > 07235 ? ? 54521337 ? 01161 ? ? ? ?12 ? ? ? ? 36.95 ? ? ? ? ? ? ?25.00 > ? ? ? ? 300.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ?0.00 ? ? ? ? ? 0.00 ? ? ? 10.00 > 07235 ? ? 54521337 ? 06011 ? ? ? ?12 ? ? ? ? 47.95 ? ? ? ? ? ? ?22.00 > ? ? ? ? 264.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 7.00 > 07235 ? ? 54521337 ? 10521 ? ? ? ?12 ? ? ? ? 41.95 ? ? ? ? ? ? ?19.00 > ? ? ? ? 228.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 > ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 4.00 > > I'd really like it to look like this: > CustNo ? InvNo ? ? ? ?ItemNo ? ? ?Qty ? ?Unit Price ? ?IncentiveAmt > TotalIncentive ? ?DlrPay ? ?Contest > ------------ --------------- ------------- ----------- > ---------------- --------------------- ---------------------- > ------------- ?-------------- > 07235 ? ? 54521337 ? 02951 ? ? ? ? 6 ? ? ? ? ?54.95 ? ? ? ? ? ? ?20.00 > ? ? ? ? ?120.00 ? ? ?15.00 ? ? ? ? 5.00 > 07235 ? ? 54521337 ? 03111 ? ? ? ?12 ? ? ? ? 40.95 ? ? ? ? ? ? ?17.00 > ? ? ? ? 204.00 ? ? ?15.00 ? ? ? ? 2.00 > 07235 ? ? 54521337 ? 01121 ? ? ? ?24 ? ? ? ? 30.95 ? ? ? ? ? ? ?20.00 > ? ? ? ? 480.00 ? ? ?15.00 ? ? ? ? 5.00 > 07235 ? ? 54521337 ? 01161 ? ? ? ?12 ? ? ? ? 36.95 ? ? ? ? ? ? ?25.00 > ? ? ? ? 300.00 ? ? ?15.00 ? ? ? 10.00 > 07235 ? ? 54521337 ? 06011 ? ? ? ?12 ? ? ? ? 47.95 ? ? ? ? ? ? ?22.00 > ? ? ? ? 264.00 ? ? ?15.00 ? ? ? ? 7.00 > 07235 ? ? 54521337 ? 10521 ? ? ? ?12 ? ? ? ? 41.95 ? ? ? ? ? ? ?19.00 > ? ? ? ? 228.00 ? ? ?15.00 ? ? ? ? 4.00 > > I'm still debating on displaying this as a listbox or subform on the main form. > > I'm thinking if it is in a listbox, simply loop through the last 7 > colums. If the entire column is 0 then make that column a 0" width in > the list box. > If I go with a datasheet subform, run a recordset clone and if all > values for a given field are 0 then make that field hidden. > > any ideas? > > I have to do this on a form and on a report (print out of the form) so > I'm trying to think of a good way to do this that will apply to both. > > Thanks, > David > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Fri Oct 1 12:02:18 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 1 Oct 2010 10:02:18 -0700 Subject: [AccessD] Is there a way to dynamically hide fields if needed In-Reply-To: References: Message-ID: Normally I would say yes. But... in the case, I would say no. I've converted a Excel type entry system where our sales managers email excel sheets to our Accounting dept. There are different rules/splits on every Excel sheet depending on a given dealership and sales manager. A certain dealership may only have incentives for the Service Dept and Parts Dept while another dealership might have certain sales incentives for the Service Manager, Service Advisor and technician. I am trying to make the report/form show the same fields/columns that are on the Excel sheet so it is easier to match up to the Excel sheets for verification/approval. D On Fri, Oct 1, 2010 at 8:33 AM, Charlotte Foust wrote: > Hiding a column that contains all zero values may seem like a good > idea, but wouldn't it be confusing to users if a column sometimes > appeared and sometimes vanished? > > Charlotte Foust > > On Thu, Sep 30, 2010 at 5:31 PM, David McAfee wrote: >> I'm working in an ADP. >> >> I have the pseudo pivot table since I am working in SQL2000 (PIVOT >> wasn't available until SQL2005) >> >> SELECT >> SplitID, ?IncDetID, SplitTypeID, SplitAmt >> FROM tblSplit >> WHERE IncDetID = 5199 >> >> returns >> >> SplitID ?IncDetID SplitTypeID SplitAmt >> ---------- ------------- ---------------- ------------- >> 36 ? ? ? ? ?5199 ? ? ? ?1 ? ? ? ? ? ? 15.00 >> 37 ? ? ? ? ?5199 ? ? ? ?7 ? ? ? ? ? ? ? 5.00 >> >> >> My pseudo pivot table: >> SELECT IncDetID, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS DlrPay, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS SvcMgr, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) AS PartsDept, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS SvcAdv, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS SvcDept, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS SvcTech, >> ? ? ? ? ? ? ? ?SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS Contest >> ? ? ? ?FROM tblSPlit >> ? ? ? ?GROUP BY IncDetID >> >> returns: >> >> IncDetID ?DlrPay ? SvcMgr PartsDept SvcAdv ?SvcDept SvcTech Contest >> ------------ ----------- ------------- -------------- ------------ >> ------------ ------------ ----------- >> 5199 ? ? ? ?15.00 ? ? ? ? 0.00 ? ? ? 0.00 ? ? ? ?0.00 ? ? ? 0.00 >> 0.00 ? ? ?5.00 >> >> >> In the actual final display, there are many tables joined to this, so >> the resultset really looks like: >> >> CustNo ? InvNo ? ? ? ?ItemNo ? ? ?Qty ? ?Unit Price ? ?IncentiveAmt >> TotalIncentive ? ?DlrPay ? ?SvcMgr ? ?PartsDept ? SvcAdv ? SvcDept >> SvcTech ? Contest >> ------------ --------------- ------------- ----------- >> ---------------- --------------------- ---------------------- >> ------------- -------------- ---------------- ------------- >> -------------- -------------- -------------- >> 07235 ? ? 54521337 ? 02951 ? ? ? ? 6 ? ? ? ? ?54.95 ? ? ? ? ? ? ?20.00 >> ? ? ? ? ?120.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ? 0.00 ? ? ? ? ? 0.00 ? ? ? ? 5.00 >> 07235 ? ? 54521337 ? 03111 ? ? ? ?12 ? ? ? ? 40.95 ? ? ? ? ? ? ?17.00 >> ? ? ? ? 204.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 2.00 >> 07235 ? ? 54521337 ? 01121 ? ? ? ?24 ? ? ? ? 30.95 ? ? ? ? ? ? ?20.00 >> ? ? ? ? 480.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 5.00 >> 07235 ? ? 54521337 ? 01161 ? ? ? ?12 ? ? ? ? 36.95 ? ? ? ? ? ? ?25.00 >> ? ? ? ? 300.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ?0.00 ? ? ? ? ? 0.00 ? ? ? 10.00 >> 07235 ? ? 54521337 ? 06011 ? ? ? ?12 ? ? ? ? 47.95 ? ? ? ? ? ? ?22.00 >> ? ? ? ? 264.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 7.00 >> 07235 ? ? 54521337 ? 10521 ? ? ? ?12 ? ? ? ? 41.95 ? ? ? ? ? ? ?19.00 >> ? ? ? ? 228.00 ? ? ?15.00 ? ? ? ? ? 0.00 ? ? ? ?0.00 ? ? ? ? ? 0.00 >> ?0.00 ? ? ? ? ? 0.00 ? ? ? ? 4.00 >> >> I'd really like it to look like this: >> CustNo ? InvNo ? ? ? ?ItemNo ? ? ?Qty ? ?Unit Price ? ?IncentiveAmt >> TotalIncentive ? ?DlrPay ? ?Contest >> ------------ --------------- ------------- ----------- >> ---------------- --------------------- ---------------------- >> ------------- ?-------------- >> 07235 ? ? 54521337 ? 02951 ? ? ? ? 6 ? ? ? ? ?54.95 ? ? ? ? ? ? ?20.00 >> ? ? ? ? ?120.00 ? ? ?15.00 ? ? ? ? 5.00 >> 07235 ? ? 54521337 ? 03111 ? ? ? ?12 ? ? ? ? 40.95 ? ? ? ? ? ? ?17.00 >> ? ? ? ? 204.00 ? ? ?15.00 ? ? ? ? 2.00 >> 07235 ? ? 54521337 ? 01121 ? ? ? ?24 ? ? ? ? 30.95 ? ? ? ? ? ? ?20.00 >> ? ? ? ? 480.00 ? ? ?15.00 ? ? ? ? 5.00 >> 07235 ? ? 54521337 ? 01161 ? ? ? ?12 ? ? ? ? 36.95 ? ? ? ? ? ? ?25.00 >> ? ? ? ? 300.00 ? ? ?15.00 ? ? ? 10.00 >> 07235 ? ? 54521337 ? 06011 ? ? ? ?12 ? ? ? ? 47.95 ? ? ? ? ? ? ?22.00 >> ? ? ? ? 264.00 ? ? ?15.00 ? ? ? ? 7.00 >> 07235 ? ? 54521337 ? 10521 ? ? ? ?12 ? ? ? ? 41.95 ? ? ? ? ? ? ?19.00 >> ? ? ? ? 228.00 ? ? ?15.00 ? ? ? ? 4.00 >> >> I'm still debating on displaying this as a listbox or subform on the main form. >> >> I'm thinking if it is in a listbox, simply loop through the last 7 >> colums. If the entire column is 0 then make that column a 0" width in >> the list box. >> If I go with a datasheet subform, run a recordset clone and if all >> values for a given field are 0 then make that field hidden. >> >> any ideas? >> >> I have to do this on a form and on a report (print out of the form) so >> I'm trying to think of a good way to do this that will apply to both. >> >> Thanks, >> David >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Oct 1 12:06:22 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 02 Oct 2010 03:06:22 +1000 Subject: [AccessD] need help with date-query In-Reply-To: <4CA5EE85.20902@plex.nl> References: <201010011048.o91AmFAb008416@mailhostC.plex.net>, <4CA5CA31.23662.FCFFBBF@stuart.lexacorp.com.pg>, <4CA5EE85.20902@plex.nl> Message-ID: <4CA6150E.13012.10F4720C@stuart.lexacorp.com.pg> The second version will list *all* checks more than 13 days after the first operation which are before the second operation. If you just want the last check, the simplest way is to wrap the second version in another query: SELECT Patientnr, FirstOp, SecondOpDate, Max(FollowUpDate) AS LastFollowUp, Max(DaysAfterFirst) AS Days FROM qryDoubleOpFollowUps GROUP BY Patientnr, FirstOp, SecondOpDate; -- Stuart On 1 Oct 2010 at 16:21, Pedro Janssen wrote: > > Maybe i wasn't clear enough. Except the criteria i mentioned in my > question, there is one more thing that is important: I only need the > count of the days of the last postup-check between the two dates in > case of an operation at both eyes. > > I don't know if the queries have to be adjusted, but i can't test it > now, because i just went home, and have again time on monday to do so. > > Thanks already for your help. > > Pedro > > > > > > > > > > Op 1-10-2010 13:46, Stuart McLachlan schreef: > > This: > > > > SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, > > Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS > > FollowUpDate, [tblCataracts_1].[date]-Min([tblcataracts].[date]) AS > > DaysAfterFirst, > > [tblCataracts_1].[date]-Max([tblcataracts].[date]) AS > > DaysAfterSecond > > FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON > > tblCataracts.Patientnr = tblCataracts_1.Patientnr WHERE > > (((tblCataracts_1.Code) Like "19*") AND > > ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, > > tblCataracts_1.Date HAVING (((Count(tblCataracts.Patientnr))>1) AND > > (([tblCataracts_1].[date]- Min([tblcataracts].[date]))>13)); > > > > > > will return this: > > > > Patientnr FirstOp SecondOpDate FollowUpDate DaysAfterFirst DaysAfter > > Second 01111111 1/04/2010 25/04/2010 20/04/2010 19 -5 > > 01111111 1/04/2010 25/04/2010 26/04/2010 25 1 > > 02222222 1/05/2010 1/06/2010 4/06/2010 34 3 > > > > > > If you want to exclude follow ups after the second operation, you > > can use the following to just return the first record: > > > > SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, > > Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS > > FollowUpDate, [tblCataracts_1].[date]- Min([tblcataracts].[date]) AS > > DaysAfterFirst FROM tblCataracts LEFT JOIN tblCataracts AS > > tblCataracts_1 ON tblCataracts.Patientnr = tblCataracts_1.Patientnr > > WHERE (((tblCataracts_1.Code) Like "19*") AND > > ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, > > tblCataracts_1.Date HAVING > > ((([tblCataracts_1].[date]-Min([tblcataracts].[date]))>13) AND > > (([tblCataracts_1].[date]-Max([tblcataracts].[date]))<0) AND > > ((Count(tblCataracts.Patientnr))>1)); > > > > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > ------------------------------- > > > > Dear List, > > > > > > For the Cataract performance indicators, i have to find out how > > > many patients with a cataract operation at both eyes, have done a > > > post-checkup after the first operation, but not before 14 days. > > > > > > So i have a table with three fields. > > > > > > Patientnr Code Date > > > 01111111 031241 01-04-10 > > > 01111111 190013 20-04-10 > > > 01111111 031241 25-04-10 > > > 01111111 190011 26-04-10 > > > 02222222 031241 01-05-10 > > > 02222222 190011 05-05-10 > > > 02222222 190012 07-05-10 > > > 02222222 031241 01-06-10 > > > 02222222 190013 04-06-10 > > > 04444444 031241 01-07-10 > > > 04444444 190013 20-07-10 > > > 04444444 190013 22-07-10 > > > > > > > > > The code for cataract operation is: 031241 > > > The codes for post-checkups are: 190011, 190012, 190013 > > > > > > > > > as result i would like: > > > Patientnr Days > > > 01111111 19 > > > > > > > > > Patientnr 02222222 does not match the criteria, because the > > > post-checkup is 4 days after the first operation. > > > > > > Patientnr 04444444 does not match the criteria, although the > > > post-checkup is 19 days after the operation, there isn't a second > > > operation. > > > > > > > > > I'll hope someone can help me with this. > > > Although i can level the patients down to those who have two > > > operations and checkups, but when there are more then one > > > checkup, i have to control them by hand. This is a lot of work. > > > > > > Thanks > > > > > > Pedro > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Fri Oct 1 15:11:19 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 1 Oct 2010 13:11:19 -0700 Subject: [AccessD] Is there a way to dynamically hide fields if needed In-Reply-To: <4CA60197020000410003C16A@gwia1.ipfw.edu> References: <4CA60197020000410003C16A@gwia1.ipfw.edu> Message-ID: The Sample that you sent me works great! Thanks. I'd still like to get it working on a continuous form (or datasheet), but as for now the Listbox will make it simple enough to read. I think using the recordset .Fields.Count like you did will help me out. Thanks again, David On Fri, Oct 1, 2010 at 12:43 PM, Kenneth Saylor wrote: > Not sure if this is what you're after. > > I made a table from your second to last data. Then I created two queries. > One is of the table data, the other computes the column values. > > The first query feeds a listbox , the second is used in a function to find > column sums equaling zero. > > Here is the second query: > SELECT Sum(QTest.DlrPay) AS SDlrPay, Sum(QTest.SvcMgr) AS SSvcMgr, > Sum(QTest.PartsDept) AS SPartsDept, Sum(QTest.SvcAdv) AS SSvcAdv, > Sum(QTest.Contest) AS SContest, Sum(QTest.SvcDept) AS SSvcDept, > Sum(QTest.SvcTech) AS SSvcTech > FROM QTest; > This is the function: > > 'Use query to find zero columns. Starting at the last query field, > 'replace the current width with a computed width; a default value for > non-zero > 'or zero otherwise. The new box width is also calculated and returned > Public Function SetColWidths(ByVal ctl As Control) As String > ? Dim rs As DAO.Recordset > ? Dim CurrWidths As Variant > ? Dim CurrFld As Single > ? Dim Cntr As Long > ? Dim Pntr As Long > ? Dim ListWidth As Long > > ? Const DEFAULT_WIDTH As String = "576" > > ? CurrWidths = Split(ctl.ColumnWidths, ";") > ? Pntr = UBound(CurrWidths) > ? Set rs = CurrentDb.OpenRecordset("qryColumnWidth") > ? With rs > ??? For Cntr = .Fields.Count - 1 To 0 Step -1 > ????? CurrFld = CSng(.Fields(Cntr)) > ????? If CurrFld = 0 Then > ??????? CurrWidths(Pntr) = "0" > ????? Else > ??????? CurrWidths(Pntr) = DEFAULT_WIDTH > ????? End If > ????? ListWidth = ListWidth + CLng(CurrWidths(Pntr)) > ????? Pntr = Pntr - 1 > ??? Next > > ??? For Cntr = Pntr To 0 Step -1 > ????? ListWidth = ListWidth + CurrWidths(Pntr) > ??? Next > > ??? SetColWidths = Join(CurrWidths, ";") & "|" & CStr(ListWidth) > ? End With > End Function > > The code behind the control is: > Private Sub Form_Current() > ? Dim WidthRet As String > ? Dim Pntr As Long > > ? With Me > ??? WidthRet = SetColWidths(.lstTest) > ??? Pntr = InStr(WidthRet, "|") > ??? .lstTest.ColumnWidths = Left$(WidthRet, Pntr - 1) > ??? .lstTest.Width = CLng(Mid$(WidthRet, Pntr + 1)) > ? End With > End Sub > > This function automatically adjusts to any number of fields. > > HTH (and is what you need). : ) > > P.S. I'm sending a sample DB directly to you. > > Kenneth Saylor > Chemistry Maintenance > Indiana-Purdue University Fort Wayne >>>> David McAfee 10/1/2010 1:22 PM >>> > (Crossposted on AccessD) > > > I'm working in an ADP. > > I have the pseudo pivot table since I am working in SQL2000 (PIVOT > wasn't available until SQL2005) > > SELECT > SplitID,? IncDetID, SplitTypeID, SplitAmt > FROM tblSplit > WHERE IncDetID = 5199 > > returns > > SplitID? IncDetID SplitTypeID SplitAmt > 36????????? 5199??????? 1???????????? 15.00 > 37????????? 5199??????? 7?????????????? 5.00 > > > My pseudo pivot table: > SELECT IncDetID, > ?????????????? SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS > DlrPay, > ?????????????? SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS > SvcMgr, > ?????????????? SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) > AS PartsDept, > ?????????????? SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS > SvcAdv, > ?????????????? SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS > SvcDept, > ?????????????? SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS > SvcTech, > ?????????????? SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS > Contest > ?????? FROM tblSPlit > ?????? GROUP BY IncDetID > > returns: > > IncDetID? DlrPay?? SvcMgr PartsDept SvcAdv? SvcDept SvcTech Contest > 5199??????? 15.00???????? 0.00?????? 0.00??????? 0.00?????? 0.00? 0.00 > 5.00 > > > In the actual final display, there are many tables joined to this, so > the resultset really looks like: > > CustNo?? InvNo? ItemNo Qty UnitPrice IncentiveAmt TotalIncentive > DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest > 07235???? 5452?? 02951??? 6?? 54.95 20.00 120.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 5.00 > 07235???? 5452?? 03111? 12?? 40.95 17.00 204.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 2.00 > 07235???? 5452?? 01121? 24?? 30.95 20.00 480.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 5.00 > 07235???? 5452?? 01161? 12?? 36.95 25.00 300.00 15.00 0.00 0.00 0.00 > 0.00 0.00 10.00 > 07235???? 5452?? 06011? 12?? 47.95 22.00 264.00 15.00 0.00 0.00 0.00 > 0.00 0.00?? 7.00 > 07235???? 5452?? 10521? 12?? 41.95 19.00 228.00 15.00 0.00 0.00 0.00 > 0.00 0.00?? 4.00 > > I'd really like it to look like this: > CustNo InvNo ItemNo Qty UnitPrice? IncentiveAmt TotalIncentive DlrPay > Contest > 07235?? 5452? 02951? 6???? 54.95?? 20.00? 120.00 15.00 5.00 > 07235?? 5452? 03111? 12?? 40.95?? 17.00? 204.00 15.00 2.00 > 07235?? 5452? 01121? 24?? 30.95?? 20.00? 480.00 15.00 5.00 > 07235?? 5452? 01161? 12?? 36.95?? 25.00? 300.00 15.00 10.00 > 07235?? 5452? 06011? 12?? 47.95?? 22.00? 264.00 15.00 7.00 > 07235?? 5452? 10521? 12?? 41.95?? 19.00? 228.00 15.00 4.00 > > I'm still debating on displaying this as a listbox or subform on the main > form. > > I'm thinking if it is in a listbox, simply loop through the last 7 > colums. If the entire column is 0 then make that column a 0" width in > the list box. > If I go with a datasheet subform, run a recordset clone and if all > values for a given field are 0 then make that field hidden. > > any ideas? > > I have to do this on a form and on a report (print out of the form) so > I'm trying to think of a good way to do this that will apply to both. > > Thanks, > David > > > From davidmcafee at gmail.com Fri Oct 1 15:11:19 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 1 Oct 2010 13:11:19 -0700 Subject: [AccessD] Is there a way to dynamically hide fields if needed In-Reply-To: <4CA60197020000410003C16A@gwia1.ipfw.edu> References: <4CA60197020000410003C16A@gwia1.ipfw.edu> Message-ID: The Sample that you sent me works great! Thanks. I'd still like to get it working on a continuous form (or datasheet), but as for now the Listbox will make it simple enough to read. I think using the recordset .Fields.Count like you did will help me out. Thanks again, David On Fri, Oct 1, 2010 at 12:43 PM, Kenneth Saylor wrote: > Not sure if this is what you're after. > > I made a table from your second to last data. Then I created two queries. > One is of the table data, the other computes the column values. > > The first query feeds a listbox , the second is used in a function to find > column sums equaling zero. > > Here is the second query: > SELECT Sum(QTest.DlrPay) AS SDlrPay, Sum(QTest.SvcMgr) AS SSvcMgr, > Sum(QTest.PartsDept) AS SPartsDept, Sum(QTest.SvcAdv) AS SSvcAdv, > Sum(QTest.Contest) AS SContest, Sum(QTest.SvcDept) AS SSvcDept, > Sum(QTest.SvcTech) AS SSvcTech > FROM QTest; > This is the function: > > 'Use query to find zero columns. Starting at the last query field, > 'replace the current width with a computed width; a default value for > non-zero > 'or zero otherwise. The new box width is also calculated and returned > Public Function SetColWidths(ByVal ctl As Control) As String > ? Dim rs As DAO.Recordset > ? Dim CurrWidths As Variant > ? Dim CurrFld As Single > ? Dim Cntr As Long > ? Dim Pntr As Long > ? Dim ListWidth As Long > > ? Const DEFAULT_WIDTH As String = "576" > > ? CurrWidths = Split(ctl.ColumnWidths, ";") > ? Pntr = UBound(CurrWidths) > ? Set rs = CurrentDb.OpenRecordset("qryColumnWidth") > ? With rs > ??? For Cntr = .Fields.Count - 1 To 0 Step -1 > ????? CurrFld = CSng(.Fields(Cntr)) > ????? If CurrFld = 0 Then > ??????? CurrWidths(Pntr) = "0" > ????? Else > ??????? CurrWidths(Pntr) = DEFAULT_WIDTH > ????? End If > ????? ListWidth = ListWidth + CLng(CurrWidths(Pntr)) > ????? Pntr = Pntr - 1 > ??? Next > > ??? For Cntr = Pntr To 0 Step -1 > ????? ListWidth = ListWidth + CurrWidths(Pntr) > ??? Next > > ??? SetColWidths = Join(CurrWidths, ";") & "|" & CStr(ListWidth) > ? End With > End Function > > The code behind the control is: > Private Sub Form_Current() > ? Dim WidthRet As String > ? Dim Pntr As Long > > ? With Me > ??? WidthRet = SetColWidths(.lstTest) > ??? Pntr = InStr(WidthRet, "|") > ??? .lstTest.ColumnWidths = Left$(WidthRet, Pntr - 1) > ??? .lstTest.Width = CLng(Mid$(WidthRet, Pntr + 1)) > ? End With > End Sub > > This function automatically adjusts to any number of fields. > > HTH (and is what you need). : ) > > P.S. I'm sending a sample DB directly to you. > > Kenneth Saylor > Chemistry Maintenance > Indiana-Purdue University Fort Wayne >>>> David McAfee 10/1/2010 1:22 PM >>> > (Crossposted on AccessD) > > > I'm working in an ADP. > > I have the pseudo pivot table since I am working in SQL2000 (PIVOT > wasn't available until SQL2005) > > SELECT > SplitID,? IncDetID, SplitTypeID, SplitAmt > FROM tblSplit > WHERE IncDetID = 5199 > > returns > > SplitID? IncDetID SplitTypeID SplitAmt > 36????????? 5199??????? 1???????????? 15.00 > 37????????? 5199??????? 7?????????????? 5.00 > > > My pseudo pivot table: > SELECT IncDetID, > ?????????????? SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS > DlrPay, > ?????????????? SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS > SvcMgr, > ?????????????? SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) > AS PartsDept, > ?????????????? SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS > SvcAdv, > ?????????????? SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS > SvcDept, > ?????????????? SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS > SvcTech, > ?????????????? SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS > Contest > ?????? FROM tblSPlit > ?????? GROUP BY IncDetID > > returns: > > IncDetID? DlrPay?? SvcMgr PartsDept SvcAdv? SvcDept SvcTech Contest > 5199??????? 15.00???????? 0.00?????? 0.00??????? 0.00?????? 0.00? 0.00 > 5.00 > > > In the actual final display, there are many tables joined to this, so > the resultset really looks like: > > CustNo?? InvNo? ItemNo Qty UnitPrice IncentiveAmt TotalIncentive > DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest > 07235???? 5452?? 02951??? 6?? 54.95 20.00 120.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 5.00 > 07235???? 5452?? 03111? 12?? 40.95 17.00 204.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 2.00 > 07235???? 5452?? 01121? 24?? 30.95 20.00 480.00 15.00 0.00 0.00 0.00 > 0.00 0.00? 5.00 > 07235???? 5452?? 01161? 12?? 36.95 25.00 300.00 15.00 0.00 0.00 0.00 > 0.00 0.00 10.00 > 07235???? 5452?? 06011? 12?? 47.95 22.00 264.00 15.00 0.00 0.00 0.00 > 0.00 0.00?? 7.00 > 07235???? 5452?? 10521? 12?? 41.95 19.00 228.00 15.00 0.00 0.00 0.00 > 0.00 0.00?? 4.00 > > I'd really like it to look like this: > CustNo InvNo ItemNo Qty UnitPrice? IncentiveAmt TotalIncentive DlrPay > Contest > 07235?? 5452? 02951? 6???? 54.95?? 20.00? 120.00 15.00 5.00 > 07235?? 5452? 03111? 12?? 40.95?? 17.00? 204.00 15.00 2.00 > 07235?? 5452? 01121? 24?? 30.95?? 20.00? 480.00 15.00 5.00 > 07235?? 5452? 01161? 12?? 36.95?? 25.00? 300.00 15.00 10.00 > 07235?? 5452? 06011? 12?? 47.95?? 22.00? 264.00 15.00 7.00 > 07235?? 5452? 10521? 12?? 41.95?? 19.00? 228.00 15.00 4.00 > > I'm still debating on displaying this as a listbox or subform on the main > form. > > I'm thinking if it is in a listbox, simply loop through the last 7 > colums. If the entire column is 0 then make that column a 0" width in > the list box. > If I go with a datasheet subform, run a recordset clone and if all > values for a given field are 0 then make that field hidden. > > any ideas? > > I have to do this on a form and on a report (print out of the form) so > I'm trying to think of a good way to do this that will apply to both. > > Thanks, > David > > > From rockysmolin at bchacc.com Sat Oct 2 08:36:59 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 2 Oct 2010 06:36:59 -0700 Subject: [AccessD] Doc Merge from Access Message-ID: <582C7256CCBD4677947845547A20AB9C@HAL9005> Dear List: I have a client who wants to merge fields from a chosen record in an Access table into a Word doc. I don't want to reinvent this wheel and I'm sure there must be modules or samples somewhere that I could crib. Does someone have a favorite? I remember trying to do this years ago and the biggest problem was getting the user to set up the fields in the Word doc and linking it to the data source. I'd prefer not to go this way because the user is not that technically able. Rather drive the whole thing from Access but I'm not sure that's possible. You have to define the fields in the doc, no? There is a set of standard docs that the user will be starting with but they want to be able to add docs as they go along. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From dw-murphy at cox.net Sat Oct 2 12:40:23 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 2 Oct 2010 10:40:23 -0700 Subject: [AccessD] Doc Merge from Access In-Reply-To: <582C7256CCBD4677947845547A20AB9C@HAL9005> References: <582C7256CCBD4677947845547A20AB9C@HAL9005> Message-ID: Check out Hellen Feddema's web site. She has several ways of doing this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, October 02, 2010 6:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Doc Merge from Access Dear List: I have a client who wants to merge fields from a chosen record in an Access table into a Word doc. I don't want to reinvent this wheel and I'm sure there must be modules or samples somewhere that I could crib. Does someone have a favorite? I remember trying to do this years ago and the biggest problem was getting the user to set up the fields in the Word doc and linking it to the data source. I'd prefer not to go this way because the user is not that technically able. Rather drive the whole thing from Access but I'm not sure that's possible. You have to define the fields in the doc, no? There is a set of standard docs that the user will be starting with but they want to be able to add docs as they go along. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From steve at datamanagementsolutions.biz Sat Oct 2 13:52:44 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sun, 3 Oct 2010 07:52:44 +1300 Subject: [AccessD] Doc Merge from Access In-Reply-To: <582C7256CCBD4677947845547A20AB9C@HAL9005> References: <582C7256CCBD4677947845547A20AB9C@HAL9005> Message-ID: <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> Rocky, http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html Scroll down to "Super Easy Word Merge" section. I have used this approach myself and can recommend it. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Sunday, October 03, 2010 2:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Doc Merge from Access Dear List: I have a client who wants to merge fields from a chosen record in an Access table into a Word doc. I don't want to reinvent this wheel and I'm sure there must be modules or samples somewhere that I could crib. Does someone have a favorite? I remember trying to do this years ago and the biggest problem was getting the user to set up the fields in the Word doc and linking it to the data source. I'd prefer not to go this way because the user is not that technically able. Rather drive the whole thing from Access but I'm not sure that's possible. You have to define the fields in the doc, no? There is a set of standard docs that the user will be starting with but they want to be able to add docs as they go along. From bill.marriott09 at gmail.com Sat Oct 2 21:13:54 2010 From: bill.marriott09 at gmail.com (Bill Marriott) Date: Sun, 3 Oct 2010 13:13:54 +1100 Subject: [AccessD] Doc Merge from Access In-Reply-To: <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> References: <582C7256CCBD4677947845547A20AB9C@HAL9005> <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> Message-ID: > > Hi Group, > I am running Access 2010 on Win 7 I would like the user to click on a hyperlink to open the appropriate app with the correct file and have the Access minimized while the user can view the hyperlinked file. The following code works but after minimizing the Access App' for only a second and opening up Word with the correct file Access opens up again on top. Private Sub txtCV_Click() If Not IsNull(Me.txtCV) Then 'ActiveWindow.WindowState = wdWindowStateMinimise 'tried this and FollowHyperlink Me![txtCV], , True DoCmd.RunCommand acCmdAppMinimize 'tried this as well End If End Sub Does anyone know why? thanks Bill From jwcolby at colbyconsulting.com Sat Oct 2 23:27:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 03 Oct 2010 00:27:52 -0400 Subject: [AccessD] running virtual machines in Windows 2008 Message-ID: <4CA80648.7050300@colbyconsulting.com> I have always used VMWare VMs. Free, easy. Now the old 1.10 won't install in my new Windows 2008 server. The core service fails to install. Sigh. I have been considering moving to Microsoft's equivelent, and Windows 2008 has the hypervisor built-in so here we go. I am looking at WinImage as a conversion tool. No idea what is involved. I need to get my VMs out of VMWare into ? in MS land. I still have my old server up and will likely keep it around for awhile so I can continue to run the old VMWare VMs until I manage to convert. Any comments or words of wisdom? -- John W. Colby www.ColbyConsulting.com From bill.marriott09 at gmail.com Sun Oct 3 01:12:24 2010 From: bill.marriott09 at gmail.com (Bill Marriott) Date: Sun, 3 Oct 2010 17:12:24 +1100 Subject: [AccessD] minimize wont stay minimized Message-ID: > > Hi Group, > I am running Access 2010 on Win 7 I would like the user to click on a hyperlink in an access form to open the appropriate app (eg Word) with the correct file and have the Access application minimized while the user views the hyperlinked file. The following code works but after minimizing the Access App' for only a second and opening up Word with the correct file Access opens up again on top. Private Sub txtCV_Click() If Not IsNull(Me.txtCV) Then 'ActiveWindow.WindowState = wdWindowStateMinimise 'tried this and FollowHyperlink Me![txtCV], , True DoCmd.RunCommand acCmdAppMinimize 'tried this as well End If End Sub Does anyone know why? thanks Bill From charlotte.foust at gmail.com Sun Oct 3 11:52:13 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sun, 3 Oct 2010 09:52:13 -0700 Subject: [AccessD] Doc Merge from Access In-Reply-To: References: <582C7256CCBD4677947845547A20AB9C@HAL9005> <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> Message-ID: Just as SWAG but I suspect the problem is that when you click on the Word Doc, the Access window is no longer the active window, so you're spinning your wheels. Have you tried using the RunCommand to minimize before you follow the link (which I presume is to the Word doc)? Charlotte Foust On Sat, Oct 2, 2010 at 7:13 PM, Bill Marriott wrote: >> >> Hi Group, >> > > I am running Access 2010 on Win 7 > I would like the user to click on a hyperlink to open the appropriate app > with the correct file and have the Access minimized while the user can view > the hyperlinked file. > > The following code works but after minimizing the Access App' for only a > second and opening up Word with the correct file Access opens up again on > top. > > Private Sub txtCV_Click() > ?If Not IsNull(Me.txtCV) Then > ? ?'ActiveWindow.WindowState = wdWindowStateMinimise ?'tried this and > ? ?FollowHyperlink Me![txtCV], , True > ? DoCmd.RunCommand acCmdAppMinimize ? ? ? ? ? ? ? ? ? ? ?'tried this as > well > ?End If > End Sub > > Does anyone know why? > > thanks > > Bill > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Sun Oct 3 12:24:31 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Sun, 3 Oct 2010 22:54:31 +0530 Subject: [AccessD] Final Totals on Access Report to not includeallreport rows References: 3D2@blkltd.blkfst2003.local> Message-ID: <55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede> Brad, You wish to show the values for Acct, Goal and Amt on each row in detail section of report but at the same time, while showing overall totals in report footer, ignore duplicate occurrences of Goal values in each account. For a codeless solution as sought by you, following course of action is suggested: 1 - In Sorting and Grouping dialog box, create a group footer for Acct 2 - In this group footer, place a calculated text box named TxtGoal with the expression =[Goal]. On data tab of property sheet for this text box, set its running sum property to OverAll. 3 - Hide the group footer section by setting its visible property to No. 4 - In the report footer, place a calculated text box named TxtTotGoal with the expression =[TxtGoal], and another calculated text box named TxtTotAmt with the expression = Sum[Amt]. With the above arrangement, overall totals will get displayed in report footer in the manner desired by you (ignoring duplicate occurrences of Goal values in each account). Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Thursday, September 30, 2010 23:45 Subject: Re: [AccessD] Final Totals on Access Report to not includeallreport rows Gary, Good idea, I hadn't thought of that approach. I wrote some VBA code to handle this unusual situation, but I would prefer another approach. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 30, 2010 6:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Final Totals on Access Report to not include allreport rows How about if you used only the account number totals in the main report and then listed the individual transactions for each account in a sub report? Then those goals on the individual transactions wouldn't mess you up on the final totals as that would be only the data from the main report. Just a thought before I have had any coffee. GK On Wed, Sep 29, 2010 at 3:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > Acct Goal Amt-2 > > A 100.00 1.00 > A 100.00 4.00 > B 200.00 5.00 > B 200.00 2.00 > _________________ > 300.00 12.00 > Thanks, > Brad From bill.marriott09 at gmail.com Mon Oct 4 03:05:56 2010 From: bill.marriott09 at gmail.com (Bill Marriott) Date: Mon, 4 Oct 2010 19:05:56 +1100 Subject: [AccessD] Doc Merge from Access In-Reply-To: References: <582C7256CCBD4677947845547A20AB9C@HAL9005> <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> Message-ID: Yes Charlotte I tried that to no avail. I ran the debugger and there did not appear to be any more code running in Access after the DoCmd.RunCommand acCmdAppMinimize However Access keeps popping up in my face like a recalcitrant Jack in the Box when it should stay minimized? Bill On Mon, Oct 4, 2010 at 3:52 AM, Charlotte Foust wrote: > Just as SWAG but I suspect the problem is that when you click on the > Word Doc, the Access window is no longer the active window, so you're > spinning your wheels. Have you tried using the RunCommand to minimize > before you follow the link (which I presume is to the Word doc)? > > Charlotte Foust > > On Sat, Oct 2, 2010 at 7:13 PM, Bill Marriott > wrote: > >> > >> Hi Group, > >> > > > > I am running Access 2010 on Win 7 > > I would like the user to click on a hyperlink to open the appropriate app > > with the correct file and have the Access minimized while the user can > view > > the hyperlinked file. > > > > The following code works but after minimizing the Access App' for only a > > second and opening up Word with the correct file Access opens up again on > > top. > > > > Private Sub txtCV_Click() > > If Not IsNull(Me.txtCV) Then > > 'ActiveWindow.WindowState = wdWindowStateMinimise 'tried this and > > FollowHyperlink Me![txtCV], , True > > DoCmd.RunCommand acCmdAppMinimize 'tried this as > > well > > End If > > End Sub > > > > Does anyone know why? > > > > thanks > > > > Bill > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Oct 4 06:53:09 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 04 Oct 2010 07:53:09 -0400 Subject: [AccessD] Doc Merge from Access In-Reply-To: <582C7256CCBD4677947845547A20AB9C@HAL9005> References: <582C7256CCBD4677947845547A20AB9C@HAL9005> Message-ID: <803D4B5D5A5F405C9FC34AAAA96454D5@XPS> Rocky, I have a Access / Word interface that I worked on many years ago, which was based on the effort of Paul Litwin. John used that as the basis for something he did and may want to share that as well. I'll e-mail it off list. It's template driven from the Access side. You choose a query as a data source, the fields and attributes you want to push into Word, and then save it. You can then execute it at any time. On the Word side, all the user needs to do is create named bookmarks in the text where the data should go. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, October 02, 2010 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Doc Merge from Access Dear List: I have a client who wants to merge fields from a chosen record in an Access table into a Word doc. I don't want to reinvent this wheel and I'm sure there must be modules or samples somewhere that I could crib. Does someone have a favorite? I remember trying to do this years ago and the biggest problem was getting the user to set up the fields in the Word doc and linking it to the data source. I'd prefer not to go this way because the user is not that technically able. Rather drive the whole thing from Access but I'm not sure that's possible. You have to define the fields in the doc, no? There is a set of standard docs that the user will be starting with but they want to be able to add docs as they go along. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From marksimms at verizon.net Mon Oct 4 09:20:22 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 04 Oct 2010 10:20:22 -0400 Subject: [AccessD] Doc Merge from Access In-Reply-To: References: <582C7256CCBD4677947845547A20AB9C@HAL9005> <46B5C3FCB85247D59F814D8C3B52AB1E@stevelaptop> Message-ID: <009a01cb63cf$48467bf0$0801a8c0@MSIMMSWS> Bill - here's a module-level function (CloseWordDocs) I called before doing a mail merge. The secret could be the Activate and/or Visible property settings. I do know that it kept Word "on top" after the merge was completed. Bottomline: I called this right before performing the merge. It's purpose was to "clean-up" any merge-type of Word documents still left open by the user. gAppWord is a global variable set to the handle of the word application. Right after the merge, I do this : gAppWord.Activate ' Re-focus on the Word App gAppWord.ScreenUpdating = True gAppWord.WindowState = wdWindowStateMaximize gAppWord.ActiveDocument.Activate ' This removes any open Word documents Public Sub CloseWordDocs(ByVal bCloseTemplate As Boolean, Optional ByVal bQuitWord As Boolean = False) Dim i As Long, cnt As Long Dim oMainDoc As Word.Document If Not gAppWord Is Nothing Then On Error Resume Next gAppWord.Visible = True End If If Err.Number <> 0 Or gAppWord Is Nothing Then On Error Resume Next Set gAppWord = GetObject(, "Word.Application") If Err.Number = 0 Then On Error Resume Next gAppWord.Visible = True If Err.Number = 0 Then gAppWord.Activate gAppWord.WindowState = wdWindowStateMinimize Else Exit Sub ' Word is not open, so exit immediately End If Else Exit Sub End If End If On Error GoTo Err With gAppWord Select Case .Documents.Count Case Is = 0 Case Else For Each oMainDoc In .Documents oMainDoc.Activate If bCloseTemplate Then On Error Resume Next ' required since not all docs have mailmerge fields ! cnt = oMainDoc.MailMerge.Fields.Count If Err.Number <> 0 And cnt > 0 Then oMainDoc.Close False End If On Error GoTo Err Else oMainDoc.Close True End If Next If bQuitWord Then .Quit Set gAppWord = Nothing End If End Select End With Exit Sub Err: MsgBox "Error in CloseWordDocs:" & Err.Number & " " & Err.Description, vbCritical, APPTITLE Set gAppWord = Nothing ' seems to be required End Sub > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bill Marriott > Sent: Monday, October 04, 2010 4:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Doc Merge from Access > > Yes Charlotte I tried that to no avail. > I ran the debugger and there did not appear to be any more > code running in Access after the DoCmd.RunCommand > acCmdAppMinimize However Access keeps popping up in my face > like a recalcitrant Jack in the Box when it should stay minimized? > > Bill > > On Mon, Oct 4, 2010 at 3:52 AM, Charlotte Foust > wrote: > > > Just as SWAG but I suspect the problem is that when you > click on the > > Word Doc, the Access window is no longer the active window, > so you're > > spinning your wheels. Have you tried using the RunCommand > to minimize > > before you follow the link (which I presume is to the Word doc)? > > > > Charlotte Foust > > > > On Sat, Oct 2, 2010 at 7:13 PM, Bill Marriott > > > > wrote: > > >> > > >> Hi Group, > > >> > > > > > > I am running Access 2010 on Win 7 > > > I would like the user to click on a hyperlink to open the > > > appropriate app with the correct file and have the Access > minimized > > > while the user can > > view > > > the hyperlinked file. > > > > > > The following code works but after minimizing the Access App' for > > > only a second and opening up Word with the correct file > Access opens > > > up again on top. > > > > > > Private Sub txtCV_Click() > > > If Not IsNull(Me.txtCV) Then > > > 'ActiveWindow.WindowState = wdWindowStateMinimise > 'tried this and > > > FollowHyperlink Me![txtCV], , True > > > DoCmd.RunCommand acCmdAppMinimize > 'tried this as > > > well > > > End If > > > End Sub > > > > > > Does anyone know why? > > > > > > thanks > > > > > > Bill > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Oct 4 09:34:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 4 Oct 2010 07:34:18 -0700 Subject: [AccessD] Doc Merge from Access In-Reply-To: <803D4B5D5A5F405C9FC34AAAA96454D5@XPS> References: <582C7256CCBD4677947845547A20AB9C@HAL9005> <803D4B5D5A5F405C9FC34AAAA96454D5@XPS> Message-ID: <8C4E93FF53674F028BDD32FCEC0D4A9B@HAL9005> Jim: Got the db offline. Thanks. Looks like exactly what I need. Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, October 04, 2010 4:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Doc Merge from Access Rocky, I have a Access / Word interface that I worked on many years ago, which was based on the effort of Paul Litwin. John used that as the basis for something he did and may want to share that as well. I'll e-mail it off list. It's template driven from the Access side. You choose a query as a data source, the fields and attributes you want to push into Word, and then save it. You can then execute it at any time. On the Word side, all the user needs to do is create named bookmarks in the text where the data should go. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, October 02, 2010 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Doc Merge from Access Dear List: I have a client who wants to merge fields from a chosen record in an Access table into a Word doc. I don't want to reinvent this wheel and I'm sure there must be modules or samples somewhere that I could crib. Does someone have a favorite? I remember trying to do this years ago and the biggest problem was getting the user to set up the fields in the Word doc and linking it to the data source. I'd prefer not to go this way because the user is not that technically able. Rather drive the whole thing from Access but I'm not sure that's possible. You have to define the fields in the doc, no? There is a set of standard docs that the user will be starting with but they want to be able to add docs as they go along. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 pedro at plex.nl Mon Oct 4 09:43:22 2010 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 04 Oct 2010 16:43:22 +0200 Subject: [AccessD] need help with date-query In-Reply-To: <4CA6150E.13012.10F4720C@stuart.lexacorp.com.pg> References: <201010011048.o91AmFAb008416@mailhostC.plex.net>, <4CA5CA31.23662.FCFFBBF@stuart.lexacorp.com.pg>, <4CA5EE85.20902@plex.nl> <4CA6150E.13012.10F4720C@stuart.lexacorp.com.pg> Message-ID: <4CA9E80A.7080300@plex.nl> Hello Stuart, thanks for the help. Its just what is needed. Pedro Op 1-10-2010 19:06, Stuart McLachlan schreef: > The second version will list *all* checks more than 13 days after the first operation which are > before the second operation. > > If you just want the last check, the simplest way is to wrap the second version in another > query: > > SELECT Patientnr, FirstOp, SecondOpDate, Max(FollowUpDate) AS LastFollowUp, > Max(DaysAfterFirst) AS Days > FROM qryDoubleOpFollowUps > GROUP BY Patientnr, FirstOp, SecondOpDate; > This: SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]-Min([tblcataracts].[date]) AS DaysAfterFirst, [tblCataracts_1].[date]-Max([tblcataracts].[date]) AS DaysAfterSecond FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = tblCataracts_1.Patientnr WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date HAVING (((Count(tblCataracts.Patientnr))>1) AND (([tblCataracts_1].[date]- Min([tblcataracts].[date]))>13)); will return this: Patientnr FirstOp SecondOpDate FollowUpDate DaysAfterFirst DaysAfterSecond 01111111 1/04/2010 25/04/2010 20/04/2010 19 -5 01111111 1/04/2010 25/04/2010 26/04/2010 25 1 02222222 1/05/2010 1/06/2010 4/06/2010 34 3 If you want to exclude follow ups after the second operation, you can use the following to just return the first record: SELECT tblCataracts.Patientnr, Min(tblCataracts.Date) AS FirstOp, Max(tblCataracts.Date) AS SecondOpDate, tblCataracts_1.Date AS FollowUpDate, [tblCataracts_1].[date]- Min([tblcataracts].[date]) AS DaysAfterFirst FROM tblCataracts LEFT JOIN tblCataracts AS tblCataracts_1 ON tblCataracts.Patientnr = tblCataracts_1.Patientnr WHERE (((tblCataracts_1.Code) Like "19*") AND ((tblCataracts.Code)="031241")) GROUP BY tblCataracts.Patientnr, tblCataracts_1.Date HAVING ((([tblCataracts_1].[date]-Min([tblcataracts].[date]))>13) AND (([tblCataracts_1].[date]-Max([tblcataracts].[date]))<0) AND ((Count(tblCataracts.Patientnr))>1)); -- Stuart On 1 Oct 2010 at 12:48, pedro at plex.nl wrote: > Dear List, > > For the Cataract performance indicators, i have to find out how many > patients with a cataract operation at both eyes, have done a > post-checkup after the first operation, but not before 14 days. > > So i have a table with three fields. > > Patientnr Code Date > 01111111 031241 01-04-10 > 01111111 190013 20-04-10 > 01111111 031241 25-04-10 > 01111111 190011 26-04-10 > 02222222 031241 01-05-10 > 02222222 190011 05-05-10 > 02222222 190012 07-05-10 > 02222222 031241 01-06-10 > 02222222 190013 04-06-10 > 04444444 031241 01-07-10 > 04444444 190013 20-07-10 > 04444444 190013 22-07-10 > > > The code for cataract operation is: 031241 > The codes for post-checkups are: 190011, 190012, 190013 > > > as result i would like: > Patientnr Days > 01111111 19 > > > Patientnr 02222222 does not match the criteria, because the > post-checkup is 4 days after the first operation. > > Patientnr 04444444 does not match the criteria, although the > post-checkup is 19 days after the operation, there isn't a second > operation. > > > I'll hope someone can help me with this. > Although i can level the patients down to those who have two > operations and checkups, but when there are more then one checkup, i > have to control them by hand. This is a lot of work. > > Thanks > > Pedro From jedi at charm.net Mon Oct 4 12:37:47 2010 From: jedi at charm.net (Michael Bahr) Date: Mon, 4 Oct 2010 13:37:47 -0400 (EDT) Subject: [AccessD] running virtual machines in Windows 2008 In-Reply-To: <4CA80648.7050300@colbyconsulting.com> References: <4CA80648.7050300@colbyconsulting.com> Message-ID: <1123.24.35.23.165.1286213867.squirrel@mail.expedient.net> John, you must mean Windows Server 2008. Never heard of Windows 2008 unless I fell asleep. Does VMWare offer an import or upgrade to a new VM? Mike... > I have always used VMWare VMs. Free, easy. Now the old 1.10 won't > install in my new Windows 2008 > server. The core service fails to install. Sigh. > > I have been considering moving to Microsoft's equivelent, and Windows 2008 > has the hypervisor > built-in so here we go. > > I am looking at WinImage as a conversion tool. No idea what is involved. > I need to get my VMs out > of VMWare into ? in MS land. > > I still have my old server up and will likely keep it around for awhile so > I can continue to run the > old VMWare VMs until I manage to convert. > > Any comments or words of wisdom? > > -- > 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 Mon Oct 4 13:25:26 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 04 Oct 2010 14:25:26 -0400 Subject: [AccessD] running virtual machines in Windows 2008 In-Reply-To: <1123.24.35.23.165.1286213867.squirrel@mail.expedient.net> References: <4CA80648.7050300@colbyconsulting.com> <1123.24.35.23.165.1286213867.squirrel@mail.expedient.net> Message-ID: <4CAA1C16.6020105@colbyconsulting.com> Well, yea. Except if server is all there is then Windows 2008 uniquely identifies the subject. John W. Colby www.ColbyConsulting.com On 10/4/2010 1:37 PM, Michael Bahr wrote: > John, you must mean Windows Server 2008. Never heard of Windows 2008 > unless I fell asleep. > > Does VMWare offer an import or upgrade to a new VM? > > Mike... > >> I have always used VMWare VMs. Free, easy. Now the old 1.10 won't >> install in my new Windows 2008 >> server. The core service fails to install. Sigh. >> >> I have been considering moving to Microsoft's equivelent, and Windows 2008 >> has the hypervisor >> built-in so here we go. >> >> I am looking at WinImage as a conversion tool. No idea what is involved. >> I need to get my VMs out >> of VMWare into ? in MS land. >> >> I still have my old server up and will likely keep it around for awhile so >> I can continue to run the >> old VMWare VMs until I manage to convert. >> >> Any comments or words of wisdom? >> >> -- >> 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 Mon Oct 4 13:39:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 04 Oct 2010 14:39:43 -0400 Subject: [AccessD] New Server Message-ID: <4CAA1F6F.3070606@colbyconsulting.com> Last week late and over the weekend I brought up the new server. That is a *lot* of work! The server consists of: 1 Norco 4020 case http://www.newegg.com/Product/Product.aspx?Item=N82E16811219021 1 Corsair 750W modular PS http://www.newegg.com/Product/Product.aspx?Item=N82E16817139010 1 Asus KGPE-D16 Dual Socket G34 motherboard http://www.newegg.com/Product/Product.aspx?Item=N82E16813131643 1 AMD Opteron 6128 8 core processor http://www.newegg.com/Product/Product.aspx?Item=N82E16819105266 2 Kingston 8GB 240-Pin DDR3 SDRAM http://www.newegg.com/Product/Product.aspx?Item=N82E16820139140 3 OCZ Vertex 2 OCZSSD2-2VTXE120G SSD http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 Windows *Server* 2008 Enterprise ;) SQL Server 2008 Enterprise Visual Studio 2008 Visual SVN One of the SSD drives is the boot drive, the other two will be for specific database files (raid 0). So essentially ATM the server is 8 cores and 16 gigs of RAM. Coming next another 8 core processor and another 16 gigs of RAM, to be followed by a final 32 gigs of RAM. Of course in typical fashion, not thinking about what I was doing, I moved the RAID controller and the drives over to the new server only to discover that I had not detached the databases and they would not attach. So I had to bring the old server back up, move the database files back over, attach and detach them, then move the files back to the new server, whereupon they all attached as expected. So as of this AM, the new server is up and functioning, with my SVN server / repository, and all databases functioning. I am planning on moving a couple of my main databases to the SSDs Raid 0 array. These are read-only databases, I do not write to them under normal circumstances. I will keep a current backup in case the Raid 0 array fails, but will work with them from the Raid 0 array on a daily basis. Having the main working databases on SSDs in a Raid 0 configuration, as well as more cores and more memory should allow me to do some of what I do in a much faster time frame. I do a lot of PK (autonumber) joins between tables, pulling multi-million record sets with data from each of the tables. I am hoping that this kind of processing will be much faster than when the source disks were on rotating media. We shall see. I still have the old server and will use it to run the test on rotating media, while doing an identical test on SSD on the new server. Of course I will not be testing just the effect of the SSD but rather the total speed increase of the entire system. -- John W. Colby www.ColbyConsulting.com From DWUTKA at Marlow.com Mon Oct 4 13:55:31 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 4 Oct 2010 13:55:31 -0500 Subject: [AccessD] running virtual machines in Windows 2008 In-Reply-To: <4CAA1C16.6020105@colbyconsulting.com> References: <4CA80648.7050300@colbyconsulting.com><1123.24.35.23.165.1286213867.squirrel@mail.expedient.net> <4CAA1C16.6020105@colbyconsulting.com> Message-ID: I'm in agreement with you John... Of course, where I work, I get users telling me all the time, that since we moved to Windows 2007, this or that doesn't work... (Which they mean Office 2007). LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, October 04, 2010 1:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] running virtual machines in Windows 2008 Well, yea. Except if server is all there is then Windows 2008 uniquely identifies the subject. John W. Colby www.ColbyConsulting.com On 10/4/2010 1:37 PM, Michael Bahr wrote: > John, you must mean Windows Server 2008. Never heard of Windows 2008 > unless I fell asleep. > > Does VMWare offer an import or upgrade to a new VM? > > Mike... > >> I have always used VMWare VMs. Free, easy. Now the old 1.10 won't >> install in my new Windows 2008 >> server. The core service fails to install. Sigh. >> >> I have been considering moving to Microsoft's equivelent, and Windows 2008 >> has the hypervisor >> built-in so here we go. >> >> I am looking at WinImage as a conversion tool. No idea what is involved. >> I need to get my VMs out >> of VMWare into ? in MS land. >> >> I still have my old server up and will likely keep it around for awhile so >> I can continue to run the >> old VMWare VMs until I manage to convert. >> >> Any comments or words of wisdom? >> >> -- >> 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 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 BradM at blackforestltd.com Mon Oct 4 14:45:38 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 4 Oct 2010 14:45:38 -0500 Subject: [AccessD] Final Totals on Access Report to not includeallreportrows References: 3D2@blkltd.blkfst2003.local> <55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede> Message-ID: A.D., Thank you very much for the assistance. Your ideas greatly helped to solve the problem that I was working on. I appreciate your help. Sincerely, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Sunday, October 03, 2010 12:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Final Totals on Access Report to not includeallreportrows Brad, You wish to show the values for Acct, Goal and Amt on each row in detail section of report but at the same time, while showing overall totals in report footer, ignore duplicate occurrences of Goal values in each account. For a codeless solution as sought by you, following course of action is suggested: 1 - In Sorting and Grouping dialog box, create a group footer for Acct 2 - In this group footer, place a calculated text box named TxtGoal with the expression =[Goal]. On data tab of property sheet for this text box, set its running sum property to OverAll. 3 - Hide the group footer section by setting its visible property to No. 4 - In the report footer, place a calculated text box named TxtTotGoal with the expression =[TxtGoal], and another calculated text box named TxtTotAmt with the expression = Sum[Amt]. With the above arrangement, overall totals will get displayed in report footer in the manner desired by you (ignoring duplicate occurrences of Goal values in each account). Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Thursday, September 30, 2010 23:45 Subject: Re: [AccessD] Final Totals on Access Report to not includeallreport rows Gary, Good idea, I hadn't thought of that approach. I wrote some VBA code to handle this unusual situation, but I would prefer another approach. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 30, 2010 6:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Final Totals on Access Report to not include allreport rows How about if you used only the account number totals in the main report and then listed the individual transactions for each account in a sub report? Then those goals on the individual transactions wouldn't mess you up on the final totals as that would be only the data from the main report. Just a thought before I have had any coffee. GK On Wed, Sep 29, 2010 at 3:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > Acct Goal Amt-2 > > A 100.00 1.00 > A 100.00 4.00 > B 200.00 5.00 > B 200.00 2.00 > _________________ > 300.00 12.00 > 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 jwcolby at colbyconsulting.com Mon Oct 4 16:16:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 04 Oct 2010 17:16:33 -0400 Subject: [AccessD] Apples to Oranges Message-ID: <4CAA4431.5020903@colbyconsulting.com> I On the new server, have the same database on my SSD (two drive) raid 0 and a rotating media (2 drive) Raid 0. There is a clustered index on the PK as the index key. There is no index on the FieldX, forcing a field scan. I did a simple count PK Group By FieldX on both database files. The SSD returned the counts in 1:31 The rotating media returned the counts in 8:58 -- John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Mon Oct 4 16:24:35 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 4 Oct 2010 17:24:35 -0400 Subject: [AccessD] New article Message-ID: http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post-3904 I'll get hate mail for the natural/surrogate key comments, but ... that's Okay. Susan H. From davidmcafee at gmail.com Mon Oct 4 16:31:47 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 4 Oct 2010 14:31:47 -0700 Subject: [AccessD] New article In-Reply-To: References: Message-ID: Great article Susan! Nah, you shouldn't get any hate mail, because everyone knows that Natural Keys are wrong :P On Mon, Oct 4, 2010 at 2:24 PM, Susan Harkins wrote: > http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post-3904 > > I'll get hate mail for the natural/surrogate key comments, but ... that's Okay. > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Oct 4 16:36:49 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 04 Oct 2010 17:36:49 -0400 Subject: [AccessD] Apples to Oranges In-Reply-To: <4CAA4431.5020903@colbyconsulting.com> References: <4CAA4431.5020903@colbyconsulting.com> Message-ID: <4CAA48F1.20008@colbyconsulting.com> With an index, both databases took 2 seconds to return the results. John W. Colby www.ColbyConsulting.com On 10/4/2010 5:16 PM, jwcolby wrote: > I On the new server, have the same database on my SSD (two drive) raid 0 and a rotating media (2 > drive) Raid 0. > > There is a clustered index on the PK as the index key. > There is no index on the FieldX, forcing a field scan. > > I did a simple count PK Group By FieldX on both database files. > > The SSD returned the counts in 1:31 > The rotating media returned the counts in 8:58 > From jwcolby at colbyconsulting.com Mon Oct 4 17:05:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 04 Oct 2010 18:05:13 -0400 Subject: [AccessD] Apples to Oranges In-Reply-To: <4CAA48F1.20008@colbyconsulting.com> References: <4CAA4431.5020903@colbyconsulting.com> <4CAA48F1.20008@colbyconsulting.com> Message-ID: <4CAA4F99.8000805@colbyconsulting.com> One pass of the query that updates the ' ' (space) to null value takes about 5 minutes on the SSD, whereas it takes about 30 minutes minutes on rotating media. I am not pursuing actually doing this on the SSD over nagging concerns about hot spot wear. However a actually need to do this for about 540 fields. At 1/2 hour / field... this will be running for the next month. John W. Colby www.ColbyConsulting.com On 10/4/2010 5:36 PM, jwcolby wrote: > With an index, both databases took 2 seconds to return the results. > > John W. Colby > www.ColbyConsulting.com > > On 10/4/2010 5:16 PM, jwcolby wrote: >> I On the new server, have the same database on my SSD (two drive) raid 0 and a rotating media (2 >> drive) Raid 0. >> >> There is a clustered index on the PK as the index key. >> There is no index on the FieldX, forcing a field scan. >> >> I did a simple count PK Group By FieldX on both database files. >> >> The SSD returned the counts in 1:31 >> The rotating media returned the counts in 8:58 >> From stuart at lexacorp.com.pg Mon Oct 4 17:39:23 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 05 Oct 2010 08:39:23 +1000 Subject: [AccessD] [dba-SQLServer] Apples to Oranges In-Reply-To: <4CAA4F99.8000805@colbyconsulting.com> References: <4CAA4431.5020903@colbyconsulting.com>, <4CAA48F1.20008@colbyconsulting.com>, <4CAA4F99.8000805@colbyconsulting.com> Message-ID: <4CAA579B.32740.219869F9@stuart.lexacorp.com.pg> At 1/2 hour / field, it should only take about 11.25 days :-) But my question is, do you have to do it a single field at a time? can't you update all the fields in a single pass? Something like: Update mytable set field1 = case field1 when " " then Null else field1 end, field2 = case field2 when " " then Null else field2 end, field3 = case field3 when " " then Null else field3 end, ... -- Stuart On 4 Oct 2010 at 18:05, jwcolby wrote: > One pass of the query that updates the ' ' (space) to null value takes > about 5 minutes on the SSD, whereas it takes about 30 minutes minutes > on rotating media. > > I am not pursuing actually doing this on the SSD over nagging concerns > about hot spot wear. > > However a actually need to do this for about 540 fields. At 1/2 hour > / field... this will be running for the next month. > > John W. Colby > www.ColbyConsulting.com > > On 10/4/2010 5:36 PM, jwcolby wrote: > > With an index, both databases took 2 seconds to return the results. > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 10/4/2010 5:16 PM, jwcolby wrote: > >> I On the new server, have the same database on my SSD (two drive) > >> raid 0 and a rotating media (2 drive) Raid 0. > >> > >> There is a clustered index on the PK as the index key. > >> There is no index on the FieldX, forcing a field scan. > >> > >> I did a simple count PK Group By FieldX on both database files. > >> > >> The SSD returned the counts in 1:31 > >> The rotating media returned the counts in 8:58 > >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From kathryn at bassett.net Mon Oct 4 17:49:29 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 4 Oct 2010 15:49:29 -0700 Subject: [AccessD] New article In-Reply-To: References: Message-ID: <007501cb6416$67be8b70$373ba250$@net> What natural/surrogate key comments? I did a "find" on both terms and they don't show up in the article (link goes to article on Open multiple Word files) Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Monday, October 04, 2010 2:25 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] New article > > http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post-3904 > > I'll get hate mail for the natural/surrogate key comments, but ... > that's Okay. > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From kathryn at bassett.net Mon Oct 4 17:55:48 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 4 Oct 2010 15:55:48 -0700 Subject: [AccessD] New article In-Reply-To: <007501cb6416$67be8b70$373ba250$@net> References: <007501cb6416$67be8b70$373ba250$@net> Message-ID: <007601cb6417$49acfc10$dd06f430$@net> Nevermind. You posted the right url on OT http://blogs.techrepublic.com.com/10things/?p=1855&alertspromo=100907&tag=nl .rSINGLE > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett > Sent: Monday, October 04, 2010 3:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] New article > > What natural/surrogate key comments? I did a "find" on both terms and > they > don't show up in the article (link goes to article on Open multiple > Word > files) > > Kathryn > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > > bounces at databaseadvisors.com] On Behalf Of Susan Harkins > > Sent: Monday, October 04, 2010 2:25 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] New article > > > > http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post- > 3904 > > > > I'll get hate mail for the natural/surrogate key comments, but ... > > that's Okay. > > > > 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 ssharkins at gmail.com Mon Oct 4 19:14:49 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 4 Oct 2010 20:14:49 -0400 Subject: [AccessD] New article References: <007501cb6416$67be8b70$373ba250$@net> <007601cb6417$49acfc10$dd06f430$@net> Message-ID: <8EF3B6B08FBF48D4A5255E894C6C3FA3@salvationomc4p> I'm sorry if I posted the wrong link! Susan H. > Nevermind. You posted the right url on OT > http://blogs.techrepublic.com.com/10things/?p=1855&alertspromo=100907&tag=nl > .rSINGLE From Gustav at cactus.dk Tue Oct 5 01:29:58 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 05 Oct 2010 08:29:58 +0200 Subject: [AccessD] New article Message-ID: Hi Susan I added some support. Or gasoline? http://blogs.techrepublic.com.com/10things/?p=1855 Do you really receive _hate_ mails? Who don't such readers comment in public? /gustav > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > > bounces at databaseadvisors.com] On Behalf Of Susan Harkins > > Sent: Monday, October 04, 2010 2:25 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] New article > > > > > > I'll get hate mail for the natural/surrogate key comments, but ... > > that's Okay. > > > > Susan H. From stuart at lexacorp.com.pg Tue Oct 5 01:59:23 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 05 Oct 2010 16:59:23 +1000 Subject: [AccessD] New article In-Reply-To: References: Message-ID: <4CAACCCB.13469.23621B85@stuart.lexacorp.com.pg> Me too :-) On 5 Oct 2010 at 8:29, Gustav Brock wrote: > Hi Susan > > I added some support. Or gasoline? > > http://blogs.techrepublic.com.com/10things/?p=1855 > > Do you really receive _hate_ mails? Who don't such readers comment in > public? > > /gustav > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > > > bounces at databaseadvisors.com] On Behalf Of Susan Harkins > > > Sent: Monday, October 04, 2010 2:25 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] New article > > > > > > > > > I'll get hate mail for the natural/surrogate key comments, but ... > > > that's Okay. > > > > > > Susan H. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mikedorism at verizon.net Tue Oct 5 08:00:04 2010 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 05 Oct 2010 09:00:04 -0400 Subject: [AccessD] Contract Management template Message-ID: Please forgive the cross post but.Does anyone happen to have a basic Contract Management template that they wouldn't mind sharing or know of a good low cost source for one? We need to be able to track Expiration date, Service Level, Terms, Contacts, Options on renewal, and Cost. Being able to handle or track Document Storage would also be a big plus. I would design it myself but I'm swamped with more requests than I can handle and am just looking for something I can put in place quickly and fix as we go. Back end needs to be SQL Server 2000. Front end can be either desktop or web-based. Thanks, Doris Manning Sr. Developer/Database Administrator Hargrove Inc. www.hargroveinc.com From jimdettman at verizon.net Tue Oct 5 08:11:06 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 05 Oct 2010 09:11:06 -0400 Subject: [AccessD] New article In-Reply-To: References: Message-ID: <8F664907F4AD42F084B2F5FAF7A9EB22@XPS> Susan, <> Well you certainly have a mix of apples and oranges in there on point #6. And not really to get into it all again, but I posted a link to an EE article I wrote on the topic a while back. Not sure if anyone was able to read it or not, so I've pasted it in below. It looses all the formatting, so some of the points are not emphasized, but you'll get the drift. And you don't get to see the comments made on the article, which you would get on-line. Actually, here's the link again: http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_2041-The-g reat-PK-debate-Natural-Keys-vs-Surrogates-again.html and I would be interested to hear if non-members can read the article on-line or not. The article basically sums up where we arrived at on this list many years back in terms of discussing primary keys. FWIW, Jim. The great PK debate: Natural Keys vs. Surrogates (again) I titled this "The great PK debate: Natural Keys vs. Surrogates (again)", because on almost any developer list or forum that deals with databases, this topic always comes up at one point or another and usually with very strong opinions on both sides. What started me on this article was that several days ago I tripped over an article on primary key's that was just flat out wrong. After poking around a bit on the net I realized that over the years, a lot of myths and misconceptions have grown up around this topic. It seems that as the years go by, more and more gets published and discussed on this topic, but things only get cloudier. For example, are auto number fields really a surrogate key? Can they function as a primary key? I hope that through this article I will be able to clarify and explain fully enough the answers to questions such as those and hopefully, another great PK debate will not ensue (or at least if it does, you'll have plenty of ammo for the debate). When I was looking at articles out on the net, one thing that struck me about almost everything I read is that not many started off on the right foot. So the first thing to clear up is what relational theory actually is. Relational theory (the big "R" as some call it), was developed by E.F. (Tedd) Codd while working at IBM. His first paper "Derivability, Redundancy, and Consistency of Relations" was published in 1969 as a research paper. While Codd was working on ways to store data in a data bank, what he actually did is in a very scientific and mathematical way describe a theory of data organization, based on a branch of mathematics that deals with sets of data. In a nutshell, it was the overall concept that data could be modelled in a very logical and rigorous way. So R theory is not concerned with how data is physically stored nor does it only apply to computer systems. What R theory is concerned with and only with is the logical organization of data in order to provide information. To make that clearer, I can apply relational theory to data kept on a chalk board, with sticky notes on a wall, or even with pen and paper. With R theory, it is the meaning of the data and how it is organized that is important and nothing else. As you read on, it is imperative that you keep this distinction in mind. That brings us to Misconception #1; relational theory does not exist because of databases; it is something that is applied to them. And, Misconception #2; R theory deals with the relationships between your tables. To a certain extent R Theory is applied to the database to deal with the relationships between the tables, well, when you discuss normalization, which we won't get into here. More fundamentally it applies to something else and is talking about something else, which is a relation, and that is why most articles start off on the wrong foot, failing to recognise the relation. A relation represents a set of data where the given set all pertains to the same type of "thing" or entity. In a relation, the data is laid out in rows and columns. The columns, each which represent an attribute of the entity (describes it in some way), and the rows (which are called tupples) represent a specific instance of a set of attributes in the relation. Now if you stripped away all the mumbo jumbo technical terms and use database terms instead, you would see that I have just described a table. The attributes are the fields and the tupples are the records. So let's start now with where most other articles pick up and that is with the classic example of a customer list. Since our relation is about customers and for the sake of simplicity, we'll stick to the following attributes in the relation: Name Address City State Zip Phone Number One of the fundamental things I didn't mention above about forming a relation is that each tupple needs to be unique. If by combining all the attributes, you cannot uniquely identify a given tupple, then you don't have enough attributes in your relation. It is the combination of one or more attributes, which will uniquely identify a tupple that will become the primary key. Can you have more than one primary key? No! Can you have more than one possible primary key? Certainly and these are called candidate keys, one of which will be designated as the primary key. Each grouping of one or more attributes that can uniquely identify a tupple is called a super key. There are a multitude of super keys in the above and going to the extreme, would be combining every attribute to form a key. But when you work with data, there are a few attributes that a primary key should have: 1. It should be as stable as possible. 2. It should be as minimal as possible. 3. It should be as familiar as possible. Given that, we certainly would not want to use most of the super keys in a relation. Keeping the above in mind, let's take a look at our example. Would name alone suffice to uniquely identify each row? Probably not as you could easily have "ABC Company" in two different cities. How about Name and Address? Well that would be better, but might still not be unique enough. You might have two "ABC Company" on "33 Main street", but in different cities. What about combining Name, Address, City, and State? That might work. How about Name, Address, and Zip? Possibly. What about the phone number by itself? Yes, that would probably work too. So we have three candidate keys, but which one should be the primary key? Again, looking at attributes a good primary key should have, phone number is probably the best bet. Phone numbers typically don't change unless you move so it would be fairly stable and it certainly is shorter then using either of the other candidate two keys. Last, it should be familiar to anyone that works there. But cannot the phone number change? Sure and most would say that this means that it cannot be a primary key! Which of course brings us to Misconception #3; Primary keys can never change. Primary keys can and will change; companies move, phone numbers can change, etc. There is nothing within relational theory that says a primary key cannot change. Again, keep in mind that still we are talking about the logical representation of data. We have not moved on to how it is physically stored or issues with that. Up to this point, we've been discussing what are commonly referred to as Natural Keys. That is the key is derived from the existing attributes. Early database designs used the method above to choose a key for a table. But rather quickly, it was discovered that the computer systems we had could not keep up performance wise as the keys had a tendency to become fairly long (when forming joins between relations). This is the point where surrogate keys came into use. Many believe that a surrogate key should be meaningless and have no connection with the data in the row. This partly came about because of data warehousing. When warehousing data, it becomes imperative that a key assigned to a row never changes. Some database designers even go to the point of saying that a meaningless surrogate should never be displayed to the user. But does a meaningless number used as a surrogate work as a primary key? Is it really a surrogate? Let's look at an example where the company has a customer table that looks like this: tblCustomers CustID - Identity - Primary Key Name - Text Address - Text City - Text State - Text Zip - Text Phone Number - Text So our CustID attribute is now just a number that goes up by one for each new record. It's never given to the customer and it does uniquely identify each row in the table. Now imagine that I'm a customer calling to place an order: Customer: Hi, I'm calling to place an order. Sales Rep: Have you done business with us before? Customer: Yes Sales Rep: Great. I can just pick you from the list..uh, what's the company name? Customer: ABC Company Sales Rep: Oh...well I have six companies listed with that name...where are you located? Customer: New York City, NY Sales Rep: Wow! Believe it or not, there are three ABC Companies in NYC!...what's the address? Customer: 7th avenue and 28th street Sales Rep: OK great...this must be you... is your phone number 210-699-9999? Customer: Yes Sales Rep: OK, what did you want to order? You've just seen in action the difference between a true primary key and one that is not even though it is labelled as a "primary key" in the table design. While CustID does serve to identify the record uniquely within the relation physically, it does not serve to identify a specific customer within the relation logically. In order to do that, the sales rep used the natural attributes of customers to ensure that the correct customer was being chosen. The attributes he used would have been a super key, possibly a candidate key, the real primary key, but it was not the "primary key" key that is currently in the table design. "Surrogate" means "to take the place of", but as we have just seen, a meaningless key does not take the place of a primary key from a logical point of view. Yes, it does uniquely identify a row in a table, but only in a physical sense, not in terms of the data. And how could it, since it has no connection with the data in that row. Which brings us to Misconception #4; A meaningless identity or auto number column can serve as a primary key. A meaningless key is simply a tag or pointer, but in regards to relational theory, it cannot be a primary key. So is there anything that could be called a true surrogate key? Well what if we took that meaningless CustID and handed it to the customer when they first started doing business with us? In doing that, we would give it meaning. It is now known to us and the customer and would never be given to another customer. We could now use it to identify a customer uniquely in a logical context, so yes, it would serve as a primary key even though it is an artificial (non-natural) attribute. A subtle difference to be sure, but it does make a difference. I can see the question now; Ok the above is all well and good and I now understand the differences, but where does that leave me in developing applications? Well first, like 99% of the developers out there at this point (including myself), you're going to use meaningless keys (note that I did not call it a surrogate though) in your databases. But with understanding the above, you also now realize that it might mean: 1. You might need to maintain additional indexes and/or code to form a constraint based on a primary key - how does your database ensure that you don't have a customer entered twice? 2. You might want to make changes in your user interface - How can I present data to the user as efficiently as possible in order to uniquely identify a specific instance of something? 3. Are there places where a surrogate key can be used? 4. Are there places where I might not want to use a meaningless key? By asking yourself these questions and with the understanding gained from the above, you now should be able to answer them. For example, if we take number four, there is one place where I think it is just down right silly to add a meaningless key; that is in a many to many linking table. Given: tblBooks BookID - Identity - PK BookTitle - Text ISBNNumber - Text tblAuthors AuthorID - Identity - PK LastName - Text FirstName - Text And that many authors can author more then one book and a book can have one or more authors, then you use a linking table to form the many to many relationship like this: tblAuthorsAndBooks - One record per Author / Book combination AuthorBookID - Identity - PK AuthorID - Long - CK1-A BookID - Long - CK1-B "CK" stands for candidate key. Looking at this, including AuthorBookID just for the sake of having a meaningless key is a waste. The AuthorID/BookID combination must be unique, so we need a constraint (usually done with an index) on it anyway. The table should look like this: tblAuthorsAndBooks - One record per Author / Book combination AuthorID - Long - PK-A BookID - Long - PK-B Another place I think it is a waste to add a meaningless key is in a simple lookup table which has a code and a description as the only attributes: tblCreditCodes Code - Text - PK Description - Text The Code in of itself is the primary key and can be used as the key. So why would you want to do this: tblCreditCodes CreditID - Identity - PK Code - Text - CK1 Description - Text Well one reason mentioned for using surrogates or meaningless keys was for performance. If this was going to be a large table and the Code attribute was bigger then a long (4 bytes), then it might make sense to use an identity field in the table. But given that, then maybe I should change my user interface and just present a Description and have a table like this: tblCreditCodes CreditID - Identity - PK Description - Text Again though realizing I will need to maintain an additional index on Description so that I can't enter the same thing twice. As you can see, the important point about all this is that by understanding the underlying concepts vs the real world challenges that we all face can in the end help you design and develop better databases and applications. In conclusion, I hope you found this article enlightening or at the very least given the subject matter and your judgment of my points, entertaining. Comments are more then welcome. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 04, 2010 5:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] New article http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post-3904 I'll get hate mail for the natural/surrogate key comments, but ... that's Okay. 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 Tue Oct 5 08:45:12 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 5 Oct 2010 09:45:12 -0400 Subject: [AccessD] New article References: Message-ID: > > I added some support. Or gasoline? > > http://blogs.techrepublic.com.com/10things/?p=1855 > > Do you really receive _hate_ mails? Who don't such readers comment in > public? ========Thank you Gustav. :) No, I don't really receive "hate mail" -- occasionally, someone does insult me, but it doesn't happen very often. I once had a lady from Japan call me an "idiot" and a few other things, but mostly, I receive very nice mail. People have questions and they're polite about asking or they just want to say thanks because a tip came at a timely moment. When people disagree with me, they are almost always polite about it. About the worst I get in the public forum (the only one right now is techrepublic) is a "this is too simple, you wasted my time..." -- and then the other readers usually chew them up for lunch, so it's actually all very good. :) Susan H. From Lambert.Heenan at chartisinsurance.com Tue Oct 5 08:48:22 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 5 Oct 2010 09:48:22 -0400 Subject: [AccessD] New article In-Reply-To: <8F664907F4AD42F084B2F5FAF7A9EB22@XPS> References: <8F664907F4AD42F084B2F5FAF7A9EB22@XPS> Message-ID: It seems non-members *can* read it. I just logged out of EE and then clicked on the link. The article shows up. Now to find time to read it! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, October 05, 2010 9:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New article Susan, <> Well you certainly have a mix of apples and oranges in there on point #6. And not really to get into it all again, but I posted a link to an EE article I wrote on the topic a while back. Not sure if anyone was able to read it or not, so I've pasted it in below. It looses all the formatting, so some of the points are not emphasized, but you'll get the drift. And you don't get to see the comments made on the article, which you would get on-line. Actually, here's the link again: http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_2041-The-great-PK-debate-Natural-Keys-vs-Surrogates-again.html and I would be interested to hear if non-members can read the article on-line or not. The article basically sums up where we arrived at on this list many years back in terms of discussing primary keys. FWIW, Jim. The great PK debate: Natural Keys vs. Surrogates (again) I titled this "The great PK debate: Natural Keys vs. Surrogates (again)", because on almost any developer list or forum that deals with databases, this topic always comes up at one point or another and usually with very strong opinions on both sides. What started me on this article was that several days ago I tripped over an article on primary key's that was just flat out wrong. After poking around a bit on the net I realized that over the years, a lot of myths and misconceptions have grown up around this topic. It seems that as the years go by, more and more gets published and discussed on this topic, but things only get cloudier. For example, are auto number fields really a surrogate key? Can they function as a primary key? I hope that through this article I will be able to clarify and explain fully enough the answers to questions such as those and hopefully, another great PK debate will not ensue (or at least if it does, you'll have plenty of ammo for the debate). When I was looking at articles out on the net, one thing that struck me about almost everything I read is that not many started off on the right foot. So the first thing to clear up is what relational theory actually is. Relational theory (the big "R" as some call it), was developed by E.F. (Tedd) Codd while working at IBM. His first paper "Derivability, Redundancy, and Consistency of Relations" was published in 1969 as a research paper. While Codd was working on ways to store data in a data bank, what he actually did is in a very scientific and mathematical way describe a theory of data organization, based on a branch of mathematics that deals with sets of data. In a nutshell, it was the overall concept that data could be modelled in a very logical and rigorous way. So R theory is not concerned with how data is physically stored nor does it only apply to computer systems. What R theory is concerned with and only with is the logical organization of data in order to provide information. To make that clearer, I can apply relational theory to data kept on a chalk board, with sticky notes on a wall, or even with pen and paper. With R theory, it is the meaning of the data and how it is organized that is important and nothing else. As you read on, it is imperative that you keep this distinction in mind. That brings us to Misconception #1; relational theory does not exist because of databases; it is something that is applied to them. And, Misconception #2; R theory deals with the relationships between your tables. To a certain extent R Theory is applied to the database to deal with the relationships between the tables, well, when you discuss normalization, which we won't get into here. More fundamentally it applies to something else and is talking about something else, which is a relation, and that is why most articles start off on the wrong foot, failing to recognise the relation. A relation represents a set of data where the given set all pertains to the same type of "thing" or entity. In a relation, the data is laid out in rows and columns. The columns, each which represent an attribute of the entity (describes it in some way), and the rows (which are called tupples) represent a specific instance of a set of attributes in the relation. Now if you stripped away all the mumbo jumbo technical terms and use database terms instead, you would see that I have just described a table. The attributes are the fields and the tupples are the records. So let's start now with where most other articles pick up and that is with the classic example of a customer list. Since our relation is about customers and for the sake of simplicity, we'll stick to the following attributes in the relation: Name Address City State Zip Phone Number One of the fundamental things I didn't mention above about forming a relation is that each tupple needs to be unique. If by combining all the attributes, you cannot uniquely identify a given tupple, then you don't have enough attributes in your relation. It is the combination of one or more attributes, which will uniquely identify a tupple that will become the primary key. Can you have more than one primary key? No! Can you have more than one possible primary key? Certainly and these are called candidate keys, one of which will be designated as the primary key. Each grouping of one or more attributes that can uniquely identify a tupple is called a super key. There are a multitude of super keys in the above and going to the extreme, would be combining every attribute to form a key. But when you work with data, there are a few attributes that a primary key should have: 1. It should be as stable as possible. 2. It should be as minimal as possible. 3. It should be as familiar as possible. Given that, we certainly would not want to use most of the super keys in a relation. Keeping the above in mind, let's take a look at our example. Would name alone suffice to uniquely identify each row? Probably not as you could easily have "ABC Company" in two different cities. How about Name and Address? Well that would be better, but might still not be unique enough. You might have two "ABC Company" on "33 Main street", but in different cities. What about combining Name, Address, City, and State? That might work. How about Name, Address, and Zip? Possibly. What about the phone number by itself? Yes, that would probably work too. So we have three candidate keys, but which one should be the primary key? Again, looking at attributes a good primary key should have, phone number is probably the best bet. Phone numbers typically don't change unless you move so it would be fairly stable and it certainly is shorter then using either of the other candidate two keys. Last, it should be familiar to anyone that works there. But cannot the phone number change? Sure and most would say that this means that it cannot be a primary key! Which of course brings us to Misconception #3; Primary keys can never change. Primary keys can and will change; companies move, phone numbers can change, etc. There is nothing within relational theory that says a primary key cannot change. Again, keep in mind that still we are talking about the logical representation of data. We have not moved on to how it is physically stored or issues with that. Up to this point, we've been discussing what are commonly referred to as Natural Keys. That is the key is derived from the existing attributes. Early database designs used the method above to choose a key for a table. But rather quickly, it was discovered that the computer systems we had could not keep up performance wise as the keys had a tendency to become fairly long (when forming joins between relations). This is the point where surrogate keys came into use. Many believe that a surrogate key should be meaningless and have no connection with the data in the row. This partly came about because of data warehousing. When warehousing data, it becomes imperative that a key assigned to a row never changes. Some database designers even go to the point of saying that a meaningless surrogate should never be displayed to the user. But does a meaningless number used as a surrogate work as a primary key? Is it really a surrogate? Let's look at an example where the company has a customer table that looks like this: tblCustomers CustID - Identity - Primary Key Name - Text Address - Text City - Text State - Text Zip - Text Phone Number - Text So our CustID attribute is now just a number that goes up by one for each new record. It's never given to the customer and it does uniquely identify each row in the table. Now imagine that I'm a customer calling to place an order: Customer: Hi, I'm calling to place an order. Sales Rep: Have you done business with us before? Customer: Yes Sales Rep: Great. I can just pick you from the list..uh, what's the company name? Customer: ABC Company Sales Rep: Oh...well I have six companies listed with that name...where are you located? Customer: New York City, NY Sales Rep: Wow! Believe it or not, there are three ABC Companies in NYC!...what's the address? Customer: 7th avenue and 28th street Sales Rep: OK great...this must be you... is your phone number 210-699-9999? Customer: Yes Sales Rep: OK, what did you want to order? You've just seen in action the difference between a true primary key and one that is not even though it is labelled as a "primary key" in the table design. While CustID does serve to identify the record uniquely within the relation physically, it does not serve to identify a specific customer within the relation logically. In order to do that, the sales rep used the natural attributes of customers to ensure that the correct customer was being chosen. The attributes he used would have been a super key, possibly a candidate key, the real primary key, but it was not the "primary key" key that is currently in the table design. "Surrogate" means "to take the place of", but as we have just seen, a meaningless key does not take the place of a primary key from a logical point of view. Yes, it does uniquely identify a row in a table, but only in a physical sense, not in terms of the data. And how could it, since it has no connection with the data in that row. Which brings us to Misconception #4; A meaningless identity or auto number column can serve as a primary key. A meaningless key is simply a tag or pointer, but in regards to relational theory, it cannot be a primary key. So is there anything that could be called a true surrogate key? Well what if we took that meaningless CustID and handed it to the customer when they first started doing business with us? In doing that, we would give it meaning. It is now known to us and the customer and would never be given to another customer. We could now use it to identify a customer uniquely in a logical context, so yes, it would serve as a primary key even though it is an artificial (non-natural) attribute. A subtle difference to be sure, but it does make a difference. I can see the question now; Ok the above is all well and good and I now understand the differences, but where does that leave me in developing applications? Well first, like 99% of the developers out there at this point (including myself), you're going to use meaningless keys (note that I did not call it a surrogate though) in your databases. But with understanding the above, you also now realize that it might mean: 1. You might need to maintain additional indexes and/or code to form a constraint based on a primary key - how does your database ensure that you don't have a customer entered twice? 2. You might want to make changes in your user interface - How can I present data to the user as efficiently as possible in order to uniquely identify a specific instance of something? 3. Are there places where a surrogate key can be used? 4. Are there places where I might not want to use a meaningless key? By asking yourself these questions and with the understanding gained from the above, you now should be able to answer them. For example, if we take number four, there is one place where I think it is just down right silly to add a meaningless key; that is in a many to many linking table. Given: tblBooks BookID - Identity - PK BookTitle - Text ISBNNumber - Text tblAuthors AuthorID - Identity - PK LastName - Text FirstName - Text And that many authors can author more then one book and a book can have one or more authors, then you use a linking table to form the many to many relationship like this: tblAuthorsAndBooks - One record per Author / Book combination AuthorBookID - Identity - PK AuthorID - Long - CK1-A BookID - Long - CK1-B "CK" stands for candidate key. Looking at this, including AuthorBookID just for the sake of having a meaningless key is a waste. The AuthorID/BookID combination must be unique, so we need a constraint (usually done with an index) on it anyway. The table should look like this: tblAuthorsAndBooks - One record per Author / Book combination AuthorID - Long - PK-A BookID - Long - PK-B Another place I think it is a waste to add a meaningless key is in a simple lookup table which has a code and a description as the only attributes: tblCreditCodes Code - Text - PK Description - Text The Code in of itself is the primary key and can be used as the key. So why would you want to do this: tblCreditCodes CreditID - Identity - PK Code - Text - CK1 Description - Text Well one reason mentioned for using surrogates or meaningless keys was for performance. If this was going to be a large table and the Code attribute was bigger then a long (4 bytes), then it might make sense to use an identity field in the table. But given that, then maybe I should change my user interface and just present a Description and have a table like this: tblCreditCodes CreditID - Identity - PK Description - Text Again though realizing I will need to maintain an additional index on Description so that I can't enter the same thing twice. As you can see, the important point about all this is that by understanding the underlying concepts vs the real world challenges that we all face can in the end help you design and develop better databases and applications. In conclusion, I hope you found this article enlightening or at the very least given the subject matter and your judgment of my points, entertaining. Comments are more then welcome. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 04, 2010 5:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] New article http://blogs.techrepublic.com.com/msoffice/?p=3904&tag=leftCol;post-3904 I'll get hate mail for the natural/surrogate key comments, but ... that's Okay. 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 ssharkins at gmail.com Tue Oct 5 08:48:11 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 5 Oct 2010 09:48:11 -0400 Subject: [AccessD] New article References: <4CAACCCB.13469.23621B85@stuart.lexacorp.com.pg> Message-ID: That's great. Thank you! Susan H. > Me too :-) > > > On 5 Oct 2010 at 8:29, Gustav Brock wrote: > >> Hi Susan >> >> I added some support. Or gasoline? >> >> http://blogs.techrepublic.com.com/10things/?p=1855 >> >> Do you really receive _hate_ mails? Who don't such readers comment in >> public? >> >> /gustav >> >> >> > > -----Original Message----- >> > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- >> > > bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> > > Sent: Monday, October 04, 2010 2:25 PM >> > > To: Access Developers discussion and problem solving >> > > Subject: [AccessD] New article >> > > >> > > >> > > I'll get hate mail for the natural/surrogate key comments, but ... >> > > that's Okay. >> > > >> > > 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 iggy at nanaimo.ark.com Tue Oct 5 10:26:26 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 05 Oct 2010 08:26:26 -0700 Subject: [AccessD] Function with Operators and Conditions Message-ID: <4CAB43A2.6080501@nanaimo.ark.com> Hey All Is it possible to embed an operator or condition in a function that is used as criteria in the query grid. I am sure I have solved this problem before, blame it on old age. What I want to do is change the criteria on the fly. Equal to FndMyDate(= Date variable) Less Than FndMyDate(<55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede> Message-ID: You are most welcome Brad! Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Tuesday, October 05, 2010 01:15 Subject: Re: [AccessD] Final Totals on Access Report to notincludeallreportrows A.D., Thank you very much for the assistance. Your ideas greatly helped to solve the problem that I was working on. I appreciate your help. Sincerely, Brad From rockysmolin at bchacc.com Tue Oct 5 15:03:17 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 5 Oct 2010 13:03:17 -0700 Subject: [AccessD] Got NVIDIA? Message-ID: If you have a machine with an NVIDIA GPU or MCP you might already be a winner! http://www.nvidiasettlement.com/index.html Rocky From df.waters at comcast.net Tue Oct 5 15:09:57 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 5 Oct 2010 15:09:57 -0500 Subject: [AccessD] Got NVIDIA? In-Reply-To: References: Message-ID: Rats! I bought a GPU w/Nvidia - not a whole PC. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 05, 2010 3:03 PM To: 'Access Developers discussion and problem solving' Cc: 'Off Topic' Subject: [AccessD] Got NVIDIA? If you have a machine with an NVIDIA GPU or MCP you might already be a winner! http://www.nvidiasettlement.com/index.html Rocky From rockysmolin at bchacc.com Tue Oct 5 15:26:16 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 5 Oct 2010 13:26:16 -0700 Subject: [AccessD] Got NVIDIA? In-Reply-To: References: Message-ID: Had any trouble with it? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, October 05, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Got NVIDIA? Rats! I bought a GPU w/Nvidia - not a whole PC. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 05, 2010 3:03 PM To: 'Access Developers discussion and problem solving' Cc: 'Off Topic' Subject: [AccessD] Got NVIDIA? If you have a machine with an NVIDIA GPU or MCP you might already be a winner! http://www.nvidiasettlement.com/index.html Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Tue Oct 5 15:37:33 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 5 Oct 2010 13:37:33 -0700 Subject: [AccessD] Function with Operators and Conditions In-Reply-To: <4CAB43A2.6080501@nanaimo.ark.com> References: <4CAB43A2.6080501@nanaimo.ark.com> Message-ID: You can put the function in the expression cell (i.e., Expr1: [MyDate]= FindMyDate(= Date variable) and then put True in the criteria cell. Charlotte Foust On Tue, Oct 5, 2010 at 8:26 AM, Tony Septav wrote: > Hey All > Is it possible to embed an operator or condition in a function that is > used as criteria in the query grid. > I am sure I have solved this problem before, blame it on old age. > What I want to do is change the criteria on the fly. > Equal to ? FndMyDate(= ?Date variable) > Less Than FndMyDate( Show all ? ?FndMyDate(Like *) > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Tue Oct 5 17:29:24 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 5 Oct 2010 17:29:24 -0500 Subject: [AccessD] Got NVIDIA? In-Reply-To: References: Message-ID: <92C169C1315246B3AF1BDBB4064283FE@DanWaters> Nope - works just fine! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 05, 2010 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Got NVIDIA? Had any trouble with it? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, October 05, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Got NVIDIA? Rats! I bought a GPU w/Nvidia - not a whole PC. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 05, 2010 3:03 PM To: 'Access Developers discussion and problem solving' Cc: 'Off Topic' Subject: [AccessD] Got NVIDIA? If you have a machine with an NVIDIA GPU or MCP you might already be a winner! http://www.nvidiasettlement.com/index.html Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeo at appoli.com Tue Oct 5 23:28:27 2010 From: joeo at appoli.com (Joe O'Connell) Date: Wed, 6 Oct 2010 00:28:27 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <008201cb5b6d$b3e25ab0$1ba71010$@net> Message-ID: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell From darren at activebilling.com.au Wed Oct 6 00:04:00 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Wed, 6 Oct 2010 16:04:00 +1100 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> References: <008201cb5b6d$b3e25ab0$1ba71010$@net> <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: <04f201cb6513$e7096e10$b51c4a30$@activebilling.com.au> Hi Joe Google this text "resize images" + VBA Got some interesting results Also lebans (of course) has some stuff to manipulate images http://www.lebans.com/imageclass.htm PictureBoxA97.zip is the updated version Also Google "ImageMagick" - I found some clever and simple code to use that tool to resize images via code http://www.imagemagick.org/script/index.php Can be called via VBA code using its command line Good luck Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, 6 October 2010 3:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Oct 6 00:09:24 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 5 Oct 2010 22:09:24 -0700 Subject: [AccessD] Email From Access Message-ID: <1CD515B3585E4D9184B2E84BB381E942@HAL9005> Dear List: Legacy system using old technology to send email got shaky. Can't remember exactly what the limitation was but I think it was having trouble with Exchange, and, IIRC (50-50 chance) it was using COM. Anyway, we started casting about for a more robust solution and vbSendMail worked real well. Except, registering the dlls is a problem because client intends this to be a commercial system and getting the dlls registered requires admin account. Too complex. He'd like something more user friendly. Something that will work well in the Wise/Sagekey script I genned up to install this bad boy so the user doesn't need to know anything technical. I've used Send Object for simple emailing from some apps but I don't know what the limitations are. What is the best alternative? I'd prefer something without dlls or ocxes. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From stuart at lexacorp.com.pg Wed Oct 6 00:47:16 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 06 Oct 2010 15:47:16 +1000 Subject: [AccessD] Email From Access In-Reply-To: <1CD515B3585E4D9184B2E84BB381E942@HAL9005> References: <1CD515B3585E4D9184B2E84BB381E942@HAL9005> Message-ID: <4CAC0D64.31294.4CC6A4F@stuart.lexacorp.com.pg> How about a call to Blat.dll or Shelling to Blat.exe. Blat.dll is a real DLL so doesn't require registration. -- Stuart On 5 Oct 2010 at 22:09, Rocky Smolin wrote: > Dear List: > > Legacy system using old technology to send email got shaky. Can't > remember exactly what the limitation was but I think it was having > trouble with Exchange, and, IIRC (50-50 chance) it was using COM. > > Anyway, we started casting about for a more robust solution and > vbSendMail worked real well. Except, registering the dlls is a > problem because client intends this to be a commercial system and > getting the dlls registered requires admin account. Too complex. > He'd like something more user friendly. Something that will work > well in the Wise/Sagekey script I genned up to install this bad boy so > the user doesn't need to know anything technical. > > I've used Send Object for simple emailing from some apps but I don't > know what the limitations are. > > What is the best alternative? I'd prefer something without dlls or > ocxes. > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > From stuart at lexacorp.com.pg Wed Oct 6 01:01:43 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 06 Oct 2010 16:01:43 +1000 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> References: <008201cb5b6d$b3e25ab0$1ba71010$@net>, <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: <4CAC10C7.25288.4D9A359@stuart.lexacorp.com.pg> Definitely ImageMagick www.imagemagick.org/ I'm using it to do this sort of thing regularly form website content generators in Access. The following function takes the name of an image which is currently stored in a "Photos" directory located with the back-end database and created a standard sized image in a directory called "webphotos". You can put any appropriate commands in strEffect to determine the outcome. I use a function Shellwait() to make sure that the picture is created before the function returns so that further processing (in this case FTP uploading of the photo) works. You can do just about anything with Imagemagick commands, lots of examples at http://www.imagemagick.org/Usage/ Function CreateWebPic(Image As String) As Boolean Dim strConvert As String Dim strShell As String Dim strWebPic As String Dim stroriginal As String Dim strEffect As String strConvert = """c:\program files\imagemagick-6.5.3-q16\Convert"" " strEffect = " -thumbnail 600x600 " stroriginal = """" & BEDir() & "photos\" & Image & """" strWebPic = """" & BEDir & "photos\webphotos\" & Image & """" strShell = strConvert & stroriginal & strEffect & strWebPic ShellWait strShell, vbHide End Function -- Stuart On 6 Oct 2010 at 0:28, Joe O'Connell wrote: > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Wed Oct 6 01:11:38 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 5 Oct 2010 23:11:38 -0700 Subject: [AccessD] Email From Access In-Reply-To: <4CAC0D64.31294.4CC6A4F@stuart.lexacorp.com.pg> References: <1CD515B3585E4D9184B2E84BB381E942@HAL9005> <4CAC0D64.31294.4CC6A4F@stuart.lexacorp.com.pg> Message-ID: Thanks. I'll check it out. Heard tell of it here on the list but never had a need for it. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, October 05, 2010 10:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email From Access How about a call to Blat.dll or Shelling to Blat.exe. Blat.dll is a real DLL so doesn't require registration. -- Stuart On 5 Oct 2010 at 22:09, Rocky Smolin wrote: > Dear List: > > Legacy system using old technology to send email got shaky. Can't > remember exactly what the limitation was but I think it was having > trouble with Exchange, and, IIRC (50-50 chance) it was using COM. > > Anyway, we started casting about for a more robust solution and > vbSendMail worked real well. Except, registering the dlls is a > problem because client intends this to be a commercial system and > getting the dlls registered requires admin account. Too complex. > He'd like something more user friendly. Something that will work > well in the Wise/Sagekey script I genned up to install this bad boy so > the user doesn't need to know anything technical. > > I've used Send Object for simple emailing from some apps but I don't > know what the limitations are. > > What is the best alternative? I'd prefer something without dlls or > ocxes. > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 jimdettman at verizon.net Wed Oct 6 08:51:24 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 06 Oct 2010 09:51:24 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> References: <008201cb5b6d$b3e25ab0$1ba71010$@net> <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: <3F0DF758FA384340A1F4A89549305939@XPS> Joe, A couple of the guys on EE use DBPix: http://www.ammara.com/ It has a host of features and has a free trail download that's fully functional. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, October 06, 2010 12:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeo at appoli.com Wed Oct 6 08:54:29 2010 From: joeo at appoli.com (Joe O'Connell) Date: Wed, 6 Oct 2010 09:54:29 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <04f201cb6513$e7096e10$b51c4a30$@activebilling.com.au> Message-ID: <1CF20DB644BE124083B31638E5D5C0236B7AE2@exch2.Onappsad.net> Darren and Stuart, Thanks for the suggestions. ImageMagick appears to do absolutely everything possible with a graphic, it will be fun to play with. Joe -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active Billing Sent: Wednesday, October 06, 2010 1:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resize pictures Hi Joe Google this text "resize images" + VBA Got some interesting results Also lebans (of course) has some stuff to manipulate images http://www.lebans.com/imageclass.htm PictureBoxA97.zip is the updated version Also Google "ImageMagick" - I found some clever and simple code to use that tool to resize images via code http://www.imagemagick.org/script/index.php Can be called via VBA code using its command line Good luck Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, 6 October 2010 3:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeo at appoli.com Wed Oct 6 09:24:10 2010 From: joeo at appoli.com (Joe O'Connell) Date: Wed, 6 Oct 2010 10:24:10 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <3F0DF758FA384340A1F4A89549305939@XPS> Message-ID: <1CF20DB644BE124083B31638E5D5C0236B7AE4@exch2.Onappsad.net> Jim, The demo rescales pictures when displaying on forms or reports. I need to resize them to save disk space and minimize time to load into forms and reports. I could not see how this is accomplished in dbpix. As an example one of the pictures is 4,320 x 3,240 pixels needing 5,554KB to store it. Using the resize tool in Microsoft Office Picture Manager, the picture can be reduced to 518 x 389 pixels needing 84KB to store it. For our purposes this reduced picture quality is sufficient. Can dbpix be used to resize the pictures? Joe -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, October 06, 2010 9:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resize pictures Joe, A couple of the guys on EE use DBPix: http://www.ammara.com/ It has a host of features and has a free trail download that's fully functional. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, October 06, 2010 12:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Oct 6 09:33:53 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 06 Oct 2010 16:33:53 +0200 Subject: [AccessD] Resize pictures Message-ID: Hi Joe For something quite similar we used ThumbNailer from Small Animals. Not free but very cheap: http://www.smalleranimals.com/thumb.htm It worked very well. It features a GUI which is great for testing and command line control to be used from the running app. /gustav >>> joeo at appoli.com 06-10-2010 06:28 >>> I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell From iggy at nanaimo.ark.com Wed Oct 6 09:13:24 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 06 Oct 2010 07:13:24 -0700 Subject: [AccessD] Function with Operators and Conditions In-Reply-To: References: <4CAB43A2.6080501@nanaimo.ark.com> Message-ID: <4CAC8404.7060407@nanaimo.ark.com> Hey Charlotte Thanks But if I try to put an operator in the function ie. MyDate="<#" & Me!StartDate & "#" FndMyDate=MyDate And put FndMyDate() in the Query Grid I get the error message "Data type mismatch in criteria expression" No biggy I just used sqls for the list boxes rowsource. Charlotte Foust wrote: >You can put the function in the expression cell (i.e., Expr1: >[MyDate]= FindMyDate(= Date variable) and then put True in the >criteria cell. > >Charlotte Foust > >On Tue, Oct 5, 2010 at 8:26 AM, Tony Septav wrote: > > >>Hey All >>Is it possible to embed an operator or condition in a function that is >>used as criteria in the query grid. >>I am sure I have solved this problem before, blame it on old age. >>What I want to do is change the criteria on the fly. >>Equal to FndMyDate(= Date variable) >>Less Than FndMyDate(>Show all FndMyDate(Like *) >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > From jimdettman at verizon.net Wed Oct 6 09:43:51 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 06 Oct 2010 10:43:51 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AE4@exch2.Onappsad.net> References: <3F0DF758FA384340A1F4A89549305939@XPS> <1CF20DB644BE124083B31638E5D5C0236B7AE4@exch2.Onappsad.net> Message-ID: Joe, <> See "ImageResample" under methods of the Reference Guide found here: http://www.ammara.com/support/help/help.html There are also sample DB's. This one is probably close to what you want: http://www.ammara.com/support/samples/access-linking-images.html I haven't used this control myself, but a couple of the Experts on EE have been using it for a for a few years and have spoken highly of it. Of course, your mileage may vary, so download the free trial and play around with it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, October 06, 2010 10:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resize pictures Jim, The demo rescales pictures when displaying on forms or reports. I need to resize them to save disk space and minimize time to load into forms and reports. I could not see how this is accomplished in dbpix. As an example one of the pictures is 4,320 x 3,240 pixels needing 5,554KB to store it. Using the resize tool in Microsoft Office Picture Manager, the picture can be reduced to 518 x 389 pixels needing 84KB to store it. For our purposes this reduced picture quality is sufficient. Can dbpix be used to resize the pictures? Joe -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, October 06, 2010 9:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resize pictures Joe, A couple of the guys on EE use DBPix: http://www.ammara.com/ It has a host of features and has a free trail download that's fully functional. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, October 06, 2010 12:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Wed Oct 6 10:07:58 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 6 Oct 2010 08:07:58 -0700 Subject: [AccessD] Function with Operators and Conditions In-Reply-To: <4CAC8404.7060407@nanaimo.ark.com> References: <4CAB43A2.6080501@nanaimo.ark.com> <4CAC8404.7060407@nanaimo.ark.com> Message-ID: MyDate has to be a field in the query and you don't do it like that. The expression is telling the query engine to compare the field MyDate to the result of the function FindMyDate(StartDate). Where are you trying to do this? Me!StartDate suggests you're doing something in a form. You can't just hash them together like that. If you're doing it in a query the suggestion I made originally should work. If you're doing it in code, post the code because it won't work the same way. Charlotte Foust On Wed, Oct 6, 2010 at 7:13 AM, Tony Septav wrote: > Hey Charlotte > Thanks > But if I try to put an operator in the function > ie. MyDate="<#" & Me!StartDate & "#" > FndMyDate=MyDate > And put FndMyDate() in the Query Grid > I get the error message "Data type mismatch in criteria expression" > No biggy I just used sqls for the list boxes rowsource. > > Charlotte Foust wrote: > >>You can put the function in the expression cell (i.e., Expr1: >>[MyDate]= FindMyDate(= Date variable) and then put True in the >>criteria cell. >> >>Charlotte Foust >> >>On Tue, Oct 5, 2010 at 8:26 AM, Tony Septav wrote: >> >> >>>Hey All >>>Is it possible to embed an operator or condition in a function that is >>>used as criteria in the query grid. >>>I am sure I have solved this problem before, blame it on old age. >>>What I want to do is change the criteria on the fly. >>>Equal to ? FndMyDate(= ?Date variable) >>>Less Than FndMyDate(>>Show all ? ?FndMyDate(Like *) >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >> >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Wed Oct 6 11:03:16 2010 From: dw-murphy at cox.net (dw-murphy at cox.net) Date: Wed, 6 Oct 2010 9:03:16 -0700 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: <20101006120316.SSEK8.99633.imail@fed1rmwml4101> Joe, Take a look at Infranview. I use it for batch processing. Have not run it from code but believe it is possible. ---- Joe O'Connell wrote: > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 6 11:23:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 06 Oct 2010 12:23:28 -0400 Subject: [AccessD] Multi-core madness Message-ID: <4CACA280.9070302@colbyconsulting.com> I have never had more than 4 cores at my disposal. On the old (SQL) server I had two cores dedicated to SQL Server. On the new system I currently have 8 cores total and 6 of those dedicated to SQL Server. In the past I would do things like build a multi-field index on a 50 million record table and it would max out the two cores. I pretty much couldn't do anything else. Today I am building multi-field indexes on an "off-line" copy of my database from hell. Task manager tells me it is using about 40% of the total processor power, however the two cores dedicated to the system are not doing much. The other 6 cores are chugging away somewhere (visually) just under 50%. I needed to BCP (using the internal export wizard) about 30 million PKs and email addresses to a csv file. When I started that running, Task manager informed me that I was using just under 60% of the available processor power, but the first two cores (dedicated to Windows) started chugging away, presumably doing file IO and the like. My 6 SQL Server cores jumped up to around 65%. BTW, the export process ripped it out pretty darned fast. I didn't time it but the total took a minute or so. So I was able to get two tasks going, and still had plenty of horsepower left over. I then installed the 64 bit WinRar, which can use multiple threads, and had it compress the resulting text file as SQL Server continued building indexes. All very smooth. If I get no "bandwidth complaints", I will continue to post occasional emails regarding how long it takes to do stuff vs the old server. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Wed Oct 6 11:34:29 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 06 Oct 2010 18:34:29 +0200 Subject: [AccessD] Resize pictures Message-ID: Hi Doug and Joe IrfanView it is ... It can, but when I tested it years ago it couldn't resize a rectangular picture - portrait or landscape - to automatic best fit within a given square. However, today it may be able to do so. /gustav >>> dw-murphy at cox.net 06-10-2010 18:03 >>> Joe, Take a look at Infranview. I use it for batch processing. Have not run it from code but believe it is possible. ---- Joe O'Connell wrote: > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell From andy at minstersystems.co.uk Wed Oct 6 11:36:32 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 6 Oct 2010 17:36:32 +0100 Subject: [AccessD] Resize pictures In-Reply-To: <20101006120316.SSEK8.99633.imail@fed1rmwml4101> Message-ID: I think that should be Irfanview, Doug Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net Sent: 06 October 2010 17:03 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resize pictures Joe, Take a look at Infranview. I use it for batch processing. Have not run it from code but believe it is possible. ---- Joe O'Connell wrote: > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Oct 6 13:37:31 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 6 Oct 2010 12:37:31 -0600 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> References: <008201cb5b6d$b3e25ab0$1ba71010$@net>, <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: We store pictures by the 10s of thousands annually for construction as well. I'm usually leery of down sampling captured files. In my opinion, there in no point in going higher than about a 5 megapixel sensor with a 1/2.5" sensor typical of most compact cameras. These typically give us 1.5 to 2 megapixel JPG images. The problem is that consumers are stupidly driving demand for higher megapixel cameras and it's becoming impossible to get a compact camera that provides a useful sized image. The system resolution is the reciprocal of the sum of the reciprocals of the factors leading to resolution. The small sensors result in small physical apertures that result in diffraction issues and if you take into account the physical size of dust in relation to sensor size, both on optics and on the sensor, you get a dog's breakfast. Taking the sensor resolution, the lens resolution and the monitor resolution and summing their reciprocals and factoring in some interpolation for the conversions, it turns out that a lens that is capable of 100 lines/mm of resolution will yeild a system resolution of no better than 90 lines/mm whether you have 5 megapixels or a million megapixels. No matter if you have a billion megapixels, the image can never quite reach 100 limes/mm, and less at smaller diffraction limited apertures. Another factor with the small sensors is the amount of digital noise in low light situations. Given a pixel that has 8 times the area on a larger sensor, the chances of 1 random photon toggling a level matches 8 random photos on the larger sensor. The amount of image generated by noise is a fraction of the noise as the sensor size increases. Downsizing an image by an integer ratio cuts out on interpolation fuzziness whereas downsizing by a factor 1.5 or 2.3 is going to make more of a mess of the apparent resolution of the resized image. An exagerated example of this is what happens when you take an LCD set for 1024*768 and change it to 640*480. Far better to take 1200*1600 to 600*800 with an even number ratio. Given that construction documentation is such an important element of the business these days, we have outsourced much of the documentation to a company known a Multivista. They take pictures on a specified schedule from points in specified directions all mapped on a construction blue print. Your interface is to click on a point on the blue print, choose a direction and day and you can see where the wiring was laid, on which day, on which floor... We've used the services where circumstances warrant, for example, on a number of exterior masonry rehab projects. We've adopted some of the concepts you can see at multivista.com for our own documentation philosophy. They use Nikon DSLRs exclusively and high megapixels matter with DSLRs. I've standardized on Canon A590IS compact cameras on the last round of purchases as an inexpensive camera to issue to sites. Although it is an 8 megapixel camera and not as rugged as water proof, dust proof and droppable cameras, they still don't survive and cost twice as much. I've issued instructions to ensure the camera date/time is correct, audio record the photographer name on the SD card every time a photographer takes the camera and set a medium resolution right at the camera options menu level. I find the camera resolution interpolation to JPG is generally superior to post camera processing. You need the name of the photographer so he can swear the image is a fair representation of the scene he observed should you ever want to rely on the photo as evidence. Although a 5 megapixel sensor would be superior in terms of image quality and noise to the 8 megapixels of the Canon, we wanted a camera that would take double A batteries, standard SD cards, have basic video capability, audio notes, a reasonable optical zoom (4X) and optical image stabilization. Eight megapixels was the lowest count that we could get in a reasonably well built compact reasonably featured camera and I'd be happer to pay a bit more if only we could get it with 5 megapixels. I think that pretty soon we will be able to get phone cameras to the point that they will meet our documentation needs. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Wed, 6 Oct 2010 00:28:27 -0400 > From: joeo at appoli.com > To: accessd at databaseadvisors.com > Subject: [AccessD] Resize pictures > > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell From stuart at lexacorp.com.pg Wed Oct 6 15:31:04 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 07 Oct 2010 06:31:04 +1000 Subject: [AccessD] Resize pictures In-Reply-To: References: Message-ID: <4CACDC88.19677.7F58EB1@stuart.lexacorp.com.pg> Still a problem. That was the limitation which set me looking for another CLI tool and it's what the function I posted earlier does using Imagemagick I use and recommend Irfanview all the time for GUI use, but Imagemagick iby far the better tool for manipulating images from code such as VBA. -- Stuart On 6 Oct 2010 at 18:34, Gustav Brock wrote: > Hi Doug and Joe > > IrfanView it is ... > > It can, but when I tested it years ago it couldn't resize a > rectangular picture - portrait or landscape - to automatic best fit > within a given square. However, today it may be able to do so. > > /gustav > > > >>> dw-murphy at cox.net 06-10-2010 18:03 >>> > Joe, > > Take a look at Infranview. I use it for batch processing. Have not run > it from code but believe it is possible. > > > ---- Joe O'Connell wrote: > > I am developing an A2003 application for a division of a > > construction company that installs guardrails on highways. They > > have long term contracts with the Department of Transportation to > > fix/repair/replace guardrails that have been damaged. Part of the > > documentation that is required is to provide a "before" and an > > "after" picture for all repairs. > > > > The application lets the user browse the memory card for the > > pictures and then copies them to the computer's disk. The original > > size of the pictures is 5-6mb. Not only will a lot of disk space be > > required to store the pictures, but pictures of this size take a lot > > of time to be scaled for forms and reports. Due to the number of > > pictures processed each day, it is not feasible for the user to > > manually resize the pictures before uploading. What I would like > > to do is to resize the pictures during this transfer process to > > about 10% of their original size. > > > > Any suggestions or code snippets to resize the pictures are greatly > > appreciated. > > > > Joe O'Connell > > > > -- > 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 Oct 6 15:46:35 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 07 Oct 2010 06:46:35 +1000 Subject: [AccessD] Resize pictures In-Reply-To: References: <008201cb5b6d$b3e25ab0$1ba71010$@net>, <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net>, Message-ID: <4CACE02B.12901.803C589@stuart.lexacorp.com.pg> I'm currently looking at buying a new reasonable priced compact camera. You've summed up my requirements exactly. One of the key factors for me is decent low light performance (it's mainly for the missus and she seems to take lots of photos at night when she is out with "the girls" and the higher the MP, in on a little 1/2.3 sensor the more low-light noise. But getting an 8MP camera is now very difficult. The push for more and and more MP has got ridiculous - it' all 14MP now - who needs that for holiday snaps when you will probably download then to a PC and never print 99.9% of them - and if you do, you're not going to be printing posters. On 6 Oct 2010 at 12:37, Jurgen Welz wrote: > > I've standardized on Canon A590IS compact cameras on the last round of > purchases as an inexpensive camera to issue to sites. ... > Although a 5 megapixel sensor would be > superior in terms of image quality and noise to the 8 megapixels of > the Canon, we wanted a camera that would take double A batteries, > standard SD cards, have basic video capability, audio notes, a > reasonable optical zoom (4X) and optical image stabilization. Eight > megapixels was the lowest count that we could get in a reasonably well > built compact reasonably featured camera and I'd be happer to pay a > bit more if only we could get it with 5 megapixels. I think that > pretty soon we will be able to get phone cameras to the point that > they will meet our documentation needs. > > From delam at zyterra.com Wed Oct 6 16:53:18 2010 From: delam at zyterra.com (Debbie) Date: Wed, 6 Oct 2010 16:53:18 -0500 Subject: [AccessD] Fast clicking Message-ID: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com> I have a form in access 2007 that has a lot of code that runs when certain events happen. These take several seconds to complete and occasionally if a user changes thier mind or gets impatient and clicks elsewhere before the code finishes I get errors and problems. For example: I have an option box that shows or hides various subforms. Click between then quickly and before too long you will get stuck on one option and can't change it without changing something else in the form then going back. Still doing my best to educate fast clicking out of them, especially on this form, but ideally I need some way to keep new entry from happening while code is running. I have just experimented with an inconspicuous modal form that opens on code firing and closes when it is done, but still get the option button sticking. Either I need a different solution, or the problem is not what I think it is. Anyone have any ideas? Debbie Sent from my iPhone From stuart at lexacorp.com.pg Wed Oct 6 17:12:19 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 07 Oct 2010 08:12:19 +1000 Subject: [AccessD] Fast clicking In-Reply-To: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com> References: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com> Message-ID: <4CACF443.5883.8524229@stuart.lexacorp.com.pg> First thing I'd do is wrap the event code in Docmd.Hourglass True ... Docmd.Hourglass False to discourage them from clicking. If that is not enough, I'd have a sub which steps through all the controls on the form and either enables or disables them based on a parameter. Then wrap the long running code in two calls to that function. -- Stuart On 6 Oct 2010 at 16:53, Debbie wrote: > I have a form in access 2007 that has a lot of code that runs when > certain events happen. These take several seconds to complete and > occasionally if a user changes thier mind or gets impatient and clicks > elsewhere before the code finishes I get errors and problems. > > For example: I have an option box that shows or hides various > subforms. Click between then quickly and before too long you will get > stuck on one option and can't change it without changing something > else in the form then going back. > > Still doing my best to educate fast clicking out of them, especially > on this form, but ideally I need some way to keep new entry from > happening while code is running. I have just experimented with an > inconspicuous modal form that opens on code firing and closes when it > is done, but still get the option button sticking. Either I need a > different solution, or the problem is not what I think it is. Anyone > have any ideas? > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Wed Oct 6 18:11:29 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 6 Oct 2010 18:11:29 -0500 Subject: [AccessD] Fast clicking In-Reply-To: <4CACF443.5883.8524229@stuart.lexacorp.com.pg> References: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com> <4CACF443.5883.8524229@stuart.lexacorp.com.pg> Message-ID: <061BAFA9315540A9A84359DB9FF6E996@DanWaters> In addition, you should wrap the event code in: DoCmd.Hourglass True Application.Echo False ... Application.Echo True DoCmd.Hourglass False This will freeze the screen and prevent them from clicking anywhere else until Echo = True. Your code may run faster because there will be no screen changes. When you use Application.Echo False you must set up error trapping in that procedure. Then place Application.Echo True into the code that runs after an error happens. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, October 06, 2010 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fast clicking First thing I'd do is wrap the event code in Docmd.Hourglass True ... Docmd.Hourglass False to discourage them from clicking. If that is not enough, I'd have a sub which steps through all the controls on the form and either enables or disables them based on a parameter. Then wrap the long running code in two calls to that function. -- Stuart On 6 Oct 2010 at 16:53, Debbie wrote: > I have a form in access 2007 that has a lot of code that runs when > certain events happen. These take several seconds to complete and > occasionally if a user changes thier mind or gets impatient and clicks > elsewhere before the code finishes I get errors and problems. > > For example: I have an option box that shows or hides various > subforms. Click between then quickly and before too long you will get > stuck on one option and can't change it without changing something > else in the form then going back. > > Still doing my best to educate fast clicking out of them, especially > on this form, but ideally I need some way to keep new entry from > happening while code is running. I have just experimented with an > inconspicuous modal form that opens on code firing and closes when it > is done, but still get the option button sticking. Either I need a > different solution, or the problem is not what I think it is. Anyone > have any ideas? > > 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 From stuart at lexacorp.com.pg Wed Oct 6 20:12:27 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 07 Oct 2010 11:12:27 +1000 Subject: [AccessD] Fast clicking In-Reply-To: <061BAFA9315540A9A84359DB9FF6E996@DanWaters> References: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com>, <4CACF443.5883.8524229@stuart.lexacorp.com.pg>, <061BAFA9315540A9A84359DB9FF6E996@DanWaters> Message-ID: <4CAD1E7B.12797.8F72E30@stuart.lexacorp.com.pg> Just goes to show there is an exception to every rule. This old dog just learnt a new trick!!!! How come I never came across that before? :-) -- Stuart On 6 Oct 2010 at 18:11, Dan Waters wrote: > In addition, you should wrap the event code in: > > DoCmd.Hourglass True > Application.Echo False > ... > Application.Echo True > DoCmd.Hourglass False > > > This will freeze the screen and prevent them from clicking anywhere > else until Echo = True. Your code may run faster because there will > be no screen changes. > > When you use Application.Echo False you must set up error trapping in > that procedure. Then place Application.Echo True into the code that > runs after an error happens. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Wednesday, October 06, 2010 5:12 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Fast > clicking > > First thing I'd do is wrap the event code in > > Docmd.Hourglass True > ... > Docmd.Hourglass False > > to discourage them from clicking. > > If that is not enough, I'd have a sub which steps through all the > controls on the form and either enables or disables them based on a > parameter. Then wrap the long running code in two calls to that > function. > > -- > Stuart > > On 6 Oct 2010 at 16:53, Debbie wrote: > > > I have a form in access 2007 that has a lot of code that runs when > > certain events happen. These take several seconds to complete and > > occasionally if a user changes thier mind or gets impatient and > > clicks > > elsewhere before the code finishes I get errors and problems. > > > > For example: I have an option box that shows or hides various > > subforms. Click between then quickly and before too long you will > > get stuck on one option and can't change it without changing > > something else in the form then going back. > > > > Still doing my best to educate fast clicking out of them, especially > > on this form, but ideally I need some way to keep new entry from > > happening while code is running. I have just experimented with an > > inconspicuous modal form that opens on code firing and closes when > > it is done, but still get the option button sticking. Either I need > > a different solution, or the problem is not what I think it is. > > Anyone have any ideas? > > > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Oct 6 21:20:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 06 Oct 2010 22:20:14 -0400 Subject: [AccessD] Apples to oranges - take 2 Message-ID: <4CAD2E5E.20101@colbyconsulting.com> OK, so I have two databases, each with a single table. BTW, these are two of my main tables, used all of the time in orders. HSID - otherwise known as the database from hell, 51157068 records, ~560 fields. HSIDAllAdults is a database where up to three adult names were lifted out of fields in HSID and placed in a table with a PK_HSID field pointing back to the HSID record from which the information came. Thus HSIDAllAdults is child to HSID in a manner of speaking (has a FK back to the PKID from HSID). HSIDAllAdults has about 67564677 million records, 27 fields. Each table has a PKID which is autonumber and a unique clustered index on the PKID. HSID is demographic information such as income bracket, ChildInAgeGroup_XXX, HasDog etc. and has a handful of indexes on the most commonly used demographics fields. HSIAllAdults has name / address / gender / position (in HSID) fields and has three indexes on it - NameAddr, Hash and one other. So... I have a copy of each of these databases on rotating media. I then backed up the rotating media file and restored on the SSD, so I have a copy of each database in two places. I do this BTW because the SSD is a Raid 0 as well as SSD, and I am worried that if I do too much writing on the SSD I will wear it out - as in hot spot updates due to index updates etc. Thus I will be doing maintenance on the rotating media and just copying the resulting db out to SSD for every day use. Anyway, this allows me to do A/B comparisons of common queries. For the purpose of this test / email, I joined HSID to HSIDAllAdults on the FK in HSIDAllAdults, then did a count of the PK in HSIDAllAdults Group By MOB (mail order buyer, one of the demographics fields in HSID). So the SSD query looks like: SELECT _DataHSID.dbo.tblHSID.Mail_Order_BUYER, COUNT(dbo.tblAllAdultNameAddr.PK) AS Cnt FROM dbo.tblAllAdultNameAddr INNER JOIN _DataHSID.dbo.tblHSID ON dbo.tblAllAdultNameAddr.PKHSID = _DataHSID.dbo.tblHSID.PKID GROUP BY _DataHSID.dbo.tblHSID.Mail_Order_BUYER And runs in 30 seconds, producing the following results: NULL 19702461 1 19422841 2 28439375 The rotating media query looks as follows: SELECT _DataHSID_OffLine.dbo.tblHSID.Mail_Order_BUYER, COUNT(dbo.tblAllAdultNameAddr.PK) AS Cnt FROM dbo.tblAllAdultNameAddr INNER JOIN _DataHSID_OffLine.dbo.tblHSID ON dbo.tblAllAdultNameAddr.PKHSID = _DataHSID_OffLine.dbo.tblHSID.PKID GROUP BY _DataHSID_OffLine.dbo.tblHSID.Mail_Order_BUYER And runs in 1:50, producing the following results: NULL 19702461 1 19422841 2 28439375 The resulting count is identical (as expected), with rotating media taking almost 4 times as long to complete as the SSD. I will be storing these two queries in their respective databases (rotating / SSD) so that I can use them to test again when I add the second physical CPU chip and additional memory. BTW this was a pretty simple query as things go. A more normal query is to pull Name / address and a ValidAddress field out of HSIDAllAdults, filter the ValidAddr using something like In('V','E'), joining that to HSID and pulling out typically 4 to 6 fields from HSID to use in where clauses. So I am typically joining two tables of 50 million and 65 million records and then filtering on 4-8 fields, then actually capturing the resulting names / addresses and writing these into an order table. Depending on the criteria, I will pull anywhere from a 100 K or so up to 5 million or more names into the order table. The order table is created on the fly in an order database created just for that order. The order table will be on rotating media. Or I might eventually go buy another SSD to use specifically for building these order databases. Then if the SSD wears out I can just replace it with another. I currently spend a lot of time, hours at a time building these orders, running the queries, and manipulating the results to get the final export file. I am hoping to radically reduce my time twiddling my thumbs waiting for SQL Server. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Oct 6 21:33:34 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 06 Oct 2010 22:33:34 -0400 Subject: [AccessD] Apples to oranges take 2a Message-ID: <4CAD317E.6040700@colbyconsulting.com> Same two files, rotating / SSD. I was just curious whether I had any HSIDAllAdult records no longer found in HSID. So this is an outer join where HSID is null, pulling the PK from HSIDAllAdult. The results BTW were an empty set (no records found). The query: SELECT dbo.tblAllAdultNameAddr.PK FROM dbo.tblAllAdultNameAddr LEFT OUTER JOIN _DataHSID_OffLine.dbo.tblHSID ON dbo.tblAllAdultNameAddr.PKHSID = _DataHSID_OffLine.dbo.tblHSID.PKID WHERE (_DataHSID_OffLine.dbo.tblHSID.PKID IS NULL) and a similar one for SSD The SSD finished in 44 seconds. The rotating media in 1:42 -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Wed Oct 6 22:25:34 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 6 Oct 2010 20:25:34 -0700 Subject: [AccessD] Email From Access In-Reply-To: References: <1CD515B3585E4D9184B2E84BB381E942@HAL9005> <4CAC0D64.31294.4CC6A4F@stuart.lexacorp.com.pg> Message-ID: Hi Rocky: Stuart introduced me on to BLAT exe version and it works excellently and as stable as a rock...If it doesn't work check the ISP. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 05, 2010 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email From Access Thanks. I'll check it out. Heard tell of it here on the list but never had a need for it. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, October 05, 2010 10:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email From Access How about a call to Blat.dll or Shelling to Blat.exe. Blat.dll is a real DLL so doesn't require registration. -- Stuart On 5 Oct 2010 at 22:09, Rocky Smolin wrote: > Dear List: > > Legacy system using old technology to send email got shaky. Can't > remember exactly what the limitation was but I think it was having > trouble with Exchange, and, IIRC (50-50 chance) it was using COM. > > Anyway, we started casting about for a more robust solution and > vbSendMail worked real well. Except, registering the dlls is a > problem because client intends this to be a commercial system and > getting the dlls registered requires admin account. Too complex. > He'd like something more user friendly. Something that will work > well in the Wise/Sagekey script I genned up to install this bad boy so > the user doesn't need to know anything technical. > > I've used Send Object for simple emailing from some apps but I don't > know what the limitations are. > > What is the best alternative? I'd prefer something without dlls or > ocxes. > > > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 Lambert.Heenan at chartisinsurance.com Thu Oct 7 08:10:20 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 7 Oct 2010 09:10:20 -0400 Subject: [AccessD] Fast clicking In-Reply-To: <4CAD1E7B.12797.8F72E30@stuart.lexacorp.com.pg> References: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com>, <4CACF443.5883.8524229@stuart.lexacorp.com.pg>, <061BAFA9315540A9A84359DB9FF6E996@DanWaters> <4CAD1E7B.12797.8F72E30@stuart.lexacorp.com.pg> Message-ID: Make sure your error handler includes Application.Echo True Otherwise your users will get real confused if any runtime error happens. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, October 06, 2010 9:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fast clicking Just goes to show there is an exception to every rule. This old dog just learnt a new trick!!!! How come I never came across that before? :-) -- Stuart On 6 Oct 2010 at 18:11, Dan Waters wrote: > In addition, you should wrap the event code in: > > DoCmd.Hourglass True > Application.Echo False > ... > Application.Echo True > DoCmd.Hourglass False > > > This will freeze the screen and prevent them from clicking anywhere > else until Echo = True. Your code may run faster because there will > be no screen changes. > > When you use Application.Echo False you must set up error trapping in > that procedure. Then place Application.Echo True into the code that > runs after an error happens. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Wednesday, October 06, 2010 5:12 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Fast > clicking > > First thing I'd do is wrap the event code in > > Docmd.Hourglass True > ... > Docmd.Hourglass False > > to discourage them from clicking. > > If that is not enough, I'd have a sub which steps through all the > controls on the form and either enables or disables them based on a > parameter. Then wrap the long running code in two calls to that > function. > > -- > Stuart > > On 6 Oct 2010 at 16:53, Debbie wrote: > > > I have a form in access 2007 that has a lot of code that runs when > > certain events happen. These take several seconds to complete and > > occasionally if a user changes thier mind or gets impatient and > > clicks elsewhere before the code finishes I get errors and > > problems. > > > > For example: I have an option box that shows or hides various > > subforms. Click between then quickly and before too long you will > > get stuck on one option and can't change it without changing > > something else in the form then going back. > > > > Still doing my best to educate fast clicking out of them, especially > > on this form, but ideally I need some way to keep new entry from > > happening while code is running. I have just experimented with an > > inconspicuous modal form that opens on code firing and closes when > > it is done, but still get the option button sticking. Either I need > > a different solution, or the problem is not what I think it is. > > Anyone have any ideas? > > > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 7 09:15:48 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 7 Oct 2010 19:45:48 +0530 Subject: [AccessD] Function with Operators and Conditions References: <4CAB43A2.6080501@nanaimo.ark.com> Message-ID: <1985D385CC8E42FCAA58FE9ABB72872A@personal4a8ede> Tony, Apparently, you wish to embed a criteria string (represented by a function acting as wrapper for a global variable) within the SQL of a saved query. The objective sought by you could be realized by enclosing the said function in Eval() function in SQL, adopting either of the two styles as follows: A - The function in question provides just the right hand portion of criteria clause, including the comparison operators (>, <, = etc). In this approach, handling of field name featuring in the comparison, needs special care as follows: A.1 - Date type field: Applying "mm/dd/yyyy" format on date type field is found necessary as Eval() function in the query won't be able to resolve non-numeric component (like Jan, Dec etc) if short date format for local regional settings happens to include "mmm". Finally, this formatted value has to be included in outer hashes. A.2 - Text type field: Field value has to be enclosed in outer single quotes. B - The function in question accepts field name as its argument and provides the complete criteria string. Requirement of formatting and / or outer delimiters as necessary (for date or text type fields) is handled within the function. Query SQL becomes drastically simplified. Sample code in general module is given below (at the end of this message). strCriteria is a public global variable (variant type). Fn_Criteria_A() is a simple wrapper function for use in style A mentioned above. Fn_Criteria_B() is meant for use in style B mentioned above. It accepts the field value as its argument and handles different incoming data types suitably, providing formats and delimiters as found necessary. Sample query as per style A above would be as follows (T_Sales is the name of source table, having SaleDate as one of its fields): ================================= SELECT T_Sales.* FROM T_Sales WHERE Eval("#" & Format([SaleDate], "mm/dd/yyyy") & "#" & Fn_Criteria_A()); ================================= Sample query as per style B above would be as follows (T_Sales is the name of source table, having SaleDate as one of its fields): ================================= SELECT T_Sales.* FROM T_Sales WHERE Eval(Fn_Criteria_B([SaleDate])); ================================= Typical statement in form's VBA module for assigning a value to the global variable could be as follows (TxtDate is the name of control on calling form): '================================= strCriteria = ">= #" & _ Format(Me.TxtDate, _ "mm/dd/yyyy") & "#" '================================= Best wishes, A.D. Tejpal ------------ ' Sample code in general module '============================ ' Declarations section Public strCriteria As String '------------------------------------------- Public Function Fn_Criteria_A() As String Fn_Criteria_A = strCriteria End Function '------------------------------------------- Public Function Fn_Criteria_B( _ FieldValue As Variant) As String Select Case TypeName(FieldValue) Case "Date" ' Enclose FieldValue argument within outer ' hashes after proper formatting Fn_Criteria_B = "#" & _ Format(FieldValue, "mm/dd/yyyy") & _ "#" & strCriteria Case "String" ' Enclose FieldValue argument within outer ' single quotes Fn_Criteria_B = _ "'" & FieldValue & "'" & strCriteria Case Else Fn_Criteria_B = FieldValue & strCriteria End Select ' Note: ' Formating of date value as per "mm/dd/yyyy" ' is found necessary as Eval() function in the ' query won't be able to resolve non-numeric ' component like Jan etc if short date format for ' local regional settings happens to include "mmm" End Function '=================================== ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Wednesday, October 06, 2010 20:37 Subject: Re: [AccessD] Function with Operators and Conditions MyDate has to be a field in the query and you don't do it like that. The expression is telling the query engine to compare the field MyDate to the result of the function FindMyDate(StartDate). Where are you trying to do this? Me!StartDate suggests you're doing something in a form. You can't just hash them together like that. If you're doing it in a query the suggestion I made originally should work. If you're doing it in code, post the code because it won't work the same way. Charlotte Foust On Wed, Oct 6, 2010 at 7:13 AM, Tony Septav wrote: > Hey Charlotte > Thanks > But if I try to put an operator in the function > ie. MyDate="<#" & Me!StartDate & "#" > FndMyDate=MyDate > And put FndMyDate() in the Query Grid > I get the error message "Data type mismatch in criteria expression" > No biggy I just used sqls for the list boxes rowsource. > > Charlotte Foust wrote: > >>You can put the function in the expression cell (i.e., Expr1: >>[MyDate]= FindMyDate(= Date variable) and then put True in the >>criteria cell. >> >>Charlotte Foust >> >>On Tue, Oct 5, 2010 at 8:26 AM, Tony Septav wrote: >> >>>Hey All >>>Is it possible to embed an operator or condition in a function that is >>>used as criteria in the query grid. >>>I am sure I have solved this problem before, blame it on old age. >>>What I want to do is change the criteria on the fly. >>>Equal to FndMyDate(= Date variable) >>>Less Than FndMyDate(>>Show all FndMyDate(Like *) From marksimms at verizon.net Thu Oct 7 09:21:33 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 07 Oct 2010 10:21:33 -0400 Subject: [AccessD] Apples to oranges take 2a In-Reply-To: <4CAD317E.6040700@colbyconsulting.com> References: <4CAD317E.6040700@colbyconsulting.com> Message-ID: <019301cb662a$f199f710$0801a8c0@MSIMMSWS> Fascinating study. Which SSD (make/model) was used ? What is the typical lifetime duration of an SSD ? Do these devices have an early-warning system to determine when they need to be replaced ? > > Same two files, rotating / SSD. > > From Lambert.Heenan at chartisinsurance.com Thu Oct 7 09:53:33 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 7 Oct 2010 10:53:33 -0400 Subject: [AccessD] Apples to oranges take 2a In-Reply-To: <019301cb662a$f199f710$0801a8c0@MSIMMSWS> References: <4CAD317E.6040700@colbyconsulting.com> <019301cb662a$f199f710$0801a8c0@MSIMMSWS> Message-ID: Here's an interesting article on the lifetime question... http://www.storagesearch.com/ssdmyths-endurance.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, October 07, 2010 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Apples to oranges take 2a Fascinating study. Which SSD (make/model) was used ? What is the typical lifetime duration of an SSD ? Do these devices have an early-warning system to determine when they need to be replaced ? > > Same two files, rotating / SSD. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Oct 7 09:20:53 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 07 Oct 2010 07:20:53 -0700 Subject: [AccessD] Function with Operators and Conditions In-Reply-To: <1985D385CC8E42FCAA58FE9ABB72872A@personal4a8ede> References: <4CAB43A2.6080501@nanaimo.ark.com> <1985D385CC8E42FCAA58FE9ABB72872A@personal4a8ede> Message-ID: <4CADD745.3040103@nanaimo.ark.com> Hey A.D. I gave Eval() a quick test yesterday but did not include the formatting. I wish I had gotten this yesterday as I basically rewrote my code using Sql strings. So rather than Me!ListBox.Requery it is now Me!ListBox.RowSource=Sql. Thank you very much. When I get this app out of here I will play with what you have sent. A.D. Tejpal wrote: >Tony, > > Apparently, you wish to embed a criteria string (represented by a function acting as wrapper for a global variable) within the SQL of a saved query. > > The objective sought by you could be realized by enclosing the said function in Eval() function in SQL, adopting either of the two styles as follows: > > A - The function in question provides just the right hand portion of criteria clause, including the comparison operators (>, <, = etc). In this approach, handling of field name featuring in the comparison, needs special care as follows: > > A.1 - Date type field: > Applying "mm/dd/yyyy" format on date type field is found necessary as Eval() function in the query won't be able to resolve non-numeric component (like Jan, Dec etc) if short date format for local regional settings happens to include "mmm". Finally, this formatted value has to be included in outer hashes. > > A.2 - Text type field: > Field value has to be enclosed in outer single quotes. > > B - The function in question accepts field name as its argument and provides the complete criteria string. Requirement of formatting and / or outer delimiters as necessary (for date or text type fields) is handled within the function. Query SQL becomes drastically simplified. > > Sample code in general module is given below (at the end of this message). strCriteria is a public global variable (variant type). Fn_Criteria_A() is a simple wrapper function for use in style A mentioned above. Fn_Criteria_B() is meant for use in style B mentioned above. It accepts the field value as its argument and handles different incoming data types suitably, providing formats and delimiters as found necessary. > > Sample query as per style A above would be as follows (T_Sales is the name of source table, having SaleDate as one of its fields): >================================= >SELECT T_Sales.* >FROM T_Sales >WHERE Eval("#" & Format([SaleDate], "mm/dd/yyyy") & "#" & Fn_Criteria_A()); >================================= > > Sample query as per style B above would be as follows (T_Sales is the name of source table, having SaleDate as one of its fields): >================================= >SELECT T_Sales.* >FROM T_Sales >WHERE Eval(Fn_Criteria_B([SaleDate])); >================================= > > Typical statement in form's VBA module for assigning a value to the global variable could be as follows (TxtDate is the name of control on calling form): >'================================= > strCriteria = ">= #" & _ > Format(Me.TxtDate, _ > "mm/dd/yyyy") & "#" >'================================= > >Best wishes, >A.D. Tejpal >------------ > >' Sample code in general module >'============================ >' Declarations section >Public strCriteria As String >'------------------------------------------- > >Public Function Fn_Criteria_A() As String > Fn_Criteria_A = strCriteria >End Function >'------------------------------------------- > >Public Function Fn_Criteria_B( _ > FieldValue As Variant) As String > Select Case TypeName(FieldValue) > Case "Date" > ' Enclose FieldValue argument within outer > ' hashes after proper formatting > Fn_Criteria_B = "#" & _ > Format(FieldValue, "mm/dd/yyyy") & _ > "#" & strCriteria > Case "String" > ' Enclose FieldValue argument within outer > ' single quotes > Fn_Criteria_B = _ > "'" & FieldValue & "'" & strCriteria > Case Else > Fn_Criteria_B = FieldValue & strCriteria > End Select > > ' Note: > ' Formating of date value as per "mm/dd/yyyy" > ' is found necessary as Eval() function in the > ' query won't be able to resolve non-numeric > ' component like Jan etc if short date format for > ' local regional settings happens to include "mmm" >End Function >'=================================== > > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Wednesday, October 06, 2010 20:37 > Subject: Re: [AccessD] Function with Operators and Conditions > > > MyDate has to be a field in the query and you don't do it like that. > The expression is telling the query engine to compare the field MyDate > to the result of the function FindMyDate(StartDate). Where are you > trying to do this? Me!StartDate suggests you're doing something in a > form. You can't just hash them together like that. If you're doing > it in a query the suggestion I made originally should work. If you're > doing it in code, post the code because it won't work the same way. > > Charlotte Foust > > On Wed, Oct 6, 2010 at 7:13 AM, Tony Septav wrote: > > Hey Charlotte > > Thanks > > But if I try to put an operator in the function > > ie. MyDate="<#" & Me!StartDate & "#" > > FndMyDate=MyDate > > And put FndMyDate() in the Query Grid > > I get the error message "Data type mismatch in criteria expression" > > No biggy I just used sqls for the list boxes rowsource. > > > > Charlotte Foust wrote: > > > >>You can put the function in the expression cell (i.e., Expr1: > >>[MyDate]= FindMyDate(= Date variable) and then put True in the > >>criteria cell. > >> > >>Charlotte Foust > >> > >>On Tue, Oct 5, 2010 at 8:26 AM, Tony Septav wrote: > >> > >>>Hey All > >>>Is it possible to embed an operator or condition in a function that is > >>>used as criteria in the query grid. > >>>I am sure I have solved this problem before, blame it on old age. > >>>What I want to do is change the criteria on the fly. > >>>Equal to FndMyDate(= Date variable) > >>>Less Than FndMyDate( >>>Show all FndMyDate(Like *) > > From delam at zyterra.com Thu Oct 7 12:16:44 2010 From: delam at zyterra.com (Debbie) Date: Thu, 7 Oct 2010 12:16:44 -0500 Subject: [AccessD] Fast clicking In-Reply-To: References: <5088CBD8-F9A9-4C73-8F77-09B4E7E53A18@zyterra.com>, <4CACF443.5883.8524229@stuart.lexacorp.com.pg>, <061BAFA9315540A9A84359DB9FF6E996@DanWaters> <4CAD1E7B.12797.8F72E30@stuart.lexacorp.com.pg> Message-ID: Thanks. This has cleared up some problems and made this form run faster. I was a bit troubled that the option group was still having trouble, but I found the solution. The option box had a solid background, and when I clicked on the box, but not on an option it would freeze. Making the group transparent fixed this. Debbie Sent from my iPhone On Oct 7, 2010, at 8:10 AM, "Heenan, Lambert" wrote: > Make sure your error handler includes Application.Echo True > > Otherwise your users will get real confused if any runtime error > happens. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Wednesday, October 06, 2010 9:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fast clicking > > Just goes to show there is an exception to every rule. > This old dog just learnt a new trick!!!! > > How come I never came across that before? > > :-) > > > -- > Stuart > > On 6 Oct 2010 at 18:11, Dan Waters wrote: > >> In addition, you should wrap the event code in: >> >> DoCmd.Hourglass True >> Application.Echo False >> ... >> Application.Echo True >> DoCmd.Hourglass False >> >> >> This will freeze the screen and prevent them from clicking anywhere >> else until Echo = True. Your code may run faster because there will >> be no screen changes. >> >> When you use Application.Echo False you must set up error trapping in >> that procedure. Then place Application.Echo True into the code that >> runs after an error happens. >> >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan Sent: Wednesday, October 06, 2010 5:12 PM To: Access >> Developers discussion and problem solving Subject: Re: [AccessD] Fast >> clicking >> >> First thing I'd do is wrap the event code in >> >> Docmd.Hourglass True >> ... >> Docmd.Hourglass False >> >> to discourage them from clicking. >> >> If that is not enough, I'd have a sub which steps through all the >> controls on the form and either enables or disables them based on a >> parameter. Then wrap the long running code in two calls to that >> function. >> >> -- >> Stuart >> >> On 6 Oct 2010 at 16:53, Debbie wrote: >> >>> I have a form in access 2007 that has a lot of code that runs when >>> certain events happen. These take several seconds to complete and >>> occasionally if a user changes thier mind or gets impatient and >>> clicks elsewhere before the code finishes I get errors and >>> problems. >>> >>> For example: I have an option box that shows or hides various >>> subforms. Click between then quickly and before too long you will >>> get stuck on one option and can't change it without changing >>> something else in the form then going back. >>> >>> Still doing my best to educate fast clicking out of them, especially >>> on this form, but ideally I need some way to keep new entry from >>> happening while code is running. I have just experimented with an >>> inconspicuous modal form that opens on code firing and closes when >>> it is done, but still get the option button sticking. Either I need >>> a different solution, or the problem is not what I think it is. >>> Anyone have any ideas? >>> >>> 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 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 7 13:03:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 07 Oct 2010 14:03:47 -0400 Subject: [AccessD] Apples to oranges take 2a In-Reply-To: References: <4CAD317E.6040700@colbyconsulting.com> <019301cb662a$f199f710$0801a8c0@MSIMMSWS> Message-ID: <4CAE0B83.3060201@colbyconsulting.com> Lambert, Thanks for that article. It is interesting that this author describes the flash write lifetime as "well over a million". I intensely studied the current literature and came to the conclusion that MLS is pretty much quoted as 10K and SLC as 100K. Both well south of 1 million. 10K is not a large number. 1 million is. I don't know which to believe. What I am going to do is to grab my old 32 gig SSD and use it as my tempdb disk. The point of the ssd is that reads and writes are fast and IOPS are startlingly high. If SSDs are in fact durable, and we can move the tempdb and log db to them then we have a huge win. Unfortunately for me, I still have the issue of database size. While I have managed to get the "empty space" issue under control, I can still end up with log files many times the size of the 50 gig data file if I do heavy manipulation. John W. Colby www.ColbyConsulting.com On 10/7/2010 10:53 AM, Heenan, Lambert wrote: > Here's an interesting article on the lifetime question... > > http://www.storagesearch.com/ssdmyths-endurance.html > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, October 07, 2010 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Apples to oranges take 2a > > Fascinating study. > Which SSD (make/model) was used ? > What is the typical lifetime duration of an SSD ? > Do these devices have an early-warning system to determine when they need to be replaced ? > >> >> Same two files, rotating / SSD. >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Thu Oct 7 13:14:39 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 7 Oct 2010 12:14:39 -0600 Subject: [AccessD] Apples to oranges - take 2 In-Reply-To: <4CAD2E5E.20101@colbyconsulting.com> References: <4CAD2E5E.20101@colbyconsulting.com> Message-ID: '67564677 million records, 27 fields' I don't think there is an SSD or SSD RAID capable of that many bytes, even if you have only 4 bytes per record in a Long numeric ID and no other data in the fields. 67,564,677,000,000 is a lot of records. Multiply by 4 bytes for a long PK = 270,258,708,000,000 Bytes. You need 270 terabytes neglecting even the space for an index or any data. Add a first name and last name field with an average of 6 characters each and you need 810 terabytes before you index the names. I think you're exaggerating Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Wed, 6 Oct 2010 22:20:14 -0400 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com; dba-sqlserver at databaseadvisors.com > Subject: [AccessD] Apples to oranges - take 2 > > OK, so I have two databases, each with a single table. BTW, these are two of my main tables, used > all of the time in orders. > > HSID - otherwise known as the database from hell, 51157068 records, ~560 fields. HSIDAllAdults is a > database where up to three adult names were lifted out of fields in HSID and placed in a table with > a PK_HSID field pointing back to the HSID record from which the information came. Thus > HSIDAllAdults is child to HSID in a manner of speaking (has a FK back to the PKID from HSID). > HSIDAllAdults has about 67564677 million records, 27 fields. From jwcolby at colbyconsulting.com Thu Oct 7 13:24:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 07 Oct 2010 14:24:35 -0400 Subject: [AccessD] Apples to oranges take 2a In-Reply-To: <019301cb662a$f199f710$0801a8c0@MSIMMSWS> References: <4CAD317E.6040700@colbyconsulting.com> <019301cb662a$f199f710$0801a8c0@MSIMMSWS> Message-ID: <4CAE1063.3060001@colbyconsulting.com> Mark, I am using consumer grade Vertex 2 disks by OCZ. http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 These are MLC NAND devices, not SLC. Supposedly MLCs have a 10x lower write cycle rating. John W. Colby www.ColbyConsulting.com On 10/7/2010 10:21 AM, Mark Simms wrote: > Fascinating study. > Which SSD (make/model) was used ? > What is the typical lifetime duration of an SSD ? > Do these devices have an early-warning system to determine when they need to > be replaced ? > >> >> Same two files, rotating / SSD. >> >> > > From jwcolby at colbyconsulting.com Thu Oct 7 13:28:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 07 Oct 2010 14:28:57 -0400 Subject: [AccessD] Apples to oranges - take 2 In-Reply-To: References: <4CAD2E5E.20101@colbyconsulting.com> Message-ID: <4CAE1169.2040302@colbyconsulting.com> ROTFL, yea you are right. It is actually 67.6 million records. Not exaggerating, just clicked send without rereading. I had originally used an approximate number and later went back in and got the actual record count. I pasted that in without removing the million. Sorry guys. John W. Colby www.ColbyConsulting.com On 10/7/2010 2:14 PM, Jurgen Welz wrote: > > '67564677 million records, 27 fields' > > > > I don't think there is an SSD or SSD RAID capable of that many bytes, even if you have only 4 bytes per record in a Long numeric ID and no other data in the fields. > > 67,564,677,000,000 is a lot of records. Multiply by 4 bytes for a long PK = 270,258,708,000,000 Bytes. You need 270 terabytes neglecting even the space for an index or any data. > Add a first name and last name field with an average of 6 characters each and you need 810 terabytes before you index the names. I think you're exaggerating > > > Ciao > > J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > >> Date: Wed, 6 Oct 2010 22:20:14 -0400 >> From: jwcolby at colbyconsulting.com >> To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com; dba-sqlserver at databaseadvisors.com >> Subject: [AccessD] Apples to oranges - take 2 >> >> OK, so I have two databases, each with a single table. BTW, these are two of my main tables, used >> all of the time in orders. >> >> HSID - otherwise known as the database from hell, 51157068 records, ~560 fields. HSIDAllAdults is a >> database where up to three adult names were lifted out of fields in HSID and placed in a table with >> a PK_HSID field pointing back to the HSID record from which the information came. Thus >> HSIDAllAdults is child to HSID in a manner of speaking (has a FK back to the PKID from HSID). >> HSIDAllAdults has about 67564677 million records, 27 fields. From jwcolby at colbyconsulting.com Thu Oct 7 14:53:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 07 Oct 2010 15:53:12 -0400 Subject: [AccessD] Apples to Oranges - Take 3 Message-ID: <4CAE2528.9@colbyconsulting.com> One thing I do a lot is to export large csv files. Today I have to export ~51 million records to CSV, PK and email fields. I have a table which holds these and two other fields, with a clustered index on PK and a non-clustered index on the email. I exported from rotating media to rotating media and (very rough) got about 10 million records per 45 seconds. I then exported the same job from rotating media to SSD and got roughly the same performance. I then backed up and restored to the SSD (the log file to SSD as well). I then exported the same job from SSD to SSD and got roughly the same performance. I then exported SSD to rotating media and got roughly the same performance. So there ya have it, SSD apparently makes no difference no matter how you play it in this specific task. -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Thu Oct 7 15:03:39 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 7 Oct 2010 13:03:39 -0700 Subject: [AccessD] [ACCESS-L] Is there a way to dynamically hide fields if needed In-Reply-To: References: Message-ID: A.D., thanks for the code. I had to modify to work with my ADP. Right now I have an issue where I have to hit the OK button twice to make the filter work. If I put an option stop in the code and step through the function, it will work on the first click. This tells me it is a refresh/repaint issue. I've tried putting DoEvents all over the function as well as before and after the call, and it still doesn't do it on the first click: Does anyone have an idea why I would have to press the cmdbutton twice to get it to work? This is what I changed your function to: '*************************** Public Sub P_HideEmptyColumnsNumeric() On Error Resume Next Dim ct As Access.Control, fd As DAO.Field Dim CtSource As String Dim subtotal As Double DoEvents With Me.RecordsetClone For Each ct In Me.Detail.Controls DoEvents Err.Clear CtSource = ct.ControlSource If ct.Tag = "Hideable" Then DoEvents ct.ColumnHidden = False Set fd = .Fields(CtSource) ' Select Case CtSource ' Case "invoice_no", "bill_to_cust", "IncDetID" ' 'Always hide these fields ' ct.ColumnHidden = True ' Case "item_no", "description", "quantity", "DlrPrice", "IncentiveAmt", "Unit Price", "TotalIncentive" ' 'Do nothing, leaving these fields visible ' Case Else DoEvents .MoveLast subtotal = 0 If Not .BOF Then Do Until .BOF If CtSource Like "=cdbl(*" Then subtotal = subtotal + .Fields(Mid(CtSource, 8, Len(CtSource) - 9)) Else subtotal = subtotal + Nz(.Fields(CtSource), 0) End If .MovePrevious Loop Else subtotal = 0 End If DoEvents If subtotal <= 0 Then DoEvents ct.ColumnHidden = True End If ' End Select End If Next End With Set ct = Nothing Set fd = Nothing On Error GoTo 0 '*************************** This is the call from the parent form: '************************************************************ Private Sub cmdInvNoEnter_Click() ClearHeaderFields ShowHeaderFields (False) If Nz(Me.txtinvno, "") <> "" Then Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset 'Call the stored procedure, passing it the parameter, returning recordset rs CurrentProject.Connection.stpSalesHeaderByInvoiceNo Me.txtinvno, rs 'Fill in the fields from the returned recordset If Not rs.BOF And Not rs.EOF Then Me.txtInvDate = rs![TranDate] Me.txtCustNo = rs![CustNo] Me.txtCustName = rs![CustName] Me.txtAMno = rs![AMno] Me.txtAMname = rs![AMname] Me.txtSSRno = rs![SSRno] Me.txtSSRname = rs![SSRname] ShowHeaderFields (True) DoEvents Call Me.sbfrmSalesDetailByInvoiceNo.Form.P_HideEmptyColumnsNumeric 'If I dont call it here, it doesnt work DoEvents Me.lstDet.RowSource = "EXEC stpSalesDetailByInvoiceNo '" & Me.txtinvno & "'" 'This is to test the list box vs datasheet subform Call FormatLB Else Me.txtInvDate = "" Me.txtCustNo = "" Me.txtCustName = "Invoice number was not found" Me.txtAMno = "" Me.txtAMname = "" Me.txtSSRno = "" Me.txtSSRname = "" Me.txtCustName.Visible = True Me.lstDet.RowSource = "" End If rs.Close Set rs = Nothing 'Me.sbfrmSalesDetailByInvoiceNo.Requery Me.sbfrmSalesDetailByInvoiceNo.Form.Requery Else ShowHeaderFields (False) Me.sbfrmSalesDetailByInvoiceNo.Visible = False Me.lstDet.RowSource = "" End If End Sub '********************************************************* On Sat, Oct 2, 2010 at 9:25 PM, A.D. Tejpal wrote: > David, > > ? ?You wish to effect dynamic hiding of empty columns (having no significant value beyond Nulls or zeros). Datasheet form happens to be well suited for this purpose. > > ? ?Sample code in VBA module of the form, as given below, should get you the desired results. It is a generic routine, free of specific names for source query and its fields. > > Best wishes, > A.D. Tejpal > ------------ > > ' Code in VBA module of datasheet form > ' (For hiding numeric columns having no > ' significant value beyond Nulls or zeros) > '============================== > Private Sub Form_Load() > ? ?P_HideEmptyColumnsNumeric > End Sub > '---------------------------------------------- > > Private Sub P_HideEmptyColumnsNumeric() > On Error Resume Next > ? ?Dim ct As Access.Control, fd As DAO.Field > ? ?Dim CtSource As String > > ? ?With Me.RecordsetClone > ? ? ? ?For Each ct In Me.Detail.Controls > ? ? ? ? ? ?Err.Clear > ? ? ? ? ? ?CtSource = ct.ControlSource > ? ? ? ? ? ?If Err.Number = 0 And _ > ? ? ? ? ? ? ? ? ? ? ? ?Not CtSource Like "=*" Then > ? ? ? ? ? ? ? ?' It is a bound control > ? ? ? ? ? ? ? ?ct.ColumnHidden = False > ? ? ? ? ? ? ? ?Set fd = .Fields(CtSource) > ? ? ? ? ? ? ? ?Select Case fd.Type > ? ? ? ? ? ? ? ? ? ?' Hide numeric columns - if blank > ? ? ? ? ? ? ? ? ? ?Case dbText, dbMemo, dbGUID > ? ? ? ? ? ? ? ? ? ?Case Else > ? ? ? ? ? ? ? ? ? ? ? ?.Filter = "Nz(" & CtSource & ", 0) > 0" > ? ? ? ? ? ? ? ? ? ? ? ?If .OpenRecordset.EOF Then > ? ? ? ? ? ? ? ? ? ? ? ? ? ?' This column is blank - Hide it > ? ? ? ? ? ? ? ? ? ? ? ? ? ?ct.ColumnHidden = True > ? ? ? ? ? ? ? ? ? ? ? ?End If > ? ? ? ? ? ? ? ?End Select > ? ? ? ? ? ?End If > ? ? ? ?Next > ? ?End With > > ? ?Set ct = Nothing > ? ?Set fd = Nothing > ? ?On Error GoTo 0 > End Sub > '==================================== > > ?----- Original Message ----- > ?From: David McAfee > ?To: ACCESS-L at PEACH.EASE.LSOFT.COM > ?Sent: Friday, October 01, 2010 22:52 > ?Subject: Is there a way to dynamically hide fields if needed > > > ?(Crossposted on AccessD) > > > ?I'm working in an ADP. > > ?I have the pseudo pivot table since I am working in SQL2000 (PIVOT > ?wasn't available until SQL2005) > > ?SELECT > ?SplitID, IncDetID, SplitTypeID, SplitAmt > ?FROM tblSplit > ?WHERE IncDetID = 5199 > > ?returns > > ?SplitID IncDetID SplitTypeID SplitAmt > ?36 5199 1 15.00 > ?37 5199 7 5.00 > > > ?My pseudo pivot table: > ?SELECT IncDetID, > ?SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS DlrPay, > ?SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS SvcMgr, > ?SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) > ?AS PartsDept, > ?SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS SvcAdv, > ?SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS SvcDept, > ?SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS SvcTech, > ?SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS Contest > ?FROM tblSPlit > ?GROUP BY IncDetID > > ?returns: > > ?IncDetID DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest > ?5199 15.00 0.00 0.00 0.00 0.00 ?0.00 5.00 > > > ?In the actual final display, there are many tables joined to this, so > ?the resultset really looks like: > > ?CustNo InvNo ItemNo Qty UnitPrice IncentiveAmt TotalIncentive > ?DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest > ?07235 5452 02951 6 54.95 20.00 120.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 5.00 > ?07235 5452 03111 12 40.95 17.00 204.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 2.00 > ?07235 5452 01121 24 30.95 20.00 480.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 5.00 > ?07235 5452 01161 12 36.95 25.00 300.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 10.00 > ?07235 5452 06011 12 47.95 22.00 264.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 ? 7.00 > ?07235 5452 10521 12 41.95 19.00 228.00 15.00 0.00 0.00 0.00 > ?0.00 0.00 ? 4.00 > > ?I'd really like it to look like this: > ?CustNo InvNo ItemNo Qty UnitPrice IncentiveAmt TotalIncentive DlrPay Contest > ?07235 5452 ?02951 6 54.95 20.00 120.00 15.00 5.00 > ?07235 5452 ?03111 12 40.95 17.00 204.00 15.00 2.00 > ?07235 5452 ?01121 24 30.95 20.00 480.00 15.00 5.00 > ?07235 5452 ?01161 12 36.95 25.00 300.00 15.00 10.00 > ?07235 5452 ?06011 12 47.95 22.00 264.00 15.00 7.00 > ?07235 5452 ?10521 12 41.95 19.00 228.00 15.00 4.00 > > ?I'm still debating on displaying this as a listbox or subform on the main form. > > ?I'm thinking if it is in a listbox, simply loop through the last 7 > ?colums. If the entire column is 0 then make that column a 0" width in > ?the list box. > ?If I go with a datasheet subform, run a recordset clone and if all > ?values for a given field are 0 then make that field hidden. > > ?any ideas? > > ?I have to do this on a form and on a report (print out of the form) so > ?I'm trying to think of a good way to do this that will apply to both. > > ?Thanks, > ?David From ssharkins at gmail.com Thu Oct 7 16:16:39 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 7 Oct 2010 17:16:39 -0400 Subject: [AccessD] Err.Clear Message-ID: <2528DA5D3B9C4E9FA73DDEFF85043A30@salvationomc4p> How many of you add an Err.Clear after handling an error to clear the Err object? Susan H. From jwcolby at colbyconsulting.com Thu Oct 7 16:37:18 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 07 Oct 2010 17:37:18 -0400 Subject: [AccessD] Err.Clear In-Reply-To: <2528DA5D3B9C4E9FA73DDEFF85043A30@salvationomc4p> References: <2528DA5D3B9C4E9FA73DDEFF85043A30@salvationomc4p> Message-ID: <4CAE3D8E.8020706@colbyconsulting.com> Under normal circumstances you don't have to. AFAICT the only place you need to do that is if you do an On Error resume next and then want to handle another error after that. If the error is "handled" then the error object is cleared the first time you reference it (or when you "resume XXX"). John W. Colby www.ColbyConsulting.com On 10/7/2010 5:16 PM, Susan Harkins wrote: > How many of you add an Err.Clear after handling an error to clear the Err object? > > Susan H. From ssharkins at gmail.com Thu Oct 7 16:42:10 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 7 Oct 2010 17:42:10 -0400 Subject: [AccessD] Err.Clear References: <2528DA5D3B9C4E9FA73DDEFF85043A30@salvationomc4p> <4CAE3D8E.8020706@colbyconsulting.com> Message-ID: <1DE47F04D6504535853FE82ED76C3AE7@salvationomc4p> Thanks John -- that's what I thought too but I've seen a number of routines today that use it, a lot! They're everywhere. Maybe it's one of those cross-coding things -- they have to do it one language, so they just do it by habit. Susan H. > Under normal circumstances you don't have to. AFAICT the only place you > need to do that is if you > do an On Error resume next and then want to handle another error after > that. If the error is > "handled" then the error object is cleared the first time you reference it > (or when you "resume XXX"). > >> How many of you add an Err.Clear after handling an error to clear the Err >> object? >> >> Susan H. From rlister at actuarial-files.com Sat Oct 9 07:07:15 2010 From: rlister at actuarial-files.com (Ralf Lister) Date: Sat, 9 Oct 2010 08:07:15 -0400 Subject: [AccessD] OT: VRML-Viewer Message-ID: <000301cb67aa$8573c850$905b58f0$@com> Hello: Sorry that I missed the "OT Friday". Does someone know of a good (and free) VRML-Viewer? My VRML stuff doesn't show up in the IE-Explorer, so I think the IE doesn't come with the VRML-Viewer. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From stuart at lexacorp.com.pg Sat Oct 9 16:22:20 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 10 Oct 2010 07:22:20 +1000 Subject: [AccessD] OT: VRML-Viewer In-Reply-To: <000301cb67aa$8573c850$905b58f0$@com> References: <000301cb67aa$8573c850$905b58f0$@com> Message-ID: <4CB0DD0C.24602.7335890@stuart.lexacorp.com.pg> Cortona is still free for non-commercial use. Another possibility is Orbisnap which is built on the OpenVRML platform. -- Stuart On 9 Oct 2010 at 8:07, Ralf Lister wrote: > Hello: > > > > Sorry that I missed the "OT Friday". > > > > Does someone know of a good (and free) VRML-Viewer? My VRML stuff > doesn't show up in the IE-Explorer, so I think the IE doesn't come > with the VRML-Viewer. > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Registrado en ASFI > > No. Registro: Act.Mat. 001 > > NIT: 1016725022 > > Skype Name: ralf.martin.lister > > Tel.: 222 26 61, Cel. 70136531 > > rlister at actuarial-files.com > > www.actuarial-files.com > > Environment > > > > From ab-mi at post3.tele.dk Sun Oct 10 18:11:13 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 11 Oct 2010 01:11:13 +0200 Subject: [AccessD] OT: Excel Worksheet_Change event In-Reply-To: References: 3D2@blkltd.blkfst2003.local><55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede> Message-ID: <5F05FE636569424CB40D8824367C617A@abpc> Hi group Say I have an Excel worksheet linked to an Access table or to another Excel workbook. When data in the Access table or the other Excel workbook changes and then updates my worksheet I want code to automatically perform some action. How to? A first guess would be to use the Worksheet_Change event for the worksheet. But problem is that this event only triggers when new data are manually *entered* in a cell, not when the cell *updates* being linked to an external source by reference, i.e. by a formula or a table link. So calling any Excel genius on this list... Asger From marksimms at verizon.net Mon Oct 11 09:39:11 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 11 Oct 2010 10:39:11 -0400 Subject: [AccessD] OT: Excel Worksheet_Change event In-Reply-To: <5F05FE636569424CB40D8824367C617A@abpc> References: 3D2@blkltd.blkfst2003.local><55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede> <5F05FE636569424CB40D8824367C617A@abpc> Message-ID: <00d801cb6952$12023380$0601a8c0@MSIMMSWS> Use the worksheet Calculate event handler: Here is a simple 1 cell example... Private Sub Worksheet_Calculate() Const CELLTOCHECK as String = "E14" ' this can also be a global variable or constant Static vPrev as Variant Dim vCurr as Variant vCurr = Activesheet.Range(CELLTOCHECK).Value If vCurr <> vPrev Then DoSomething vPrev = vCurr ' persist the current value End If End Sub Private Sub DoSomething() ' logic goes here to perform some function when a cell changes End Sub > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > Sent: Sunday, October 10, 2010 7:11 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT: Excel Worksheet_Change event > > Hi group > Say I have an Excel worksheet linked to an Access table or to > another Excel workbook. When data in the Access table or the > other Excel workbook changes and then updates my worksheet I > want code to automatically perform some action. How to? > A first guess would be to use the Worksheet_Change event for > the worksheet. > But problem is that this event only triggers when new data > are manually *entered* in a cell, not when the cell *updates* > being linked to an external source by reference, i.e. by a > formula or a table link. > So calling any Excel genius on this list... > Asger From ab-mi at post3.tele.dk Mon Oct 11 11:14:13 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 11 Oct 2010 18:14:13 +0200 Subject: [AccessD] OT: Excel Worksheet_Change event In-Reply-To: <00d801cb6952$12023380$0601a8c0@MSIMMSWS> References: 3D2@blkltd.blkfst2003.local><55479935F0D44925AD5C8B6FDAEFF904@personal4a8ede><5F05FE636569424CB40D8824367C617A@abpc> <00d801cb6952$12023380$0601a8c0@MSIMMSWS> Message-ID: <2EBB23D2090448FBA8988670C9428BE2@abpc> Thanks Mark - Calculate event with a constant for the cells to check did it! Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Mark Simms Sendt: 11. oktober 2010 16:39 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] OT: Excel Worksheet_Change event Use the worksheet Calculate event handler: Here is a simple 1 cell example... Private Sub Worksheet_Calculate() Const CELLTOCHECK as String = "E14" ' this can also be a global variable or constant Static vPrev as Variant Dim vCurr as Variant vCurr = Activesheet.Range(CELLTOCHECK).Value If vCurr <> vPrev Then DoSomething vPrev = vCurr ' persist the current value End If End Sub Private Sub DoSomething() ' logic goes here to perform some function when a cell changes End Sub > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > Sent: Sunday, October 10, 2010 7:11 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT: Excel Worksheet_Change event > > Hi group > Say I have an Excel worksheet linked to an Access table or to > another Excel workbook. When data in the Access table or the > other Excel workbook changes and then updates my worksheet I > want code to automatically perform some action. How to? > A first guess would be to use the Worksheet_Change event for > the worksheet. > But problem is that this event only triggers when new data > are manually *entered* in a cell, not when the cell *updates* > being linked to an external source by reference, i.e. by a > formula or a table link. > So calling any Excel genius on this list... > Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Oct 11 11:18:39 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 11 Oct 2010 09:18:39 -0700 Subject: [AccessD] Normal.dot file altered on close? Message-ID: <9B9A0A0C912C48C89AC399E959216CD8@HAL9005> Dear List: I automated some customer response letter in my customer tracking system - opens a word , inserts the contents into the body of an email, closes the doc. When the doc closes, though, I get a notice that normal.doc has been altered do I want to save it, etc. PITA because of course, I have to respond to the prompts. What am I doing wrong? The code's pretty minimal: Private Sub MakeMessage(argDocument As String, argSubject As String) Dim objWord As Object Dim objWordDoc As Word.Document Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Dim objOutlookAttach As Outlook.Attachment ' Get the body text Set objWord = CreateObject("Word.Application") objWord.Documents.Open (argDocument) objWord.Selection.WholeStory strBody = objWord.Selection 'MsgBox strBody objWord.Documents.Close objWord.Quit Set objWord = Nothing (code here to send email - working well End Sub MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From charlotte.foust at gmail.com Mon Oct 11 11:35:40 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 11 Oct 2010 09:35:40 -0700 Subject: [AccessD] Normal.dot file altered on close? In-Reply-To: <9B9A0A0C912C48C89AC399E959216CD8@HAL9005> References: <9B9A0A0C912C48C89AC399E959216CD8@HAL9005> Message-ID: I seem to recall a NoSave argument to the close document operation. Charlotte Foust On Mon, Oct 11, 2010 at 9:18 AM, Rocky Smolin wrote: > Dear List: > > I automated some customer response letter in my customer tracking system - > opens a word , inserts the contents into the body of an email, closes the > doc. ?When the doc closes, though, I get a notice that normal.doc has been > altered do I want to save it, etc. ?PITA because of course, I have to > respond to the prompts. > > What am I doing wrong? ?The code's pretty minimal: > > > > Private Sub MakeMessage(argDocument As String, argSubject As String) > > > ? ?Dim objWord As Object > ? ?Dim objWordDoc As Word.Document > > ? ?Dim objOutlook As Outlook.Application > ? ?Dim objOutlookMsg As Outlook.MailItem > ? ?Dim objOutlookRecip As Outlook.Recipient > ? ?Dim objOutlookAttach As Outlook.Attachment > > ? ?' Get the body text > ? ?Set objWord = CreateObject("Word.Application") > ? ?objWord.Documents.Open (argDocument) > ? ?objWord.Selection.WholeStory > ? ?strBody = objWord.Selection > ? ?'MsgBox strBody > ? ?objWord.Documents.Close > ? ?objWord.Quit > ? ?Set objWord = Nothing > > > (code here to send email - working well > > End Sub > > > > > > MMTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 rockysmolin at bchacc.com Mon Oct 11 11:47:44 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 11 Oct 2010 09:47:44 -0700 Subject: [AccessD] Normal.dot file altered on close? In-Reply-To: References: <9B9A0A0C912C48C89AC399E959216CD8@HAL9005> Message-ID: Yep. The exact format is objWord.Documents.Close SaveChanges:=wdDoNotSaveChanges. Thanks for the lead. BTW nosave is not in the Help system. I use Google for all Access help now. Search on 'word vba nosave' popped the answer up without even having to open the page - it was right there in the brief description on the first link. Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, October 11, 2010 9:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Normal.dot file altered on close? I seem to recall a NoSave argument to the close document operation. Charlotte Foust On Mon, Oct 11, 2010 at 9:18 AM, Rocky Smolin wrote: > Dear List: > > I automated some customer response letter in my customer tracking > system - opens a word , inserts the contents into the body of an > email, closes the doc. ?When the doc closes, though, I get a notice > that normal.doc has been altered do I want to save it, etc. ?PITA > because of course, I have to respond to the prompts. > > What am I doing wrong? ?The code's pretty minimal: > > > > Private Sub MakeMessage(argDocument As String, argSubject As String) > > > ? ?Dim objWord As Object > ? ?Dim objWordDoc As Word.Document > > ? ?Dim objOutlook As Outlook.Application > ? ?Dim objOutlookMsg As Outlook.MailItem > ? ?Dim objOutlookRecip As Outlook.Recipient > ? ?Dim objOutlookAttach As Outlook.Attachment > > ? ?' Get the body text > ? ?Set objWord = CreateObject("Word.Application") > ? ?objWord.Documents.Open (argDocument) > ? ?objWord.Selection.WholeStory > ? ?strBody = objWord.Selection > ? ?'MsgBox strBody > ? ?objWord.Documents.Close > ? ?objWord.Quit > ? ?Set objWord = Nothing > > > (code here to send email - working well > > End Sub > > > > > > MMTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 jwelz at hotmail.com Mon Oct 11 15:25:18 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 11 Oct 2010 14:25:18 -0600 Subject: [AccessD] Normal.dot file altered on close? In-Reply-To: References: <9B9A0A0C912C48C89AC399E959216CD8@HAL9005>, Message-ID: I've had a similar problem for a long time. It was very bizarre and appeared mysteriously after invoicing runs. The procedure processes all live projects, calculates the total value of all invoices by project to date and compares with a figure entered by project managers as work complete to date for any project on which we had performed work during a month. Whenever there is a difference, it generates an invoice, statutory declaration as required and an envelope for each contractor being invoiced. The routine saves a copy of the invoice in each project's invoicing folder and a duplicate in each regional monthly invoice summary for batch printing depending on selections the user made when running the process. The NoSave argument isn't really an option except for the envelopes and I should have a look at that. Anyway, the procedure ran nicely for several years and then suddenly started prompting to save changes to the normal.dot file for each document generated. Kind of a pain when 120 - 200 documents are generated by the routine. At one stage it was interrupting the automation process as well., refusing to allow new documents to be created until the matter of saving normal.dot was addressed After numerous complaints that they had done something to break our system, the IT department finally somehow determined that the combination of their adding some custom toolbars to their version of normal.dot and OrgPlus having an option in the tools menu to also appear on the Word toolbars caused a conflict when Word was run in automation mode. Given that they had locked down normal.dot and had inserted password protected code, the user was faced with several menus before he could cancel the save or navigate to a place where it couldn't be used anyway. The fix to the problem, believe it or not, was to disable the 'Use OrgPlus in Word Menus' option in Org Plus. After working smoothly for the next two years, IT installed a new version of OrgPlus and now we have the same automation problem with normal.do again, but so far it hasn't broken the automation code itself. I have the users log into a 2nd vpn session and just disconnect it after running invoicing rather than having them deal with all the cancel save pop ups. Probably not the best solution but if the IT boys cant be bothered to figure it out, I'll just have users crash sessions when it's convenient. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Mon, 11 Oct 2010 09:35:40 -0700 > From: charlotte.foust at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Normal.dot file altered on close? > > I seem to recall a NoSave argument to the close document operation. > > Charlotte Foust > > On Mon, Oct 11, 2010 at 9:18 AM, Rocky Smolin wrote: > > Dear List: > > > > I automated some customer response letter in my customer tracking system - > > opens a word , inserts the contents into the body of an email, closes the > > doc. When the doc closes, though, I get a notice that normal.doc has been > > altered do I want to save it, etc. PITA because of course, I have to > > respond to the prompts. > > > > What am I doing wrong? The code's pretty minimal: > > > > > > > > Private Sub MakeMessage(argDocument As String, argSubject As String) > > > > > > Dim objWord As Object > > Dim objWordDoc As Word.Document > > > > Dim objOutlook As Outlook.Application > > Dim objOutlookMsg As Outlook.MailItem > > Dim objOutlookRecip As Outlook.Recipient > > Dim objOutlookAttach As Outlook.Attachment > > > > ' Get the body text > > Set objWord = CreateObject("Word.Application") > > objWord.Documents.Open (argDocument) > > objWord.Selection.WholeStory > > strBody = objWord.Selection > > 'MsgBox strBody > > objWord.Documents.Close > > objWord.Quit > > Set objWord = Nothing > > > > > > (code here to send email - working well > > > > End Sub > > > > > > > > > > > > MMTIA, > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > Skype: rocky.smolin > > > > 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 dkalsow at yahoo.com Mon Oct 11 16:04:59 2010 From: dkalsow at yahoo.com (Dale Kalsow) Date: Mon, 11 Oct 2010 14:04:59 -0700 (PDT) Subject: [AccessD] datagridview in vb.net 2010 In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> <64560.94736.qm@web50407.mail.re2.yahoo.com> Message-ID: <605117.97817.qm@web50408.mail.re2.yahoo.com> Bill, thanks for the help.? However, I have not been able to get it to work.? Do you have an example or better yet do you have a second for me to send you what I have to see what I am missing? Thanks! Dale ________________________________ From: Bill Patten To: Access Developers discussion and problem solving Sent: Mon, September 27, 2010 1:01:25 PM Subject: Re: [AccessD] datagridview in vb.net 2010 ?Dale, That's the way it works, one data grid per form. If you try and force a second data grid you will find that several queries that you need to add/update/ and deleted will not be created and creating them by hand is tough. I did it this way, I created a new form, dragged the appropriate dataset to the new form. Then make sure that the correct binding source and table adapters etc are on the original? form you want, copy and paste the grid and the navigator to the form you want and it will work. You may need to add a tab and or a panel to have a second? navigator on one form, I didn't do that but needed the correct queries to add and update the second grid by typing in the row marked with the star or an existing row. To see the queries I am talking about double click on the dataset find the table in the xsd view screen and then select the table adaptor and look at the properties you will notice Delete Command for example click the little drop down and the look at the command text.? These appear to be built by the wizard when it creates the binding navigator and will not be there if you just drag the table adaptor and binding source to the form. HTH Bill -------------------------------------------------- From: "Dale Kalsow" Sent: Monday, September 27, 2010 6:44 AM To: "Access Developers discussion and problem solving" Subject: [AccessD] datagridview in vb.net 2010 Good Morning, I was hoping someone here might have some experience with vb.net 2010.? Here is what I have going on: I am using the datagridview in vb .net 2010.? I have setup a datasource to an access 2010 database.? I then drag that connection onto the form and it creates my datagridview.? This all works fine.? My problems start with the second datagridview.? The access database has several table and I have them all in the same datasource.? When I drag the second table onto the from, the gridview is created as normal and when I run the program, that data is populated into it. However, I do not get a second naviator bar for it and when I try to save the data via a button I created, I do not get an error but the data does not save. Any help would be greatly appreciated. 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 rockysmolin at bchacc.com Mon Oct 11 17:26:49 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 11 Oct 2010 15:26:49 -0700 Subject: [AccessD] SSD - Anything to it? Message-ID: http://www.youtube.com/kingstonssdnow Maybe you could win one: http://www.kingston.com/ssd/destructo/default.asp Rocky From charlotte.foust at gmail.com Mon Oct 11 17:54:02 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 11 Oct 2010 15:54:02 -0700 Subject: [AccessD] datagridview in vb.net 2010 In-Reply-To: <64560.94736.qm@web50407.mail.re2.yahoo.com> References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> <64560.94736.qm@web50407.mail.re2.yahoo.com> Message-ID: Sounds like your datagrids are bound to the same table so there's no need for a separate navigation bar. I don't have 2010, but in 2009, you could set the datamember property in the property sheet. Charlotte Foust On Mon, Sep 27, 2010 at 6:44 AM, Dale Kalsow wrote: > Good Morning, > > I was hoping someone here might have some experience with vb.net 2010.? Here is > what I have going on: > > I am using the datagridview in vb .net 2010.? I have setup a datasource to an > access 2010 database.? I then drag that connection onto the form and it creates > my datagridview.? This all works fine.? My problems start with the second > datagridview.? The access database has several table and I have them all in the > same datasource.? When I drag the second table onto the from, the gridview is > created as normal and when I run the program, that data is populated into it. > However, I do not get a second naviator bar for it and when I try to save the > data via a button I created, I do not get an error but the data does not save. > Any help would be greatly appreciated. > Thanks! > Dale > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bill.marriott09 at gmail.com Mon Oct 11 18:53:07 2010 From: bill.marriott09 at gmail.com (Bill Marriott) Date: Tue, 12 Oct 2010 10:53:07 +1100 Subject: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm Message-ID: Hi Everyone, Does anyone know how to fix the problem above? It is stopping me from referencing subForm1 from subForm2 in code as in: Forms!frmMain!sfm1.Form.Requery from the current event on sfm2 (the subforms are side by side, not nested) It is strange because it was and is working on another similar form group within the app. I do copy and paste forms and rename them. Maybe the file is corrupted?? I am using Access 2010 on win 7. thanks Bill Marriott From bill_patten at embarqmail.com Mon Oct 11 19:01:12 2010 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 11 Oct 2010 17:01:12 -0700 Subject: [AccessD] datagridview in vb.net 2010 In-Reply-To: <605117.97817.qm@web50408.mail.re2.yahoo.com> References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters><64560.94736.qm@web50407.mail.re2.yahoo.com> <605117.97817.qm@web50408.mail.re2.yahoo.com> Message-ID: ?Hi Dale, Sure go ahead and send it. No guarantees but I'll give it a shot. I'd send mine but it is connected to SQL database and not easily transported. Bill -------------------------------------------------- From: "Dale Kalsow" Sent: Monday, October 11, 2010 2:04 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] datagridview in vb.net 2010 Bill, thanks for the help. However, I have not been able to get it to work. Do you have an example or better yet do you have a second for me to send you what I have to see what I am missing? Thanks! Dale ________________________________ From: Bill Patten To: Access Developers discussion and problem solving Sent: Mon, September 27, 2010 1:01:25 PM Subject: Re: [AccessD] datagridview in vb.net 2010 ?Dale, That's the way it works, one data grid per form. If you try and force a second data grid you will find that several queries that you need to add/update/ and deleted will not be created and creating them by hand is tough. I did it this way, I created a new form, dragged the appropriate dataset to the new form. Then make sure that the correct binding source and table adapters etc are on the original form you want, copy and paste the grid and the navigator to the form you want and it will work. You may need to add a tab and or a panel to have a second navigator on one form, I didn't do that but needed the correct queries to add and update the second grid by typing in the row marked with the star or an existing row. To see the queries I am talking about double click on the dataset find the table in the xsd view screen and then select the table adaptor and look at the properties you will notice Delete Command for example click the little drop down and the look at the command text. These appear to be built by the wizard when it creates the binding navigator and will not be there if you just drag the table adaptor and binding source to the form. HTH Bill -------------------------------------------------- From: "Dale Kalsow" Sent: Monday, September 27, 2010 6:44 AM To: "Access Developers discussion and problem solving" Subject: [AccessD] datagridview in vb.net 2010 Good Morning, I was hoping someone here might have some experience with vb.net 2010. Here is what I have going on: I am using the datagridview in vb .net 2010. I have setup a datasource to an access 2010 database. I then drag that connection onto the form and it creates my datagridview. This all works fine. My problems start with the second datagridview. The access database has several table and I have them all in the same datasource. When I drag the second table onto the from, the gridview is created as normal and when I run the program, that data is populated into it. However, I do not get a second naviator bar for it and when I try to save the data via a button I created, I do not get an error but the data does not save. Any help would be greatly appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Mon Oct 11 19:33:54 2010 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 11 Oct 2010 20:33:54 -0400 Subject: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm In-Reply-To: References: Message-ID: <001901cb69a5$26817610$73846230$@rr.com> Try this, From explorer, right-click on the file and choose properties. Then uncheck the Block check box. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Marriott Sent: Monday, October 11, 2010 7:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm Hi Everyone, Does anyone know how to fix the problem above? It is stopping me from referencing subForm1 from subForm2 in code as in: Forms!frmMain!sfm1.Form.Requery from the current event on sfm2 (the subforms are side by side, not nested) It is strange because it was and is working on another similar form group within the app. I do copy and paste forms and rename them. Maybe the file is corrupted?? I am using Access 2010 on win 7. thanks Bill Marriott -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Mon Oct 11 19:58:37 2010 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 11 Oct 2010 20:58:37 -0400 Subject: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm In-Reply-To: <001901cb69a5$26817610$73846230$@rr.com> References: <001901cb69a5$26817610$73846230$@rr.com> Message-ID: <001d01cb69a8$9a6d55f0$cf4801d0$@rr.com> I just realized that you were talking about a Microsoft Access help file. Duh. Sorry about that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, October 11, 2010 8:34 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm Try this, From explorer, right-click on the file and choose properties. Then uncheck the Block check box. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Marriott Sent: Monday, October 11, 2010 7:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot open the file c:\Program Files\Common Files\Microsoft shared\Office 12\1033\dao360.chm Hi Everyone, Does anyone know how to fix the problem above? It is stopping me from referencing subForm1 from subForm2 in code as in: Forms!frmMain!sfm1.Form.Requery from the current event on sfm2 (the subforms are side by side, not nested) It is strange because it was and is working on another similar form group within the app. I do copy and paste forms and rename them. Maybe the file is corrupted?? I am using Access 2010 on win 7. thanks Bill Marriott -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Mon Oct 11 22:55:48 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Mon, 11 Oct 2010 23:55:48 -0400 Subject: [AccessD] Find intersections Message-ID: <5009890AB38B4E3886AB4E99AA219526@DCYN3T81> Hi All I have a small name-and-address style database. This is for use within a fire district, so the 1100 records are all contained on 26 different streets. I need to export the data to Excel (text delimited using the tilde as the separator), and I have a make-table query that runs just fine for 99% of the information. The problem is that I need to add two 'calculated' text fields to each record - I need to include the two streets that each address is between. I imagine that I need some type of code to loop through the remaining records in both directions to find the next intersecting street. The MakeTable query creates: "StreetNumber"~"StreetName"~"StreetAddlInfo"~"StreetSide"~"StreetIntersectin g"~"StreetBetween1"~"StreetBetween2" "12300"~"Main St."~""~"(intersection)"~"Church St."~""~"" "12315"~"Main St."~""~"South"~""~""~"" "12330"~"Main St."~"Apt. A"~"North"~""~""~"" "12330"~"Main St."~"Apt. B"~"North"~""~""~"" "12345"~"Main St."~""~"South"~""~""~"" "12360"~"Main St."~""~"(intersection)"~"Upper Ave."~""~"" "12375"~"Main St."~"Lot 14"~"North"~""~""~"" "12385"~"Main St."~""~"South"~""~""~"" "12390"~"Main St."~""~"(intersection)"~"Alpine Ct."~""~"" What I need to end up with is: "StreetNumber"~"StreetName"~"StreetAddlInfo"~"StreetSide"~"StreetIntersectin g"~"StreetBetween1"~"StreetBetween2" "12300"~"Main St."~""~"(intersection)"~"Church St."~""~"" "12315"~"Main St."~""~"South"~""~"Church St."~"Upper Ave." "12330"~"Main St."~"Apt. A"~"North"~""~"Church St."~"Upper Ave." "12330"~"Main St."~"Apt. B"~"North"~""~"Church St."~"Upper Ave." "12345"~"Main St."~""~"South"~""~"Church St."~"Upper Ave." "12360"~"Main St."~""~"(intersection)"~"Upper Ave."~""~"" "12375"~"Main St."~"Lot 14"~"North"~""~"Upper Ave."~"Alpine Ct." "12385"~"Main St."~""~"South"~""~"Upper Ave."~"Alpine Ct." "12390"~"Main St."~""~"(intersection)"~"Alpine Ct."~""~"" Would I loop through the records in each direction, looking for the next record where [StreetSide] = "(intersection)", and where would I put that code ... I did not see it available in the query design ... Thanks in advance, Bob Gajewski From jwcolby at colbyconsulting.com Tue Oct 12 07:58:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 12 Oct 2010 08:58:31 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: References: Message-ID: <4CB45B77.60102@colbyconsulting.com> Rocky, I cannot discuss any specific brand other than the one I use, but I can say that SSDs in general *rock*, with the right supports. They are not drop in replacements yet - your grandma probably wouldn't wanna. There are trim issues and firmware update issues but things are getting better. John W. Colby www.ColbyConsulting.com On 10/11/2010 6:26 PM, Rocky Smolin wrote: > http://www.youtube.com/kingstonssdnow > > Maybe you could win one: > > http://www.kingston.com/ssd/destructo/default.asp > > > > Rocky > > > > > From rockysmolin at bchacc.com Tue Oct 12 08:34:58 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 06:34:58 -0700 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <4CB45B77.60102@colbyconsulting.com> References: <4CB45B77.60102@colbyconsulting.com> Message-ID: <8D869D4A558548E5AE20B5920008F623@HAL9005> Do you use it as Kingston was saying - put the OS and apps on it? Do you notice any improvement in response time. Seems to me that response time is largely data transfer to and from the disk - so in that case you wouldn't see any difference. A query that takes 20 seconds would still take twenty seconds, no? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, October 12, 2010 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SSD - Anything to it? Rocky, I cannot discuss any specific brand other than the one I use, but I can say that SSDs in general *rock*, with the right supports. They are not drop in replacements yet - your grandma probably wouldn't wanna. There are trim issues and firmware update issues but things are getting better. John W. Colby www.ColbyConsulting.com On 10/11/2010 6:26 PM, Rocky Smolin wrote: > http://www.youtube.com/kingstonssdnow > > Maybe you could win one: > > http://www.kingston.com/ssd/destructo/default.asp > > > > Rocky > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Tue Oct 12 10:04:19 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 12 Oct 2010 11:04:19 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <4CB45B77.60102@colbyconsulting.com> References: <4CB45B77.60102@colbyconsulting.com> Message-ID: <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> John - this consultant is claiming a 400% speed increase with Access applications just by converting to SSD ! http://www.blueclaw-db.com/access_consultant_rapid.htm IMHO - he's got some credibility problems after I reviewed that VBA coding of his...... > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > I cannot discuss any specific brand other than the one I use, > but I can say that SSDs in general *rock*, with the right supports. > > They are not drop in replacements yet - your grandma probably > wouldn't wanna. There are trim issues and firmware update > issues but things are getting better. > > John W. Colby > www.ColbyConsulting.com > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: > > http://www.youtube.com/kingstonssdnow > > > > Maybe you could win one: > > > > http://www.kingston.com/ssd/destructo/default.asp > > > > > > > > Rocky > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Oct 12 10:41:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 12 Oct 2010 11:41:10 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <8D869D4A558548E5AE20B5920008F623@HAL9005> References: <4CB45B77.60102@colbyconsulting.com> <8D869D4A558548E5AE20B5920008F623@HAL9005> Message-ID: <4CB48196.1090501@colbyconsulting.com> Rocky, >Seems to me that response time is largely data transfer to and from the disk - so in that case you wouldn't see any difference. A query that takes 20 seconds would still take twenty seconds, no? It is way more than that. The point of an SSD is: 1) They can transfer data faster, i.e. they can read blocks of data and transfer those blocks at electronic speeds. 2) They can access a specific sector faster. With rotating media, you have to position the head (9 milliseconds or so) and then wait for the disk to rotate the desired data under the head (~1-2 ms depending on rotation speed). Only then can the data actually stream off the disk. This is known as "Access time" with rotating media. 3) The data streaming out of the read head is limited to the speed of the data coming off the rotating disk. With modern disks with vertical recording (on the magnetic media) this is quite high. The old linear encoding is not very high. In any case the data tends to stream off the current fastest disk about 60 to 100 megabytes / second (once found - see 2 above) So, what you have is a situation where, with rotating media, you cannot get more than 100-200 "IOPS" (I/O operations / second). IOW the head cannot move back and forth between tracks more than 100-200 times per second MAXIMUM. If it is trying to do that from inner track to outer track, it will be even less than that. All of that stuff goes away with SSDs. There is no head, so the "Access time" drops to a fixed value, the same all of the time. It averages somewhere around .1 millisecond to "access the data" or get the data started streaming off the disk to the computer. That is .1 millisecond vs 8-12 milliseconds or about 100 times faster, just to access the data. The data reading out of the memory chips is also faster, and can be as high as 200-250 megabytes streaming reads. Between the two factors, SSDs can routinely perform anywhere from 2000 to 50,000 IOPS. IOW they can access 10,000 (pulled out of thin air from somewhere between these two figures) DIFFERENT sets of data in a second vs 100-200 for rotating media. This does NOT translate to 100-1000 times faster queries (or anything else), because you will hit a bottleneck somewhere else in the system. What it means is that the disks will no longer be slowing down the loading of the query data into memory, i.e. the computer will not be waiting for the disks any more. This seems to be pretty true. John W. Colby www.ColbyConsulting.com On 10/12/2010 9:34 AM, Rocky Smolin wrote: > Do you use it as Kingston was saying - put the OS and apps on it? Do you > notice any improvement in response time. Seems to me that response time is > largely data transfer to and from the disk - so in that case you wouldn't > see any difference. A query that takes 20 seconds would still take twenty > seconds, no? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 5:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > I cannot discuss any specific brand other than the one I use, but I can say > that SSDs in general *rock*, with the right supports. > > They are not drop in replacements yet - your grandma probably wouldn't > wanna. There are trim issues and firmware update issues but things are > getting better. > > John W. Colby > www.ColbyConsulting.com > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: >> http://www.youtube.com/kingstonssdnow >> >> Maybe you could win one: >> >> http://www.kingston.com/ssd/destructo/default.asp >> >> >> >> Rocky >> >> >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From michael at mattysconsulting.com Tue Oct 12 10:40:55 2010 From: michael at mattysconsulting.com (Michael Mattys) Date: Tue, 12 Oct 2010 11:40:55 -0400 Subject: [AccessD] BeginTrans and CommitTrans (was SSD - Anything to it?) In-Reply-To: <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> References: <4CB45B77.60102@colbyconsulting.com> <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> Message-ID: <4F8F6842DD9E4FF7AF5948340712B134@Gateway> Thanks for pointing to the excellent work on this page, Mark. Exactly what I forgot to use in some of my own queries. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, October 12, 2010 11:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SSD - Anything to it? John - this consultant is claiming a 400% speed increase with Access applications just by converting to SSD ! http://www.blueclaw-db.com/access_consultant_rapid.htm IMHO - he's got some credibility problems after I reviewed that VBA coding of his...... > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > I cannot discuss any specific brand other than the one I use, > but I can say that SSDs in general *rock*, with the right supports. > > They are not drop in replacements yet - your grandma probably > wouldn't wanna. There are trim issues and firmware update > issues but things are getting better. > > John W. Colby > www.ColbyConsulting.com > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: > > http://www.youtube.com/kingstonssdnow > > > > Maybe you could win one: > > > > http://www.kingston.com/ssd/destructo/default.asp > > > > > > > > Rocky > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Tue Oct 12 10:51:16 2010 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 12 Oct 2010 08:51:16 -0700 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <4CB48196.1090501@colbyconsulting.com> References: <4CB45B77.60102@colbyconsulting.com> <8D869D4A558548E5AE20B5920008F623@HAL9005> <4CB48196.1090501@colbyconsulting.com> Message-ID: But don't rush out to buy one yet!: http://www.zdnet.com/blog/storage/the-flash-price-crash/1121?tag=nl.e539 Doug On Tue, Oct 12, 2010 at 8:41 AM, jwcolby wrote: > Rocky, > > >Seems to me that response time is largely data transfer to and from the > disk - so in that case you > wouldn't see any difference. A query that takes 20 seconds would still take > twenty seconds, no? > > > From rockysmolin at bchacc.com Tue Oct 12 11:23:58 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 09:23:58 -0700 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <4CB48196.1090501@colbyconsulting.com> References: <4CB45B77.60102@colbyconsulting.com><8D869D4A558548E5AE20B5920008F623@HAL9005> <4CB48196.1090501@colbyconsulting.com> Message-ID: <87A71F7904C84BA39165DE1930A05A55@HAL9005> Oh I understand about the increase in transfer rate and the decrease in response time with the SSD. But to achieve the gains when executing say a query, the front and back ends would both have to be on an SSD I would think. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, October 12, 2010 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SSD - Anything to it? Rocky, >Seems to me that response time is largely data transfer to and from the disk - so in that case you wouldn't see any difference. A query that takes 20 seconds would still take twenty seconds, no? It is way more than that. The point of an SSD is: 1) They can transfer data faster, i.e. they can read blocks of data and transfer those blocks at electronic speeds. 2) They can access a specific sector faster. With rotating media, you have to position the head (9 milliseconds or so) and then wait for the disk to rotate the desired data under the head (~1-2 ms depending on rotation speed). Only then can the data actually stream off the disk. This is known as "Access time" with rotating media. 3) The data streaming out of the read head is limited to the speed of the data coming off the rotating disk. With modern disks with vertical recording (on the magnetic media) this is quite high. The old linear encoding is not very high. In any case the data tends to stream off the current fastest disk about 60 to 100 megabytes / second (once found - see 2 above) So, what you have is a situation where, with rotating media, you cannot get more than 100-200 "IOPS" (I/O operations / second). IOW the head cannot move back and forth between tracks more than 100-200 times per second MAXIMUM. If it is trying to do that from inner track to outer track, it will be even less than that. All of that stuff goes away with SSDs. There is no head, so the "Access time" drops to a fixed value, the same all of the time. It averages somewhere around .1 millisecond to "access the data" or get the data started streaming off the disk to the computer. That is .1 millisecond vs 8-12 milliseconds or about 100 times faster, just to access the data. The data reading out of the memory chips is also faster, and can be as high as 200-250 megabytes streaming reads. Between the two factors, SSDs can routinely perform anywhere from 2000 to 50,000 IOPS. IOW they can access 10,000 (pulled out of thin air from somewhere between these two figures) DIFFERENT sets of data in a second vs 100-200 for rotating media. This does NOT translate to 100-1000 times faster queries (or anything else), because you will hit a bottleneck somewhere else in the system. What it means is that the disks will no longer be slowing down the loading of the query data into memory, i.e. the computer will not be waiting for the disks any more. This seems to be pretty true. John W. Colby www.ColbyConsulting.com On 10/12/2010 9:34 AM, Rocky Smolin wrote: > Do you use it as Kingston was saying - put the OS and apps on it? Do > you notice any improvement in response time. Seems to me that > response time is largely data transfer to and from the disk - so in > that case you wouldn't see any difference. A query that takes 20 > seconds would still take twenty seconds, no? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 5:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > I cannot discuss any specific brand other than the one I use, but I > can say that SSDs in general *rock*, with the right supports. > > They are not drop in replacements yet - your grandma probably wouldn't > wanna. There are trim issues and firmware update issues but things > are getting better. > > John W. Colby > www.ColbyConsulting.com > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: >> http://www.youtube.com/kingstonssdnow >> >> Maybe you could win one: >> >> http://www.kingston.com/ssd/destructo/default.asp >> >> >> >> Rocky >> >> >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Oct 12 12:11:22 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 12 Oct 2010 13:11:22 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> References: <4CB45B77.60102@colbyconsulting.com> <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> Message-ID: Yo! You got sometin against spaghetti code? What's wrong with having three of four GoTo's in a routine? Maybe the guy just doesn't like using If Then Else. And what's wrong with having an On Error Goto inside the error handler? At least he sets his objects to Nothing at the end. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, October 12, 2010 11:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SSD - Anything to it? John - this consultant is claiming a 400% speed increase with Access applications just by converting to SSD ! http://www.blueclaw-db.com/access_consultant_rapid.htm IMHO - he's got some credibility problems after I reviewed that VBA coding of his...... > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > I cannot discuss any specific brand other than the one I use, but I > can say that SSDs in general *rock*, with the right supports. > > They are not drop in replacements yet - your grandma probably wouldn't > wanna. There are trim issues and firmware update issues but things > are getting better. > > John W. Colby > www.ColbyConsulting.com > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: > > http://www.youtube.com/kingstonssdnow > > > > Maybe you could win one: > > > > http://www.kingston.com/ssd/destructo/default.asp > > > > > > > > Rocky > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Tue Oct 12 12:35:13 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 12 Oct 2010 13:35:13 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: References: <4CB45B77.60102@colbyconsulting.com> <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> Message-ID: <005001cb6a33$d3d63ba0$0601a8c0@MSIMMSWS> See...this is what got VB and VBA panned from many IT shops. This coding is atrocious, no question. BTW: I've seen some absolutely elegant VBA coding from many of the Gurus.... it was easy to follow and easy to modify. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Heenan, Lambert > Sent: Tuesday, October 12, 2010 1:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Yo! You got sometin against spaghetti code? What's wrong with > having three of four GoTo's in a routine? Maybe the guy just > doesn't like using If Then Else. And what's wrong with having > an On Error Goto inside the error handler? > > At least he sets his objects to Nothing at the end. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Tuesday, October 12, 2010 11:04 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SSD - Anything to it? > > John - this consultant is claiming a 400% speed increase with > Access applications just by converting to SSD ! > http://www.blueclaw-db.com/access_consultant_rapid.htm > > IMHO - he's got some credibility problems after I reviewed > that VBA coding of his...... > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Tuesday, October 12, 2010 8:59 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] SSD - Anything to it? > > > > Rocky, > > > > I cannot discuss any specific brand other than the one I use, but I > > can say that SSDs in general *rock*, with the right supports. > > > > They are not drop in replacements yet - your grandma > probably wouldn't > > wanna. There are trim issues and firmware update issues but things > > are getting better. > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: > > > http://www.youtube.com/kingstonssdnow > > > > > > Maybe you could win one: > > > > > > http://www.kingston.com/ssd/destructo/default.asp > > > > > > > > > > > > Rocky > > > > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Tue Oct 12 12:47:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 10:47:14 -0700 Subject: [AccessD] Error 3070 - field not recognized Message-ID: Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From adtp at airtelmail.in Tue Oct 12 12:46:20 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 12 Oct 2010 23:16:20 +0530 Subject: [AccessD] Run a routine in another mdb References: <4C261901.4050903@nanaimo.ark.com> Message-ID: Tony, It seems this thread, initiated vide your post of 26-Jun-2010, has been awaiting further progress. You wish to run a subroutine belonging to an external db which is already in open state. It is seen that if this task is attempted via office automation, there is a tendency towards landing into a hung state, if external db happens to be already in open state. On the other hand, the desired objective can be realized by setting up a temporary library reference to the external db on the fly. Sample subroutine named P_RunProcInExternalDb_A(), located in general module of local db, as given below, establishes a temporary reference to external db, runs the sample subroutine P_TestMsg_A() belonging to external db (as given below) and thereafter removes the temporary reference. For sake of illustration, four arguments of different data types (text, number, date, boolean) are passed to the external proc. For a similar task, sample subroutine named P_RunProcInExternalDb_B() in local db as given below, demonstrates a more generic approach. In this case, the name of target subroutine in external db is passed as the first argument, while the arguments (for external proc) if any, are passed as the second argument (optional one), in the form of a semicolon separated string. Correspondingly, the subroutine in external db has to extract individual elements from the string listing the arguments, as shown in sample subroutine named P_TestMsg_B() given below. Typical call for using this approach would be as follows (for illustration, elements of argument list represent four different data types i.e. text, number, date, boolean): ' Sample calling code in form's module '=================================== Private Sub Cmd_B_Click() P_RunProcInExternalDb_B _ "P_TestMsg_B", "Survey;50;" & _ Format(Date + 90, "dd-mmm-yyyy") & ";True" End Sub '=================================== Note: Application.Run method has been used as it allows the target procedure name to be placed in a string, thereby avoiding compile error that would otherwise be encountered on account of non-recognition of library reference qualifier for external db (as it is not a permanent reference). Best wishes, A.D. Tejpal ------------ ' Sample code in general module of LOCAL db ' (For purpose of this sample, file External.mdb ' is located adjacent local db in the same folder) '================================ ' Declarations section Public Const ExternalDbName As String = "External" Public Const ExternalDbExtn As String = ".mdb" '------------------------------------------------ Sub P_RunProcInExternalDb_A() On Error Resume Next Dim FilePath As String FilePath = CurrentProject.Path & _ "\" & ExternalDbName & _ ExternalDbExtn ' Remove any existing library reference ' bearing this name Application.References.Remove _ Application.References(ExternalDbName) ' Set up fresh library reference as per ' specified file path Application.References.AddFromFile FilePath ' Run the desired procedure belonging to ' external db Application.Run ExternalDbName & _ ".P_TestMsg_A", "Survey", "50", _ Format(Date + 90, "dd-mmm-yyyy"), _ "True" ' Remove the above library reference Application.References.Remove _ Application.References(ExternalDbName) On Error GoTo 0 End Sub '------------------------------------------------ Sub P_RunProcInExternalDb_B( _ ExternalProcName As String, _ Optional ArgumentList As String) ' ArgumentList is a semicolon (;) separated ' list of arguments for external procedure. On Error Resume Next Dim FilePath As String FilePath = CurrentProject.Path & _ "\" & ExternalDbName & _ ExternalDbExtn ' Remove any existing library reference ' bearing this name Application.References.Remove _ Application.References(ExternalDbName) ' Set up fresh library reference as per ' specified file path Application.References.AddFromFile FilePath ' Run the desired procedure belonging to ' external db Application.Run ExternalDbName & _ "." & ExternalProcName, ArgumentList ' Remove the above library reference Application.References.Remove _ Application.References(ExternalDbName) On Error GoTo 0 End Sub '=================================== ' Sample code in general module of EXTERNAL db '=================================== Sub P_TestMsg_A(Optional Task As String = "", _ Optional Points As Long = 0, _ Optional TargetDt As Variant, _ Optional HasPriority As Boolean = False) Dim Msg As String Msg = "Today: " & Format(Date, "dd-mmm-yyyy") If Len(Task) > 0 Then Msg = Msg & vbCrLf & "Task: " & Task End If If Points > 0 Then Msg = Msg & vbCrLf & "Points: " & Points End If If Not IsMissing(TargetDt) Then Msg = Msg & vbCrLf & "Target Dt: " & TargetDt End If If HasPriority = True Then Msg = Msg & vbCrLf & "This Task Has Priority" End If MsgBox Msg End Sub '------------------------------------------------------- Sub P_TestMsg_B( _ Optional ArgumentList As String = "") ' ArgumenList is a semicolon (;) separated ' list of arguments Dim Msg As String, Rtv As Variant Msg = "Today: " & Format(Date, "dd-mmm-yyyy") If Len(ArgumentList) > 0 Then Rtv = Split(ArgumentList, ";") If Len(Trim(Rtv(0))) > 0 Then Msg = Msg & vbCrLf & "Task: " & Trim(Rtv(0)) End If If UBound(Rtv) > 0 Then If Val(Trim(Rtv(1))) > 0 Then Msg = Msg & vbCrLf & "Points: " & Trim(Rtv(1)) End If End If If UBound(Rtv) > 1 Then If IsDate(Trim(Rtv(2))) Then Msg = Msg & vbCrLf & "Target Dt: " & _ CDate(Trim(Rtv(2))) End If End If If UBound(Rtv) > 2 Then If Eval(Trim(Rtv(3))) <> 0 Then Msg = Msg & vbCrLf & _ "This Task Has Priority" End If End If End If MsgBox Msg End Sub '================================= ----- Original Message ----- From: Tony Septav To: Access Developers discussion and problem solving Sent: Saturday, June 26, 2010 20:43 Subject: [AccessD] Run a routine in another mdb Hey All Is it possible to run a routine in another mdb that is already open??? Can't seem to find the correct syntax. Thanks From Lambert.Heenan at chartisinsurance.com Tue Oct 12 12:52:03 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 12 Oct 2010 13:52:03 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <005001cb6a33$d3d63ba0$0601a8c0@MSIMMSWS> References: <4CB45B77.60102@colbyconsulting.com> <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> <005001cb6a33$d3d63ba0$0601a8c0@MSIMMSWS> Message-ID: But I wonder if some of the C/C++/C# code out there is not just as bad. Perhaps it is the frequently "write only" nature of code written in such languages that disguises poor coding to the casual reader. ("write-only" refers to code that even the original code does not understand when returning to it.) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, October 12, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SSD - Anything to it? See...this is what got VB and VBA panned from many IT shops. This coding is atrocious, no question. BTW: I've seen some absolutely elegant VBA coding from many of the Gurus.... it was easy to follow and easy to modify. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Tuesday, October 12, 2010 1:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Yo! You got sometin against spaghetti code? What's wrong with having > three of four GoTo's in a routine? Maybe the guy just doesn't like > using If Then Else. And what's wrong with having an On Error Goto > inside the error handler? > > At least he sets his objects to Nothing at the end. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Tuesday, October 12, 2010 11:04 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SSD - Anything to it? > > John - this consultant is claiming a 400% speed increase with Access > applications just by converting to SSD ! > http://www.blueclaw-db.com/access_consultant_rapid.htm > > IMHO - he's got some credibility problems after I reviewed that VBA > coding of his...... > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Tuesday, October 12, 2010 8:59 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] SSD - Anything to it? > > > > Rocky, > > > > I cannot discuss any specific brand other than the one I use, but I > > can say that SSDs in general *rock*, with the right supports. > > > > They are not drop in replacements yet - your grandma > probably wouldn't > > wanna. There are trim issues and firmware update issues but things > > are getting better. > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 10/11/2010 6:26 PM, Rocky Smolin wrote: > > > http://www.youtube.com/kingstonssdnow > > > > > > Maybe you could win one: > > > > > > http://www.kingston.com/ssd/destructo/default.asp > > > > > > > > > > > > Rocky > > > > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 12 13:09:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 12 Oct 2010 14:09:52 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <87A71F7904C84BA39165DE1930A05A55@HAL9005> References: <4CB45B77.60102@colbyconsulting.com><8D869D4A558548E5AE20B5920008F623@HAL9005> <4CB48196.1090501@colbyconsulting.com> <87A71F7904C84BA39165DE1930A05A55@HAL9005> Message-ID: <4CB4A470.2090302@colbyconsulting.com> Rocky, I am actually placing my SQL Server database files on the SSD. The "FE" in my case is C# code or even queries that SQL Server is running directly. As for trying to do an Access BE sitting on a SSD, no, I would think it would work just like any other BE except that the file server could get at the pieces of the file much faster. As I mentioned, you will not get a 100X increasde in speed, not even close, however you should see significant speed increases in most cases, even with an Access BE. John W. Colby www.ColbyConsulting.com On 10/12/2010 12:23 PM, Rocky Smolin wrote: > Oh I understand about the increase in transfer rate and the decrease in > response time with the SSD. But to achieve the gains when executing say a > query, the front and back ends would both have to be on an SSD I would > think. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, October 12, 2010 8:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SSD - Anything to it? > > Rocky, > > >Seems to me that response time is largely data transfer to and from the > disk - so in that case you wouldn't see any difference. A query that takes > 20 seconds would still take twenty seconds, no? > > It is way more than that. > > The point of an SSD is: > > 1) They can transfer data faster, i.e. they can read blocks of data and > transfer those blocks at electronic speeds. > 2) They can access a specific sector faster. With rotating media, you have > to position the head (9 milliseconds or so) and then wait for the disk to > rotate the desired data under the head (~1-2 ms depending on rotation > speed). Only then can the data actually stream off the disk. This is known > as "Access time" with rotating media. > 3) The data streaming out of the read head is limited to the speed of the > data coming off the rotating disk. With modern disks with vertical > recording (on the magnetic media) this is quite high. The old linear > encoding is not very high. In any case the data tends to stream off the > current fastest disk about 60 to 100 megabytes / second (once found - see 2 > above) > > So, what you have is a situation where, with rotating media, you cannot get > more than 100-200 "IOPS" > (I/O operations / second). IOW the head cannot move back and forth between > tracks more than 100-200 times per second MAXIMUM. If it is trying to do > that from inner track to outer track, it will be even less than that. > > All of that stuff goes away with SSDs. There is no head, so the "Access > time" drops to a fixed value, the same all of the time. It averages > somewhere around .1 millisecond to "access the data" > or get the data started streaming off the disk to the computer. That is .1 > millisecond vs 8-12 milliseconds or about 100 times faster, just to access > the data. > > The data reading out of the memory chips is also faster, and can be as high > as 200-250 megabytes streaming reads. > > Between the two factors, SSDs can routinely perform anywhere from 2000 to > 50,000 IOPS. IOW they can access 10,000 (pulled out of thin air from > somewhere between these two figures) DIFFERENT sets of data in a second vs > 100-200 for rotating media. > > This does NOT translate to 100-1000 times faster queries (or anything else), > because you will hit a bottleneck somewhere else in the system. What it > means is that the disks will no longer be slowing down the loading of the > query data into memory, i.e. the computer will not be waiting for the disks > any more. > > This seems to be pretty true. > > John W. Colby > www.ColbyConsulting.com > > On 10/12/2010 9:34 AM, Rocky Smolin wrote: >> Do you use it as Kingston was saying - put the OS and apps on it? Do >> you notice any improvement in response time. Seems to me that >> response time is largely data transfer to and from the disk - so in >> that case you wouldn't see any difference. A query that takes 20 >> seconds would still take twenty seconds, no? >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, October 12, 2010 5:59 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SSD - Anything to it? >> >> Rocky, >> >> I cannot discuss any specific brand other than the one I use, but I >> can say that SSDs in general *rock*, with the right supports. >> >> They are not drop in replacements yet - your grandma probably wouldn't >> wanna. There are trim issues and firmware update issues but things >> are getting better. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 10/11/2010 6:26 PM, Rocky Smolin wrote: >>> http://www.youtube.com/kingstonssdnow >>> >>> Maybe you could win one: >>> >>> http://www.kingston.com/ssd/destructo/default.asp >>> >>> >>> >>> Rocky >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Oct 12 13:12:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 12 Oct 2010 14:12:47 -0400 Subject: [AccessD] SSD - Anything to it? In-Reply-To: <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> References: <4CB45B77.60102@colbyconsulting.com> <00c901cb6a1e$bfc0fc50$0601a8c0@MSIMMSWS> Message-ID: <4CB4A51F.2040709@colbyconsulting.com> LOL, did you look at the other recommendations? Similarly suspect. John W. Colby www.ColbyConsulting.com On 10/12/2010 11:04 AM, Mark Simms wrote: > John - this consultant is claiming a 400% speed increase with Access > applications just by converting to SSD ! > http://www.blueclaw-db.com/access_consultant_rapid.htm > > IMHO - he's got some credibility problems after I reviewed that VBA coding > of his...... > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, October 12, 2010 8:59 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SSD - Anything to it? >> >> Rocky, >> >> I cannot discuss any specific brand other than the one I use, >> but I can say that SSDs in general *rock*, with the right supports. >> >> They are not drop in replacements yet - your grandma probably >> wouldn't wanna. There are trim issues and firmware update >> issues but things are getting better. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 10/11/2010 6:26 PM, Rocky Smolin wrote: >>> http://www.youtube.com/kingstonssdnow >>> >>> Maybe you could win one: >>> >>> http://www.kingston.com/ssd/destructo/default.asp >>> >>> >>> >>> Rocky >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From rockysmolin at bchacc.com Tue Oct 12 13:38:20 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 11:38:20 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: Message-ID: <5438E030B23F45B08C839E969B4AF543@HAL9005> OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From accessd at shaw.ca Tue Oct 12 14:39:54 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 12:39:54 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <5438E030B23F45B08C839E969B4AF543@HAL9005> References: <5438E030B23F45B08C839E969B4AF543@HAL9005> Message-ID: <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 rockysmolin at bchacc.com Tue Oct 12 15:10:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 13:10:21 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> Message-ID: LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 Tue Oct 12 17:45:05 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 12 Oct 2010 15:45:05 -0700 Subject: [AccessD] [ACCESS-L] Is there a way to dynamically hide fields if needed In-Reply-To: References: Message-ID: Found it! I simply had to move the subform requery before calling the function on the subform. On Thu, Oct 7, 2010 at 1:03 PM, David McAfee wrote: > A.D., thanks for the code. > > I had to modify to work with my ADP. > > > Right now I have an issue where I have to hit the OK button twice to > make the filter work. > > If I put an option stop in the code and step through the function, it > will work on the first click. > > This tells me it is a refresh/repaint issue. > > I've tried putting DoEvents all over the function as well as before > and after the call, and it still doesn't do it on the first click: > > Does anyone have an idea why I would have to press the cmdbutton twice > to get it to work? > > This is what I changed your function to: > '*************************** > Public Sub P_HideEmptyColumnsNumeric() > On Error Resume Next > ? Dim ct As Access.Control, fd As DAO.Field > ? Dim CtSource As String > ? Dim subtotal As Double > ? DoEvents > ? With Me.RecordsetClone > ? ? ? For Each ct In Me.Detail.Controls > ? ? ? ? ? DoEvents > ? ? ? ? ? Err.Clear > ? ? ? ? ? CtSource = ct.ControlSource > ? ? ? ? ? ? If ct.Tag = "Hideable" Then > ? ? ? ? ? ? ? ?DoEvents > ? ? ? ? ? ? ? ?ct.ColumnHidden = False > ? ? ? ? ? ? ? ?Set fd = .Fields(CtSource) > ' ? ? ? ? ? ? ? ?Select Case CtSource > ' ? ? ? ? ? ? ? ? ? ?Case "invoice_no", "bill_to_cust", "IncDetID" > ' ? ? ? ? ? ? ? ? ? ? ? ?'Always hide these fields > ' ? ? ? ? ? ? ? ? ? ? ? ?ct.ColumnHidden = True > ' ? ? ? ? ? ? ? ? ? ?Case "item_no", "description", "quantity", > "DlrPrice", "IncentiveAmt", "Unit Price", "TotalIncentive" > ' ? ? ? ? ? ? ? ? ? ? ? ?'Do nothing, leaving these fields visible > ' ? ? ? ? ? ? ? ? ? ?Case Else > ? ? ? ? ? ? ? ? ? ? ? ?DoEvents > ? ? ? ? ? ? ? ? ? ? ? .MoveLast > ? ? ? ? ? ? ? ? ? ? ? subtotal = 0 > ? ? ? ? ? ? ? ? ? ? ? If Not .BOF Then > ? ? ? ? ? ? ? ? ? ? ? ? ? ?Do Until .BOF > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?If CtSource Like "=cdbl(*" Then > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?subtotal = subtotal + > .Fields(Mid(CtSource, 8, Len(CtSource) - 9)) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Else > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?subtotal = subtotal + > Nz(.Fields(CtSource), 0) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?End If > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?.MovePrevious > ? ? ? ? ? ? ? ? ? ? ? ? ? ?Loop > ? ? ? ? ? ? ? ? ? ? ? ?Else > ? ? ? ? ? ? ? ? ? ? ? ? ? ?subtotal = 0 > ? ? ? ? ? ? ? ? ? ? ? ?End If > ? ? ? ? ? ? ? ? ? ? ? ?DoEvents > ? ? ? ? ? ? ? ? ? ? ? ?If subtotal <= 0 Then > ? ? ? ? ? ? ? ? ? ? ? ? ? ?DoEvents > ? ? ? ? ? ? ? ? ? ? ? ? ? ?ct.ColumnHidden = True > ? ? ? ? ? ? ? ? ? ? ? ?End If > ' ? ? ? ? ? ? ? ?End Select > ? ? ? ? ? End If > ? ? ? Next > ? End With > ? Set ct = Nothing > ? Set fd = Nothing > ? On Error GoTo 0 > '*************************** > > This is the call from the parent form: > '************************************************************ > Private Sub cmdInvNoEnter_Click() > > ClearHeaderFields > ShowHeaderFields (False) > > If Nz(Me.txtinvno, "") <> "" Then > ? ?Dim rs As ADODB.Recordset > ? ?Set rs = New ADODB.Recordset > ? ?'Call the stored procedure, passing it the parameter, returning recordset rs > ? ?CurrentProject.Connection.stpSalesHeaderByInvoiceNo Me.txtinvno, rs > ? ?'Fill in the fields from the returned recordset > ? ?If Not rs.BOF And Not rs.EOF Then > ? ? ? ?Me.txtInvDate = rs![TranDate] > ? ? ? ?Me.txtCustNo = rs![CustNo] > ? ? ? ?Me.txtCustName = rs![CustName] > ? ? ? ?Me.txtAMno = rs![AMno] > ? ? ? ?Me.txtAMname = rs![AMname] > ? ? ? ?Me.txtSSRno = rs![SSRno] > ? ? ? ?Me.txtSSRname = rs![SSRname] > ? ? ? ?ShowHeaderFields (True) > ? ? ? ?DoEvents > ? ? ? ?Call Me.sbfrmSalesDetailByInvoiceNo.Form.P_HideEmptyColumnsNumeric > ?'If I dont call it here, it doesnt work > ? ? ? ?DoEvents > ? ? ? ?Me.lstDet.RowSource = "EXEC stpSalesDetailByInvoiceNo '" & > Me.txtinvno & "'" 'This is to test the list box vs datasheet subform > ? ? ? ?Call FormatLB > ? ?Else > ? ? ? ?Me.txtInvDate = "" > ? ? ? ?Me.txtCustNo = "" > ? ? ? ?Me.txtCustName = "Invoice number was not found" > ? ? ? ?Me.txtAMno = "" > ? ? ? ?Me.txtAMname = "" > ? ? ? ?Me.txtSSRno = "" > ? ? ? ?Me.txtSSRname = "" > ? ? ? ?Me.txtCustName.Visible = True > ? ? ? ?Me.lstDet.RowSource = "" > ? ?End If > ? ?rs.Close > ? ?Set rs = Nothing > > ? ?'Me.sbfrmSalesDetailByInvoiceNo.Requery > ? ?Me.sbfrmSalesDetailByInvoiceNo.Form.Requery > > Else > ? ?ShowHeaderFields (False) > ? ?Me.sbfrmSalesDetailByInvoiceNo.Visible = False > ? ?Me.lstDet.RowSource = "" > End If > End Sub > '********************************************************* > > > On Sat, Oct 2, 2010 at 9:25 PM, A.D. Tejpal wrote: >> David, >> >> ? ?You wish to effect dynamic hiding of empty columns (having no significant value beyond Nulls or zeros). Datasheet form happens to be well suited for this purpose. >> >> ? ?Sample code in VBA module of the form, as given below, should get you the desired results. It is a generic routine, free of specific names for source query and its fields. >> >> Best wishes, >> A.D. Tejpal >> ------------ >> >> ' Code in VBA module of datasheet form >> ' (For hiding numeric columns having no >> ' significant value beyond Nulls or zeros) >> '============================== >> Private Sub Form_Load() >> ? ?P_HideEmptyColumnsNumeric >> End Sub >> '---------------------------------------------- >> >> Private Sub P_HideEmptyColumnsNumeric() >> On Error Resume Next >> ? ?Dim ct As Access.Control, fd As DAO.Field >> ? ?Dim CtSource As String >> >> ? ?With Me.RecordsetClone >> ? ? ? ?For Each ct In Me.Detail.Controls >> ? ? ? ? ? ?Err.Clear >> ? ? ? ? ? ?CtSource = ct.ControlSource >> ? ? ? ? ? ?If Err.Number = 0 And _ >> ? ? ? ? ? ? ? ? ? ? ? ?Not CtSource Like "=*" Then >> ? ? ? ? ? ? ? ?' It is a bound control >> ? ? ? ? ? ? ? ?ct.ColumnHidden = False >> ? ? ? ? ? ? ? ?Set fd = .Fields(CtSource) >> ? ? ? ? ? ? ? ?Select Case fd.Type >> ? ? ? ? ? ? ? ? ? ?' Hide numeric columns - if blank >> ? ? ? ? ? ? ? ? ? ?Case dbText, dbMemo, dbGUID >> ? ? ? ? ? ? ? ? ? ?Case Else >> ? ? ? ? ? ? ? ? ? ? ? ?.Filter = "Nz(" & CtSource & ", 0) > 0" >> ? ? ? ? ? ? ? ? ? ? ? ?If .OpenRecordset.EOF Then >> ? ? ? ? ? ? ? ? ? ? ? ? ? ?' This column is blank - Hide it >> ? ? ? ? ? ? ? ? ? ? ? ? ? ?ct.ColumnHidden = True >> ? ? ? ? ? ? ? ? ? ? ? ?End If >> ? ? ? ? ? ? ? ?End Select >> ? ? ? ? ? ?End If >> ? ? ? ?Next >> ? ?End With >> >> ? ?Set ct = Nothing >> ? ?Set fd = Nothing >> ? ?On Error GoTo 0 >> End Sub >> '==================================== >> >> ?----- Original Message ----- >> ?From: David McAfee >> ?To: ACCESS-L at PEACH.EASE.LSOFT.COM >> ?Sent: Friday, October 01, 2010 22:52 >> ?Subject: Is there a way to dynamically hide fields if needed >> >> >> ?(Crossposted on AccessD) >> >> >> ?I'm working in an ADP. >> >> ?I have the pseudo pivot table since I am working in SQL2000 (PIVOT >> ?wasn't available until SQL2005) >> >> ?SELECT >> ?SplitID, IncDetID, SplitTypeID, SplitAmt >> ?FROM tblSplit >> ?WHERE IncDetID = 5199 >> >> ?returns >> >> ?SplitID IncDetID SplitTypeID SplitAmt >> ?36 5199 1 15.00 >> ?37 5199 7 5.00 >> >> >> ?My pseudo pivot table: >> ?SELECT IncDetID, >> ?SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS DlrPay, >> ?SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS SvcMgr, >> ?SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) >> ?AS PartsDept, >> ?SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS SvcAdv, >> ?SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS SvcDept, >> ?SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS SvcTech, >> ?SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS Contest >> ?FROM tblSPlit >> ?GROUP BY IncDetID >> >> ?returns: >> >> ?IncDetID DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest >> ?5199 15.00 0.00 0.00 0.00 0.00 ?0.00 5.00 >> >> >> ?In the actual final display, there are many tables joined to this, so >> ?the resultset really looks like: >> >> ?CustNo InvNo ItemNo Qty UnitPrice IncentiveAmt TotalIncentive >> ?DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest >> ?07235 5452 02951 6 54.95 20.00 120.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 5.00 >> ?07235 5452 03111 12 40.95 17.00 204.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 2.00 >> ?07235 5452 01121 24 30.95 20.00 480.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 5.00 >> ?07235 5452 01161 12 36.95 25.00 300.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 10.00 >> ?07235 5452 06011 12 47.95 22.00 264.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 ? 7.00 >> ?07235 5452 10521 12 41.95 19.00 228.00 15.00 0.00 0.00 0.00 >> ?0.00 0.00 ? 4.00 >> >> ?I'd really like it to look like this: >> ?CustNo InvNo ItemNo Qty UnitPrice IncentiveAmt TotalIncentive DlrPay Contest >> ?07235 5452 ?02951 6 54.95 20.00 120.00 15.00 5.00 >> ?07235 5452 ?03111 12 40.95 17.00 204.00 15.00 2.00 >> ?07235 5452 ?01121 24 30.95 20.00 480.00 15.00 5.00 >> ?07235 5452 ?01161 12 36.95 25.00 300.00 15.00 10.00 >> ?07235 5452 ?06011 12 47.95 22.00 264.00 15.00 7.00 >> ?07235 5452 ?10521 12 41.95 19.00 228.00 15.00 4.00 >> >> ?I'm still debating on displaying this as a listbox or subform on the main form. >> >> ?I'm thinking if it is in a listbox, simply loop through the last 7 >> ?colums. If the entire column is 0 then make that column a 0" width in >> ?the list box. >> ?If I go with a datasheet subform, run a recordset clone and if all >> ?values for a given field are 0 then make that field hidden. >> >> ?any ideas? >> >> ?I have to do this on a form and on a report (print out of the form) so >> ?I'm trying to think of a good way to do this that will apply to both. >> >> ?Thanks, >> ?David > From accessd at shaw.ca Tue Oct 12 17:55:11 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 15:55:11 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> Message-ID: <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 Darryl.Collins at iag.com.au Tue Oct 12 19:17:37 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 13 Oct 2010 11:17:37 +1100 Subject: [AccessD] Resize pictures In-Reply-To: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> Message-ID: <201010130017.o9D0Hd64029509@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Joe, May not be suitable for your needs, but I find the batch processing function in irfanview (free software) excellent for resizing photos in bulk. Not sure if that will be of use to you or not but I though I would put it out there just in case. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, 6 October 2010 3:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Tue Oct 12 19:34:23 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 13 Oct 2010 11:34:23 +1100 Subject: [AccessD] Resize pictures In-Reply-To: <20101006120316.SSEK8.99633.imail@fed1rmwml4101> Message-ID: <201010130034.o9D0YOAL023058@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Duh... Or I could just read what everyone else has already suggested before replying... Sorry been away for 10 days or so, catching up on emails. cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dw-murphy at cox.net Sent: Thursday, 7 October 2010 3:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resize pictures Joe, Take a look at Infranview. I use it for batch processing. Have not run it from code but believe it is possible. ---- Joe O'Connell wrote: > I am developing an A2003 application for a division of a construction > company that installs guardrails on highways. They have long term > contracts with the Department of Transportation to fix/repair/replace > guardrails that have been damaged. Part of the documentation that is > required is to provide a "before" and an "after" picture for all > repairs. > > The application lets the user browse the memory card for the pictures > and then copies them to the computer's disk. The original size of the > pictures is 5-6mb. Not only will a lot of disk space be required to > store the pictures, but pictures of this size take a lot of time to be > scaled for forms and reports. Due to the number of pictures processed > each day, it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their original > size. > > Any suggestions or code snippets to resize the pictures are greatly > appreciated. > > Joe O'Connell > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From accessd at shaw.ca Tue Oct 12 19:39:19 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 17:39:19 -0700 Subject: [AccessD] Resize pictures In-Reply-To: <201010130017.o9D0Hd64029509@databaseadvisors.com> References: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> <201010130017.o9D0Hd64029509@databaseadvisors.com> Message-ID: Hi Darryl: Stuart and I discussed the options, at some length, a while ago, on the DBA-Tech list. There are a whole set of features in the PHP language that will let you translate pictures every which way. There is no point in re-inventing the wheel. Any web server, IIS or Apatche can host PHP and an Access web call may be your answer. Check the following link out. http://www.php.net/manual/en/ref.image.php This may not be the answer you are looking for but it would work in lieu of another solution especially if that solution cost money and I will bet the number of options available will make your mouth water. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, October 12, 2010 5:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resize pictures ____________________________________________________________________________ ___________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ____________________________________________________________________________ ___________ Joe, May not be suitable for your needs, but I find the batch processing function in irfanview (free software) excellent for resizing photos in bulk. Not sure if that will be of use to you or not but I though I would put it out there just in case. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Wednesday, 6 October 2010 3:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resize pictures I am developing an A2003 application for a division of a construction company that installs guardrails on highways. They have long term contracts with the Department of Transportation to fix/repair/replace guardrails that have been damaged. Part of the documentation that is required is to provide a "before" and an "after" picture for all repairs. The application lets the user browse the memory card for the pictures and then copies them to the computer's disk. The original size of the pictures is 5-6mb. Not only will a lot of disk space be required to store the pictures, but pictures of this size take a lot of time to be scaled for forms and reports. Due to the number of pictures processed each day, it is not feasible for the user to manually resize the pictures before uploading. What I would like to do is to resize the pictures during this transfer process to about 10% of their original size. Any suggestions or code snippets to resize the pictures are greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________ ___________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ____________________________________________________________________________ ___________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 12 19:59:46 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 17:59:46 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> References: <5438E030B23F45B08C839E969B4AF543@HAL9005><71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> Message-ID: Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 marksimms at verizon.net Tue Oct 12 20:28:34 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 12 Oct 2010 21:28:34 -0400 Subject: [AccessD] Resize pictures In-Reply-To: <201010130017.o9D0Hd64029509@databaseadvisors.com> References: <1CF20DB644BE124083B31638E5D5C0236B7AD8@exch2.Onappsad.net> <201010130017.o9D0Hd64029509@databaseadvisors.com> Message-ID: <00c401cb6a75$f4602290$0601a8c0@MSIMMSWS> As of Photoshop 7, there is a scripting language that enables automatic/batch resizing and image conversion. I recommend JPEG compression at 96 DPI. That will definitely satisfy the contract requirement and keep image size very low. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Darryl Collins > Sent: Tuesday, October 12, 2010 8:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Resize pictures > > > ______________________________________________________________ > _________________________ > > Note: This e-mail is subject to the disclaimer contained at > the bottom of this message. > ______________________________________________________________ > _________________________ > > > > Joe, > > May not be suitable for your needs, but I find the batch > processing function in irfanview (free software) excellent > for resizing photos in bulk. Not sure if that will be of use > to you or not but I though I would put it out there just in case. > > cheers > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Joe O'Connell > Sent: Wednesday, 6 October 2010 3:28 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Resize pictures > > I am developing an A2003 application for a division of a > construction company that installs guardrails on highways. > They have long term contracts with the Department of > Transportation to fix/repair/replace guardrails that have > been damaged. Part of the documentation that is required is > to provide a "before" and an "after" picture for all repairs. > > The application lets the user browse the memory card for the > pictures and then copies them to the computer's disk. The > original size of the pictures is 5-6mb. Not only will a lot > of disk space be required to store the pictures, but pictures > of this size take a lot of time to be scaled for forms and > reports. Due to the number of pictures processed each day, > it is not feasible for the user to manually resize the > pictures before uploading. What I would like to do is to resize the > pictures during this transfer process to about 10% of their > original size. > > Any suggestions or code snippets to resize the pictures are > greatly appreciated. > > Joe O'Connell > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________ > _________________________ > > The information transmitted in this message and its > attachments (if any) is intended only for the person or > entity to which it is addressed. > The message may contain confidential and/or privileged > material. Any review, retransmission, 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. > > If you have received this in error, please contact the sender > and delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, > reproduce, disclose or distribute the information contained > in this e-mail and any attached files, with the permission of > the sender. > > This message has been scanned for viruses. > ______________________________________________________________ > _________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Oct 12 20:49:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 12 Oct 2010 21:49:39 -0400 Subject: [AccessD] Don't rush out - was SSD - Anything to it? In-Reply-To: References: <4CB45B77.60102@colbyconsulting.com> <8D869D4A558548E5AE20B5920008F623@HAL9005> <4CB48196.1090501@colbyconsulting.com> Message-ID: <4CB51033.6030704@colbyconsulting.com> Yea, they are quite expensive ATM. For the right situation though they can be worth jumping in. I jumped on a 30G as a "ram disk" for my virtual machine(s). It about tripled the speed of the third party software that I was running. Cost about $120 a year or so ago when I bought it. I just bought three 120g drives for my SQL Server. I am putting my database from hell on it and it really does make a huge difference, about 3X faster in many circumstances over rotating media. John W. Colby www.ColbyConsulting.com On 10/12/2010 11:51 AM, Doug Steele wrote: > But don't rush out to buy one yet!: > > http://www.zdnet.com/blog/storage/the-flash-price-crash/1121?tag=nl.e539 > > Doug > > On Tue, Oct 12, 2010 at 8:41 AM, jwcolbywrote: > >> Rocky, >> >> >Seems to me that response time is largely data transfer to and from the >> disk - so in that case you >> wouldn't see any difference. A query that takes 20 seconds would still take >> twenty seconds, no? >> >> >> From accessd at shaw.ca Tue Oct 12 21:34:08 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 19:34:08 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> Message-ID: <5A582B8F7FB440EAAA96D1C5B9CE8FAB@creativesystemdesigns.com> Hi Rocky: As you have already noticed the field names do not seem to work as expected Did you try the following for fun? This will determine if it is a field value or a field name is the problem. Dim i as integer With rs For i = 0 to .fields.count-1 ' If the following comes up with an error ' it is most likely an field error; like a null Msgbox i & ". " & .fields(i).value ' try something like, for nulls but watch out for date fields... 'Msgbox i & ". " & .fields(i).value & "" ' If string. 'Msgbox i & ". " & .fields(i).value + 0 ' if value. Next i End With Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 12 21:52:56 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 19:52:56 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> Message-ID: <11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com> Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 12 23:14:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 21:14:48 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com> References: <5438E030B23F45B08C839E969B4AF543@HAL9005><71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com><059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> <11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com> Message-ID: <3D95EFB89B8542C4A4B01172A5E5B4BF@HAL9005> No - I always prefix field names with fld and never use them for anything else. Nope - deleting the field form the table and re-entering it solved the problem. God knows why. I'm thinking rift in the temporal matrix. Some kind of quantum effect. Or a poltergeist. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 12 23:14:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 21:14:48 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <5A582B8F7FB440EAAA96D1C5B9CE8FAB@creativesystemdesigns.com> References: <5438E030B23F45B08C839E969B4AF543@HAL9005><71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com><059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> <5A582B8F7FB440EAAA96D1C5B9CE8FAB@creativesystemdesigns.com> Message-ID: <814A58A56DDC4C5BA431F676CB236654@HAL9005> Nope. Once a problem is solved I lose all interest in it. The real answers are relegated to a spiritual realm where they take on that unknowable and ineffable character of the Great Mysteries of Access - beyond the ken of ordinary mortal men. Some things are not meant to be known. Meaning it's close to my bed time. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:34 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: As you have already noticed the field names do not seem to work as expected Did you try the following for fun? This will determine if it is a field value or a field name is the problem. Dim i as integer With rs For i = 0 to .fields.count-1 ' If the following comes up with an error ' it is most likely an field error; like a null Msgbox i & ". " & .fields(i).value ' try something like, for nulls but watch out for date fields... 'Msgbox i & ". " & .fields(i).value & "" ' If string. 'Msgbox i & ". " & .fields(i).value + 0 ' if value. Next i End With Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 12 23:49:43 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 21:49:43 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <3D95EFB89B8542C4A4B01172A5E5B4BF@HAL9005> References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> <11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com> <3D95EFB89B8542C4A4B01172A5E5B4BF@HAL9005> Message-ID: Hi Rocky: That would have been nearly my last guess... it must be that when all possible logical solutions have been exhausted the only option left, no matter how implausible must be the answer. (Doyle could not have said it better) All I can say is welcome to the strange world of MS Access where the laws of the universe and logic do not necessarily apply. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 9:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized No - I always prefix field names with fld and never use them for anything else. Nope - deleting the field form the table and re-entering it solved the problem. God knows why. I'm thinking rift in the temporal matrix. Some kind of quantum effect. Or a poltergeist. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 13 00:24:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 12 Oct 2010 22:24:10 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: <5438E030B23F45B08C839E969B4AF543@HAL9005><71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com><059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com><11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com><3D95EFB89B8542C4A4B01172A5E5B4BF@HAL9005> Message-ID: <32E0BEDF7FDE4DED8BB9B5FC946F75B6@HAL9005> "where the laws of the universe and logic do not necessarily apply." I thought that was the OT list. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 9:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: That would have been nearly my last guess... it must be that when all possible logical solutions have been exhausted the only option left, no matter how implausible must be the answer. (Doyle could not have said it better) All I can say is welcome to the strange world of MS Access where the laws of the universe and logic do not necessarily apply. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 9:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized No - I always prefix field names with fld and never use them for anything else. Nope - deleting the field form the table and re-entering it solved the problem. God knows why. I'm thinking rift in the temporal matrix. Some kind of quantum effect. Or a poltergeist. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Wed Oct 13 00:28:10 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 13 Oct 2010 16:28:10 +1100 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <32E0BEDF7FDE4DED8BB9B5FC946F75B6@HAL9005> Message-ID: <201010130528.o9D5SCJK030777@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ hehe, I my experience that would definitely be MS Access - Especially the 2007 version. Right on topic I say ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, 13 October 2010 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized "where the laws of the universe and logic do not necessarily apply." I thought that was the OT list. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 9:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: That would have been nearly my last guess... it must be that when all possible logical solutions have been exhausted the only option left, no matter how implausible must be the answer. (Doyle could not have said it better) All I can say is welcome to the strange world of MS Access where the laws of the universe and logic do not necessarily apply. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 9:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized No - I always prefix field names with fld and never use them for anything else. Nope - deleting the field form the table and re-entering it solved the problem. God knows why. I'm thinking rift in the temporal matrix. Some kind of quantum effect. Or a poltergeist. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From accessd at shaw.ca Wed Oct 13 00:57:18 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Oct 2010 22:57:18 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: <32E0BEDF7FDE4DED8BB9B5FC946F75B6@HAL9005> References: <5438E030B23F45B08C839E969B4AF543@HAL9005> <71EA255FA88C462D95470C1D1398B48C@creativesystemdesigns.com> <059A45121DFA40089CE9501172B416B5@creativesystemdesigns.com> <11017CAD45D94396A1A92E14BDA374CD@creativesystemdesigns.com> <3D95EFB89B8542C4A4B01172A5E5B4BF@HAL9005> <32E0BEDF7FDE4DED8BB9B5FC946F75B6@HAL9005> Message-ID: <43DA419E04584577B888C20555D4C375@creativesystemdesigns.com> Ha ha ha... Douglas Adams would have agreed; the OT is that restaurant at the end of the universe...a little out of time and a little of reality. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized "where the laws of the universe and logic do not necessarily apply." I thought that was the OT list. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 9:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: That would have been nearly my last guess... it must be that when all possible logical solutions have been exhausted the only option left, no matter how implausible must be the answer. (Doyle could not have said it better) All I can say is welcome to the strange world of MS Access where the laws of the universe and logic do not necessarily apply. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 9:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized No - I always prefix field names with fld and never use them for anything else. Nope - deleting the field form the table and re-entering it solved the problem. God knows why. I'm thinking rift in the temporal matrix. Some kind of quantum effect. Or a poltergeist. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 7:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: One quick thought. You would not have added a 'caption name' so the field name displays differently or made a calculation, lookup or query field, that you are trying to access in the subform? If so, that could be problems. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Jim: cboLotSerialReferences is displaying a value. After the Set rs MsgBox rs.RecorCount displays 7 However... MsgBox "First record field value = " & rs.Fields("fldLotSerialReference").Value & "" Errors 3265 - Item not found in this collection So I added: Dim fld As Field For Each fld In rs.Fields MsgBox fld.Name Next fld And watched as each field name in the bound table tblLotSerial came up in sequence, among them was fldLotSerialReference. Strange, huh? It's fldLotSerialReference that's the problem - something strange there. I wonder what would happen if I deleted the field from the table and recreated it? Well what do you know - that fixed it! I wonder if there was some kind of hidden character in there? Anyway thanks for hanging in there with me. That was an odd problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: More obvious stuff: So the following code; MsgBox "Lot Combo selection = " & Me.cboLotSerialReferences.Column(0) ...is displaying a value. Assuming then that the value returned from the Lot combo box is correct and the search field is correct then how many rows/fields are being placed in the recordset 'Me.subfrmLotSerial.Form.RecordsetClone'? (...rs.RecordCount) with something like: With rs .movelast .movefirst MsgBox "records = " & .RecordCount End With ...and one final check, assuming that the record count has a value greater than zero check to see whether the field actually exists. MsgBox "First record field value = " & rs.fields("fldLotSerialReference").value & "" I am sure you have already checked this but decided to ask the obvious questions anyway. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 1:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized LotSerial combo has only one column. I put a MsgBox in to display strSQL and it looks right. It's the field fldLotSerialReference that it's having a problem with. strSQL reads fldLotSerialReference = 'xxx' after a selection is made from the combo box. The nearly identical code for the part number works just fine. That's what's so baffling. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 12, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized Hi Rocky: The obvious question would be whether the 'lot' combo is returning a value...right column?...or if it is a number field for lot number; have you set it to a string and then TRIMMED of extra spaces? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3070 - field not recognized OK per a snip I saw on the web I changed the routine to use rs dimmed as a DAO.Recordset. There are two combo boxes the user can use to find a record - one for a part number, one for a lot number. The part number one works, lot number one fails: Private Sub cboLotSerialReferences_AfterUpdate() strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Private Sub cboPart_AfterUpdate() strSQL = "fldLotSerialPartNumber= '" _ & Me.cboPart.Column(0) & "'" Set rs = Me.subfrmLotSerial.Form.RecordsetClone rs.FindFirst strSQL Me.subfrmLotSerial.Form.Bookmark = rs.Bookmark End Sub Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 12, 2010 10:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error 3070 - field not recognized Dear List: This has got to be something simple that I'm just not seeing because I've used this technique for years with no problem. But I'm stumped. User selects a value from a combo box (in this case a lot number) and I use .FindFirst and .Bookmark to set the record selector to the selected record on a continuous form. The combo box is on the main form, continuous form is a sub form. (BTW I tried putting the combo right on the subform but had the same problem.) Here's the code: Private Sub cboLotSerialReferences_AfterUpdate() Dim strSQL As String strSQL = "fldLotSerialReference = '" _ & Me.cboLotSerialReferences.Column(0) & "'" MsgBox strSQL Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = Me.RecordsetClone.Bookmark End Sub where fldLotSerial is a bound field on the subform. The MsgBox shows fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error 3070 - Microsoft Jet database engine does not recognize 'fldLotSerialReference' as a valid field name or expression. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Oct 13 01:23:39 2010 From: paul.hartland at googlemail.com (Paul Hartland) Date: Wed, 13 Oct 2010 07:23:39 +0100 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: Message-ID: Rocky, I just to get slight glitches with similar code in VB6 not sure if this will solve the problem, but try putting square brackets around the field name like below: strSQL = "[fldLotSerialReference] = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Hope it helps. Paul On 12 October 2010 18:47, Rocky Smolin wrote: > Dear List: > > This has got to be something simple that I'm just not seeing because I've > used this technique for years with no problem. But I'm stumped. > > User selects a value from a combo box (in this case a lot number) and I use > .FindFirst and .Bookmark to set the record selector to the selected record > on a continuous form. The combo box is on the main form, continuous form > is > a sub form. (BTW I tried putting the combo right on the subform but had > the > same problem.) > > Here's the code: > > Private Sub cboLotSerialReferences_AfterUpdate() > > Dim strSQL As String > > strSQL = "fldLotSerialReference = '" _ > & Me.cboLotSerialReferences.Column(0) & "'" > > MsgBox strSQL > > Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL > Me.Bookmark = Me.RecordsetClone.Bookmark > > End Sub > > > where fldLotSerial is a bound field on the subform. The MsgBox shows > fldLotSerialReference = 'aaa'. On the .FindFirst statement I get error > 3070 > - Microsoft Jet database engine does not recognize 'fldLotSerialReference' > as a valid field name or expression. > > Any clues? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 > > -- Paul Hartland paul.hartland at googlemail.com From rockysmolin at bchacc.com Wed Oct 13 07:49:09 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 13 Oct 2010 05:49:09 -0700 Subject: [AccessD] Error 3070 - field not recognized In-Reply-To: References: Message-ID: <96753A1C5CB2456B96ADD46D0ACD82A9@HAL9005> Paul: Now I wish I had that bad boy still in the table. I'd try that. I had a feeling there was a special character embedded somewhere in the field name. Although the odd thing was that I would copy the field name right out of the table and paste it into the code - so you'd think no matter what was odd about the field name that oddity would get dragged along on the copy and paste. Oh well, I'll probably never know. On to the next anomaly... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Tuesday, October 12, 2010 11:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3070 - field not recognized Rocky, I just to get slight glitches with similar code in VB6 not sure if this will solve the problem, but try putting square brackets around the field name like below: strSQL = "[fldLotSerialReference] = '" _ & Me.cboLotSerialReferences.Column(0) & "'" Hope it helps. Paul On 12 October 2010 18:47, Rocky Smolin wrote: > Dear List: > > This has got to be something simple that I'm just not seeing because > I've used this technique for years with no problem. But I'm stumped. > > User selects a value from a combo box (in this case a lot number) and > I use .FindFirst and .Bookmark to set the record selector to the > selected record on a continuous form. The combo box is on the main > form, continuous form is a sub form. (BTW I tried putting the combo > right on the subform but had the same problem.) > > Here's the code: > > Private Sub cboLotSerialReferences_AfterUpdate() > > Dim strSQL As String > > strSQL = "fldLotSerialReference = '" _ > & Me.cboLotSerialReferences.Column(0) & "'" > > MsgBox strSQL > > Me.subfrmLotSerial.Form.RecordsetClone.FindFirst strSQL Me.Bookmark = > Me.RecordsetClone.Bookmark > > End Sub > > > where fldLotSerial is a bound field on the subform. The MsgBox shows > fldLotSerialReference = 'aaa'. On the .FindFirst statement I get > error 3070 > - Microsoft Jet database engine does not recognize 'fldLotSerialReference' > as a valid field name or expression. > > Any clues? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > 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 > > -- Paul Hartland paul.hartland at googlemail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Oct 13 08:55:44 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 13 Oct 2010 19:25:44 +0530 Subject: [AccessD] Leave a bound form in a library. References: <4C7DAE73.8050309@colbyconsulting.com><03536A84F9204C039C3743BECA55525B@personal4a8ede> <4C7E7BCD.7070708@colbyconsulting.com> Message-ID: <8A89EF632050424DA90A8CA41BA797B4@personal4a8ede> J.C., You were interested to know whether a form belonging to library db (not functioning as an AddIn) could be loaded with data from host db, without resorting to a wrapper query using IN clause. On further examination, it is observed the needful can be done by taking advantage of the fact that when an external db is serving as a library db, the terms CurrentDb and CurrentProject (whether used in code module of library db or that of host db) point to the host db. On the other hand, CodeDb and CodeProject point to the library db. Sample operative statement for loading an open library form with a query from host db would be as follows. This syntax is equally effective, whether placed in code module of library db or that of host db: '===================================== Set Forms("LibraryFormName").Recordset = _ CurrentDb.OpenRecordset(HostDbQueryName) '===================================== Note: (a) An attempt to open the library form using DoCmd method directly from host db code, leads to error 2102 (named form does not exist). The form is therefore opened by calling appropriate subroutine located in library db's module, using the library reference as qualifier. (b) An attempt to assign the host db query to RecordSource property of library form leads to error 2580 (Specified record source does not exist) (c) If host db query / table is assigned to library db form via third argument of DoCmd.OpenForm method, it is not effective - although there is no error. (d) When a form in library db is opened in host db, it gets included in forms collection of host db and its controls can be accessed via conventional syntax in host db's code. (e) Any attempt to assign a form belonging to host db as the source object for a subform control located on a library form, meets with failure, attracting a message implying (somewhat misleadingly) that Jet is unable to locate the subform control itself. Apparently, mixing up of objects between library and host db's is not permitted. (f) If the host db has a form with exactly the same name as that of a library form, it can be opened with direct click, even if library form with this name is already open. This is an unusual situations where the Forms collection of host db shows two forms with identical names. In this context, my sample db named ExternalDbAsLibraryRef might be of interest. It is in access 2000 file format and is available at Rogers Access Library. Link: http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 This sample db demonstrates three styles as follows (style (c) might be pertinent to your needs): (a) Open library form loaded with library db data (b) Open host db form loaded with library db data (c) Open library form loaded with host db data Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Wednesday, September 01, 2010 21:44 Subject: Re: [AccessD] Leave a bound form in a library. A.D. Thanks for that. I am working on a Presentation Level Security System (PLSS) AKA my Lightweight Security System. The PLSS is not an add-in in the typical sense of having an entry in the Add-in menu of the tool bar. PLSS is really a set of forms in the PLSS which the security administrator uses to set up security, but mostly (on a day to day basis to the user) it is a security framework that forces a user log in, associates a user with a group or groups, associates application forms with a group / groups and controls the forms based on a VENN diagram intersection of the user's groups and the form's groups. IOW it emulates Windows Security system for Access objects. I really do not know how your "add-in factors" relate to using the forms stored in the library to access data stored in the FE. The actual code in the library pretty much just works for my purposes. I have been doing this kind of thing since somewhere around 2001. Access 2K brings some interesting challenges as it has a bug relating to circular references between a form pointing to a class which sinks events for the form. That bug was fixed in Access 2002. The PLSS is now working at the form level, for Access 2002 and above, and I have a test / demo database which exercises the user / group / form security in a realistic (if small) environment. John W. Colby www.ColbyConsulting.com A.D. Tejpal wrote: > AddIns > ===== > > J.C., From jwcolby at colbyconsulting.com Wed Oct 13 17:15:46 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 13 Oct 2010 18:15:46 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <8A89EF632050424DA90A8CA41BA797B4@personal4a8ede> References: <4C7DAE73.8050309@colbyconsulting.com><03536A84F9204C039C3743BECA55525B@personal4a8ede> <4C7E7BCD.7070708@colbyconsulting.com> <8A89EF632050424DA90A8CA41BA797B4@personal4a8ede> Message-ID: <4CB62F92.2010502@colbyconsulting.com> Yes, this is the method I went with. John W. Colby www.ColbyConsulting.com On 10/13/2010 9:55 AM, A.D. Tejpal wrote: > J.C., > > You were interested to know whether a form belonging to library db (not functioning as an AddIn) could be loaded with data from host db, without resorting to a wrapper query using IN clause. > > On further examination, it is observed the needful can be done by taking advantage of the fact that when an external db is serving as a library db, the terms CurrentDb and CurrentProject (whether used in code module of library db or that of host db) point to the host db. On the other hand, CodeDb and CodeProject point to the library db. > > Sample operative statement for loading an open library form with a query from host db would be as follows. This syntax is equally effective, whether placed in code module of library db or that of host db: > '===================================== > Set Forms("LibraryFormName").Recordset = _ > CurrentDb.OpenRecordset(HostDbQueryName) > '===================================== > > Note: > (a) An attempt to open the library form using DoCmd method directly from host db code, leads to error 2102 (named form does not exist). The form is therefore opened by calling appropriate subroutine located in library db's module, using the library reference as qualifier. > (b) An attempt to assign the host db query to RecordSource property of library form leads to error 2580 (Specified record source does not exist) > (c) If host db query / table is assigned to library db form via third argument of DoCmd.OpenForm method, it is not effective - although there is no error. > (d) When a form in library db is opened in host db, it gets included in forms collection of host db and its controls can be accessed via conventional syntax in host db's code. > (e) Any attempt to assign a form belonging to host db as the source object for a subform control located on a library form, meets with failure, attracting a message implying (somewhat misleadingly) that Jet is unable to locate the subform control itself. Apparently, mixing up of objects between library and host db's is not permitted. > (f) If the host db has a form with exactly the same name as that of a library form, it can be opened with direct click, even if library form with this name is already open. This is an unusual situations where the Forms collection of host db shows two forms with identical names. > > In this context, my sample db named ExternalDbAsLibraryRef might be of interest. It is in access 2000 file format and is available at Rogers Access Library. Link: > http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 > > This sample db demonstrates three styles as follows (style (c) might be pertinent to your needs): > (a) Open library form loaded with library db data > (b) Open host db form loaded with library db data > (c) Open library form loaded with host db data > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: jwcolby > To: Access Developers discussion and problem solving > Sent: Wednesday, September 01, 2010 21:44 > Subject: Re: [AccessD] Leave a bound form in a library. > > > A.D. > > Thanks for that. I am working on a Presentation Level Security System (PLSS) AKA my Lightweight Security System. The PLSS is not an add-in in the typical sense of having an entry in the Add-in menu of the tool bar. > > PLSS is really a set of forms in the PLSS which the security administrator uses to set up security, but mostly (on a day to day basis to the user) it is a security framework that forces a user log in, associates a user with a group or groups, associates application forms with a group / groups and controls the forms based on a VENN diagram intersection of the user's groups and the form's groups. IOW it emulates Windows Security system for Access objects. > > I really do not know how your "add-in factors" relate to using the forms stored in the library to access data stored in the FE. The actual code in the library pretty much just works for my purposes. > > I have been doing this kind of thing since somewhere around 2001. > > Access 2K brings some interesting challenges as it has a bug relating to circular references between a form pointing to a class which sinks events for the form. That bug was fixed in Access 2002. > > The PLSS is now working at the form level, for Access 2002 and above, and I have a test / demo database which exercises the user / group / form security in a realistic (if small) environment. > > John W. Colby > www.ColbyConsulting.com > > > A.D. Tejpal wrote: > > AddIns > > ===== > > > > J.C., From jwcolby at colbyconsulting.com Wed Oct 13 21:43:15 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 13 Oct 2010 22:43:15 -0400 Subject: [AccessD] SSD, Raid 0 and (apparent) bandwidth Message-ID: <4CB66E43.3080505@colbyconsulting.com> I am pulling data out of HSID (the database from hell) on database _DataHSID and writing it into tblHSID in _DataMergePurge. Basically this is an inner join between a PK table in _DataMergePurge and HSID to select the records, then write them into the table in _DataMergePurge. I have both databases on the SSD, along with their respective log files. My temp files are on another 30g SSD. The database SSDs are a pair of disks, raid 0. I don't really have available separate SSDs for the log and data files, and I figured (though by no means certain) that the SSD would be faster even reading / writing both log and data than having the log on rotating media. Disk reads / writes are in Meg BYTES / minute (not second). My read volume is running pretty consistent between 400 and 450 mB/Minute out of _DataHSID and around 3 million bytes / minute out of _DataMergePurge. Response time 1 ms in both cases. All data from Resource Monitor. CPU is running around 25% average with most of that on the 6 cores dedicated to SQL Server. Suddenly a burst of writes to the log file at about 1.8 GBytes / min. 1 hard fault / minute every once in awhile, mostly 0. 14.8 Gig memory private to SQL Server's PID 37 minutes in and it hasn't even begun to write to the destination table. TempDb is up to about 5 gigs. MergePurge_Log about 1.1G atm. Another burst write to tempdb at around 1.8G / Min. Tempdb is a single SSD directly on an SATA port on the motherboard. At about 55 minutes in, data starts to write to the destination table. Fairly massive writes to both the log and data file for mergePurge - anywhere from 500 MBytes / minute up to 1 GByte / minute. Writing about 1.2 GBytes / minute between the log and the data file. Interestingly it is not *reading* at all (right now), it must be dumping from memory? About 930 MBytes / Minute to log, 333 MBytes / min to data. At 1 hour and 10 minutes it is finished. 4890683 row(s) affected (copied from the database from hell into the MP database). BTW the destination table has an existing clustered index (PK) on the People hash and PKID - two fields as the key. The MP data file is about 4.5 gb with 0 free. The MP log file is about 6 gigs with 1.6 gigs free. The tempdb file is about 5 gigs. That was interesting to watch. I sure wish I had more memory to see how that affects the system. ATM I am running 2 dims (channels) on a CPU socket that can use 4 channels, and "only" 16 gigs total available right now. I am supposed to get 64 gigs total and another CPU with 8 cores which would make it 4 dims of 8 gigs each per cpu (all 4 memory channels going). Who knows what that would do. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Oct 14 15:03:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 14 Oct 2010 16:03:47 -0400 Subject: [AccessD] The SSD I am using Message-ID: <4CB76223.2050202@colbyconsulting.com> The following is the link to the SSD on Newegg - the model I purchased for my SQl Server. http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 This is a review that pretty much says it all. This thing is *fast*. http://benchmarkreviews.com/index.php?option=com_content&task=view&id=585&Itemid=60&limit=1&limitstart=11 -- John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Thu Oct 14 17:16:26 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 14 Oct 2010 18:16:26 -0400 Subject: [AccessD] New poll on TechRepublic.com Message-ID: Feel free to take part. You don't have to have a subscription to vote or take part in the response threads. Susan H. From df.waters at comcast.net Thu Oct 14 17:32:48 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 14 Oct 2010 17:32:48 -0500 Subject: [AccessD] New poll on TechRepublic.com In-Reply-To: References: Message-ID: <28748C13008A4BC789CB8D43F83A9BA4@DanWaters> For once I'm not all by my lonesome! ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, October 14, 2010 5:16 PM To: Access Developers discussion and problem solving Subject: [AccessD] New poll on TechRepublic.com Feel free to take part. You don't have to have a subscription to vote or take part in the response threads. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Oct 14 17:41:22 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 15 Oct 2010 02:41:22 +0400 Subject: [AccessD] New poll on TechRepublic.com In-Reply-To: References: Message-ID: <031DE6754A0C400FB938F5B3E9B0BBCE@nant> Hi Susan -- I'd note that in your poll: How do you name Access objects? * I use a prefix for everything, even Access objects. * I use the natural naming method for Access objects. * I'm stuck with a convoluted business-ruled naming convention, so it doesn't matter what I prefer. * I don't use a naming convention. * I use some other naming convention. at least one entry is missing, which is worth to be clealy defined additionally to "I use some other naming convention": * I use a prefix for everything, even Access objects except MS Access tables', fields' and indexes' names. Using prefixes for Access objects was useful (for grouping and sorting in db window) when there was no a feature of grouping MS Acces objects in MS Access database container. Another purpose (at least for me) was (automated) documentation in which consistent three-four letters long lowcase prefixes were useful It's redundant to use such prefixed now IMO - I'd use suffixes (as it's recommended in .NET Naming Guidelines) or nothing. Still using "Hungarian Notation" for VBA coding is useful as it lets to clearly see what this or that name means. Although being more .NET developer than MS Access/VBA one these days I'm starting to avoid using Hungarian Notation even in VBA code - and it looks as a natural approach to me. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 15 ??????? 2010 ?. 2:16 To: Access Developers discussion and problem solving Subject: [AccessD] New poll on TechRepublic.com Feel free to take part. You don't have to have a subscription to vote or take part in the response threads. 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 Thu Oct 14 18:34:15 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 14 Oct 2010 19:34:15 -0400 Subject: [AccessD] New poll on TechRepublic.com References: <031DE6754A0C400FB938F5B3E9B0BBCE@nant> Message-ID: Shamil, I don't purposely leave out options in polls, but the truth is, it makes no difference how carefully I word the items or how much thought goes into a set of responses, someone still wants an item I didn't offer. :) It happens with every single poll. That's why we keep the responses on for polls, so people can include thoughts beyond what the polls present. I find adding a prefix tag to a table, query, form, or report redundant and unnecessary -- other than it does allow you to have like named tables and queries. The truth is, that's never been an issue for me as queries tend to have more meaningful names than just copying a table's name. When using code to create an object, I can see why you'd want to clearly identify the object by adding a prefix tag. I have found the .NET conventions a little hard to follow when reading code, but that's because I don't really use it. Feel free to add your thoughts to the forum discussion. Susan H. > Hi Susan -- > > I'd note that in your poll: > > How do you name Access objects? > > * I use a prefix for everything, even Access objects. > * I use the natural naming method for Access objects. > * I'm stuck with a convoluted business-ruled naming convention, so it > doesn't matter what I prefer. > * I don't use a naming convention. > * I use some other naming convention. > > at least one entry is missing, which is worth to be clealy defined > additionally to "I use some other naming convention": > > * I use a prefix for everything, even Access objects except MS Access > tables', fields' and indexes' names. > > Using prefixes for Access objects was useful (for grouping and sorting in > db > window) when there was no a feature of grouping MS Acces objects in MS > Access database container. > Another purpose (at least for me) was (automated) documentation in which > consistent three-four letters long lowcase prefixes were useful > > It's redundant to use such prefixed now IMO - I'd use suffixes (as it's > recommended in .NET Naming Guidelines) or nothing. > Still using "Hungarian Notation" for VBA coding is useful as it lets to > clearly see what this or that name means. > Although being more .NET developer than MS Access/VBA one these days I'm > starting to avoid using Hungarian Notation even in VBA code - and it looks > as a natural approach to me. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 15 ??????? 2010 ?. 2:16 > To: Access Developers discussion and problem solving > Subject: [AccessD] New poll on TechRepublic.com > > > > Feel free to take part. You don't have to have a subscription to vote or > take part in the response threads. > > 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 shamil at smsconsulting.spb.ru Thu Oct 14 18:48:47 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 15 Oct 2010 03:48:47 +0400 Subject: [AccessD] New poll on TechRepublic.com In-Reply-To: References: <031DE6754A0C400FB938F5B3E9B0BBCE@nant> Message-ID: Hi Susan -- Thank your for your note. <<< Feel free to add your thoughts to the forum discussion. >>> Yes, I have added my opinion there. It may happen that poll could provoke a "religious war" there on TechRepublic... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 15 ??????? 2010 ?. 3:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] New poll on TechRepublic.com Shamil, I don't purposely leave out options in polls, but the truth is, it makes no difference how carefully I word the items or how much thought goes into a set of responses, someone still wants an item I didn't offer. :) It happens with every single poll. That's why we keep the responses on for polls, so people can include thoughts beyond what the polls present. I find adding a prefix tag to a table, query, form, or report redundant and unnecessary -- other than it does allow you to have like named tables and queries. The truth is, that's never been an issue for me as queries tend to have more meaningful names than just copying a table's name. When using code to create an object, I can see why you'd want to clearly identify the object by adding a prefix tag. I have found the .NET conventions a little hard to follow when reading code, but that's because I don't really use it. Feel free to add your thoughts to the forum discussion. Susan H. > Hi Susan -- > > I'd note that in your poll: > > How do you name Access objects? > > * I use a prefix for everything, even Access objects. > * I use the natural naming method for Access objects. > * I'm stuck with a convoluted business-ruled naming convention, so > it doesn't matter what I prefer. > * I don't use a naming convention. > * I use some other naming convention. > > at least one entry is missing, which is worth to be clealy defined > additionally to "I use some other naming convention": > > * I use a prefix for everything, even Access objects except MS > Access tables', fields' and indexes' names. > > Using prefixes for Access objects was useful (for grouping and sorting > in db > window) when there was no a feature of grouping MS Acces objects in MS > Access database container. > Another purpose (at least for me) was (automated) documentation in > which consistent three-four letters long lowcase prefixes were useful > > It's redundant to use such prefixed now IMO - I'd use suffixes (as > it's recommended in .NET Naming Guidelines) or nothing. > Still using "Hungarian Notation" for VBA coding is useful as it lets > to clearly see what this or that name means. > Although being more .NET developer than MS Access/VBA one these days > I'm starting to avoid using Hungarian Notation even in VBA code - and > it looks as a natural approach to me. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: 15 ??????? 2010 ?. 2:16 > To: Access Developers discussion and problem solving > Subject: [AccessD] New poll on TechRepublic.com > > 957> > > Feel free to take part. You don't have to have a subscription to vote > or take part in the response threads. > > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Oct 14 19:00:14 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 14 Oct 2010 20:00:14 -0400 Subject: [AccessD] New poll on TechRepublic.com References: <031DE6754A0C400FB938F5B3E9B0BBCE@nant> Message-ID: <51B83C3A3A2A4A4CAD895D459661D514@salvationomc4p> > It may happen that poll could provoke a "religious war" there on > TechRepublic... =======We encourage that. :) Susan H. From shamil at smsconsulting.spb.ru Thu Oct 14 19:20:59 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 15 Oct 2010 04:20:59 +0400 Subject: [AccessD] New poll on TechRepublic.com In-Reply-To: <51B83C3A3A2A4A4CAD895D459661D514@salvationomc4p> References: <031DE6754A0C400FB938F5B3E9B0BBCE@nant> <51B83C3A3A2A4A4CAD895D459661D514@salvationomc4p> Message-ID: <<< =======We encourage that. :) >>> Then I should better choke in next time :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 15 ??????? 2010 ?. 4:00 To: Access Developers discussion and problem solving Subject: Re: [AccessD] New poll on TechRepublic.com > It may happen that poll could provoke a "religious war" there on > TechRepublic... =======We encourage that. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Oct 14 19:58:22 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 14 Oct 2010 20:58:22 -0400 Subject: [AccessD] The SSD I am using In-Reply-To: <4CB76223.2050202@colbyconsulting.com> References: <4CB76223.2050202@colbyconsulting.com> Message-ID: <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> John - this caught my eye: "DuraWrite technology extends NAND lifetime" Are there any utilities out there that effectively tests for this "NAND lifetime" ? Other than data errors, how else can you tell a drive is now in it's older years (like you and me !) ? You would think they could install some piece of flash memory on the SSD that counts the I/O's.... and then enable the utility to provide a report. > Subject: [AccessD] The SSD I am using > > The following is the link to the SSD on Newegg - the model I > purchased for my SQl Server. From ssharkins at gmail.com Thu Oct 14 20:32:40 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 14 Oct 2010 21:32:40 -0400 Subject: [AccessD] New poll on TechRepublic.com References: <031DE6754A0C400FB938F5B3E9B0BBCE@nant><51B83C3A3A2A4A4CAD895D459661D514@salvationomc4p> Message-ID: <45DD06EE78DF4F9CBAD4ED1C2EF004BC@salvationomc4p> Absolutely! ;) Susan H. > Then I should better choke in next time :) > From jwcolby at colbyconsulting.com Thu Oct 14 21:10:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 14 Oct 2010 22:10:59 -0400 Subject: [AccessD] New poll on TechRepublic.com In-Reply-To: References: Message-ID: <4CB7B833.4070708@colbyconsulting.com> Susan, My salary only requires a byte to store. ;) John W. Colby www.ColbyConsulting.com On 10/14/2010 6:16 PM, Susan Harkins wrote: > > > Feel free to take part. You don't have to have a subscription to vote or take part in the response threads. > > Susan H. From jwcolby at colbyconsulting.com Thu Oct 14 21:14:45 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 14 Oct 2010 22:14:45 -0400 Subject: [AccessD] The SSD I am using In-Reply-To: <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> Message-ID: <4CB7B915.6040105@colbyconsulting.com> > Are there any utilities out there that effectively tests for this "NAND lifetime" ? I have no idea. That would be nice though. John W. Colby www.ColbyConsulting.com On 10/14/2010 8:58 PM, Mark Simms wrote: > John - this caught my eye: > "DuraWrite technology extends NAND lifetime" > > Are there any utilities out there that effectively tests for this "NAND > lifetime" ? > Other than data errors, how else can you tell a drive is now in it's older > years (like you and me !) ? > > You would think they could install some piece of flash memory on the SSD > that counts the I/O's.... > and then enable the utility to provide a report. > > >> Subject: [AccessD] The SSD I am using >> >> The following is the link to the SSD on Newegg - the model I >> purchased for my SQl Server. > > From iggy at nanaimo.ark.com Fri Oct 15 09:25:44 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 15 Oct 2010 07:25:44 -0700 Subject: [AccessD] Access 2003 Graph Message-ID: <4CB86468.20101@nanaimo.ark.com> Hey All I have been playing with creating line graphs. I have run into a problem. If I have Date Value Oct 1 2 Oct 2 3 Oct 3 Oct 4 Oct 5 8 Oct 6 6 Oct 7 1 I get a line between Oct 1 & 2, blank between Oct 2 & 5 and a line between Oct 5 & 7. Is there a switch I need to throw to get a continuous line? From EdTesiny at oasas.state.ny.us Fri Oct 15 09:59:14 2010 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Fri, 15 Oct 2010 10:59:14 -0400 Subject: [AccessD] Access 2003 Graph In-Reply-To: <4CB86468.20101@nanaimo.ark.com> References: <4CB86468.20101@nanaimo.ark.com> Message-ID: Is Oct 3 & 4 missing data or are they 0s? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Friday, October 15, 2010 10:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2003 Graph Hey All I have been playing with creating line graphs. I have run into a problem. If I have Date Value Oct 1 2 Oct 2 3 Oct 3 Oct 4 Oct 5 8 Oct 6 6 Oct 7 1 I get a line between Oct 1 & 2, blank between Oct 2 & 5 and a line between Oct 5 & 7. Is there a switch I need to throw to get a continuous line? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Oct 15 10:17:50 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 15 Oct 2010 08:17:50 -0700 Subject: [AccessD] Access2003 Graph - Got it. Message-ID: <4CB8709E.8000203@nanaimo.ark.com> Hey All Click on the Graph. Click Chart Object Click Edit Click Tools Click Options Click Chart Tab Click Interpolated From iggy at nanaimo.ark.com Fri Oct 15 10:23:15 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 15 Oct 2010 08:23:15 -0700 Subject: [AccessD] Access 2003 Graph In-Reply-To: References: <4CB86468.20101@nanaimo.ark.com> Message-ID: <4CB871E3.50900@nanaimo.ark.com> Hey Ed Oct 3 & 4 are blank. Tesiny, Ed wrote: >Is Oct 3 & 4 missing data or are they 0s? > >Ed Tesiny >EdTesiny at oasas.state.ny.us > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Friday, October 15, 2010 10:26 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access 2003 Graph > >Hey All >I have been playing with creating line graphs. I have run into a >problem. >If I have >Date Value >Oct 1 2 >Oct 2 3 >Oct 3 >Oct 4 >Oct 5 8 >Oct 6 6 >Oct 7 1 >I get a line between Oct 1 & 2, blank between Oct 2 & 5 and a line >between Oct 5 & 7. >Is there a switch I need to throw to get a continuous line? > > From fuller.artful at gmail.com Fri Oct 15 12:44:14 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 15 Oct 2010 13:44:14 -0400 Subject: [AccessD] Access Code Prettifier In-Reply-To: <4C9D0355.5020007@colbyconsulting.com> References: <4C9D0355.5020007@colbyconsulting.com> Message-ID: Unlike yourself, JC :) On Fri, Sep 24, 2010 at 4:00 PM, jwcolby wrote: > Gustav, > > He got hungry. In case you haven't seen Arthur, he can't afford to miss > many meals. ;) > From john at winhaven.net Fri Oct 15 13:35:20 2010 From: john at winhaven.net (John Bartow) Date: Fri, 15 Oct 2010 13:35:20 -0500 Subject: [AccessD] Powershell e-book Message-ID: <002f01cb6c97$b8a56660$29f03320$@winhaven.net> I thought some of you might find this useful. It's a quick read and an easy way to start learning Windows PowerShell. http://tinyurl.com/23b4ovu John B PS: You do have to register but it's free. From john at winhaven.net Fri Oct 15 15:07:55 2010 From: john at winhaven.net (John Bartow) Date: Fri, 15 Oct 2010 15:07:55 -0500 Subject: [AccessD] Powershell e-book Message-ID: <005f01cb6ca4$a84ee450$f8ecacf0$@winhaven.net> That link appears to not be working so good. Try this instead: http://nexus.realtimepublishers.com/accwp.php I thought some of you might find this useful. It's a quick read and an easy way to start learning Windows PowerShell. http://tinyurl.com/23b4ovu John B PS: You do have to register but it's free. From rockysmolin at bchacc.com Fri Oct 15 15:31:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 15 Oct 2010 13:31:57 -0700 Subject: [AccessD] Powershell e-book In-Reply-To: <005f01cb6ca4$a84ee450$f8ecacf0$@winhaven.net> References: <005f01cb6ca4$a84ee450$f8ecacf0$@winhaven.net> Message-ID: That's better1 R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, October 15, 2010 1:08 PM To: _DBA-Access; _DBA-Tech; 'Off Topic' Subject: Re: [AccessD] Powershell e-book That link appears to not be working so good. Try this instead: http://nexus.realtimepublishers.com/accwp.php I thought some of you might find this useful. It's a quick read and an easy way to start learning Windows PowerShell. http://tinyurl.com/23b4ovu John B PS: You do have to register but it's free. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 15 22:15:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 15 Oct 2010 23:15:43 -0400 Subject: [AccessD] Access Code Prettifier In-Reply-To: References: <4C9D0355.5020007@colbyconsulting.com> Message-ID: <4CB918DF.9030204@colbyconsulting.com> LOL, unfortunate but true. ;) John W. Colby www.ColbyConsulting.com On 10/15/2010 1:44 PM, Arthur Fuller wrote: > Unlike yourself, JC :) > > On Fri, Sep 24, 2010 at 4:00 PM, jwcolbywrote: > >> Gustav, >> >> He got hungry. In case you haven't seen Arthur, he can't afford to miss >> many meals. ;) >> From marksimms at verizon.net Sun Oct 17 09:50:46 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 17 Oct 2010 10:50:46 -0400 Subject: [AccessD] More on SSD... In-Reply-To: <4CB7B915.6040105@colbyconsulting.com> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> Message-ID: <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> AOL installs 50TB of SSD; boosts DB performance by 4X. SSD SAN installed to eliminate I/O bottlenecks caused by back-end storage. http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SSD_boos ts_DB_performance_by_4X From accessd at shaw.ca Sun Oct 17 12:18:39 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 17 Oct 2010 10:18:39 -0700 Subject: [AccessD] More on SSD... In-Reply-To: <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> Message-ID: Hi Mark: It may be a while before I also go that route as the following may discourage some on this list from full-heartedly adopting the technology at this time. ;-) ...But love can be expensive. Without offering an exact price tag, Pollack said the solid-state array cost AOL about $20 per gigabyte, which adds up to about $1 million with 50TB of capacity. I wonder how far away $20 per terabyte can be? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Sunday, October 17, 2010 7:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More on SSD... AOL installs 50TB of SSD; boosts DB performance by 4X. SSD SAN installed to eliminate I/O bottlenecks caused by back-end storage. http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SSD_boos ts_DB_performance_by_4X -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Oct 17 17:36:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 17 Oct 2010 18:36:00 -0400 Subject: [AccessD] More on SSD... In-Reply-To: References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> Message-ID: <4CBB7A50.5040407@colbyconsulting.com> Yes but they were doing stuff that few of us need to do. I am paying about $250 / gigabyte. John W. Colby www.ColbyConsulting.com On 10/17/2010 1:18 PM, Jim Lawrence wrote: > Hi Mark: > > It may be a while before I also go that route as the following may > discourage some on this list from full-heartedly adopting the technology at > this time. ;-) > > > ...But love can be expensive. Without offering an exact price tag, Pollack > said the solid-state array cost AOL about $20 per gigabyte, which adds up to > about $1 million with 50TB of capacity. > > > I wonder how far away $20 per terabyte can be? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Sunday, October 17, 2010 7:51 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] More on SSD... > > AOL installs 50TB of SSD; boosts DB performance by 4X. > SSD SAN installed to eliminate I/O bottlenecks caused by back-end storage. > > http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SSD_boos > ts_DB_performance_by_4X > > From marksimms at verizon.net Sun Oct 17 19:02:35 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 17 Oct 2010 20:02:35 -0400 Subject: [AccessD] More on SSD... In-Reply-To: <4CBB7A50.5040407@colbyconsulting.com> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> <4CBB7A50.5040407@colbyconsulting.com> Message-ID: <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 John...can you please check your math ? Didn't you mean $2000 per TERABYTE ? If so, AOL got "ripped off"....hugely. What am I missing here ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Sunday, October 17, 2010 6:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] More on SSD... > > Yes but they were doing stuff that few of us need to do. I > am paying about $250 / gigabyte. > > John W. Colby > www.ColbyConsulting.com > > On 10/17/2010 1:18 PM, Jim Lawrence wrote: > > Hi Mark: > > > > It may be a while before I also go that route as the following may > > discourage some on this list from full-heartedly adopting the > > technology at this time. ;-) > > > > > > ...But love can be expensive. Without offering an exact price tag, > > Pollack said the solid-state array cost AOL about $20 per gigabyte, > > which adds up to about $1 million with 50TB of capacity. > > > > > > I wonder how far away $20 per terabyte can be? > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark Simms > > Sent: Sunday, October 17, 2010 7:51 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] More on SSD... > > > > AOL installs 50TB of SSD; boosts DB performance by 4X. > > SSD SAN installed to eliminate I/O bottlenecks caused by > back-end storage. > > > > > http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SS > > D_boos > > ts_DB_performance_by_4X > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Oct 17 22:26:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 17 Oct 2010 23:26:14 -0400 Subject: [AccessD] More on SSD... In-Reply-To: <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> <4CBB7A50.5040407@colbyconsulting.com> <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> Message-ID: <4CBBBE56.3080907@colbyconsulting.com> LOL. Missing a decimal point. $2.00 / gigabyte. But I guess you knew that. The url you included is what I am buying. I am just paying for SSDs and attaching them to an existing RAID controller. AOL is buying a huge multi-terrabyte SAN, drop-in. Those cost bucks, any way you look at it. John W. Colby www.ColbyConsulting.com On 10/17/2010 8:02 PM, Mark Simms wrote: > http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 > John...can you please check your math ? > Didn't you mean $2000 per TERABYTE ? > If so, AOL got "ripped off"....hugely. > What am I missing here ? > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Sunday, October 17, 2010 6:36 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] More on SSD... >> >> Yes but they were doing stuff that few of us need to do. I >> am paying about $250 / gigabyte. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 10/17/2010 1:18 PM, Jim Lawrence wrote: >>> Hi Mark: >>> >>> It may be a while before I also go that route as the following may >>> discourage some on this list from full-heartedly adopting the >>> technology at this time. ;-) >>> >>> >>> ...But love can be expensive. Without offering an exact price tag, >>> Pollack said the solid-state array cost AOL about $20 per gigabyte, >>> which adds up to about $1 million with 50TB of capacity. >>> >>> >>> I wonder how far away $20 per terabyte can be? >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Mark Simms >>> Sent: Sunday, October 17, 2010 7:51 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] More on SSD... >>> >>> AOL installs 50TB of SSD; boosts DB performance by 4X. >>> SSD SAN installed to eliminate I/O bottlenecks caused by >> back-end storage. >>> >>> >> http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SS >>> D_boos >>> ts_DB_performance_by_4X >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From accessd at shaw.ca Sun Oct 17 22:27:43 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 17 Oct 2010 20:27:43 -0700 Subject: [AccessD] More on SSD... In-Reply-To: <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> <4CBB7A50.5040407@colbyconsulting.com> <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> Message-ID: Hi Mark: To make your super system it is more than just getting a pile SSDs, it is getting the memory to work in a specific way and that requires a special piece of hardware: http://www.violin-memory.com/products/ The price AOL quoted was $20 per GB, much cheaper than $250 per GB as quoted from Newegg. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Sunday, October 17, 2010 5:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] More on SSD... http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 John...can you please check your math ? Didn't you mean $2000 per TERABYTE ? If so, AOL got "ripped off"....hugely. What am I missing here ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Sunday, October 17, 2010 6:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] More on SSD... > > Yes but they were doing stuff that few of us need to do. I > am paying about $250 / gigabyte. > > John W. Colby > www.ColbyConsulting.com > > On 10/17/2010 1:18 PM, Jim Lawrence wrote: > > Hi Mark: > > > > It may be a while before I also go that route as the following may > > discourage some on this list from full-heartedly adopting the > > technology at this time. ;-) > > > > > > ...But love can be expensive. Without offering an exact price tag, > > Pollack said the solid-state array cost AOL about $20 per gigabyte, > > which adds up to about $1 million with 50TB of capacity. > > > > > > I wonder how far away $20 per terabyte can be? > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark Simms > > Sent: Sunday, October 17, 2010 7:51 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] More on SSD... > > > > AOL installs 50TB of SSD; boosts DB performance by 4X. > > SSD SAN installed to eliminate I/O bottlenecks caused by > back-end storage. > > > > > http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SS > > D_boos > > ts_DB_performance_by_4X > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Oct 18 03:04:54 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 18 Oct 2010 12:04:54 +0400 Subject: [AccessD] MS Access 2010 Hosting Message-ID: <7B71116494E64842B6C4466482D97A67@nant> Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- Shamil From steve at datamanagementsolutions.biz Mon Oct 18 03:44:25 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Mon, 18 Oct 2010 21:44:25 +1300 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <7B71116494E64842B6C4466482D97A67@nant> References: <7B71116494E64842B6C4466482D97A67@nant> Message-ID: <901F1969018F4585B1F3889FC0BB3EE9@stevelaptop> Hi Shamil, Yes, I am sure that AccessHosting is well able to host real life Access 2010 Web Applications, and I have heard good reports from people who have done so. For myelf, I am afraid the cost of hosting is outside my budget and that of my clients. Regards Steve -----Original Message----- From: Shamil Salakhetdinov Sent: Monday, October 18, 2010 9:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS Access 2010 Hosting Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. From Gustav at cactus.dk Mon Oct 18 03:52:35 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 18 Oct 2010 10:52:35 +0200 Subject: [AccessD] MS Access 2010 Hosting Message-ID: Hi Shamil I haven't. It looks like a SharePoint hosting service, so if you believe SharePoint is mature and convenient for your purpose, it should be OK. http://office2010.microsoft.com/en-us/access-help/build-an-access-database-to-share-on-the-web-HA010356866.aspx /gustav >>> shamil at smsconsulting.spb.ru 18-10-2010 10:04 >>> Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Oct 18 04:18:32 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 18 Oct 2010 13:18:32 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <901F1969018F4585B1F3889FC0BB3EE9@stevelaptop> References: <7B71116494E64842B6C4466482D97A67@nant> <901F1969018F4585B1F3889FC0BB3EE9@stevelaptop> Message-ID: Hi Steve -- Thank you for your reply. <<< For myelf, I am afraid the cost of hosting is outside my budget and that of my clients. >>> $99/month for 10 client licences is outside of your clients budget? (+ $25/month for 5 additional client licences) (http://www.accesshosting.com/pricing.asp) Disclaimer: I'm not www.accesshosting.com affilate - I'm just looking is there aleardy a real business opportunity for MS Access application hosting or not? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: 18 ??????? 2010 ?. 12:44 To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2010 Hosting Hi Shamil, Yes, I am sure that AccessHosting is well able to host real life Access 2010 Web Applications, and I have heard good reports from people who have done so. For myelf, I am afraid the cost of hosting is outside my budget and that of my clients. Regards Steve -----Original Message----- From: Shamil Salakhetdinov Sent: Monday, October 18, 2010 9:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS Access 2010 Hosting Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Mon Oct 18 05:09:52 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 18 Oct 2010 14:09:52 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: Message-ID: Hi Gustav -- Yes, that's a SharePoint hosting service - and I'm looking here for experiences to convert real life MS Access applications to that services using MS Access 2010 - I suppose this way (converting legacy MS Access apps to SharePoint services) should be rather time consuming. So I'm mainly looking for experiences of developing "from scratch" MS Access 2010 apps ready to be converted to SharePoint services - is that ready for prime time development practice? I do suppose that SharePoint is a mature system for large enterpise level applications. I do not have experience of working with Sharepoint by myself but what I hear from Martin in this group discussions makes me sure that SharePoint is a mature system. Yes, it's costly - nor myself nor my customers can't afford MS Sharepoint enterprise setup licences but MS Sharepoint hosting seems to be affordable. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 ??????? 2010 ?. 12:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] MS Access 2010 Hosting Hi Shamil I haven't. It looks like a SharePoint hosting service, so if you believe SharePoint is mature and convenient for your purpose, it should be OK. http://office2010.microsoft.com/en-us/access-help/build-an-access-database-t o-share-on-the-web-HA010356866.aspx /gustav >>> shamil at smsconsulting.spb.ru 18-10-2010 10:04 >>> Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Oct 18 07:03:21 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 18 Oct 2010 08:03:21 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: Message-ID: <6F2B9EF050C9429A9C615ACC46D17787@XPS> There's also this: www.eqldata.com They have offered this for a few years now and it appears to be a non-SharePoint based service. Your not limited just to using Access 2010. Don't know of anyone who is actually used the service, but it might be something to try out on a limited basis. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 18, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting Hi Gustav -- Yes, that's a SharePoint hosting service - and I'm looking here for experiences to convert real life MS Access applications to that services using MS Access 2010 - I suppose this way (converting legacy MS Access apps to SharePoint services) should be rather time consuming. So I'm mainly looking for experiences of developing "from scratch" MS Access 2010 apps ready to be converted to SharePoint services - is that ready for prime time development practice? I do suppose that SharePoint is a mature system for large enterpise level applications. I do not have experience of working with Sharepoint by myself but what I hear from Martin in this group discussions makes me sure that SharePoint is a mature system. Yes, it's costly - nor myself nor my customers can't afford MS Sharepoint enterprise setup licences but MS Sharepoint hosting seems to be affordable. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 ??????? 2010 ?. 12:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] MS Access 2010 Hosting Hi Shamil I haven't. It looks like a SharePoint hosting service, so if you believe SharePoint is mature and convenient for your purpose, it should be OK. http://office2010.microsoft.com/en-us/access-help/build-an-access-database-t o-share-on-the-web-HA010356866.aspx /gustav >>> shamil at smsconsulting.spb.ru 18-10-2010 10:04 >>> Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Oct 18 07:19:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 18 Oct 2010 08:19:43 -0400 Subject: [AccessD] More on SSD... In-Reply-To: References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> <4CBB7A50.5040407@colbyconsulting.com> <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> Message-ID: <4CBC3B5F.1010802@colbyconsulting.com> And if you have to ask, you can't afford it. ;) John W. Colby www.ColbyConsulting.com On 10/17/2010 11:27 PM, Jim Lawrence wrote: > Hi Mark: > > To make your super system it is more than just getting a pile SSDs, it is > getting the memory to work in a specific way and that requires a special > piece of hardware: http://www.violin-memory.com/products/ > > The price AOL quoted was $20 per GB, much cheaper than $250 per GB as quoted > from Newegg. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Sunday, October 17, 2010 5:03 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] More on SSD... > > http://www.newegg.com/Product/Product.aspx?Item=N82E16820227551 > John...can you please check your math ? > Didn't you mean $2000 per TERABYTE ? > If so, AOL got "ripped off"....hugely. > What am I missing here ? > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Sunday, October 17, 2010 6:36 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] More on SSD... >> >> Yes but they were doing stuff that few of us need to do. I >> am paying about $250 / gigabyte. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 10/17/2010 1:18 PM, Jim Lawrence wrote: >>> Hi Mark: >>> >>> It may be a while before I also go that route as the following may >>> discourage some on this list from full-heartedly adopting the >>> technology at this time. ;-) >>> >>> >>> ...But love can be expensive. Without offering an exact price tag, >>> Pollack said the solid-state array cost AOL about $20 per gigabyte, >>> which adds up to about $1 million with 50TB of capacity. >>> >>> >>> I wonder how far away $20 per terabyte can be? >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Mark Simms >>> Sent: Sunday, October 17, 2010 7:51 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] More on SSD... >>> >>> AOL installs 50TB of SSD; boosts DB performance by 4X. >>> SSD SAN installed to eliminate I/O bottlenecks caused by >> back-end storage. >>> >>> >> http://www.computerworld.com/s/article/9191079/AOL_installs_50TB_of_SS >>> D_boos >>> ts_DB_performance_by_4X >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From marksimms at verizon.net Mon Oct 18 10:24:53 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 18 Oct 2010 11:24:53 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: Message-ID: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> re: "Yes, it's costly - nor myself nor my customers can't afford MS Sharepoint enterprise setup licences but MS Sharepoint hosting seems to be affordable." Microsoft was shrewd enough to price the service low enough for SMB clients and to insure their large enterprise customers "pay-up" for in-house hosting. From joeo at appoli.com Mon Oct 18 10:40:26 2010 From: joeo at appoli.com (Joe O'Connell) Date: Mon, 18 Oct 2010 11:40:26 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: Message-ID: <1CF20DB644BE124083B31638E5D5C0236B7C53@exch2.Onappsad.net> Interesting approach, what are the pros and cons of using Sharepoint instead of Terminal Services? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 18, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting Hi Gustav -- Yes, that's a SharePoint hosting service - and I'm looking here for experiences to convert real life MS Access applications to that services using MS Access 2010 - I suppose this way (converting legacy MS Access apps to SharePoint services) should be rather time consuming. So I'm mainly looking for experiences of developing "from scratch" MS Access 2010 apps ready to be converted to SharePoint services - is that ready for prime time development practice? I do suppose that SharePoint is a mature system for large enterpise level applications. I do not have experience of working with Sharepoint by myself but what I hear from Martin in this group discussions makes me sure that SharePoint is a mature system. Yes, it's costly - nor myself nor my customers can't afford MS Sharepoint enterprise setup licences but MS Sharepoint hosting seems to be affordable. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 ??????? 2010 ?. 12:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] MS Access 2010 Hosting Hi Shamil I haven't. It looks like a SharePoint hosting service, so if you believe SharePoint is mature and convenient for your purpose, it should be OK. http://office2010.microsoft.com/en-us/access-help/build-an-access-databa se-t o-share-on-the-web-HA010356866.aspx /gustav >>> shamil at smsconsulting.spb.ru 18-10-2010 10:04 >>> Hi All -- Did you try something like http://accesshosting.com/? Do you suppose that MS Access 2010 and MS Access 2010 hosting solutions similar to the referred above are ready for real life applications? BTW, the referred above site has no obligation 30-days trial mode. Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Mon Oct 18 11:26:31 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 18 Oct 2010 20:26:31 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> Message-ID: Hi Mark -- <<< Microsoft was shrewd enough to price the service low enough for SMB clients and to insure their large enterprise customers "pay-up" for in-house hosting. >>> I should have missed what happened on that "front" as I'm mainly developing using .NET Framework and for backends of my customers I'm using MS Access .mdbs or MS SQL Server Express - all are free for customers, and ASP.NET hosting is not expensive whatever backend is used.... Could you please clarify what low price "in house"/Intranet(?) option exists for MS Sharepoint services? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: 18 ??????? 2010 ?. 19:25 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting re: "Yes, it's costly - nor myself nor my customers can't afford MS Sharepoint enterprise setup licences but MS Sharepoint hosting seems to be affordable." Microsoft was shrewd enough to price the service low enough for SMB clients and to insure their large enterprise customers "pay-up" for in-house hosting. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Oct 18 11:27:16 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 18 Oct 2010 09:27:16 -0700 Subject: [AccessD] Create Outlook Calendar Message-ID: <30BD8975D9ED4005A9E198B384C1AD0D@HAL9005> Dear List: Does anyone know the syntax to check if an Outlook Calendar folder exists, and also what is the syntax for creating a new Outlook calendar? This, of course, from an Access module in VBA. MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jwcolby at colbyconsulting.com Mon Oct 18 12:22:37 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 18 Oct 2010 13:22:37 -0400 Subject: [AccessD] More on SSD... In-Reply-To: <4CBC3B5F.1010802@colbyconsulting.com> References: <4CB76223.2050202@colbyconsulting.com> <000001cb6c04$10dd7910$0601a8c0@MSIMMSWS> <4CB7B915.6040105@colbyconsulting.com> <00f601cb6e0a$ae7606d0$0601a8c0@MSIMMSWS> <4CBB7A50.5040407@colbyconsulting.com> <003601cb6e57$c5451480$0601a8c0@MSIMMSWS> <4CBC3B5F.1010802@colbyconsulting.com> Message-ID: <4CBC825D.9010406@colbyconsulting.com> And here you have a consumer grade product. Man would I buy this if... 512 Gigs of SLC, 8 way raid 0, massive bandwidth http://www.ocztechnology.com/ http://www.ocztechnology.com/products/solid-state-drives/pci-express/z-drive-r2/slc-enterprise-series/ocz-z-drive-r2-e88-pci-express-ssd.html http://www.ocztechnology.com/products/solid-state-drives/pci-express/z-drive-r2.html http://www.newegg.com/Product/Product.aspx?Item=N82E16820227581 John W. Colby www.ColbyConsulting.com On 10/18/2010 8:19 AM, jwcolby wrote: > And if you have to ask, you can't afford it. ;) > > John W. Colby > www.ColbyConsulting.com > > On 10/17/2010 11:27 PM, Jim Lawrence wrote: >> Hi Mark: >> >> To make your super system it is more than just getting a pile SSDs, it is >> getting the memory to work in a specific way and that requires a special >> piece of hardware: http://www.violin-memory.com/products/ >> >> The price AOL quoted was $20 per GB, much cheaper than $250 per GB as quoted >> from Newegg. >> >> Jim From marksimms at verizon.net Mon Oct 18 12:45:44 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 18 Oct 2010 13:45:44 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> Message-ID: <017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS> It's called MBPOS. Very reasonable...great tech support. $50/month for 5 users. http://www.microsoft.com/online/default.aspx > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Monday, October 18, 2010 12:27 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MS Access 2010 Hosting > > Hi Mark -- > > <<< > Microsoft was shrewd enough to price the service low enough > for SMB clients and to insure their large enterprise > customers "pay-up" for in-house hosting. > >>> > I should have missed what happened on that "front" as I'm > mainly developing using .NET Framework and for backends of my > customers I'm using MS Access .mdbs or MS SQL Server Express > - all are free for customers, and ASP.NET hosting is not > expensive whatever backend is used.... > > Could you please clarify what low price "in > house"/Intranet(?) option exists for MS Sharepoint services? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: 18 ??????? 2010 ?. 19:25 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MS Access 2010 Hosting > > re: "Yes, it's costly - nor myself nor my customers can't > afford MS Sharepoint enterprise setup licences but MS > Sharepoint hosting seems to be affordable." > > Microsoft was shrewd enough to price the service low enough > for SMB clients and to insure their large enterprise > customers "pay-up" for in-house hosting. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Oct 18 13:00:39 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 18 Oct 2010 22:00:39 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> <017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS> Message-ID: <8812E48B5DEB405AA3F9C552D4C742F0@nant> Thank you, Mark, Here we are: "Microsoft Online Services Unavailable in Your Country Microsoft Online Services are sold in many countries. At this time, the Microsoft Online Services are not available for trial or purchase in your country. If you would like to view the available Microsoft Online Services in another country, please choose from the following list...| (see P.S.) http://www.microsoft.com/online/geo/not-available.mspx You know, that's is St.Petersburg, Russia - the city and the country I'm living in. Special story as usual. Thank you. -- Shamil P.S. The list where MBPOS is available (I'm putting it here in HTML as I can't get it in other form): Australia (English) België (Engels/Nederlands) Belgique (Anglais/Français) Brasil (Portugues) Canada (English) Canada (Français) Ceska Republika (Ceština) Chile (Español) Colombia (Español) Costa Rica (Español) Danmark (Dansk) Deutschland (Deutsch) España (Español) France (Français) Hong Kong (English) India (English) Ireland (English) Italia (Italiano) Luxembourg (Français) Luxemburg (Deutsch) Magyarorszag (Magyar) Malaysia (English) Mexico (Español) Nederland (Nederlands) New Zealand (English) Norge (Norsk) Österreich (Deutsch) Peru (Español) Polska (Polski) Portugal (Português) Puerto Rico (English) Romania (Romană) Schweiz (Deutsch) Singapore (English) Suisse (Français) Suomi (Suomi) Sverige (Svenska) Trinidad & Tobago (English) United Kingdom (English) United States (English) Ελλάδα (Ελληνικά) Κύπρος (Ελληνικά) ישראל‫ (עברית) 台灣 - 中文 繁體 香港特别行&# 25919;区 - 中文 繁體 日本 (日本語) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: 18 ??????? 2010 ?. 21:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting It's called MBPOS. Very reasonable...great tech support. $50/month for 5 users. http://www.microsoft.com/online/default.aspx > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Monday, October 18, 2010 12:27 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MS Access 2010 Hosting > > Hi Mark -- > > <<< > Microsoft was shrewd enough to price the service low enough for SMB > clients and to insure their large enterprise customers "pay-up" for > in-house hosting. > >>> > I should have missed what happened on that "front" as I'm mainly > developing using .NET Framework and for backends of my customers I'm > using MS Access .mdbs or MS SQL Server Express > - all are free for customers, and ASP.NET hosting is not expensive > whatever backend is used.... > > Could you please clarify what low price "in > house"/Intranet(?) option exists for MS Sharepoint services? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: 18 ??????? 2010 ?. 19:25 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MS Access 2010 Hosting > > re: "Yes, it's costly - nor myself nor my customers can't afford MS > Sharepoint enterprise setup licences but MS Sharepoint hosting seems > to be affordable." > > Microsoft was shrewd enough to price the service low enough for SMB > clients and to insure their large enterprise customers "pay-up" for > in-house hosting. > > From marksimms at verizon.net Mon Oct 18 15:17:36 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 18 Oct 2010 16:17:36 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <8812E48B5DEB405AA3F9C552D4C742F0@nant> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS> <017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS> <8812E48B5DEB405AA3F9C552D4C742F0@nant> Message-ID: <005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> Re: MBPOS restricted to certain countries... That's too bad. Send me the money and I'll set you up a new service plan ;) Just get a live.com email address and you are "good to go". From shamil at smsconsulting.spb.ru Mon Oct 18 15:49:02 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 19 Oct 2010 00:49:02 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS><017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS><8812E48B5DEB405AA3F9C552D4C742F0@nant> <005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> Message-ID: Thank you, Max. I'm afraid your generous plan will not work that straightforward way - they (MBPOS) do capture IP address AFAIU. So I will also have to find a way to use one of your country IP addresses via IP proxies I guess. That's now FSB(KGB) and FBI territory we're stepping in - I'd prefer to step away from them, and you? BTW, I have .com e-mail address - fortunately GMail is available here for many years. But that will not help here. What could help is to move to the West Europe or your country - but it looks like too expensive option to just get MBPOS hosting there :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: 19 ??????? 2010 ?. 0:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting Re: MBPOS restricted to certain countries... That's too bad. Send me the money and I'll set you up a new service plan ;) Just get a live.com email address and you are "good to go". -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Mon Oct 18 21:57:02 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 18 Oct 2010 22:57:02 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS><017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS><8812E48B5DEB405AA3F9C552D4C742F0@nant> <005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> Message-ID: <008201cb6f39$4ea423b0$0601a8c0@MSIMMSWS> That's Mark, not Max. I've found 2 solutions for you. And regarding: > That's now FSB(KGB) and FBI territory we're stepping in - I'd > prefer to step away from them, and you? That's a huge joke, right ? Me ? I haven't seen anyone in our government doing any significant work in the past 10 years. They're in there to collect a pay check. The chances of reprisal from them or Microsoft is nearly zero IMHO. I'll let you know which option is best. This is a no-brainer, trust me. > I'm afraid your generous plan will not work that > straightforward way - they > (MBPOS) do capture IP address AFAIU. > So I will also have to find a way to use one of your country > IP addresses via IP proxies I guess. > That's now FSB(KGB) and FBI territory we're stepping in - I'd > prefer to step away from them, and you? From shamil at smsconsulting.spb.ru Tue Oct 19 01:56:45 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 19 Oct 2010 10:56:45 +0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <008201cb6f39$4ea423b0$0601a8c0@MSIMMSWS> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS><017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS><8812E48B5DEB405AA3F9C552D4C742F0@nant><005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> <008201cb6f39$4ea423b0$0601a8c0@MSIMMSWS> Message-ID: <2B23AF4546034EB18380B73DC81BBD79@nant> Hi Mark -- <<< That's Mark, not Max. >>> Sorry, Mark. Yes, I replied to your e-mail. <<< I've found 2 solutions for you. >>> Thank you. <<< > That's now FSB(KGB) and FBI territory we're stepping in - I'd prefer > to step away from them, and you? That's a huge joke, right ? >>> No, Mark, I'm not kidding, I'd step away from any techinques to use IP proxy or something like that as "big brother" is constantly watching IP-packets routes. That for sure happens here, probably there also. No, it's not a paranoia. Yes, that sounds crazy in 21th century but that's reality here not fiction. Did you read newspapers there? I do not read them here but I do watch headnews in Internet. During last months a group of Russian spies was "kicked out" of US, and recently a group of hackers was captured there, some of them were from Russia. The spies were hooked via Internet almost ten year ago there AFAIU. But only recently they were captured and then kicked out of your country as one of them was planning to escape your country. And that spies did use Intenet as one of the means of communicaton. No, I'm not kidding. I shouldn't give local or your country officials any chances to get myself or yourself hooked. When I participate in any discussion, any protest actions here as e.g. http://www.putinavotstavku.ru/ I do use my real e-mail address and I'm not trying to hide under proxy IP. Thank you. -- Shamil P.S. FYI: Some of the Russian spies, which were kicked out of US this summer have got this state awards yesterday from the hands of current Russian president Medvedev, and this state prime minister Putin did meet with that group and did tell them they are heroes. Sounds as absurd? Yes, it does. There is no information here what awards did that spies get and why. P.P.S. On the other hand there are many companies here with high level managers from UK or US or other Western countries, with Western capital having large or even main part of shares of that companies - that positive information (western managers usually avoid to participate in corruption schemes here) isn't broadly presented in local mass media... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: 19 ??????? 2010 ?. 6:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting That's Mark, not Max. I've found 2 solutions for you. And regarding: > That's now FSB(KGB) and FBI territory we're stepping in - I'd prefer > to step away from them, and you? That's a huge joke, right ? Me ? I haven't seen anyone in our government doing any significant work in the past 10 years. They're in there to collect a pay check. The chances of reprisal from them or Microsoft is nearly zero IMHO. I'll let you know which option is best. This is a no-brainer, trust me. > I'm afraid your generous plan will not work that straightforward way - > they > (MBPOS) do capture IP address AFAIU. > So I will also have to find a way to use one of your country IP > addresses via IP proxies I guess. > That's now FSB(KGB) and FBI territory we're stepping in - I'd prefer > to step away from them, and you? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Oct 19 07:48:40 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 19 Oct 2010 08:48:40 -0400 Subject: [AccessD] MS Access 2010 Hosting In-Reply-To: <008201cb6f39$4ea423b0$0601a8c0@MSIMMSWS> References: <011e01cb6ed8$9d68bf30$0601a8c0@MSIMMSWS><017d01cb6eec$4acb0f30$0601a8c0@MSIMMSWS><8812E48B5DEB405AA3F9C552D4C742F0@nant> <005501cb6f01$81c5deb0$0601a8c0@MSIMMSWS> <008201cb6f39$4ea423b0$0601a8c0@MSIMMSWS> Message-ID: <> I think you'd be very surprised to learn what goes on in government in a post 9/11 era and even before that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, October 18, 2010 10:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2010 Hosting That's Mark, not Max. I've found 2 solutions for you. And regarding: > That's now FSB(KGB) and FBI territory we're stepping in - I'd > prefer to step away from them, and you? That's a huge joke, right ? Me ? I haven't seen anyone in our government doing any significant work in the past 10 years. They're in there to collect a pay check. The chances of reprisal from them or Microsoft is nearly zero IMHO. I'll let you know which option is best. This is a no-brainer, trust me. > I'm afraid your generous plan will not work that > straightforward way - they > (MBPOS) do capture IP address AFAIU. > So I will also have to find a way to use one of your country > IP addresses via IP proxies I guess. > That's now FSB(KGB) and FBI territory we're stepping in - I'd > prefer to step away from them, and you? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 19 08:42:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 06:42:57 -0700 Subject: [AccessD] Outlook Automation Message-ID: Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rusty.hammond at cpiqpc.com Tue Oct 19 08:55:53 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 19 Oct 2010 08:55:53 -0500 Subject: [AccessD] Outlook Automation In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDA95@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, Have a look here: http://www.dimastr.com/outspy/ This is the site for the Outlook Redemption program that allows you to bypass Outlook security. He has another product called OutlookSpy that allows you to view all of the Outlook Object Model objects. It might point you in the right direction. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 8:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Automation Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.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 steve at goodhall.info Tue Oct 19 09:58:24 2010 From: steve at goodhall.info (Steve Goodhall) Date: Tue, 19 Oct 2010 09:58:24 -0500 Subject: [AccessD] Outlook Automation Message-ID: <54352.1287500304@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }This is what I use. http://msdn.microsoft.com/en-us/library/aa221870%28office.11%29.aspx I also have a book on Outlook Programming that I used when I was getting started at it. Unfortunately, I am moving my home office and everything is in boxes so I can't even tell you the Title. I have also done some things like what you are attempting. I am sure that I have code that will find a specific Outlook calendar, but probably nothing that creates one. I will take a look tonight. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Tue 19/10/10 9:42 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com ; www.bchacc.com ; -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 19 10:07:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 08:07:57 -0700 Subject: [AccessD] Outlook Automation In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFDA95@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721700DCFDA95@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: Rusty: I looked at redemption but I don't think it's an option for this user. I've seen the object model but I find object models to be pretty opaque. If you don't know the model to begin with, finding what you need is very hard. Somebody should write a book about it (Susan). Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Tuesday, October 19, 2010 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook Automation Rocky, Have a look here: http://www.dimastr.com/outspy/ This is the site for the Outlook Redemption program that allows you to bypass Outlook security. He has another product called OutlookSpy that allows you to view all of the Outlook Object Model objects. It might point you in the right direction. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 8:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Automation Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 19 10:11:08 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 08:11:08 -0700 Subject: [AccessD] Outlook Automation In-Reply-To: <54352.1287500304@goodhall.info> References: <54352.1287500304@goodhall.info> Message-ID: <72D11ED134FA451AA12626B23054218B@HAL9005> Steve: Thanks for the link. Everything's there in the model except an explanation of what all of those things are, how to use them, and where to find what you need. Typical MS. :) An object model itself I find useful for reference if you know pretty much what you're looking for. But starting with a specific task like 'does a folder exist?' the object model is not very helpful. I've gotten answers to a lot of questions like this by Googling. But this business about the existence of a specific calendar and creating one was a dry hole. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Tuesday, October 19, 2010 7:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook Automation BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }This is what I use. http://msdn.microsoft.com/en-us/library/aa221870%28office.11%29.aspx I also have a book on Outlook Programming that I used when I was getting started at it. Unfortunately, I am moving my home office and everything is in boxes so I can't even tell you the Title. I have also done some things like what you are attempting. I am sure that I have code that will find a specific Outlook calendar, but probably nothing that creates one. I will take a look tonight. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Tue 19/10/10 9:42 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com ; www.bchacc.com ; -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From steve at goodhall.info Tue Oct 19 10:37:26 2010 From: steve at goodhall.info (Steve Goodhall) Date: Tue, 19 Oct 2010 10:37:26 -0500 Subject: [AccessD] Outlook Automation Message-ID: <55898.1287502646@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }There are a bunch of books on Outlook programming that cover the Object Model. I have one at home that I could recommend except that all of my books are currently packed in boxes while I shift my home office from on room to another. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Tue 19/10/10 11:07 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Rusty: I looked at redemption but I don't think it's an option for this user. I've seen the object model but I find object models to be pretty opaque. If you don't know the model to begin with, finding what you need is very hard. Somebody should write a book about it (Susan). Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [1] [accessd-bounces at databaseadvisors.com [2]] On Behalf Of Rusty Hammond Sent: Tuesday, October 19, 2010 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook Automation Rocky, Have a look here: http://www.dimastr.com/outspy/ This is the site for the Outlook Redemption program that allows you to bypass Outlook security. He has another product called OutlookSpy that allows you to view all of the Outlook Object Model objects. It might point you in the right direction. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [3] [accessd-bounces at databaseadvisors.com [4]] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 8:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Automation Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com ; www.bchacc.com ; ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com [5] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com [6] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:accessd-bounces at databaseadvisors.com [2] mailto:accessd-bounces at databaseadvisors.com [3] mailto:accessd-bounces at databaseadvisors.com [4] mailto:accessd-bounces at databaseadvisors.com [5] mailto:AccessD at databaseadvisors.com [6] mailto:AccessD at databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 19 11:06:06 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 09:06:06 -0700 Subject: [AccessD] Outlook Automation In-Reply-To: <55898.1287502646@goodhall.info> References: <55898.1287502646@goodhall.info> Message-ID: <36594D4DCAEF48F3BBF6EF6511EFB668@HAL9005> OK looks like a trip to B&N to browse. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Tuesday, October 19, 2010 8:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook Automation BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }There are a bunch of books on Outlook programming that cover the Object Model. I have one at home that I could recommend except that all of my books are currently packed in boxes while I shift my home office from on room to another. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Tue 19/10/10 11:07 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Rusty: I looked at redemption but I don't think it's an option for this user. I've seen the object model but I find object models to be pretty opaque. If you don't know the model to begin with, finding what you need is very hard. Somebody should write a book about it (Susan). Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [1] [accessd-bounces at databaseadvisors.com [2]] On Behalf Of Rusty Hammond Sent: Tuesday, October 19, 2010 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook Automation Rocky, Have a look here: http://www.dimastr.com/outspy/ This is the site for the Outlook Redemption program that allows you to bypass Outlook security. He has another product called OutlookSpy that allows you to view all of the Outlook Object Model objects. It might point you in the right direction. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [3] [accessd-bounces at databaseadvisors.com [4]] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 8:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Automation Dear list: Does anyone have a link to a good explanation of the outlook object model. In the current case, I'm trying to verify if a specific Outlook calendar exists and, if not, create it, and can't seem to hit on the right syntax by trial and error. TIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com ; www.bchacc.com ; ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com [5] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com [6] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:accessd-bounces at databaseadvisors.com [2] mailto:accessd-bounces at databaseadvisors.com [3] mailto:accessd-bounces at databaseadvisors.com [4] mailto:accessd-bounces at databaseadvisors.com [5] mailto:AccessD at databaseadvisors.com [6] mailto:AccessD at 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 Oct 19 11:23:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 09:23:14 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today Message-ID: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> I didn't even know I had the Beta. $500 bucks for this bad boy! Seems pretty steep for a program no one is asking me to use. Still, I feel like I should be ready. Is anyone using it for development? Getting requests from clients who have it instead of 2003 or 2007? Any experience developing in 2010 and deploying on 2003 and 2007? TIA Rocky ________________________________ From: Microsoft [mailto:Microsoft at e-mail.microsoft.com] Sent: Tuesday, October 19, 2010 9:10 AM To: rockysmolin at bchacc.com Subject: Beta expires soon - get Office 2010 today Sign up for newsletters | Update your profile Microsoft Office Professional Plus 2010 Microsoft Office Professional Plus 2010 Dear Microsoft Office user: Your Microsoft Office 2010 Beta is ending on October 31. The applications you've been using, including Word 2010, Excel 2010, Outlook 2010 and PowerPoint 2010, will become read-only viewers and the features you've been using will no longer work. Before this happens, we recommend you move up to the finished version of Office 2010. Time is running out. Buy Office 2010 today so you can keep using all the smart, simple, time-saving tools of Beta - without interruption. Sincerely, The Microsoft Office 2010 Team ________________________________ Check out the Office 2010 Getting Started Center. If you prefer not to receive this series of evaluation e-mails from Microsoft, please reply to this email with UNSUBSCRIBE in the subject line. You will still receive previously initiated communications from Microsoft. For all other questions or comments, please contact customer support . This message from Microsoft is an important part of a program, service or product which you or your company purchased or participate in. Legal information To sign up for Microsoft newsletters, receive information about our products or services, or review information you've given us, visit the Microsoft.com Web site. This communication was sent by the Microsoft Corporation One Microsoft Way Redmond, Washington, USA Sign up for newsletters | Update your profile C 2009 Microsoft Corporation Terms of Use | Trademarks | Privacy Statement Microsoft From rockysmolin at bchacc.com Tue Oct 19 11:27:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 09:27:53 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> Message-ID: <0DD8A011079348CEB4DAE62856868730@HAL9005> Looks like a lot of them on EBay - buy it now - for around $150. Wonder what truck they got hijacked from? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Beta expires soon - get Office 2010 today I didn't even know I had the Beta. $500 bucks for this bad boy! Seems pretty steep for a program no one is asking me to use. Still, I feel like I should be ready. Is anyone using it for development? Getting requests from clients who have it instead of 2003 or 2007? Any experience developing in 2010 and deploying on 2003 and 2007? TIA Rocky ________________________________ From: Microsoft [mailto:Microsoft at e-mail.microsoft.com] Sent: Tuesday, October 19, 2010 9:10 AM To: rockysmolin at bchacc.com Subject: Beta expires soon - get Office 2010 today Sign up for newsletters | Update your profile Microsoft Office Professional Plus 2010 Microsoft Office Professional Plus 2010 Dear Microsoft Office user: Your Microsoft Office 2010 Beta is ending on October 31. The applications you've been using, including Word 2010, Excel 2010, Outlook 2010 and PowerPoint 2010, will become read-only viewers and the features you've been using will no longer work. Before this happens, we recommend you move up to the finished version of Office 2010. Time is running out. Buy Office 2010 today so you can keep using all the smart, simple, time-saving tools of Beta - without interruption. Sincerely, The Microsoft Office 2010 Team ________________________________ Check out the Office 2010 Getting Started Center. If you prefer not to receive this series of evaluation e-mails from Microsoft, please reply to this email with UNSUBSCRIBE in the subject line. You will still receive previously initiated communications from Microsoft. For all other questions or comments, please contact customer support . This message from Microsoft is an important part of a program, service or product which you or your company purchased or participate in. Legal information To sign up for Microsoft newsletters, receive information about our products or services, or review information you've given us, visit the Microsoft.com Web site. This communication was sent by the Microsoft Corporation One Microsoft Way Redmond, Washington, USA Sign up for newsletters | Update your profile C 2009 Microsoft Corporation Terms of Use | Trademarks | Privacy Statement Microsoft -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Oct 19 11:31:04 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 19 Oct 2010 12:31:04 -0400 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> Message-ID: <2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p> > > Is anyone using it for development? Getting requests from clients who > have > it instead of 2003 or 2007? Any experience developing in 2010 and > deploying > on 2003 and 2007? ========I'm sure you can find a better deal than $500 somewhere - keep looking. I'm writing about 2010 -- mostly skipped 2007. I include instructions for 2003 and 2007/2010 -- pia sometimes! ;( If it were me, I'd wait until somebody asked. :) I like 2010 better than 2007 -- no contest, even though they seem so similar, 2010 is just cleaner and better. Susan H. From rockysmolin at bchacc.com Tue Oct 19 11:30:03 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 09:30:03 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: <2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p> References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> <2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p> Message-ID: <4D573587D03A4902B62F722F23D94A8E@HAL9005> Hear of any 'anomalies' running a 2003 app on 2010? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, October 19, 2010 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today > > Is anyone using it for development? Getting requests from clients who > have it instead of 2003 or 2007? Any experience developing in 2010 and > deploying on 2003 and 2007? ========I'm sure you can find a better deal than $500 somewhere - keep looking. I'm writing about 2010 -- mostly skipped 2007. I include instructions for 2003 and 2007/2010 -- pia sometimes! ;( If it were me, I'd wait until somebody asked. :) I like 2010 better than 2007 -- no contest, even though they seem so similar, 2010 is just cleaner and better. 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 Tue Oct 19 11:39:40 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 19 Oct 2010 12:39:40 -0400 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005><2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p> <4D573587D03A4902B62F722F23D94A8E@HAL9005> Message-ID: Not really Rocky -- if you run it in 2003 format using 2010. I've not had any problems, but then... I wouldn't. I'm not running any comprehensive custom apps other than a small run I use to track my own work and invoice. It runs fine in 2010, although, I don't run it in 2010 much because it was designed in 2003 and it just looks a tad funky -- you'll want to check the way your forms, etc. load and look in 2010 -- there are some issues there. They seldom fit just right without a little adjusting. Susan H. > Hear of any 'anomalies' running a 2003 app on 2010? > > > ========I'm sure you can find a better deal than $500 somewhere - keep > looking. I'm writing about 2010 -- mostly skipped 2007. I include > instructions for 2003 and 2007/2010 -- pia sometimes! ;( > > If it were me, I'd wait until somebody asked. :) I like 2010 better than > 2007 -- no contest, even though they seem so similar, 2010 is just cleaner > and better. > From df.waters at comcast.net Tue Oct 19 11:37:47 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 19 Oct 2010 11:37:47 -0500 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: <0DD8A011079348CEB4DAE62856868730@HAL9005> References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> <0DD8A011079348CEB4DAE62856868730@HAL9005> Message-ID: DO NOT buy cheap software on ebay. It's all black market copies, and cannot be registered with MS. Been burned twice and didn't get all my money back. The best thing you can do is become a registered partner with MS. It will cost you a few hundred dollars per year, but then you get a LOT of software. Office, Project, Visio, Sharepoint Server, Windows 7, SQL Server, Visual Studio Professional, and a lot more. There are two different Action Pack programs (Solution Provider OR Development and Design) with different software benefits - so review carefully to be sure you sign up for the correct program. As a developer, you'll probably go for the Development and Design program - it does include Visual Studio Professional. Start here: https://partner.microsoft.com/us/Partner Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today Looks like a lot of them on EBay - buy it now - for around $150. Wonder what truck they got hijacked from? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Beta expires soon - get Office 2010 today I didn't even know I had the Beta. $500 bucks for this bad boy! Seems pretty steep for a program no one is asking me to use. Still, I feel like I should be ready. Is anyone using it for development? Getting requests from clients who have it instead of 2003 or 2007? Any experience developing in 2010 and deploying on 2003 and 2007? TIA Rocky ________________________________ From: Microsoft [mailto:Microsoft at e-mail.microsoft.com] Sent: Tuesday, October 19, 2010 9:10 AM To: rockysmolin at bchacc.com Subject: Beta expires soon - get Office 2010 today Sign up for newsletters | Update your profile Microsoft Office Professional Plus 2010 Microsoft Office Professional Plus 2010 Dear Microsoft Office user: Your Microsoft Office 2010 Beta is ending on October 31. The applications you've been using, including Word 2010, Excel 2010, Outlook 2010 and PowerPoint 2010, will become read-only viewers and the features you've been using will no longer work. Before this happens, we recommend you move up to the finished version of Office 2010. Time is running out. Buy Office 2010 today so you can keep using all the smart, simple, time-saving tools of Beta - without interruption. Sincerely, The Microsoft Office 2010 Team ________________________________ Check out the Office 2010 Getting Started Center. If you prefer not to receive this series of evaluation e-mails from Microsoft, please reply to this email with UNSUBSCRIBE in the subject line. You will still receive previously initiated communications from Microsoft. For all other questions or comments, please contact customer support . This message from Microsoft is an important part of a program, service or product which you or your company purchased or participate in. Legal information To sign up for Microsoft newsletters, receive information about our products or services, or review information you've given us, visit the Microsoft.com Web site. This communication was sent by the Microsoft Corporation One Microsoft Way Redmond, Washington, USA Sign up for newsletters | Update your profile C 2009 Microsoft Corporation Terms of Use | Trademarks | Privacy Statement Microsoft -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 19 11:43:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 19 Oct 2010 12:43:39 -0400 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005> <0DD8A011079348CEB4DAE62856868730@HAL9005> Message-ID: <4CBDCABB.3090800@colbyconsulting.com> > The best thing you can do is become a registered partner with MS. Amen to that. John W. Colby www.ColbyConsulting.com On 10/19/2010 12:37 PM, Dan Waters wrote: > DO NOT buy cheap software on ebay. It's all black market copies, and cannot > be registered with MS. Been burned twice and didn't get all my money back. > > The best thing you can do is become a registered partner with MS. It will > cost you a few hundred dollars per year, but then you get a LOT of software. > Office, Project, Visio, Sharepoint Server, Windows 7, SQL Server, Visual > Studio Professional, and a lot more. There are two different Action Pack > programs (Solution Provider OR Development and Design) with different > software benefits - so review carefully to be sure you sign up for the > correct program. As a developer, you'll probably go for the Development and > Design program - it does include Visual Studio Professional. > > Start here: https://partner.microsoft.com/us/Partner > > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, October 19, 2010 11:28 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today > > Looks like a lot of them on EBay - buy it now - for around $150. Wonder what > truck they got hijacked from? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, October 19, 2010 9:23 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Beta expires soon - get Office 2010 today > > I didn't even know I had the Beta. $500 bucks for this bad boy! Seems > pretty steep for a program no one is asking me to use. Still, I feel like I > should be ready. > > Is anyone using it for development? Getting requests from clients who have > it instead of 2003 or 2007? Any experience developing in 2010 and deploying > on 2003 and 2007? > > TIA > > Rocky > > > ________________________________ > > From: Microsoft [mailto:Microsoft at e-mail.microsoft.com] > Sent: Tuesday, October 19, 2010 9:10 AM > To: rockysmolin at bchacc.com > Subject: Beta expires soon - get Office 2010 today > > > > Sign up for newsletters > 8f77277bd4a6293c08bdb370a209d058a91832ad841d6c2> | Update your profile > 07bcb85d032291a7990554a52d224dd96a7ebdacc6a4ead> > Microsoft Office Professional Plus 2010 > ,MSDN.10%29.jpg> Microsoft Office Professional Plus 2010 > s,MSDN.10%29.jpg> > > > Dear Microsoft Office user: > > Your Microsoft Office 2010 Beta is ending on October 31. The applications > you've been using, including Word 2010, Excel 2010, Outlook 2010 and > PowerPoint 2010, will become read-only viewers and the features you've been > using will no longer work. Before this happens, we recommend you move up to > the finished version of Office 2010. > > Time is running out. Buy Office 2010 today > 9fd7e02c719ec39174ba5a795f0dc837a0dbaa9d4924657> so you can keep using all > the smart, simple, time-saving tools of Beta - without interruption. > Sincerely, > The Microsoft Office 2010 Team > > > ________________________________ > > > > Check out the Office 2010 Getting Started Center. > f199fba1e86c8c98e5bf00e41a05a02284aaad6ae065975> > > If you prefer not to receive this series of evaluation e-mails from > Microsoft, please reply to this email with UNSUBSCRIBE in the subject line. > You will still receive previously initiated communications from Microsoft. > For all other questions or comments, please contact customer support > 9dce995d00873719fae7de8a350afd56cd4a15e2167f965> . > > This message from Microsoft is an important part of a program, service or > product which you or your company purchased or participate in. > > Legal information > e544bb32df3a511bdff495628c47f8d003d4c76b7070339> > > To sign up for Microsoft newsletters, receive information about our products > or services, or review information you've given us, visit the Microsoft.com > 648dd2fb63de10f9719197e8e76637a37aaaca372e703da> Web site. > > This communication was sent by the Microsoft Corporation > One Microsoft Way > Redmond, Washington, USA > > > Sign up for newsletters > 8f77277bd4a6293c08bdb370a209d058a91832ad841d6c2> | Update your profile > 07bcb85d032291a7990554a52d224dd96a7ebdacc6a4ead> > C 2009 Microsoft Corporation Terms of Use > 6c5d6906adcf6e718ee2518574bb3749d38d61a28e7dd5f> | Trademarks > b0b7a897a927fc9324255d92c4c1895c59668d2afca0b72> | Privacy Statement > c2f319ebdd638257c71e8d86620e5f152e812a57ed31dfa> > > Microsoft > > > > > 3157172640c74771c78-feed1d76726202-fec21c767365017e-fe2a177870620674711470-f > f2615777d6d> > From jwcolby at colbyconsulting.com Tue Oct 19 11:44:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 19 Oct 2010 12:44:52 -0400 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005><2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p> <4D573587D03A4902B62F722F23D94A8E@HAL9005> Message-ID: <4CBDCB04.804@colbyconsulting.com> Does 2010 still have the run-time license? John W. Colby www.ColbyConsulting.com On 10/19/2010 12:39 PM, Susan Harkins wrote: > Not really Rocky -- if you run it in 2003 format using 2010. I've not had > any problems, but then... I wouldn't. I'm not running any comprehensive > custom apps other than a small run I use to track my own work and invoice. > It runs fine in 2010, although, I don't run it in 2010 much because it was > designed in 2003 and it just looks a tad funky -- you'll want to check the > way your forms, etc. load and look in 2010 -- there are some issues there. > They seldom fit just right without a little adjusting. > > Susan H. > > >> Hear of any 'anomalies' running a 2003 app on 2010? >> >> >> ========I'm sure you can find a better deal than $500 somewhere - keep >> looking. I'm writing about 2010 -- mostly skipped 2007. I include >> instructions for 2003 and 2007/2010 -- pia sometimes! ;( >> >> If it were me, I'd wait until somebody asked. :) I like 2010 better than >> 2007 -- no contest, even though they seem so similar, 2010 is just cleaner >> and better. >> > From rockysmolin at bchacc.com Tue Oct 19 12:04:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 10:04:30 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005><2B0D8B0FF26044D38EFB0E4F7CBDA418@salvationomc4p><4D573587D03A4902B62F722F23D94A8E@HAL9005> Message-ID: <893BCF04BFAD4D7383B168B1C2F15817@HAL9005> "They seldom fit just right without a little adjusting." Because the ribbon taking up real estate? Or something else? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, October 19, 2010 9:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today Not really Rocky -- if you run it in 2003 format using 2010. I've not had any problems, but then... I wouldn't. I'm not running any comprehensive custom apps other than a small run I use to track my own work and invoice. It runs fine in 2010, although, I don't run it in 2010 much because it was designed in 2003 and it just looks a tad funky -- you'll want to check the way your forms, etc. load and look in 2010 -- there are some issues there. They seldom fit just right without a little adjusting. Susan H. > Hear of any 'anomalies' running a 2003 app on 2010? > > > ========I'm sure you can find a better deal than $500 somewhere - keep > looking. I'm writing about 2010 -- mostly skipped 2007. I include > instructions for 2003 and 2007/2010 -- pia sometimes! ;( > > If it were me, I'd wait until somebody asked. :) I like 2010 better > than > 2007 -- no contest, even though they seem so similar, 2010 is just > cleaner and better. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Oct 19 12:06:19 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 19 Oct 2010 10:06:19 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: References: <7F056B81DEF34103A9A4F6C58FE70347@HAL9005><0DD8A011079348CEB4DAE62856868730@HAL9005> Message-ID: I used to be an Action Pack subscriber. Terrific program. Couple years ago I did some 'course' to qualify when I thought I would be compelled to go to 2007. That never happened - so no Action Pack subscription. But it may be time again. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, October 19, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today DO NOT buy cheap software on ebay. It's all black market copies, and cannot be registered with MS. Been burned twice and didn't get all my money back. The best thing you can do is become a registered partner with MS. It will cost you a few hundred dollars per year, but then you get a LOT of software. Office, Project, Visio, Sharepoint Server, Windows 7, SQL Server, Visual Studio Professional, and a lot more. There are two different Action Pack programs (Solution Provider OR Development and Design) with different software benefits - so review carefully to be sure you sign up for the correct program. As a developer, you'll probably go for the Development and Design program - it does include Visual Studio Professional. Start here: https://partner.microsoft.com/us/Partner Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today Looks like a lot of them on EBay - buy it now - for around $150. Wonder what truck they got hijacked from? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 19, 2010 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Beta expires soon - get Office 2010 today I didn't even know I had the Beta. $500 bucks for this bad boy! Seems pretty steep for a program no one is asking me to use. Still, I feel like I should be ready. Is anyone using it for development? Getting requests from clients who have it instead of 2003 or 2007? Any experience developing in 2010 and deploying on 2003 and 2007? TIA Rocky ________________________________ From: Microsoft [mailto:Microsoft at e-mail.microsoft.com] Sent: Tuesday, October 19, 2010 9:10 AM To: rockysmolin at bchacc.com Subject: Beta expires soon - get Office 2010 today Sign up for newsletters | Update your profile Microsoft Office Professional Plus 2010 Microsoft Office Professional Plus 2010 Dear Microsoft Office user: Your Microsoft Office 2010 Beta is ending on October 31. The applications you've been using, including Word 2010, Excel 2010, Outlook 2010 and PowerPoint 2010, will become read-only viewers and the features you've been using will no longer work. Before this happens, we recommend you move up to the finished version of Office 2010. Time is running out. Buy Office 2010 today so you can keep using 9fd7e02c719ec39174ba5a795f0dc837a0dbaa9d4924657> all the smart, simple, time-saving tools of Beta - without interruption. Sincerely, The Microsoft Office 2010 Team ________________________________ Check out the Office 2010 Getting Started Center. If you prefer not to receive this series of evaluation e-mails from Microsoft, please reply to this email with UNSUBSCRIBE in the subject line. You will still receive previously initiated communications from Microsoft. For all other questions or comments, please contact customer support . This message from Microsoft is an important part of a program, service or product which you or your company purchased or participate in. Legal information To sign up for Microsoft newsletters, receive information about our products or services, or review information you've given us, visit the Microsoft.com Web site. This communication was sent by the Microsoft Corporation One Microsoft Way Redmond, Washington, USA Sign up for newsletters | Update your profile C 2009 Microsoft Corporation Terms of Use | Trademarks | Privacy Statement Microsoft -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 19 12:33:33 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 19 Oct 2010 19:33:33 +0200 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today Message-ID: Hi Rocky Pick the "Developer" track. Takes no course but a little knowledge to to get the ten questions right - I had 10 correct just like that. Should you fail, try again at zero cost. You can select download only or download plus physical. We picked the last option because it takes a lot of time to download and label a bunch of cd/dvd titles, but should you need a new title at once you can download it as physical media are published quarterly only. /gustav >>> rockysmolin at bchacc.com 19-10-2010 19:06 >>> I used to be an Action Pack subscriber. Terrific program. Couple years ago I did some 'course' to qualify when I thought I would be compelled to go to 2007. That never happened - so no Action Pack subscription. But it may be time again. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, October 19, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today DO NOT buy cheap software on ebay. It's all black market copies, and cannot be registered with MS. Been burned twice and didn't get all my money back. The best thing you can do is become a registered partner with MS. It will cost you a few hundred dollars per year, but then you get a LOT of software. Office, Project, Visio, Sharepoint Server, Windows 7, SQL Server, Visual Studio Professional, and a lot more. There are two different Action Pack programs (Solution Provider OR Development and Design) with different software benefits - so review carefully to be sure you sign up for the correct program. As a developer, you'll probably go for the Development and Design program - it does include Visual Studio Professional. Start here: https://partner.microsoft.com/us/Partner Dan From dw-murphy at cox.net Tue Oct 19 13:28:58 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 19 Oct 2010 11:28:58 -0700 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: References: Message-ID: Action Pack Solution provider $329 Developer is $429. If your not doing Visual Studio or web stuff the Solution provider is the way to go. No tests either. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 19, 2010 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today Hi Rocky Pick the "Developer" track. Takes no course but a little knowledge to to get the ten questions right - I had 10 correct just like that. Should you fail, try again at zero cost. You can select download only or download plus physical. We picked the last option because it takes a lot of time to download and label a bunch of cd/dvd titles, but should you need a new title at once you can download it as physical media are published quarterly only. /gustav >>> rockysmolin at bchacc.com 19-10-2010 19:06 >>> I used to be an Action Pack subscriber. Terrific program. Couple years ago I did some 'course' to qualify when I thought I would be compelled to go to 2007. That never happened - so no Action Pack subscription. But it may be time again. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, October 19, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today DO NOT buy cheap software on ebay. It's all black market copies, and cannot be registered with MS. Been burned twice and didn't get all my money back. The best thing you can do is become a registered partner with MS. It will cost you a few hundred dollars per year, but then you get a LOT of software. Office, Project, Visio, Sharepoint Server, Windows 7, SQL Server, Visual Studio Professional, and a lot more. There are two different Action Pack programs (Solution Provider OR Development and Design) with different software benefits - so review carefully to be sure you sign up for the correct program. As a developer, you'll probably go for the Development and Design program - it does include Visual Studio Professional. Start here: https://partner.microsoft.com/us/Partner Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Tue Oct 19 18:59:31 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 20 Oct 2010 10:59:31 +1100 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today In-Reply-To: <893BCF04BFAD4D7383B168B1C2F15817@HAL9005> Message-ID: <201010200010.o9K0AOHA004788@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ This issue was one of the first things I didn't like in Access 2007. The forms would often poorly fit, like you had purchased a 2nd hard suit that sort of did the job, but you (and everyone else) could tell it just didn't fit quite right. I am not using Access 2010 at this stage, so cannot comment, but a lot of the forms needs some tweaking for 2007. I hated Access 2007 so much it put me off Access altogether. I have office 2010 (sans Outlook - now use thunderbird, and Access - trying to use SQL Server Express and VS) and it is a much nicer product. Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, 20 October 2010 4:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today "They seldom fit just right without a little adjusting." Because the ribbon taking up real estate? Or something else? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, October 19, 2010 9:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today Not really Rocky -- if you run it in 2003 format using 2010. I've not had any problems, but then... I wouldn't. I'm not running any comprehensive custom apps other than a small run I use to track my own work and invoice. It runs fine in 2010, although, I don't run it in 2010 much because it was designed in 2003 and it just looks a tad funky -- you'll want to check the way your forms, etc. load and look in 2010 -- there are some issues there. They seldom fit just right without a little adjusting. Susan H. > Hear of any 'anomalies' running a 2003 app on 2010? > > > ========I'm sure you can find a better deal than $500 somewhere - keep > looking. I'm writing about 2010 -- mostly skipped 2007. I include > instructions for 2003 and 2007/2010 -- pia sometimes! ;( > > If it were me, I'd wait until somebody asked. :) I like 2010 better > than > 2007 -- no contest, even though they seem so similar, 2010 is just > cleaner and better. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Tue Oct 19 21:13:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 19 Oct 2010 22:13:56 -0400 Subject: [AccessD] Unraid Message-ID: <4CBE5064.502@colbyconsulting.com> I got a good deal on three 1GB Samsung drives the other day, and as a result I am about to launch an UnRaid NAS. http://lime-technology.com/ I currently use Windows Home Server but have never been happy with all aspects of what it is and does. I absolutely love the way that it backs up computers, with the sector copy / compare. Cool technology. Unfortunately my experience has seen an abysmal restore scenario. I have had restores work, I have had restores fail to work. When they refuse to restore I have just utterly failed to force that restore to ever work. I have the same experience with the backup. 9 of 10 of my machines restore faithfully, the other absolutely refuses to see the WHS server. Backups have to be 100% absolutely reliable and restores have to be 100% absolutely reliable or you are rolling dice when you do your backups. WHS has never had that 100% reliability for me. So I am about to take down my WHS in favor of an UnRaid NAS and plain old backup software. We shall see how this goes but it certainly looks promising. -- John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Tue Oct 19 21:17:24 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 19 Oct 2010 22:17:24 -0400 Subject: [AccessD] FW: Beta expires soon - get Office 2010 today References: <201010200010.o9K0AOHA004788@databaseadvisors.com> Message-ID: Rocky, I don't know what the problem is, but not just the ribbon -- just a problem of fitting an apple into a pear I think . Susan H. > > This issue was one of the first things I didn't like in Access 2007. The > forms would often poorly fit, like you had purchased a 2nd hard suit that > sort of did the job, but you (and everyone else) could tell it just didn't > fit quite right. > > I am not using Access 2010 at this stage, so cannot comment, but a lot of > the forms needs some tweaking for 2007. I hated Access 2007 so much it > put me off Access altogether. I have office 2010 (sans Outlook - now use > thunderbird, and Access - trying to use SQL Server Express and VS) and it > is a much nicer product. > > Regards > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, 20 October 2010 4:05 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today > > > "They seldom fit just right without a little adjusting." Because the > ribbon > taking up real estate? Or something else? > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, October 19, 2010 9:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Beta expires soon - get Office 2010 today > > Not really Rocky -- if you run it in 2003 format using 2010. I've not had > any problems, but then... I wouldn't. I'm not running any comprehensive > custom apps other than a small run I use to track my own work and invoice. > It runs fine in 2010, although, I don't run it in 2010 much because it was > designed in 2003 and it just looks a tad funky -- you'll want to check the > way your forms, etc. load and look in 2010 -- there are some issues there. > They seldom fit just right without a little adjusting. > > Susan H. > > >> Hear of any 'anomalies' running a 2003 app on 2010? >> >> >> ========I'm sure you can find a better deal than $500 somewhere - keep >> looking. I'm writing about 2010 -- mostly skipped 2007. I include >> instructions for 2003 and 2007/2010 -- pia sometimes! ;( >> >> If it were me, I'd wait until somebody asked. :) I like 2010 better >> than >> 2007 -- no contest, even though they seem so similar, 2010 is just >> cleaner and better. >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________________________________________________ > > The information transmitted in this message and its attachments (if any) > is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, 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. > > If you have received this in error, please contact the sender and delete > this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute > the information contained in this e-mail and any attached files, with the > permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 20 09:09:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 20 Oct 2010 10:09:30 -0400 Subject: [AccessD] Decompile / compile Message-ID: <4CBEF81A.1080607@colbyconsulting.com> I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com From robert at servicexp.com Wed Oct 20 09:17:14 2010 From: robert at servicexp.com (Robert) Date: Wed, 20 Oct 2010 10:17:14 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: <4CBEF81A.1080607@colbyconsulting.com> References: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: <000701cb7061$824f6110$86ee2330$@com> That's how I have been doing it for years... ;) (No close then re-open)(it's always the last thing I do before release) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 10:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Decompile / compile I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Oct 20 09:19:23 2010 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 20 Oct 2010 10:19:23 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: <4CBEF81A.1080607@colbyconsulting.com> References: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: I've always compacted after while holding the shift key ... Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 10:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Decompile / compile I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Wed Oct 20 09:29:40 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 20 Oct 2010 09:29:40 -0500 Subject: [AccessD] Decompile / compile In-Reply-To: <4CBEF81A.1080607@colbyconsulting.com> References: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: <3D3E15A3FBAC46499B6C387309C54C00@DanWaters> Yes! After you've opened the file using the decompile shortcut: 1) Open a standard module. 2) Select Debug | Compile [Name] That's all! You can make this slightly easier by adding the Decompile toolbar button to the Standard toolbar: 1) View | Toolbars | Customize 2) Select the Commands tab 3) Select the Debug Category (don't necessarily check it - just click to make it blue) 4) At the top of the Command list is a Compile Project button. Drag that to the Standard toolbar. I put it immediately to the right of the properties button because I use that frequently. Now you can decompile at any time just by pushing one toolbar button. Another very helpful button is Clear All Breakpoints. Just scroll down the Commands list until you see that button, and drag it to the Standard toolbar. I put this just to the right of the Decompile button. Once you make these changes, these buttons will show in all the Access code windows. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Decompile / compile I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 20 10:04:09 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 20 Oct 2010 11:04:09 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: <3D3E15A3FBAC46499B6C387309C54C00@DanWaters> References: <4CBEF81A.1080607@colbyconsulting.com> <3D3E15A3FBAC46499B6C387309C54C00@DanWaters> Message-ID: <4CBF04E9.6010202@colbyconsulting.com> I am not finding the buttons you are describing. John W. Colby www.ColbyConsulting.com On 10/20/2010 10:29 AM, Dan Waters wrote: > Yes! > > After you've opened the file using the decompile shortcut: > > 1) Open a standard module. > 2) Select Debug | Compile [Name] > > That's all! > > You can make this slightly easier by adding the Decompile toolbar button to > the Standard toolbar: > > 1) View | Toolbars | Customize > 2) Select the Commands tab > 3) Select the Debug Category (don't necessarily check it - just click to > make it blue) > 4) At the top of the Command list is a Compile Project button. Drag that to > the Standard toolbar. I put it immediately to the right of the properties > button because I use that frequently. > > Now you can decompile at any time just by pushing one toolbar button. > > Another very helpful button is Clear All Breakpoints. Just scroll down the > Commands list until you see that button, and drag it to the Standard > toolbar. I put this just to the right of the Decompile button. > > Once you make these changes, these buttons will show in all the Access code > windows. > > HTH! > Dan > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I use > that shortcut Access > opens with the decompile stuff. I then open the container I want to > decompile and the decompile > happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile > is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > I assume that I can but I have never been sure on that. > From df.waters at comcast.net Wed Oct 20 10:09:34 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 20 Oct 2010 10:09:34 -0500 Subject: [AccessD] Decompile / compile In-Reply-To: <4CBF04E9.6010202@colbyconsulting.com> References: <4CBEF81A.1080607@colbyconsulting.com><3D3E15A3FBAC46499B6C387309C54C00@DanWaters> <4CBF04E9.6010202@colbyconsulting.com> Message-ID: <93D978D2EFF34B8BA7F8812A902739F5@DanWaters> I'm using Access 2003 (previous s/b the same) Be sure to open a code window and select View | Toolbars | Customize from there. Then select the Commands tab and click on the Debug category. If they're not there I'm really puzzled. Which button is at the top of the Command list on your screen? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 10:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I am not finding the buttons you are describing. John W. Colby www.ColbyConsulting.com On 10/20/2010 10:29 AM, Dan Waters wrote: > Yes! > > After you've opened the file using the decompile shortcut: > > 1) Open a standard module. > 2) Select Debug | Compile [Name] > > That's all! > > You can make this slightly easier by adding the Decompile toolbar button to > the Standard toolbar: > > 1) View | Toolbars | Customize > 2) Select the Commands tab > 3) Select the Debug Category (don't necessarily check it - just click to > make it blue) > 4) At the top of the Command list is a Compile Project button. Drag that to > the Standard toolbar. I put it immediately to the right of the properties > button because I use that frequently. > > Now you can decompile at any time just by pushing one toolbar button. > > Another very helpful button is Clear All Breakpoints. Just scroll down the > Commands list until you see that button, and drag it to the Standard > toolbar. I put this just to the right of the Decompile button. > > Once you make these changes, these buttons will show in all the Access code > windows. > > HTH! > Dan > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I use > that shortcut Access > opens with the decompile stuff. I then open the container I want to > decompile and the decompile > happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile > is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > I assume that I can but I have never been sure on that. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Wed Oct 20 10:11:36 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 20 Oct 2010 10:11:36 -0500 Subject: [AccessD] Compacting w/a shortcut (Was: Decompile / compile) In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: I set up a specific shortcut to compact an mdb. Set up the target field like this: "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\PSISystemClient\FrontEnd\PSILibrary.mdb" /compact Notice that the path to the access executable is listed first, and it uses double quotes at the beginning and end. Next is the path to your file, also using double quotes. Next is the /compact command. When the shortcut is set up like this, I can click on the shortcut, the access file open, compacts, and closes without running code. It's fast! If your file uses any security, you can enter your username and password, then the /compact command: /user dwaters /pwd abcde /compact HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, October 20, 2010 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile I've always compacted after while holding the shift key ... Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 10:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Decompile / compile I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Oct 20 11:16:13 2010 From: john at winhaven.net (John Bartow) Date: Wed, 20 Oct 2010 11:16:13 -0500 Subject: [AccessD] Decompile / compile In-Reply-To: <4CBEF81A.1080607@colbyconsulting.com> References: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> I've always decompiled, compacted, complied. I am just a cynic about things I can't see for sure ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, October 20, 2010 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Decompile / compile I use a shortcut to Access with the /Decompile switch such that when I use that shortcut Access opens with the decompile stuff. I then open the container I want to decompile and the decompile happens. I have always then closed Access and opened it again through another shortcut so that the decompile is not being used. My question is, can I do the decompile, and then just compile without closing and reopening Access. I assume that I can but I have never been sure on that. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Oct 20 12:14:33 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 20 Oct 2010 10:14:33 -0700 Subject: [AccessD] Decompile / compile In-Reply-To: <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about things > I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I use > that shortcut Access opens with the decompile stuff. ?I then open the > container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From vbacreations at gmail.com Wed Oct 20 15:51:00 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Wed, 20 Oct 2010 16:51:00 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: One can find the Sendto folder my typing Shell:SendTo in the location bar. I just implemented the shortcuts for Compile and Decompile, and they appear to work. However, I tried to do the same thing with /Compact as suggested below -- right-click database, SendTo >> Access-Compact [shortcut] and it opened Access and shut access but did nothing to the database. I did not put the database's path in the target, I believe the point of the advice below is that you don't have to. Any reason this doesn?t work with Target = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact ?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, October 20, 2010 1:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about > things I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I > use that shortcut Access opens with the decompile stuff. ?I then open > the container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Wed Oct 20 17:43:39 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Thu, 21 Oct 2010 09:43:39 +1100 Subject: [AccessD] Wolf Frameworks P/SaaS In-Reply-To: <4CBEF81A.1080607@colbyconsulting.com> Message-ID: <201010202243.o9KMhhoF009378@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Everyone, I have been offered a free 3 month trial on this <> which I have taken up and have been playing around on. Very early days at this stage (only done a couple of hours poking around and watched a video or two), but it look rather promising for putting together a web based database quickly and easily. Has anyone else used some this or something similar and what would you share your thoughts, pros, cons, gotchas etc... So far I really like it - I guess I will have to see if the folks I an tinkering for think that $US50 a month is worth it for them when the 3 month trial is up. Will keep you posted. Cheers Darryl. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From erbachs at gmail.com Wed Oct 20 20:31:03 2010 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 20 Oct 2010 20:31:03 -0500 Subject: [AccessD] Unraid In-Reply-To: <4CBE5064.502@colbyconsulting.com> References: <4CBE5064.502@colbyconsulting.com> Message-ID: John, >> I got a good deal on three 1GB Samsung drives the other day << I'll bet! 50 cents each, eh? Steve Erbach Neenah, WI On Tue, Oct 19, 2010 at 9:13 PM, jwcolby wrote: > I got a good deal on three 1GB Samsung drives the other day, and as a result I am about to launch an > UnRaid NAS. > > http://lime-technology.com/ > > I currently use Windows Home Server but have never been happy with all aspects of what it is and > does. ?I absolutely love the way that it backs up computers, with the sector copy / compare. ?Cool > technology. ?Unfortunately my experience has seen an abysmal restore scenario. ?I have had restores > work, I have had restores fail to work. ?When they refuse to restore I have just utterly failed to > force that restore to ever work. > > I have the same experience with the backup. ?9 of 10 of my machines restore faithfully, the other > absolutely refuses to see the WHS server. > > Backups have to be 100% absolutely reliable and restores have to be 100% absolutely reliable or you > are rolling dice when you do your backups. ?WHS has never had that 100% reliability for me. > > So I am about to take down my WHS in favor of an UnRaid NAS and plain old backup software. > > We shall see how this goes but it certainly looks promising. > > -- > John W. Colby From jwcolby at colbyconsulting.com Thu Oct 21 06:23:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 21 Oct 2010 07:23:58 -0400 Subject: [AccessD] Unraid In-Reply-To: References: <4CBE5064.502@colbyconsulting.com> Message-ID: <4CC022CE.2090707@colbyconsulting.com> LOL, where is this coming from? John W. Colby www.ColbyConsulting.com On 10/20/2010 9:31 PM, Steve Erbach wrote: > John, > >>> I got a good deal on three 1GB Samsung drives the other day<< > > I'll bet! 50 cents each, eh? > > Steve Erbach > Neenah, WI > > > On Tue, Oct 19, 2010 at 9:13 PM, jwcolby wrote: >> I got a good deal on three 1GB Samsung drives the other day, and as a result I am about to launch an >> UnRaid NAS. >> >> http://lime-technology.com/ >> >> I currently use Windows Home Server but have never been happy with all aspects of what it is and >> does. I absolutely love the way that it backs up computers, with the sector copy / compare. Cool >> technology. Unfortunately my experience has seen an abysmal restore scenario. I have had restores >> work, I have had restores fail to work. When they refuse to restore I have just utterly failed to >> force that restore to ever work. >> >> I have the same experience with the backup. 9 of 10 of my machines restore faithfully, the other >> absolutely refuses to see the WHS server. >> >> Backups have to be 100% absolutely reliable and restores have to be 100% absolutely reliable or you >> are rolling dice when you do your backups. WHS has never had that 100% reliability for me. >> >> So I am about to take down my WHS in favor of an UnRaid NAS and plain old backup software. >> >> We shall see how this goes but it certainly looks promising. >> >> -- >> John W. Colby > From vbacreations at gmail.com Thu Oct 21 07:26:01 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Thu, 21 Oct 2010 08:26:01 -0400 Subject: [AccessD] SQL for Subquery being changed Message-ID: I have a query which Access allows me to code in SQL, it shows up just fine in Design View as well. Somewhere down the road Access changes the SQL. Change from regular parentheses to square brackets. Is this normal behavior? Also, sometimes the query stops running for no apparent reason. I go into edit the SQL, essentially do nothing but remove the final semicolon and all of a sudden it is running. Since a subform is based on this query it is very annoying. Original: SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID FROM (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON A.Plant_id=B.Sort_ID) LEFT JOIN (SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY IIR_Parent) AS C ON A.Parentname=C.IIR_Parent WHERE (((B.Sort_ID) Is Null)); Access Changes to: SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID FROM (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON A.Plant_id=B.Sort_ID) LEFT JOIN [SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY IIR_Parent; ] AS C ON A.Parentname=C.IIR_Parent WHERE (((B.Sort_ID) Is Null)); From jwcolby at colbyconsulting.com Thu Oct 21 07:39:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 21 Oct 2010 08:39:55 -0400 Subject: [AccessD] Unraid is (mostly) working Message-ID: <4CC0349B.3070701@colbyconsulting.com> Man Linux is *so* much fun. ;) UnRaid is a bare bones application that does exactly what it advertises. Getting the boot flash disk built and booting is a no brainer. For windows users, anything after that is not. But we persist and eventually get there. I now have a system with 4x 1 TB disks for storage and a 1.5TB disk for parity. Because the parity drive has to be as large as the largest data disk, and because I had two 1.5 TB disks and wanted to be able to use them in the UnRaid server, and because both were full of video, I had to figure out how to do things that you wouldn't normally have to do - run without parity long enough to empty one of the parity disks, then slide that (now empty) disk in as the parity disk. But in the end it worked and I now have 4x 1TB data disks and a 1.5Tb parity disk. There is data on one of the TB data disks unprotected until the parity build finishes in about 8 hours. Once the parity build finishes I will copy the data from the other 1.5 TB disk onto the UnRaid data disks and then drop that last 1.5 TB disk into the UnRaid. At that time I will have all 6 of my motherboard's SATA ports filled - Parity and 5 data drives. Beyond that I will need to find an add-in card with more SATA ports. It appears that the community uses this card: http://www.newegg.com/Product/Product.aspx?Item=N82E16816101358&Tpk=Supermicro%20AOC-SASLP-MV8 which provides an additional 8 ports and apparently just works. I do have a ton of 640 GB drives which I could drop in if I need the storage but near term I do not. Long term I will probably use this as backup storage - backup of my computers around the house / office as well as near line backup for the SQL Server. So I am close to having a usable UnRaid NAS, just waiting for the parity calcs to finish. -- John W. Colby www.ColbyConsulting.com From paul.hartland at googlemail.com Thu Oct 21 07:40:35 2010 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 21 Oct 2010 13:40:35 +0100 Subject: [AccessD] SQL for Subquery being changed In-Reply-To: References: Message-ID: William, Not seen that before, have you tried changing the select SQL that it puts in square brackets from: (SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY IIR_Parent) To (SELECT [IIR_Parent], Max([Multiply_Pct]) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY [IIR_Parent]) Just in case its have a mad moment with some of the field names. Paul On 21 October 2010 13:26, William Benson (VBACreations.com) < vbacreations at gmail.com> wrote: > I have a query which Access allows me to code in SQL, it shows up just fine > in Design View as well. Somewhere down the road Access changes the SQL. > Change from regular parentheses to square brackets. Is this normal > behavior? > > > Also, sometimes the query stops running for no apparent reason. I go into > edit the SQL, essentially do nothing but remove the final semicolon and all > of a sudden it is running. Since a subform is based on this query it is > very > annoying. > > Original: > SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID > FROM (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON > A.Plant_id=B.Sort_ID) LEFT JOIN > (SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches > GROUP BY IIR_Parent) AS C > ON A.Parentname=C.IIR_Parent > WHERE (((B.Sort_ID) Is Null)); > > Access Changes to: > SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID > FROM (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON > A.Plant_id=B.Sort_ID) LEFT JOIN > [SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches > GROUP BY IIR_Parent; ] AS C > ON A.Parentname=C.IIR_Parent > WHERE (((B.Sort_ID) Is Null)); > > -- > 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 Lambert.Heenan at chartisinsurance.com Thu Oct 21 08:06:11 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 21 Oct 2010 09:06:11 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: William, "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact does not do anything because there is no parameter there representing the actual file to compact. The syntax for the decompile switch is "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "X:\PathToSomeMdbfile\MyFile.mdb" /compact But if you create a shortcut with this as the target in the SendTo folder "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact The %1 parameter does not get substituted when you use it. For this reason I use the context menu feature of Windows (the right-click menu). In Explorer select Tools/Folder Options. Then select the File Types tab in the resulting dialog and locate the MDB file extension. Hit the 'Advanced' button and then click the 'New' button. The New Action dialog needs two entries: The name for the action (which will show up in the context menu): use Compact, and the command line for the action, which would be... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact Now when you select Compact on the context menu, the "%1" parameter is substituted, and your file will be compacted. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Wednesday, October 20, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile One can find the Sendto folder my typing Shell:SendTo in the location bar. I just implemented the shortcuts for Compile and Decompile, and they appear to work. However, I tried to do the same thing with /Compact as suggested below -- right-click database, SendTo >> Access-Compact [shortcut] and it opened Access and shut access but did nothing to the database. I did not put the database's path in the target, I believe the point of the advice below is that you don't have to. Any reason this doesn't work with Target = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact ?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, October 20, 2010 1:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about > things I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I > use that shortcut Access opens with the decompile stuff. ?I then open > the container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From vbacreations at gmail.com Thu Oct 21 08:30:30 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Thu, 21 Oct 2010 09:30:30 -0400 Subject: [AccessD] SQL for Subquery being changed In-Reply-To: References: Message-ID: "Max Moment"... love that. Can't wait to see "Mad Maccess", the movie. Well, what I did was moved it to it's own query in the database. Let's see you screw THAT up Access! I have implemented your suggestion in the stored query just in case! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, October 21, 2010 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL for Subquery being changed William, Not seen that before, have you tried changing the select SQL that it puts in square brackets from: (SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY IIR_Parent) To (SELECT [IIR_Parent], Max([Multiply_Pct]) AS Max_Fuzzy FROM tbl_Fuzzy_Matches GROUP BY [IIR_Parent]) Just in case its have a mad moment with some of the field names. Paul On 21 October 2010 13:26, William Benson (VBACreations.com) < vbacreations at gmail.com> wrote: > I have a query which Access allows me to code in SQL, it shows up just > fine in Design View as well. Somewhere down the road Access changes the SQL. > Change from regular parentheses to square brackets. Is this normal > behavior? > > > Also, sometimes the query stops running for no apparent reason. I go > into edit the SQL, essentially do nothing but remove the final > semicolon and all of a sudden it is running. Since a subform is based > on this query it is very annoying. > > Original: > SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID FROM > (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON > A.Plant_id=B.Sort_ID) LEFT JOIN > (SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM > tbl_Fuzzy_Matches GROUP BY IIR_Parent) AS C > ON A.Parentname=C.IIR_Parent > WHERE (((B.Sort_ID) Is Null)); > > Access Changes to: > SELECT C.Max_Fuzzy, A.Plant_id AS IIR_Plant_ID, B.GIB_Owner_ID FROM > (tbl_IIR AS A LEFT JOIN qry_103_Matched_Plants_For_Display_All AS B ON > A.Plant_id=B.Sort_ID) LEFT JOIN > [SELECT IIR_Parent, Max(Multiply_Pct) AS Max_Fuzzy FROM > tbl_Fuzzy_Matches GROUP BY IIR_Parent; ] AS C > ON A.Parentname=C.IIR_Parent > WHERE (((B.Sort_ID) Is Null)); > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From vbacreations at gmail.com Thu Oct 21 08:42:01 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Thu, 21 Oct 2010 09:42:01 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: >> " Hit the 'Advanced' button and then click the 'New' button. " I think this functionality is gone in Windows Vista/7. I have hunted around in the Control Panel Home, Default Programs panel, which is the (in my view poor and very poorly documented) replacement for the extra functionality that used to be present in Folder Options in XP... and cannot find the equivalent for creating a new Action. Any help appreciated. I could follow everything you said in my head, just not on my PC! BTW ... you meant to say the "The syntax for the [Compact] switch is ..." not the Decompile Switch, which apparently allows you to keep the target unspecified -- allowing the SendTo option. That seems a little inconsistent of Microsoft, since Compile/Decompile actually needs a database target as well to be functional, but seems to allow SendTo to receive the name of the database and perform the action. Bill -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, October 21, 2010 9:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile William, "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact does not do anything because there is no parameter there representing the actual file to compact. The syntax for the decompile switch is "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "X:\PathToSomeMdbfile\MyFile.mdb" /compact But if you create a shortcut with this as the target in the SendTo folder "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact The %1 parameter does not get substituted when you use it. For this reason I use the context menu feature of Windows (the right-click menu). In Explorer select Tools/Folder Options. Then select the File Types tab in the resulting dialog and locate the MDB file extension. Hit the 'Advanced' button and then click the 'New' button. The New Action dialog needs two entries: The name for the action (which will show up in the context menu): use Compact, and the command line for the action, which would be... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact Now when you select Compact on the context menu, the "%1" parameter is substituted, and your file will be compacted. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Wednesday, October 20, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile One can find the Sendto folder my typing Shell:SendTo in the location bar. I just implemented the shortcuts for Compile and Decompile, and they appear to work. However, I tried to do the same thing with /Compact as suggested below -- right-click database, SendTo >> Access-Compact [shortcut] and it opened Access and shut access but did nothing to the database. I did not put the database's path in the target, I believe the point of the advice below is that you don't have to. Any reason this doesn't work with Target = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact ?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, October 20, 2010 1:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about > things I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I > use that shortcut Access opens with the decompile stuff. ?I then open > the container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 21 08:55:57 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 21 Oct 2010 06:55:57 -0700 Subject: [AccessD] Unraid In-Reply-To: <4CC022CE.2090707@colbyconsulting.com> References: <4CBE5064.502@colbyconsulting.com> <4CC022CE.2090707@colbyconsulting.com> Message-ID: Because I think you meant to say TB instead of GB :) Sent from my Droid phone. On Oct 21, 2010 4:25 AM, "jwcolby" wrote: > LOL, where is this coming from? > > John W. Colby > www.ColbyConsulting.com > > On 10/20/2010 9:31 PM, Steve Erbach wrote: >> John, >> >>>> I got a good deal on three 1GB Samsung drives the other day<< >> >> I'll bet! 50 cents each, eh? >> >> Steve Erbach >> Neenah, WI >> >> >> On Tue, Oct 19, 2010 at 9:13 PM, jwcolby wrote: >>> I got a good deal on three 1GB Samsung drives the other day, and as a result I am about to launch an >>> UnRaid NAS. >>> >>> http://lime-technology.com/ >>> >>> I currently use Windows Home Server but have never been happy with all aspects of what it is and >>> does. I absolutely love the way that it backs up computers, with the sector copy / compare. Cool >>> technology. Unfortunately my experience has seen an abysmal restore scenario. I have had restores >>> work, I have had restores fail to work. When they refuse to restore I have just utterly failed to >>> force that restore to ever work. >>> >>> I have the same experience with the backup. 9 of 10 of my machines restore faithfully, the other >>> absolutely refuses to see the WHS server. >>> >>> Backups have to be 100% absolutely reliable and restores have to be 100% absolutely reliable or you >>> are rolling dice when you do your backups. WHS has never had that 100% reliability for me. >>> >>> So I am about to take down my WHS in favor of an UnRaid NAS and plain old backup software. >>> >>> We shall see how this goes but it certainly looks promising. >>> >>> -- >>> John W. Colby >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Oct 21 09:15:23 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 21 Oct 2010 10:15:23 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: Compact/Decompile duh! However, this works (in XP,and should in W7) Create a batch file containing this command... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" %1 /compact ... And copy it into your Send To folder. Note that there are *no quotes* around the %1, unlike what is needed for the Context menu command. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Thursday, October 21, 2010 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile >> " Hit the 'Advanced' button and then click the 'New' button. " I think this functionality is gone in Windows Vista/7. I have hunted around in the Control Panel Home, Default Programs panel, which is the (in my view poor and very poorly documented) replacement for the extra functionality that used to be present in Folder Options in XP... and cannot find the equivalent for creating a new Action. Any help appreciated. I could follow everything you said in my head, just not on my PC! BTW ... you meant to say the "The syntax for the [Compact] switch is ..." not the Decompile Switch, which apparently allows you to keep the target unspecified -- allowing the SendTo option. That seems a little inconsistent of Microsoft, since Compile/Decompile actually needs a database target as well to be functional, but seems to allow SendTo to receive the name of the database and perform the action. Bill -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, October 21, 2010 9:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile William, "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact does not do anything because there is no parameter there representing the actual file to compact. The syntax for the decompile switch is "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "X:\PathToSomeMdbfile\MyFile.mdb" /compact But if you create a shortcut with this as the target in the SendTo folder "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact The %1 parameter does not get substituted when you use it. For this reason I use the context menu feature of Windows (the right-click menu). In Explorer select Tools/Folder Options. Then select the File Types tab in the resulting dialog and locate the MDB file extension. Hit the 'Advanced' button and then click the 'New' button. The New Action dialog needs two entries: The name for the action (which will show up in the context menu): use Compact, and the command line for the action, which would be... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact Now when you select Compact on the context menu, the "%1" parameter is substituted, and your file will be compacted. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Wednesday, October 20, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile One can find the Sendto folder my typing Shell:SendTo in the location bar. I just implemented the shortcuts for Compile and Decompile, and they appear to work. However, I tried to do the same thing with /Compact as suggested below -- right-click database, SendTo >> Access-Compact [shortcut] and it opened Access and shut access but did nothing to the database. I did not put the database's path in the target, I believe the point of the advice below is that you don't have to. Any reason this doesn't work with Target = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact ?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, October 20, 2010 1:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about > things I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I > use that shortcut Access opens with the decompile stuff. ?I then open > the container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Oct 21 10:10:58 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Oct 2010 10:10:58 -0500 Subject: [AccessD] Unknown Jet Error Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> I have the following code that runs when I click a button on a form. When I step though the code I get an unknown jet error message at the DoCmd.Close line. I have no idea what to look for. Thanks for any help. Private Sub OpenPlantPressuresForm_Click() On Error GoTo Err_OpenPlantPressuresForm_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frm Plant Pressures Scatter" Stop DoCmd.OpenForm stDocName, , , stLinkCriteria DoCmd.Close acForm, stDocName DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_OpenPlantPressuresForm_Click: Exit Sub Err_OpenPlantPressuresForm_Click: MsgBox Err.Description Resume Exit_OpenPlantPressuresForm_Click End Sub When the form opens the following code runs the is attached to the on enter event of the chart on the form. Private Sub chtPlantChart_Enter() Dim GraphApp As Graph.Application Dim GraphObj As Graph.Chart Dim XMin As Single Set GraphObj = Me!chtPlantChart.Object GraphObj.Axes(1).MinimumScaleIsAuto = True XMin = GraphObj.Axes(1).MinimumScale GraphObj.Axes(1).MinimumScale = XMin + 1 Me!chtPlantChart.SetFocus GraphObj.Application.Update Me.Repaint End Sub 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 jackandpat.d at gmail.com Thu Oct 21 12:53:51 2010 From: jackandpat.d at gmail.com (jack drawbridge) Date: Thu, 21 Oct 2010 13:53:51 -0400 Subject: [AccessD] Unknown Jet Error In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> Message-ID: Chester, Where does stLinkCriteria get its value? Doesn't seem to be initialized to me. What's the purpose of the Stop command? Also why are you opening DoCmd.OpenForm stDocName, , , stLinkCriteria twice? Just my 2 cents. Jack On Thu, Oct 21, 2010 at 11:10 AM, Kaup, Chester < Chester_Kaup at kindermorgan.com> wrote: > I have the following code that runs when I click a button on a form. When I > step though the code I get an unknown jet error message at the DoCmd.Close > line. I have no idea what to look for. Thanks for any help. > > Private Sub OpenPlantPressuresForm_Click() > On Error GoTo Err_OpenPlantPressuresForm_Click > > Dim stDocName As String > Dim stLinkCriteria As String > > stDocName = "frm Plant Pressures Scatter" > Stop > DoCmd.OpenForm stDocName, , , stLinkCriteria > DoCmd.Close acForm, stDocName > DoCmd.OpenForm stDocName, , , stLinkCriteria > > Exit_OpenPlantPressuresForm_Click: > Exit Sub > > Err_OpenPlantPressuresForm_Click: > MsgBox Err.Description > Resume Exit_OpenPlantPressuresForm_Click > > End Sub > > When the form opens the following code runs the is attached to the on enter > event of the chart on the form. > > Private Sub chtPlantChart_Enter() > Dim GraphApp As Graph.Application > Dim GraphObj As Graph.Chart > Dim XMin As Single > > Set GraphObj = Me!chtPlantChart.Object > > GraphObj.Axes(1).MinimumScaleIsAuto = True > XMin = GraphObj.Axes(1).MinimumScale > GraphObj.Axes(1).MinimumScale = XMin + 1 > > Me!chtPlantChart.SetFocus > GraphObj.Application.Update > Me.Repaint > End Sub > 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 vbacreations at gmail.com Thu Oct 21 13:20:55 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Thu, 21 Oct 2010 14:20:55 -0400 Subject: [AccessD] Decompile / compile In-Reply-To: References: <4CBEF81A.1080607@colbyconsulting.com> <009d01cb7072$1e4ac3b0$5ae04b10$@winhaven.net> Message-ID: Cool, worked like a charm Lambert. I stored a shortcut instead of the actual batch command ... then copied the icon file location for MS Access from one of the other shortcuts and edited the icon for the new shortcut accordingly. I like the tips/tricks I pick up here in this Access forum. I just wish I knew how to build databases. ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, October 21, 2010 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile Compact/Decompile duh! However, this works (in XP,and should in W7) Create a batch file containing this command... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" %1 /compact ... And copy it into your Send To folder. Note that there are *no quotes* around the %1, unlike what is needed for the Context menu command. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Thursday, October 21, 2010 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile >> " Hit the 'Advanced' button and then click the 'New' button. " I think this functionality is gone in Windows Vista/7. I have hunted around in the Control Panel Home, Default Programs panel, which is the (in my view poor and very poorly documented) replacement for the extra functionality that used to be present in Folder Options in XP... and cannot find the equivalent for creating a new Action. Any help appreciated. I could follow everything you said in my head, just not on my PC! BTW ... you meant to say the "The syntax for the [Compact] switch is ..." not the Decompile Switch, which apparently allows you to keep the target unspecified -- allowing the SendTo option. That seems a little inconsistent of Microsoft, since Compile/Decompile actually needs a database target as well to be functional, but seems to allow SendTo to receive the name of the database and perform the action. Bill -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, October 21, 2010 9:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile William, "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact does not do anything because there is no parameter there representing the actual file to compact. The syntax for the decompile switch is "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "X:\PathToSomeMdbfile\MyFile.mdb" /compact But if you create a shortcut with this as the target in the SendTo folder "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact The %1 parameter does not get substituted when you use it. For this reason I use the context menu feature of Windows (the right-click menu). In Explorer select Tools/Folder Options. Then select the File Types tab in the resulting dialog and locate the MDB file extension. Hit the 'Advanced' button and then click the 'New' button. The New Action dialog needs two entries: The name for the action (which will show up in the context menu): use Compact, and the command line for the action, which would be... "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "%1" /compact Now when you select Compact on the context menu, the "%1" parameter is substituted, and your file will be compacted. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Wednesday, October 20, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Decompile / compile One can find the Sendto folder my typing Shell:SendTo in the location bar. I just implemented the shortcuts for Compile and Decompile, and they appear to work. However, I tried to do the same thing with /Compact as suggested below -- right-click database, SendTo >> Access-Compact [shortcut] and it opened Access and shut access but did nothing to the database. I did not put the database's path in the target, I believe the point of the advice below is that you don't have to. Any reason this doesn't work with Target = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /Compact ?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, October 20, 2010 1:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Decompile / compile I've always created a shortcut for decompile and placed them both in my Send to folder WinXP is C:\Documents and Settings\UserName\SendTo Vista/7 is C:\Users\user name\AppData\Roaming\Microsoft\Windows\SendTo Simply right click on your mdb choose send to then Access- Decompile. On Wed, Oct 20, 2010 at 9:16 AM, John Bartow wrote: > I've always decompiled, compacted, complied. I am just a cynic about > things I can't see for sure ;o) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, October 20, 2010 9:10 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Decompile / compile > > I use a shortcut to Access with the /Decompile switch such that when I > use that shortcut Access opens with the decompile stuff. ?I then open > the container I want to decompile and the decompile happens. > > I have always then closed Access and opened it again through another > shortcut so that the decompile is not being used. > > My question is, can I do the decompile, and then just compile without > closing and reopening Access. > ?I assume that I can but I have never been sure on that. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Oct 21 13:32:10 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Oct 2010 13:32:10 -0500 Subject: [AccessD] Unknown Jet Error In-Reply-To: References: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ED49@houex1.kindermorgan.com> Looks like stLinkCriteria needs to go away. The Stop is for testing purposes only The form is opened closed and opened again because all other attempts to refresh, repaint etc the chart fail to do it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Thursday, October 21, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Chester, Where does stLinkCriteria get its value? Doesn't seem to be initialized to me. What's the purpose of the Stop command? Also why are you opening DoCmd.OpenForm stDocName, , , stLinkCriteria twice? Just my 2 cents. Jack On Thu, Oct 21, 2010 at 11:10 AM, Kaup, Chester < Chester_Kaup at kindermorgan.com> wrote: > I have the following code that runs when I click a button on a form. When I > step though the code I get an unknown jet error message at the DoCmd.Close > line. I have no idea what to look for. Thanks for any help. > > Private Sub OpenPlantPressuresForm_Click() > On Error GoTo Err_OpenPlantPressuresForm_Click > > Dim stDocName As String > Dim stLinkCriteria As String > > stDocName = "frm Plant Pressures Scatter" > Stop > DoCmd.OpenForm stDocName, , , stLinkCriteria > DoCmd.Close acForm, stDocName > DoCmd.OpenForm stDocName, , , stLinkCriteria > > Exit_OpenPlantPressuresForm_Click: > Exit Sub > > Err_OpenPlantPressuresForm_Click: > MsgBox Err.Description > Resume Exit_OpenPlantPressuresForm_Click > > End Sub > > When the form opens the following code runs the is attached to the on enter > event of the chart on the form. > > Private Sub chtPlantChart_Enter() > Dim GraphApp As Graph.Application > Dim GraphObj As Graph.Chart > Dim XMin As Single > > Set GraphObj = Me!chtPlantChart.Object > > GraphObj.Axes(1).MinimumScaleIsAuto = True > XMin = GraphObj.Axes(1).MinimumScale > GraphObj.Axes(1).MinimumScale = XMin + 1 > > Me!chtPlantChart.SetFocus > GraphObj.Application.Update > Me.Repaint > End Sub > 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 Lambert.Heenan at chartisinsurance.com Thu Oct 21 13:37:37 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 21 Oct 2010 14:37:37 -0400 Subject: [AccessD] Unknown Jet Error In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ED49@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ED49@houex1.kindermorgan.com> Message-ID: Did you try Requery to update the chart data? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, October 21, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Looks like stLinkCriteria needs to go away. The Stop is for testing purposes only The form is opened closed and opened again because all other attempts to refresh, repaint etc the chart fail to do it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Thursday, October 21, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Chester, Where does stLinkCriteria get its value? Doesn't seem to be initialized to me. What's the purpose of the Stop command? Also why are you opening DoCmd.OpenForm stDocName, , , stLinkCriteria twice? Just my 2 cents. Jack On Thu, Oct 21, 2010 at 11:10 AM, Kaup, Chester < Chester_Kaup at kindermorgan.com> wrote: > I have the following code that runs when I click a button on a form. > When I step though the code I get an unknown jet error message at the > DoCmd.Close line. I have no idea what to look for. Thanks for any help. > > Private Sub OpenPlantPressuresForm_Click() On Error GoTo > Err_OpenPlantPressuresForm_Click > > Dim stDocName As String > Dim stLinkCriteria As String > > stDocName = "frm Plant Pressures Scatter" > Stop > DoCmd.OpenForm stDocName, , , stLinkCriteria > DoCmd.Close acForm, stDocName > DoCmd.OpenForm stDocName, , , stLinkCriteria > > Exit_OpenPlantPressuresForm_Click: > Exit Sub > > Err_OpenPlantPressuresForm_Click: > MsgBox Err.Description > Resume Exit_OpenPlantPressuresForm_Click > > End Sub > > When the form opens the following code runs the is attached to the on > enter event of the chart on the form. > > Private Sub chtPlantChart_Enter() > Dim GraphApp As Graph.Application > Dim GraphObj As Graph.Chart > Dim XMin As Single > > Set GraphObj = Me!chtPlantChart.Object > > GraphObj.Axes(1).MinimumScaleIsAuto = True > XMin = GraphObj.Axes(1).MinimumScale > GraphObj.Axes(1).MinimumScale = XMin + 1 > > Me!chtPlantChart.SetFocus > GraphObj.Application.Update > Me.Repaint > End Sub > 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 -- 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 Oct 21 13:43:29 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Oct 2010 13:43:29 -0500 Subject: [AccessD] Unknown Jet Error In-Reply-To: References: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ECA9@houex1.kindermorgan.com> <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ED49@houex1.kindermorgan.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1972A3ED56@houex1.kindermorgan.com> I don't see where there would be a value in a requery of the data. The only thing I am doing to the chart is changing the minimum value of the Y axis scale. Correct me if I am wrong in my thinking. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, October 21, 2010 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Did you try Requery to update the chart data? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, October 21, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Looks like stLinkCriteria needs to go away. The Stop is for testing purposes only The form is opened closed and opened again because all other attempts to refresh, repaint etc the chart fail to do it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Thursday, October 21, 2010 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unknown Jet Error Chester, Where does stLinkCriteria get its value? Doesn't seem to be initialized to me. What's the purpose of the Stop command? Also why are you opening DoCmd.OpenForm stDocName, , , stLinkCriteria twice? Just my 2 cents. Jack On Thu, Oct 21, 2010 at 11:10 AM, Kaup, Chester < Chester_Kaup at kindermorgan.com> wrote: > I have the following code that runs when I click a button on a form. > When I step though the code I get an unknown jet error message at the > DoCmd.Close line. I have no idea what to look for. Thanks for any help. > > Private Sub OpenPlantPressuresForm_Click() On Error GoTo > Err_OpenPlantPressuresForm_Click > > Dim stDocName As String > Dim stLinkCriteria As String > > stDocName = "frm Plant Pressures Scatter" > Stop > DoCmd.OpenForm stDocName, , , stLinkCriteria > DoCmd.Close acForm, stDocName > DoCmd.OpenForm stDocName, , , stLinkCriteria > > Exit_OpenPlantPressuresForm_Click: > Exit Sub > > Err_OpenPlantPressuresForm_Click: > MsgBox Err.Description > Resume Exit_OpenPlantPressuresForm_Click > > End Sub > > When the form opens the following code runs the is attached to the on > enter event of the chart on the form. > > Private Sub chtPlantChart_Enter() > Dim GraphApp As Graph.Application > Dim GraphObj As Graph.Chart > Dim XMin As Single > > Set GraphObj = Me!chtPlantChart.Object > > GraphObj.Axes(1).MinimumScaleIsAuto = True > XMin = GraphObj.Axes(1).MinimumScale > GraphObj.Axes(1).MinimumScale = XMin + 1 > > Me!chtPlantChart.SetFocus > GraphObj.Application.Update > Me.Repaint > End Sub > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 21 15:11:40 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 21 Oct 2010 16:11:40 -0400 Subject: [AccessD] Unraid In-Reply-To: References: <4CBE5064.502@colbyconsulting.com> <4CC022CE.2090707@colbyconsulting.com> Message-ID: <4CC09E7C.5040805@colbyconsulting.com> LOL. Oh. Naw, all of my data fits on a 5 mbyte drive. ;) Well... it *used to* fit on a 5 mb drive... in 1986. I was looking at my photo directory (11 *thousand* photos) and my software source stuff (250 *thousand* files) and came away just shaking my head. Those two sets of files are "only" about 300 GB. My video is pushing 1.2 TB. So yea, 50c is probably just about right. Actually I got Samsung 1 TB drives for $55. I could only buy 3 at that price but I went for it. I would be moving to the bigger drives - the 2 TB and 3 TB drives but their failure rate is pushing 20%. How do you sell a product where 20% of them die? I know I'm not buying! John W. Colby www.ColbyConsulting.com On 10/21/2010 9:55 AM, David McAfee wrote: > Because I think you meant to say TB instead of GB :) > > Sent from my Droid phone. > On Oct 21, 2010 4:25 AM, "jwcolby" wrote: >> LOL, where is this coming from? >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 10/20/2010 9:31 PM, Steve Erbach wrote: >>> John, >>> >>>>> I got a good deal on three 1GB Samsung drives the other day<< >>> >>> I'll bet! 50 cents each, eh? >>> >>> Steve Erbach >>> Neenah, WI >>> >>> >>> On Tue, Oct 19, 2010 at 9:13 PM, jwcolby > wrote: >>>> I got a good deal on three 1GB Samsung drives the other day, and as a > result I am about to launch an >>>> UnRaid NAS. >>>> >>>> http://lime-technology.com/ >>>> >>>> I currently use Windows Home Server but have never been happy with all > aspects of what it is and >>>> does. I absolutely love the way that it backs up computers, with the > sector copy / compare. Cool >>>> technology. Unfortunately my experience has seen an abysmal restore > scenario. I have had restores >>>> work, I have had restores fail to work. When they refuse to restore I > have just utterly failed to >>>> force that restore to ever work. >>>> >>>> I have the same experience with the backup. 9 of 10 of my machines > restore faithfully, the other >>>> absolutely refuses to see the WHS server. >>>> >>>> Backups have to be 100% absolutely reliable and restores have to be 100% > absolutely reliable or you >>>> are rolling dice when you do your backups. WHS has never had that 100% > reliability for me. >>>> >>>> So I am about to take down my WHS in favor of an UnRaid NAS and plain > old backup software. >>>> >>>> We shall see how this goes but it certainly looks promising. >>>> >>>> -- >>>> John W. Colby >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Oct 22 11:49:49 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 22 Oct 2010 11:49:49 -0500 Subject: [AccessD] Single Shortcut Decompile+Compile Message-ID: <7A56CDF16BA646729427752869798C4F@DanWaters> To set this up, follow these steps: 1) Copy this public function into a standard module: Public Function AutoCompile () '-- Purpose: When this file is opened using a shortcut that has a /cmd AC in the target field, _ this function will run through. _ This mdb file has an AutoExec macro which calls this function. If Command() <> "AC" Then Exit Function DoCmd.RunCommand acCmdCompileAndSaveAllModules If Application.IsCompiled = False Then MsgBox "Your code could not compile." _ & vbNewLine & vbNewLine _ & "This must be resolved.", vbExclamation + vbOKOnly, "Code Not Compiled" Stop Else Application.Quit End If End Function Note: If you put this into its own standard module, then you can more easily distribute it into the access files you need to put it in. 2) Create a shortcut to the access file you want to Decompile+Compile. 3) Insert the full path to the Access executable into the beginning of the target field in the short cut properties. You'll need to surround that path with double quotes. 4) At the end of the target field enter the switches and argument '/decompile /cmd AC' without the single quotes. 5) In your .mdb, create an AutoExec macro. Enter the RunCode action, and enter AutoCompile() as the function name. If you already have an AutoExec macro, enter this as the first line. How this works: When you click on the shortcut, the file will first be decompiled. Then the AutoExec macro will run. The first line of the AutoExec macro will call the AutoCompile function. Because you set the value of cmd = "AC", the AutoCompile function will complete. The AutoCompile function will first CompileAndSaveAllModules. Then it will check to see if everything IsCompiled. If not, then you get a message and the code is stopped. If everything IsCompiled, then the .mdb file quits. If you click on a shortcut that does not include /cmd AC, then code execution steps out of the AutoCompile function, letting your file take the steps that it would otherwise normally do. Note: I tried adding a /compact to the target field, but then the file just compacted - it ignored /decompile and the AutoExec macro. HTH! Dan From jwcolby at colbyconsulting.com Fri Oct 22 15:36:27 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 22 Oct 2010 16:36:27 -0400 Subject: [AccessD] New system building an order Message-ID: <4CC1F5CB.5050706@colbyconsulting.com> Today I received another 16 GB ram and put in the SQL server. I now have a single CPU / 8 cores and 32 gigs of memory. I assigned 27 Gigs to SQL Server and left 5 to the system. I decided to test the new server building a moderately complex order. This order pulls about 5 million OrderData records from a series of views. _DataAllAdults.tblAllAdultsNameAddr table has a clustered index on the PKID and an NameAddress cover index which covers all of the name / address fields as well as the gender and AddressValid flag. vAllAdults selects records from that table which have specific codes in the ValidAddr vield. vAllFemales selects records from vAllAdults where the gender is 'F'. _DataHSID holds the database from hell, the tblHSID with ~50 million records with ~600 fields. Ut has a variety of cover indexes on it which cover specific groups of fields. vHSIDOrderCriteria joins vAllFemales and the DataHSID.tblHSID on the PKHSID, and uses a where clause which selects specific values from specific fields. Under most circumstances I just edit and save vHSIDOrderCriteria to select the correct HSID fields / values to pull the desired records. I then run an external C# program which dynamically builds the tblOrderData using the field list from vHSIDOrderCriteria (which obviously changes from order to order) and then populates that temp table with the data pulled using vHSIDOrderCriteria. In this case, ~5 million records were selected and stored in tblOrderData. This is the first time ever that I have had more than 2 cores and about 12 gigs of memory to use to run the order. I do not have any timing information for past runs. However what I observed is that processing the order caused all 6 cores assigned to SQL Server to almost max out for the first part of the order process. It wasn't flat line at the top but it was in the 90+ % utilized for all 6 cores, for part of the time - perhaps 40% of the duration. The rest of the time it maxed out a single core. and partly used another. And it used 29+ gigs of memory during use. This order process is the first step in processing an order and takes awhile to complete. I now have _DataAllAdults and _DataHSID on SSD. This is the first time I have ever seen all six cores close to max. No promises, but just out of curiosity I am going to try and "recreate" the old system, with a copy of _DataAllAdults and _DataHSID on rotating media, assign 12 gigs of memory as in the "olden days" and then do a simple stopwatch timing of the two. It really won't be even close to the old system because the old CPU was a quad core at 3 GHZ and this one is 8 cores at 2 GHZ. In the old system I assigned 2 cores to SQL Server, and it would often max out both cores. This one I am assigning 6 cores and it runs about 9% of all six cores at times. None the less it should give a feeling for the relative speed with all the changes. Because of the way I layer the views it should be fairly easy to build a copy database and then modify two specific views to point to the copy of data on rotating media. After that it is really just a matter of running it twice, once for each order database copy. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Oct 23 10:35:44 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 23 Oct 2010 11:35:44 -0400 Subject: [AccessD] Backing up Windows 2008 Message-ID: <4CC300D0.8060700@colbyconsulting.com> I need to do a system disk backup for Windows. I am probably going with Acronis home for all of my non-server machines, however they want something like $500 / machine for server licenses. While I am sure it is worth it, I just don't have that kind of cash just to get a backup. I have never used the Windows built-in backup but it seems that it does exist. Has anyone here used it? Restored from it? Easy / hard? Potential issues? -- John W. Colby www.ColbyConsulting.com From jimdettman at verizon.net Sat Oct 23 11:23:57 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 23 Oct 2010 12:23:57 -0400 Subject: [AccessD] Backing up Windows 2008 In-Reply-To: <4CC300D0.8060700@colbyconsulting.com> References: <4CC300D0.8060700@colbyconsulting.com> Message-ID: <2736EBEF54B44E8E86637DFEF4779407@XPS> John, You know you really should start a Blog with this stuff and then just point to it from here. It would be good exposure for you and you'd get more of it by posting it on-line. Don't know who remembers this or not, but "Chaos Manor" was a regular feature in Byte magazine; it was the main reason for my subscription. Jerry Pournelle used to write about the same type of stuff each month. Was always a good read and a enjoyable one. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, October 23, 2010 11:36 AM To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba Subject: [AccessD] Backing up Windows 2008 I need to do a system disk backup for Windows. I am probably going with Acronis home for all of my non-server machines, however they want something like $500 / machine for server licenses. While I am sure it is worth it, I just don't have that kind of cash just to get a backup. I have never used the Windows built-in backup but it seems that it does exist. Has anyone here used it? Restored from it? Easy / hard? Potential issues? -- 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 Oct 23 12:12:16 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 23 Oct 2010 13:12:16 -0400 Subject: [AccessD] Backing up Windows 2008 In-Reply-To: <2736EBEF54B44E8E86637DFEF4779407@XPS> References: <4CC300D0.8060700@colbyconsulting.com> <2736EBEF54B44E8E86637DFEF4779407@XPS> Message-ID: <4CC31770.9030900@colbyconsulting.com> LOL. Yea, I guess so. John W. Colby www.ColbyConsulting.com On 10/23/2010 12:23 PM, Jim Dettman wrote: > John, > > You know you really should start a Blog with this stuff and then just > point to it from here. > > It would be good exposure for you and you'd get more of it by posting it > on-line. > > Don't know who remembers this or not, but "Chaos Manor" was a regular > feature in Byte magazine; it was the main reason for my subscription. > > Jerry Pournelle used to write about the same type of stuff each month. > Was always a good read and a enjoyable one. > > Jim. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, October 23, 2010 11:36 AM > To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba > Subject: [AccessD] Backing up Windows 2008 > > I need to do a system disk backup for Windows. I am probably going with > Acronis home for all of my > non-server machines, however they want something like $500 / machine for > server licenses. While I > am sure it is worth it, I just don't have that kind of cash just to get a > backup. > > I have never used the Windows built-in backup but it seems that it does > exist. Has anyone here used > it? Restored from it? Easy / hard? Potential issues? > From jwcolby at colbyconsulting.com Tue Oct 26 00:15:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 26 Oct 2010 01:15:35 -0400 Subject: [AccessD] Is there anybody out there... Message-ID: <4CC663F7.3000905@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com From charlotte.foust at gmail.com Tue Oct 26 00:33:17 2010 From: charlotte.foust at gmail.com (Charlotte) Date: Mon, 25 Oct 2010 22:33:17 -0700 Subject: [AccessD] Is there anybody out there... Message-ID: Nope! Sent from my Samsung Captivate(tm) on AT&T jwcolby wrote: > >-- >John W. Colby >www.ColbyConsulting.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Tue Oct 26 01:15:59 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 26 Oct 2010 17:15:59 +1100 Subject: [AccessD] Is there anybody out there... In-Reply-To: <4CC663F7.3000905@colbyconsulting.com> Message-ID: <201010260616.o9Q6FxRS013356@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ heh... I thought you Americans were all on Holiday/Long Weekend or something. All quiet here.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, 26 October 2010 4:16 PM To: Access Developers discussion and problem solving Subject: [AccessD] Is there anybody out there... -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From shamil at smsconsulting.spb.ru Tue Oct 26 01:27:08 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 26 Oct 2010 10:27:08 +0400 Subject: [AccessD] Is there anybody out there... In-Reply-To: <4CC663F7.3000905@colbyconsulting.com> References: <4CC663F7.3000905@colbyconsulting.com> Message-ID: <9A0576BD27384EDA9064FBC2D574C21F@nant> Hi John -- Yes, I'm here - 10:26 a.m. (GMT+3). Are you an "early bird" there, or you're not yet sleeping? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 26 ??????? 2010 ?. 9:16 To: Access Developers discussion and problem solving Subject: [AccessD] Is there anybody out there... -- 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 Tue Oct 26 07:19:05 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 26 Oct 2010 05:19:05 -0700 Subject: [AccessD] Are you ready for IPv6 addressing In-Reply-To: References: Message-ID: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> As our current IP addressing using the standard octet and subnet masks are about to run out sometime next year we will have to be prepared for the new format, IPv6. http://blogs.techrepublic.com.com/10things/?p=1893&tag=nl.e101 Of course are we ready and is our software and hardware ready. It should be great business for us techs...probably just like Y2K was. ;-) Jim From ssharkins at gmail.com Tue Oct 26 10:48:16 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 26 Oct 2010 11:48:16 -0400 Subject: [AccessD] web-based development Message-ID: <9CD236CEAF4C440DBBBB80D37D1C02A4@salvationomc4p> >From a reader -- someone looking for a database web developer. If you're interested, let me know. Right now, I'm trying to convince her that the person doesn't need to be in Ottawa. Susan H. Hello. I just read your April 2008 item in Tech Republic on turning MS Access into a web-based version. Over the last 10 years I, as a novice programmer and mostly as a volunteer, have gradually evolved a bunch of MS Access applications for several users in non-profit organizations. the largest has 2,000 records, with provision for 800 fields for each client and is used by 50 terminals onto a central computer. Just through .mdb files for the data and the screens/reports. Each .mdb file is about 20 meg. But the time has come to get someone to gradually take over maintenance and to probably turn it into something more technically advanced. do you happen to know of anyone in Ottawa, Ontario, Canada who could do this? From charlotte.foust at gmail.com Tue Oct 26 10:54:55 2010 From: charlotte.foust at gmail.com (Charlotte) Date: Tue, 26 Oct 2010 08:54:55 -0700 Subject: [AccessD] web-based development Message-ID: Hey, Susan, I'd be interested in looking at the project. Charlotte Sent from my Samsung Captivate(tm) on AT&T Susan Harkins wrote: >>From a reader -- someone looking for a database web developer. If you're interested, let me know. Right now, I'm trying to convince her that the person doesn't need to be in Ottawa. > >Susan H. > >Hello. I just read your April 2008 item in Tech Republic on turning MS Access into a web-based version. Over the last 10 years I, as a novice programmer and mostly as a volunteer, have gradually evolved a bunch of MS Access applications for several users in non-profit organizations. the largest has 2,000 records, with provision for 800 fields for each client and is used by 50 terminals onto a central computer. Just through .mdb files for the data and the screens/reports. Each .mdb file is about 20 meg. > >But the time has come to get someone to gradually take over maintenance and to probably turn it into something more technically advanced. > >do you happen to know of anyone in Ottawa, Ontario, Canada who could do this? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Tue Oct 26 14:33:06 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 26 Oct 2010 14:33:06 -0500 Subject: [AccessD] How to Close ActiveX Control called "Microsoft Web Browser" References: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> Message-ID: We have just started to experiment with an ActiveX Control called "Microsoft Web Browser" to initiate Internet Explorer from an Access Form. We can fire up IE with the following VBA command. Me.WebBrowser0.Navigate "www.cnn.com" This works nicely. Now we would like to have a button with a little VBA code to close this Control. How is this done? We have not been able to locate very much info about this Control. Thanks for your help. Brad From jimdettman at verizon.net Tue Oct 26 15:06:24 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 26 Oct 2010 16:06:24 -0400 Subject: [AccessD] How to Close ActiveX Control called "Microsoft Web Browser" In-Reply-To: References: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> Message-ID: <41CF19EEA5774B19BC07C94EBE552DE6@XPS> You mean you want to clear the page? I do this: Me.ocxWeb.Navigate2 "About:Blank" Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, October 26, 2010 3:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Close ActiveX Control called "Microsoft Web Browser" We have just started to experiment with an ActiveX Control called "Microsoft Web Browser" to initiate Internet Explorer from an Access Form. We can fire up IE with the following VBA command. Me.WebBrowser0.Navigate "www.cnn.com" This works nicely. Now we would like to have a button with a little VBA code to close this Control. How is this done? We have not been able to locate very much info about this Control. Thanks for your help. Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Oct 26 15:15:28 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 26 Oct 2010 16:15:28 -0400 Subject: [AccessD] How to Close ActiveX Control called "Microsoft Web Browser" In-Reply-To: References: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> Message-ID: BTW, all the docs are here: http://msdn.microsoft.com/en-us/library/aa752043(v=VS.85).aspx Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, October 26, 2010 3:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Close ActiveX Control called "Microsoft Web Browser" We have just started to experiment with an ActiveX Control called "Microsoft Web Browser" to initiate Internet Explorer from an Access Form. We can fire up IE with the following VBA command. Me.WebBrowser0.Navigate "www.cnn.com" This works nicely. Now we would like to have a button with a little VBA code to close this Control. How is this done? We have not been able to locate very much info about this Control. Thanks for your help. Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at roadrunner.com Tue Oct 26 23:49:31 2010 From: ebarro at roadrunner.com (Eric Barro) Date: Tue, 26 Oct 2010 21:49:31 -0700 Subject: [AccessD] Epicor In-Reply-To: References: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> Message-ID: <017901cb7592$58cf80a0$0a6e81e0$@com> Anyone on this list have any experience working with EPICOR or Progress 4GL? I know this is not related to Access so if you want to reply email me privately please. From dkalsow at yahoo.com Wed Oct 27 08:06:04 2010 From: dkalsow at yahoo.com (Dale Kalsow) Date: Wed, 27 Oct 2010 06:06:04 -0700 (PDT) Subject: [AccessD] Epicor In-Reply-To: <017901cb7592$58cf80a0$0a6e81e0$@com> References: <8B26E27C8340445E84915F34FDFB1722@creativesystemdesigns.com> <017901cb7592$58cf80a0$0a6e81e0$@com> Message-ID: <835561.35886.qm@web50406.mail.re2.yahoo.com> Yes, I have some.? What do you want to know? Dale ________________________________ From: Eric Barro To: Access Developers discussion and problem solving Sent: Tue, October 26, 2010 11:49:31 PM Subject: [AccessD] Epicor Anyone on this list have any experience working with EPICOR or Progress 4GL? I know this is not related to Access so if you want to reply email me privately please. -- 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 Oct 27 14:46:07 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 27 Oct 2010 15:46:07 -0400 Subject: [AccessD] Access Sub Queries Message-ID: x-posted to Access-L and AccessD Why is it that queries with sub-queries can be so very, very slow in Access? Here's a query SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. Lambert From df.waters at comcast.net Wed Oct 27 14:53:00 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 27 Oct 2010 14:53:00 -0500 Subject: [AccessD] Access Sub Queries In-Reply-To: References: Message-ID: <73095EF50FFF45AF9DC14E2E9A7358D6@DanWaters> Hi Lambert, I try to break down a complex query like this into more than one query, with each subsequent query using the previous query(s) as a data source. They are easier to test, and I think they might run faster as well. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, October 27, 2010 2:46 PM To: ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM); Access-D Email(accessd at databaseadvisors.com) Subject: [AccessD] Access Sub Queries x-posted to Access-L and AccessD Why is it that queries with sub-queries can be so very, very slow in Access? Here's a query SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. Lambert -- 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 Oct 27 15:09:32 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 27 Oct 2010 16:09:32 -0400 Subject: [AccessD] Access Sub Queries In-Reply-To: <73095EF50FFF45AF9DC14E2E9A7358D6@DanWaters> References: <73095EF50FFF45AF9DC14E2E9A7358D6@DanWaters> Message-ID: That's my normal approach too, but I cant do that here because the goal is to get the top 2 records for each policy in the sample table. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, October 27, 2010 3:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Sub Queries Hi Lambert, I try to break down a complex query like this into more than one query, with each subsequent query using the previous query(s) as a data source. They are easier to test, and I think they might run faster as well. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, October 27, 2010 2:46 PM To: ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM); Access-D Email(accessd at databaseadvisors.com) Subject: [AccessD] Access Sub Queries x-posted to Access-L and AccessD Why is it that queries with sub-queries can be so very, very slow in Access? Here's a query SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. 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 gustav at cactus.dk Wed Oct 27 15:32:44 2010 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Oct 2010 22:32:44 +0200 Subject: [AccessD] Access Sub Queries Message-ID: Hi Lambert Because you are doing it about as complicated as it can be - using the union query not twice but three times, the last in the subquery for each row. And a union query carries no index. Break it down. You may write the output from the union query to a temp table and perhaps as well the output from the union query combined with the subquery. /gustav >>> Lambert.Heenan at chartisinsurance.com 27-10-2010 21:46 >>> x-posted to Access-L and AccessD Why is it that queries with sub-queries can be so very, very slow in Access? Here's a query SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. Lambert From Lambert.Heenan at chartisinsurance.com Wed Oct 27 15:36:26 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 27 Oct 2010 16:36:26 -0400 Subject: [AccessD] Access Sub Queries In-Reply-To: References: Message-ID: That sounds like a good idea which I will pursue. I did not know that the union would blow away my index. Thanks, Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, October 27, 2010 4:33 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access Sub Queries Hi Lambert Because you are doing it about as complicated as it can be - using the union query not twice but three times, the last in the subquery for each row. And a union query carries no index. Break it down. You may write the output from the union query to a temp table and perhaps as well the output from the union query combined with the subquery. /gustav >>> Lambert.Heenan at chartisinsurance.com 27-10-2010 21:46 >>> x-posted to Access-L and AccessD Why is it that queries with sub-queries can be so very, very slow in Access? Here's a query SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Wed Oct 27 15:52:05 2010 From: marksimms at verizon.net (Mark Simms) Date: Wed, 27 Oct 2010 16:52:05 -0400 Subject: [AccessD] Access Sub Queries In-Reply-To: References: Message-ID: <01c401cb7618$d0d36a40$0401a8c0@MSIMMSWS> > > Why is it that queries with sub-queries can be so very, very > slow in Access? I think he's got a point. I've observed the same..... Doing a query of a cataloged query seems to be always much faster. I'll bet it has to do with Jet's query plan optimizer. From charlotte.foust at gmail.com Wed Oct 27 16:11:57 2010 From: charlotte.foust at gmail.com (Charlotte) Date: Wed, 27 Oct 2010 14:11:57 -0700 Subject: [AccessD] Access Sub Queries Message-ID: <3jvflys487cxym6vaaw7moj3.1288213917125@email.android.com> They truncate memo fields too Charlotte Sent from my Samsung Captivate(tm) on AT&T "Heenan, Lambert" wrote: >That sounds like a good idea which I will pursue. I did not know that the union would blow away my index. > >Thanks, > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, October 27, 2010 4:33 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Access Sub Queries > >Hi Lambert > >Because you are doing it about as complicated as it can be - using the union query not twice but three times, the last in the subquery for each row. And a union query carries no index. >Break it down. You may write the output from the union query to a temp table and perhaps as well the output from the union query combined with the subquery. > >/gustav > > >>>> Lambert.Heenan at chartisinsurance.com 27-10-2010 21:46 >>> >x-posted to Access-L and AccessD > >Why is it that queries with sub-queries can be so very, very slow in Access? > >Here's a query > >SELECT Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated FROM DataFile_Sample_tbl INNER JOIN Data_Stream_qry ON DataFile_Sample_tbl.[Policy ID] = Data_Stream_qry.PK_ID WHERE (((Data_Stream_qry.dDateCreated) In (select top 2 dDateCreated from Data_Stream_qry order by dDateCreated))) ORDER BY Data_Stream_qry.PK_ID, Data_Stream_qry.dDateCreated; > >The intention of it is to list the top two date values in the table Data_Stream_qry for each policy listed in the table DataFile_Sample_tbl. The sample table contains 500 rows, the Date_Stream_qry is a union query which returns 13,000 unique rows from a total of 1.5million and the date field has an index on it in both source tables involved in the union query. > >This query has been running for well over an hour now, and only two segments of the progress meter have shown up. Yet if I write a little code to simply execute the TOP 2 sub query on its own, once for each policy in DataFile_Sample_tbl, and save the results to a third table, then those 500 query instances only take about 20 minutes to run. > >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 BradM at blackforestltd.com Wed Oct 27 21:59:37 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 27 Oct 2010 21:59:37 -0500 Subject: [AccessD] How to Skip the Printing of a Subtotal if the Amount is Zero References: <3jvflys487cxym6vaaw7moj3.1288213917125@email.android.com> Message-ID: Access 2007 Report I would like to find an easy way to bypass the displaying of subtotals if they are zero. The report detail lines still need to be shown. In some cases, there are "offsetting" detail lines and a sub-total of zero is not wanted. Thanks, Brad From Gustav at cactus.dk Thu Oct 28 00:40:48 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 28 Oct 2010 07:40:48 +0200 Subject: [AccessD] How to Skip the Printing of a Subtotal if the Amount is Zero Message-ID: Hi Brad You should be able to specify the Format property for the textbox displaying the value. The format strings may add up to four sections covering all possible values: FormatForPositives,FormatForNegatives,FormatForZero,FormatForNull Thus, for a blank zero: 0,-0,Null or, say: #.00,-#.00,"","-" /gustav >>> BradM at blackforestltd.com 28-10-2010 04:59 >>> Access 2007 Report I would like to find an easy way to bypass the displaying of subtotals if they are zero. The report detail lines still need to be shown. In some cases, there are "offsetting" detail lines and a sub-total of zero is not wanted. Thanks, Brad From jwcolby at colbyconsulting.com Thu Oct 28 14:58:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 28 Oct 2010 15:58:13 -0400 Subject: [AccessD] How to do Like and is null in where clause Message-ID: <4CC9D5D5.5050204@colbyconsulting.com> I have a query where I need to select sets of data. I am looking at existing data in a field, status codes, which I display in a combo so that the user can select sets of records based on those codes. I basically pass the combo box value into the where clause (through a fltr() method) and back come the filtered results. In order to handle the "*" (all) I use a like Fltr(). The problem is that if the value in the status is an empty string, the combo returns a null. Null and Like are mutually exclusive. I finally got around this by testing the combo in the after update of the combo and if the combo value is null, passing a "" to fltr() and thus into the where of the query. I'm just wondering if anyone has found another way to do this. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Oct 28 15:09:10 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 28 Oct 2010 15:09:10 -0500 Subject: [AccessD] How to suppress specific report lines while using acViewReport References: <4CC9D5D5.5050204@colbyconsulting.com> Message-ID: We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. Thanks, Brad From rockysmolin at bchacc.com Thu Oct 28 15:30:44 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 28 Oct 2010 13:30:44 -0700 Subject: [AccessD] How to suppress specific report lines while usingacViewReport In-Reply-To: References: <4CC9D5D5.5050204@colbyconsulting.com> Message-ID: <73D68194F0554C87A0C9C4F3DF829B9C@HAL9005> Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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 Thu Oct 28 15:46:37 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 28 Oct 2010 15:46:37 -0500 Subject: [AccessD] How to suppress specific report lines while using acViewReport References: <4CC9D5D5.5050204@colbyconsulting.com> <73D68194F0554C87A0C9C4F3DF829B9C@HAL9005> Message-ID: Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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 rockysmolin at bchacc.com Thu Oct 28 15:54:54 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 28 Oct 2010 13:54:54 -0700 Subject: [AccessD] How to suppress specific report lines while usingacViewReport In-Reply-To: References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005> Message-ID: <92230724365642B4B419F3B88CD33BAA@HAL9005> Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Oct 28 16:02:32 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 28 Oct 2010 14:02:32 -0700 Subject: [AccessD] How to suppress specific report lines while usingacViewReport In-Reply-To: <92230724365642B4B419F3B88CD33BAA@HAL9005> References: <4CC9D5D5.5050204@colbyconsulting.com> <73D68194F0554C87A0C9C4F3DF829B9C@HAL9005> <92230724365642B4B419F3B88CD33BAA@HAL9005> Message-ID: Yeah, the format event doesn't fire for me in A2007 either. This messed me up on users that were upgraded. According to Allen Browne: http://thedailyreviewer.com/office/view/access-2007---on-format-eventdoesnt-fire-seemingly-108219700 "A2007 does not fire these events in the new Report view. The should fire in Preview or Normal views." On Thu, Oct 28, 2010 at 1:54 PM, Rocky Smolin wrote: > Oh. ?2007. ?All bets are off. Actually not familiar with acViewReport > parameter - must be new for 2007? ?What's it mean? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Thursday, October 28, 2010 1:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to suppress specific report lines while > usingacViewReport > > Rocky, > > Thanks for the help, I appreciate it. > > It appears that for some reason the Format event is not getting initiated > when I use "acViewReport". > > For a quick test, I simply put a MSGBOX in the Format event and opened the > report. ?I did not receive any message. > > I am using 2007, in case that makes a difference. > > Thanks again, > Brad > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, October 28, 2010 3:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to suppress specific report lines > whileusingacViewReport > > Brad: > > I use the Format event of the Detail section all the time to do this. > Preview or Print ?shouldn't matter. > > I use: > > If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then > ? ?Me.MoveLayout = False > ? ?Me.NextRecord = True > ? ?Me.PrintSection = False > End If > > Sub in your own conditions on the If. This was cribbed directly from the > Detail_Format event module. ?But it works in the Format event of any > section. > > HTH > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Thursday, October 28, 2010 1:09 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] How to suppress specific report lines while > usingacViewReport > > We are using this command to open a Report DoCmd.OpenReport "Report100", > acViewReport, "", "", acNormal > > I would like to suppress some detail lines and subtotals based on the value > of another field. > > The "On Format" event apparently does not get initiated with acViewReport > > The "On Paint" event does get initiated and can detect the conditions when > we would like to suppress a line by looking at the value of a field. > > The catch is that when I try to use > > Me.ABC.Visible = False > > I receive the following > Error 32521 - You can't change the value of this property in the OnPaint > event > > There is probably an easy way to do this. ?I must be missing something. > > 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. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Oct 28 16:15:29 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 28 Oct 2010 16:15:29 -0500 Subject: [AccessD] How to suppress specific report lines whileusingacViewReport References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005> <92230724365642B4B419F3B88CD33BAA@HAL9005> Message-ID: Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 28 17:03:59 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 28 Oct 2010 15:03:59 -0700 Subject: [AccessD] How to suppress specific report lineswhileusingacViewReport In-Reply-To: References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005><92230724365642B4B419F3B88CD33BAA@HAL9005> Message-ID: <48B1328FE72F44528966344096CFACA7@HAL9005> So if you left that out: DoCmd.OpenReport "Report100",,,, acViewPreview Just like we do in A2003, would the Format event fire? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lineswhileusingacViewReport Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Oct 28 17:08:10 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 28 Oct 2010 17:08:10 -0500 Subject: [AccessD] How to suppress specific reportlineswhileusingacViewReport References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005><92230724365642B4B419F3B88CD33BAA@HAL9005> <48B1328FE72F44528966344096CFACA7@HAL9005> Message-ID: Rocky, Yes, the Format Event fires if we don't use Report View. The catch is that we are using features of Report View that we don't want to give up. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 5:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific reportlineswhileusingacViewReport So if you left that out: DoCmd.OpenReport "Report100",,,, acViewPreview Just like we do in A2003, would the Format event fire? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lineswhileusingacViewReport Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 ab-mi at post3.tele.dk Thu Oct 28 17:48:44 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 29 Oct 2010 00:48:44 +0200 Subject: [AccessD] How to do Like and is null in where clause In-Reply-To: <4CC9D5D5.5050204@colbyconsulting.com> References: <4CC9D5D5.5050204@colbyconsulting.com> Message-ID: <22CEB72F6A8040D4AF77266A8453A7AD@abpc> Hi John, Yes it's annoying that a combo in Access doesn?t distinguish an empty string from a Null. Another way would be to base the combo on a query using an IIF([status codes]="";"N/A";[status codes]) - and then pass "" to the method, if the combo's value is N/A. This will have the same effect as your solution but it will also distinguish an empty string from a Null which might be wanted in some cases. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby Sendt: 28. oktober 2010 21:58 Til: Access Developers discussion and problem solving Emne: [AccessD] How to do Like and is null in where clause I have a query where I need to select sets of data. I am looking at existing data in a field, status codes, which I display in a combo so that the user can select sets of records based on those codes. I basically pass the combo box value into the where clause (through a fltr() method) and back come the filtered results. In order to handle the "*" (all) I use a like Fltr(). The problem is that if the value in the status is an empty string, the combo returns a null. Null and Like are mutually exclusive. I finally got around this by testing the combo in the after update of the combo and if the combo value is null, passing a "" to fltr() and thus into the where of the query. I'm just wondering if anyone has found another way to do this. -- 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 jwelz at hotmail.com Thu Oct 28 17:56:26 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 28 Oct 2010 16:56:26 -0600 Subject: [AccessD] How to do Like and is null in where clause In-Reply-To: <4CC9D5D5.5050204@colbyconsulting.com> References: <4CC9D5D5.5050204@colbyconsulting.com> Message-ID: I'm not sure exactly what you mean but it sounds like you have a combo event procedure call a sub procedure that updates the where clause of an SQL string. If that is the case, my approach is that I have an existing WHERE clause to the effect that the Primary Key field is not null or the record Deleted Flag = False. If there is a value in the combo, I append a string to the existing Where clause along the lines: strCondition = " And OfficeID = " & me.cboOfficeID else strCondition = "" xWhen working with a QueryDef and updating the SQL property, I parse the string and insert the additional condition prior to the ORDER BY clause. When dynamically setting something like a JIT subform record source, I generate the entire SQL string on the fly. Using this approach, the absence of a restriction on the record set returns All. Here is an example used when my standard WHERE clause is a necessary condtion based on a file selected in a single select list box. The selection of the file will populate a 2nd list box with a number of locations, typically from 1 to about 20 separate locations. By default all rows in the 2nd list are selected but the user can select or deselect any combination of locations from the 2nd list box. On click of the cmdFilter button, the RecordSource of a particular subForm on the same parent to the sub form containing the filter lists is set. In the example, the ElseIf lngJ = lngI results in the condition appended to the WHERE clause being left as "", that being the case when the itemsSelected.count = the listCount so no additional location filter is applied. Since multiple conditions may apply, I've used IN, =, Not IN and <> depending on if All, none, 1, all but one or more or less than half of the items are selected to get the simplest WHERE clause for JET or the server. I've left the error handling, setting object to nothing stuff off of the sample below to keep it short. If no items in the location list are selected, I could disable the cmdFilter button, but it is set to display '' from a tiny lookup table on a negative primary key number so it's fast and doesn't display any 'error' fields should I set the record source to "". This leaves 0 rows in my continuous sub form in this example. Private Sub cmdFilter_Click() Dim lst As ListBox Dim strSql As String Dim strWhere As String Dim lngI As Long Dim lngJ As Long Dim lngC As Long Set lst = Me.lstLocations lngI = lst.ItemsSelected.Count lngJ = lst.ListCount If lngI > 0 Then 'we have at least one item to process If lngI = 1 Then 'restrict to one location '= item For lngC = 0 To lngJ - 1 If lst.Selected(lngC) = True Then strWhere = " = '" & lst.Column(0, lngC) & "'" Exit For End If Next ElseIf lngJ = lngI Then 'All locations are selected, don't apply a location filter ElseIf lngJ - lngI = 1 Then 'only one is not selected, use '<> item For lngC = 0 To lngJ - 1 If lst.Selected(lngC) = False Then strWhere = " <> '" & lst.Column(0, lngC) & "'" Exit For End If Next Else 'more than 1 selected but not all If lngI * 2 > lngJ Then 'more than 1/2 of the locations are selected - 'not in( ) list For lngC = 0 To lngJ - 1 If lst.Selected(lngC) = False Then strWhere = strWhere & ", '" & lst.Column(0, lngC) & "'" End If Next strWhere = " Not In(" & Mid$(strWhere, 3) & ")" Else 'fewer than 1/2 of the possible locations are selected - 'in( ) list For lngC = 0 To lngJ - 1 If lst.Selected(lngC) = True Then strWhere = strWhere & ", '" & lst.Column(0, lngC) & "'" End If Next strWhere = " In(" & Mid$(strWhere, 3) & ")" End If End If If Len(strWhere) Then strWhere = " And Location" & strWhere End If 'base WHERE clause strWhere = " Where SageFileID =" & Me.lstFileID & strWhere strSql = "SELECT tblCosts.GTMCostCode AS Code, tblCosts.GTMDescrip AS Description, Sum(" & _ "tblCosts.Quantity) AS Quantity, tblCosts.GTMUnit AS Unit, Sum(tblCosts.MaterialCost) " & _ "AS Material, Sum(tblCosts.LabourHours) AS Hours, Sum(tblCosts.LabourCost) AS Labour, " & _ "Sum(tblCosts.EquipCost) AS Equipment, Sum(tblCosts.SubContrCost) AS SubContr FROM tblCosts" strSql = strSql & strWhere & " GROUP BY tblCosts.GTMCostCode, tblCosts.GTMDescrip, tblCosts.GTMUnit" Else 'Bound form recordset with no records and quick return from server on tiny 4 record lookup table strSql = "SELECT '' AS Code, '' AS Description, '' AS Quantity, '' AS Unit, '' " & _ "AS Material, '' AS Hours, '' AS Labour, '' AS Equipment, '' AS SubContr FROM tblBidType " & _ "Where BidTypeID = -1" 'nothing selected, don't pass in a field or criteria End If Forms.frmEstimate.sfrmJobCost.Form.RecordSource = strSql End Sub Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Thu, 28 Oct 2010 15:58:13 -0400 > From: jwcolby at colbyconsulting.com > > I have a query where I need to select sets of data. I am looking at existing data in a field, > status codes, which I display in a combo so that the user can select sets of records based on those > codes. I basically pass the combo box value into the where clause (through a fltr() method) and > back come the filtered results. In order to handle the "*" (all) I use a like Fltr(). > > The problem is that if the value in the status is an empty string, the combo returns a null. Null > and Like are mutually exclusive. > > I finally got around this by testing the combo in the after update of the combo and if the combo > value is null, passing a "" to fltr() and thus into the where of the query. > > I'm just wondering if anyone has found another way to do this. > > -- > John W. Colby > www.ColbyConsulting.com From rockysmolin at bchacc.com Thu Oct 28 19:32:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 28 Oct 2010 17:32:14 -0700 Subject: [AccessD] How to suppress specificreportlineswhileusingacViewReport In-Reply-To: References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005><92230724365642B4B419F3B88CD33BAA@HAL9005><48B1328FE72F44528966344096CFACA7@HAL9005> Message-ID: <2040146125A34E4C8D8DDA623CC5A00D@HAL9005> Now why do you suppose they had to make the Format events not to fire when using Report View? If course if you were trying to suppress certain detail lines, doesn't the filtering features of Report View allow that? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 3:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specificreportlineswhileusingacViewReport Rocky, Yes, the Format Event fires if we don't use Report View. The catch is that we are using features of Report View that we don't want to give up. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 5:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific reportlineswhileusingacViewReport So if you left that out: DoCmd.OpenReport "Report100",,,, acViewPreview Just like we do in A2003, would the Format event fire? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lineswhileusingacViewReport Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 BradM at blackforestltd.com Thu Oct 28 21:22:19 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 28 Oct 2010 21:22:19 -0500 Subject: [AccessD] How to suppressspecificreportlineswhileusingacViewReport References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005><92230724365642B4B419F3B88CD33BAA@HAL9005><48B1328FE72F44528966344096CFACA7@HAL9005> <2040146125A34E4C8D8DDA623CC5A00D@HAL9005> Message-ID: Rocky, You are right, filtering can be done in other ways to suppress detail lines. In some cases, however, we would like to suppress subtotal lines also. This looks like it is going to be a bit more complicated. Thanks for your help. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin Sent: Thu 10/28/2010 7:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppressspecificreportlineswhileusingacViewReport Now why do you suppose they had to make the Format events not to fire when using Report View? If course if you were trying to suppress certain detail lines, doesn't the filtering features of Report View allow that? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 3:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specificreportlineswhileusingacViewReport Rocky, Yes, the Format Event fires if we don't use Report View. The catch is that we are using features of Report View that we don't want to give up. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 5:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific reportlineswhileusingacViewReport So if you left that out: DoCmd.OpenReport "Report100",,,, acViewPreview Just like we do in A2003, would the Format event fire? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lineswhileusingacViewReport Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From charlotte.foust at gmail.com Fri Oct 29 00:48:38 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 28 Oct 2010 22:48:38 -0700 Subject: [AccessD] Access 2010 Message-ID: I installed 2010 on my laptop tonight and I have to say, I'm impressed by the changes from 2007. They got rid of that horrid Office button and put things back into menus/ribbons and the ribbons seem cleaner to me ... or maybe I just have gotten accustomed to the darned things. I launched the Northwind template and created a Northwind database, which worked very smoothly and gave me some interesting insight into how the app has evolved. I may play with 2010, since I'm currently "resting" between careers still, but it looks much better and richer than 2007. Still no .Net option, but you can't have everything and .Net programming techniques improved my VBA code amazingly. Anybody else working in it? Charlotte Foust From adtp at airtelmail.in Fri Oct 29 04:18:18 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 29 Oct 2010 14:48:18 +0530 Subject: [AccessD] How tosuppressspecificreportlineswhileusingacViewReport References: <4CC9D5D5.5050204@colbyconsulting.com><73D68194F0554C87A0C9C4F3DF829B9C@HAL9005><92230724365642B4B419F3B88CD33BAA@HAL9005><48B1328FE72F44528966344096CFACA7@HAL9005><2040146125A34E4C8D8DDA623CC5A00D@HAL9005> Message-ID: Brad, Apparently you wish to play with the report in report view and thereafter, before printing, carry out selective suppression of detail section, say by setting Cancel = True in its format event, as dictated by suitable conditional check. Following course of action is suggested (based upon Access 2010 on Win XP): Place suitable code in detail section's format event in report's module. Sample code: '=============================== Private Sub Detail_Format(Cancel As Integer, _ FormatCount As Integer) If <> Then Cancel = True End If End Sub '=============================== Place the following code in dbl click event of page header section in report's module: '=============================== Private Sub PageHeaderSection_DblClick(Cancel As Integer) DoCmd.RunCommand acCmdPrintPreview End Sub '=============================== After opening the report, whenever you are ready for final stage, dbl click in page header section, will take you to the preview mode, accompanied by firing of format event, delivering desired output. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Friday, October 29, 2010 07:52 Subject: Re: [AccessD] How tosuppressspecificreportlineswhileusingacViewReport Rocky, You are right, filtering can be done in other ways to suppress detail lines. In some cases, however, we would like to suppress subtotal lines also. This looks like it is going to be a bit more complicated. Thanks for your help. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin Sent: Thu 10/28/2010 7:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppressspecificreportlineswhileusingacViewReport Now why do you suppose they had to make the Format events not to fire when using Report View? If course if you were trying to suppress certain detail lines, doesn't the filtering features of Report View allow that? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 3:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specificreportlineswhileusingacViewReport Rocky, Yes, the Format Event fires if we don't use Report View. The catch is that we are using features of Report View that we don't want to give up. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 5:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific reportlineswhileusingacViewReport So if you left that out: DoCmd.OpenReport "Report100",,,, acViewPreview Just like we do in A2003, would the Format event fire? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lineswhileusingacViewReport Rocky, Here is more info about Report View... Access 2007 includes a new view for reports called Report view. You get a static snapshot of your data with the traditional Print Preview, but with the new Report view, you can dynamically filter the data and drill down to print only the information you need. Just right-click inside a control and select various filtering options from a contextual shortcut menu. From http://blogs.techrepublic.com.com/msoffice/?p=134?target=_blank Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Oh. 2007. All bets are off. Actually not familiar with acViewReport parameter - must be new for 2007? What's it mean? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to suppress specific report lines while usingacViewReport Rocky, Thanks for the help, I appreciate it. It appears that for some reason the Format event is not getting initiated when I use "acViewReport". For a quick test, I simply put a MSGBOX in the Format event and opened the report. I did not receive any message. I am using 2007, in case that makes a difference. Thanks again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, October 28, 2010 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to suppress specific report lines whileusingacViewReport Brad: I use the Format event of the Detail section all the time to do this. Preview or Print shouldn't matter. I use: If Nz(Me.fldMWCIInventoryQuantity) = 0 And Nz(Me.Allocation) = 0 Then Me.MoveLayout = False Me.NextRecord = True Me.PrintSection = False End If Sub in your own conditions on the If. This was cribbed directly from the Detail_Format event module. But it works in the Format event of any section. HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, October 28, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to suppress specific report lines while usingacViewReport We are using this command to open a Report DoCmd.OpenReport "Report100", acViewReport, "", "", acNormal I would like to suppress some detail lines and subtotals based on the value of another field. The "On Format" event apparently does not get initiated with acViewReport The "On Paint" event does get initiated and can detect the conditions when we would like to suppress a line by looking at the value of a field. The catch is that when I try to use Me.ABC.Visible = False I receive the following Error 32521 - You can't change the value of this property in the OnPaint event There is probably an easy way to do this. I must be missing something. Thanks, Brad From jimdettman at verizon.net Fri Oct 29 04:59:07 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 29 Oct 2010 05:59:07 -0400 Subject: [AccessD] Access 2010 In-Reply-To: References: Message-ID: Charlotte, Can't say I'm "working" with it, but I've poked around in it once or twice. Figured if I plan to continue working, it's time I moved off Access 2000 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, October 29, 2010 1:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2010 I installed 2010 on my laptop tonight and I have to say, I'm impressed by the changes from 2007. They got rid of that horrid Office button and put things back into menus/ribbons and the ribbons seem cleaner to me ... or maybe I just have gotten accustomed to the darned things. I launched the Northwind template and created a Northwind database, which worked very smoothly and gave me some interesting insight into how the app has evolved. I may play with 2010, since I'm currently "resting" between careers still, but it looks much better and richer than 2007. Still no .Net option, but you can't have everything and .Net programming techniques improved my VBA code amazingly. Anybody else working in it? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Oct 29 07:19:08 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 29 Oct 2010 08:19:08 -0400 Subject: [AccessD] Access 2010 References: Message-ID: <3890673050794B98821FEE5E9C98B672@salvationomc4p> I mostly skipped 2007 and I agree, 2010 is a better product -- just cleaner and thinner somehow. Susan H. >I installed 2010 on my laptop tonight and I have to say, I'm impressed > by the changes from 2007. They got rid of that horrid Office button > and put things back into menus/ribbons and the ribbons seem cleaner to > me ... or maybe I just have gotten accustomed to the darned things. I > launched the Northwind template and created a Northwind database, > which worked very smoothly and gave me some interesting insight into > how the app has evolved. I may play with 2010, since I'm currently > "resting" between careers still, but it looks much better and richer > than 2007. Still no .Net option, but you can't have everything and > .Net programming techniques improved my VBA code amazingly. Anybody > else working in it? From garykjos at gmail.com Fri Oct 29 08:29:40 2010 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 29 Oct 2010 08:29:40 -0500 Subject: [AccessD] Access 2010 In-Reply-To: <3890673050794B98821FEE5E9C98B672@salvationomc4p> References: <3890673050794B98821FEE5E9C98B672@salvationomc4p> Message-ID: Excel 2010 REALLY has some cool stuff. Check out POWERPIVOT here http://www.powerpivot.com/ GK On Fri, Oct 29, 2010 at 7:19 AM, Susan Harkins wrote: > I mostly skipped 2007 and I agree, 2010 is a better product -- just cleaner > and thinner somehow. > > Susan H. > > >>I installed 2010 on my laptop tonight and I have to say, I'm impressed >> by the changes from 2007. ?They got rid of that horrid Office button >> and put things back into menus/ribbons and the ribbons seem cleaner to >> me ... or maybe I just have gotten accustomed to the darned things. ?I >> launched the Northwind template and created a Northwind database, >> which worked very smoothly and gave me some interesting insight into >> how the app has evolved. ?I may play with 2010, since I'm currently >> "resting" between careers still, but it looks much better and richer >> than 2007. ?Still no .Net option, but you can't have everything and >> .Net programming techniques improved my VBA code amazingly. ?Anybody >> else working in it? > > -- > 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 jeff.developer at gmail.com Fri Oct 29 10:22:56 2010 From: jeff.developer at gmail.com (Jeff B) Date: Fri, 29 Oct 2010 10:22:56 -0500 Subject: [AccessD] Access 2010 In-Reply-To: References: <3890673050794B98821FEE5E9C98B672@salvationomc4p> Message-ID: <4ccae66c.091fe70a.43d1.699d@mx.google.com> I have been considering changing, but I am now running mostly 64 bit apps. Are there any issues developing in Access 2010 64 bit and using with Access 2007 32 bit? Jeff Barrows MCP, MCAD, MCSD ? Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, October 29, 2010 8:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2010 Excel 2010 REALLY has some cool stuff. Check out POWERPIVOT here http://www.powerpivot.com/ GK On Fri, Oct 29, 2010 at 7:19 AM, Susan Harkins wrote: > I mostly skipped 2007 and I agree, 2010 is a better product -- just cleaner > and thinner somehow. > > Susan H. > > >>I installed 2010 on my laptop tonight and I have to say, I'm impressed >> by the changes from 2007. ?They got rid of that horrid Office button >> and put things back into menus/ribbons and the ribbons seem cleaner to >> me ... or maybe I just have gotten accustomed to the darned things. ?I >> launched the Northwind template and created a Northwind database, >> which worked very smoothly and gave me some interesting insight into >> how the app has evolved. ?I may play with 2010, since I'm currently >> "resting" between careers still, but it looks much better and richer >> than 2007. ?Still no .Net option, but you can't have everything and >> .Net programming techniques improved my VBA code amazingly. ?Anybody >> else working in it? > > -- > 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 marksimms at verizon.net Fri Oct 29 10:52:11 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 29 Oct 2010 11:52:11 -0400 Subject: [AccessD] Access 2010 In-Reply-To: References: <3890673050794B98821FEE5E9C98B672@salvationomc4p> Message-ID: <005001cb7781$40af7c00$0401a8c0@MSIMMSWS> Agreed. And they've really improved Excel Services as well. Only problem is getting the corps to ante-up for it. Wow, all IT departments are pinching pennies right now. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Friday, October 29, 2010 9:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2010 > > Excel 2010 REALLY has some cool stuff. Check out POWERPIVOT here > > http://www.powerpivot.com/ > From jimdettman at verizon.net Fri Oct 29 13:10:07 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 29 Oct 2010 14:10:07 -0400 Subject: [AccessD] Status of Eat Bloat? Message-ID: <3F7E698CCC4641D0810AA61C95F160BA@XPS> Asked this a bit ago I know, but I don't remember the answer off-hand; what's the status of Eat Bloat? Is it something you guys want distributed or no? I've got a question on EE from someone who is trying to build the exact same thing. Form the code, looks like he is trying to build this into a regular utility. I try and mention Access D and Database Advisors every chance I get (Drew's hidden windows functions have been posted a few times now), but have been keeping mum on Eat Bloat because I thought some were in the process of working on it. V4 is the last version I have here, but I think there were a few more after that. Jim. From charlotte.foust at gmail.com Fri Oct 29 13:26:13 2010 From: charlotte.foust at gmail.com (Charlotte) Date: Fri, 29 Oct 2010 11:26:13 -0700 Subject: [AccessD] Access 2010 Message-ID: I couldn't say. I converted an mdb to 2010 format and then opened it in 2007 without problems, but it didn't use any new features so that isn't a good indicator, especially since I'm running 32-bit. Charlotte Sent from my Samsung Captivate(tm) on AT&T Jeff B wrote: >I have been considering changing, but I am now running mostly 64 bit apps. >Are there any issues developing in Access 2010 64 bit and using with Access >2007 32 bit? > >Jeff Barrows >MCP, MCAD, MCSD >? >Outbak Technologies, LLC >Racine, WI >jeff.developer at gmail.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos >Sent: Friday, October 29, 2010 8:30 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2010 > >Excel 2010 REALLY has some cool stuff. Check out POWERPIVOT here > >http://www.powerpivot.com/ > >GK > >On Fri, Oct 29, 2010 at 7:19 AM, Susan Harkins wrote: >> I mostly skipped 2007 and I agree, 2010 is a better product -- just >cleaner >> and thinner somehow. >> >> Susan H. >> >> >>>I installed 2010 on my laptop tonight and I have to say, I'm impressed >>> by the changes from 2007. ?They got rid of that horrid Office button >>> and put things back into menus/ribbons and the ribbons seem cleaner to >>> me ... or maybe I just have gotten accustomed to the darned things. ?I >>> launched the Northwind template and created a Northwind database, >>> which worked very smoothly and gave me some interesting insight into >>> how the app has evolved. ?I may play with 2010, since I'm currently >>> "resting" between careers still, but it looks much better and richer >>> than 2007. ?Still no .Net option, but you can't have everything and >>> .Net programming techniques improved my VBA code amazingly. ?Anybody >>> else working in it? >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > >-- >Gary Kjos >garykjos at gmail.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Fri Oct 29 14:41:46 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 29 Oct 2010 14:41:46 -0500 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "On Format" and "On Paint" Events References: Message-ID: When using ?Report View? in Access 2007, the ?On Format? event is not fired (we need to use ?Report View? features). The ?On Paint? event, however, is fired. In the ?On Paint? Event Me.Box1.BackColor = vbBlue Works nicely However the command Me.Box1.Width = 1000 issues the message ?The setting you entered isn?t valid for this property?, although this exact command will work with a test button. Is there a way to resolve this? I would guess that other Access 2007 users have run into similar issues with Report View. Thanks, Brad From adtp at airtelmail.in Fri Oct 29 23:41:18 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Sat, 30 Oct 2010 10:11:18 +0530 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "On Format"and "On Paint" Events References: Message-ID: Brad, It is not clear whether you happened to connect my post of 29-Oct-2010 (copy placed below), suggesting a way to fire the format event by transitioning from report view to print preview by double click on page header. This was in response to your thread "How tosuppressspecificreportlineswhileusingacViewReport" If the proposed approach was found successful, action on similar lines could be considered for realizing your current objective as well. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: A.D. Tejpal To: Access Developers discussion and problem solving Sent: Friday, October 29, 2010 14:48 Subject: Re: [AccessD] How tosuppressspecificreportlineswhileusingacViewReport Brad, Apparently you wish to play with the report in report view and thereafter, before printing, carry out selective suppression of detail section, say by setting Cancel = True in its format event, as dictated by suitable conditional check. Following course of action is suggested (based upon Access 2010 on Win XP): Place suitable code in detail section's format event in report's module. Sample code: '=============================== Private Sub Detail_Format(Cancel As Integer, _ FormatCount As Integer) If <> Then Cancel = True End If End Sub '=============================== Place the following code in dbl click event of page header section in report's module: '=============================== Private Sub PageHeaderSection_DblClick(Cancel As Integer) DoCmd.RunCommand acCmdPrintPreview End Sub '=============================== After opening the report, whenever you are ready for final stage, dbl click in page header section, will take you to the preview mode, accompanied by firing of format event, delivering desired output. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Saturday, October 30, 2010 01:11 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "On Format"and "On Paint" Events When using ?Report View? in Access 2007, the ?On Format? event is not fired (we need to use ?Report View? features). The ?On Paint? event, however, is fired. In the ?On Paint? Event Me.Box1.BackColor = vbBlue Works nicely However the command Me.Box1.Width = 1000 issues the message ?The setting you entered isn?t valid for this property?, although this exact command will work with a test button. Is there a way to resolve this? I would guess that other Access 2007 users have run into similar issues with Report View. Thanks, Brad From BradM at blackforestltd.com Sat Oct 30 06:54:43 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Sat, 30 Oct 2010 06:54:43 -0500 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "OnFormat"and "On Paint" Events References: Message-ID: A.D., Yes, I did read your earlier post and I appreciate the assistance. I have experimented with your suggestion. I am still digging into this problem, more out of curiosity than anything else. I am still learning about Access and I like to understand why things work (or not work). For example in the "On Paint" Event Me.Box1.BackColor = vbBlue Works nicely But the command Me.Box1.Width = 1000 does not work within the "On Paint" Event. This puzzles me. I would like to understand why. Thanks again for your help. Maybe I am "over thinking" this whole deal. Sincerely, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of A.D. Tejpal Sent: Fri 10/29/2010 11:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday Puzzler - Access 2007 - "Report View" "OnFormat"and "On Paint" Events Brad, It is not clear whether you happened to connect my post of 29-Oct-2010 (copy placed below), suggesting a way to fire the format event by transitioning from report view to print preview by double click on page header. This was in response to your thread "How tosuppressspecificreportlineswhileusingacViewReport" If the proposed approach was found successful, action on similar lines could be considered for realizing your current objective as well. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: A.D. Tejpal To: Access Developers discussion and problem solving Sent: Friday, October 29, 2010 14:48 Subject: Re: [AccessD] How tosuppressspecificreportlineswhileusingacViewReport Brad, Apparently you wish to play with the report in report view and thereafter, before printing, carry out selective suppression of detail section, say by setting Cancel = True in its format event, as dictated by suitable conditional check. Following course of action is suggested (based upon Access 2010 on Win XP): Place suitable code in detail section's format event in report's module. Sample code: '=============================== Private Sub Detail_Format(Cancel As Integer, _ FormatCount As Integer) If <> Then Cancel = True End If End Sub '=============================== Place the following code in dbl click event of page header section in report's module: '=============================== Private Sub PageHeaderSection_DblClick(Cancel As Integer) DoCmd.RunCommand acCmdPrintPreview End Sub '=============================== After opening the report, whenever you are ready for final stage, dbl click in page header section, will take you to the preview mode, accompanied by firing of format event, delivering desired output. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Brad Marks To: Access Developers discussion and problem solving Sent: Saturday, October 30, 2010 01:11 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "On Format"and "On Paint" Events When using "Report View" in Access 2007, the "On Format" event is not fired (we need to use "Report View" features). The "On Paint" event, however, is fired. In the "On Paint" Event Me.Box1.BackColor = vbBlue Works nicely However the command Me.Box1.Width = 1000 issues the message "The setting you entered isn't valid for this property", although this exact command will work with a test button. Is there a way to resolve this? I would guess that other Access 2007 users have run into similar issues with Report View. 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 Sat Oct 30 07:43:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 30 Oct 2010 22:43:33 +1000 Subject: [AccessD] Friday Puzzler - Access 2007 - "Report View" "OnFormat"and "On Paint" Events In-Reply-To: References: , Message-ID: <4CCC12F5.25804.3481B0F@stuart.lexacorp.com.pg> Because the OnPaint event occurs when the section is actually redrawn. By that stage the size and location of the controls must already be determined? -- Stuart On 30 Oct 2010 at 6:54, Brad Marks wrote: > For example in the "On Paint" Event > Me.Box1.BackColor = vbBlue > Works nicely > > But the command > Me.Box1.Width = 1000 > does not work within the "On Paint" Event. This puzzles me. > > I would like to understand why. > From rockysmolin at bchacc.com Sun Oct 31 10:43:38 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 31 Oct 2010 08:43:38 -0700 Subject: [AccessD] FW: Gates vs GM Message-ID: <71B60D796D9D4751ACAF72E809460A8D@HAL9005> An oldie - but still...somehow...current... R For all of us who feel only the deepest love and affection for the way computers have enhanced our lives, read on. At a recent computer expo (COMDEX), Bill Gates reportedly compared the computer industry with the auto industry and stated, 'If GM had kept up with technology like the computer industry has, we would all be driving $25 cars that got 1,000 miles to the gallon.' In response to Bill ' s comments, General Motors issued a press release stating: If GM had developed technology like Microsoft, we would all be driving cars with the following characteristics: 1. For no reason whatsoever, your car would crash.........Twice a day. 2.. Every time they repainted the lines in the road, you would have to buy a new car. 3... Occasionally your car would die on the freeway for no reason. You would have to pull to the side of the road, close all of the windows, shut off the car, restart it, and reopen the windows before you could continue. For some reason you would simply accept this. 4. Occasionally, executing a maneuver such as a left turn would cause your car to shut down and refuse to restart, in which case you would have to reinstall the engine. 5. Macintosh would make a car that was powered by the sun, was reliable, five times as fast and twice as easy to drive - but would run on only five percent of the roads. 6. The oil, water temperature, and alternator warning lights would all be replaced by a single 'This Car Has Performed An Illegal Operation' warning light. 7. The airbag system would ask 'Are you sure?' before deploying. 8. Occasionally, for no reason whatsoever, your car would lock you out and refuse to let you in until you simultaneously lifted the door handle, turned the key and grabbed hold of the radio antenna. 9. Every time a new car was introduced car buyers would have to learn how to drive all over again because none of the controls would operate in the same manner as the old car. 10. You'd have to press the 'Start' button to turn the engine off. 11. When all else fails, you call 'customer service ' in some foreign country and be instructed in some foreign language how to fix your car yourself!!!!