From stephen at bondsoftware.co.nz Sun Feb 1 00:35:51 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 01 Feb 2004 19:35:51 +1300 Subject: [AccessD] Office 2002 and Office 2003 on the same computer Message-ID: <70F3D727890C784291D8433E9C418F290885C6@server.bondsoftware.co.nz> I have Office 97 and 2000 co-existing peacefully on one of my development boxes, under Windows 2000 Pro. I have Office XP on another box, under Windows XP Professional, and have Office 2003 in shrink-wrap, begging for a home. Should I try loading it on the box with Office XP /Win XP? Stephen Bond Otatara, New Zealand From my.lists at verizon.net Sun Feb 1 00:40:22 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Sat, 31 Jan 2004 22:40:22 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <401C9F56.6010809@verizon.net> John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco From my.lists at verizon.net Sun Feb 1 00:40:22 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Sat, 31 Jan 2004 22:40:22 -0800 Subject: [dba-SQLServer] Re: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <401C9F56.6010809@verizon.net> John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tuxedo_man at hotmail.com Sun Feb 1 01:05:03 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sun, 01 Feb 2004 07:05:03 +0000 Subject: [AccessD] RE: [dba-SQLServer]SQL Server queries - appending strings Message-ID: SELECT LASTNAME + ', ' + FIRSTNAME from employees........... HTH Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "SQLServer" , "AccessD" > >Subject: [dba-SQLServer]SQL Server queries - appending strings >Date: Sat, 31 Jan 2004 20:44:31 -0500 > >In Access I often do things in queries like: [LastName] & ", " & >[FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby >www.ColbyConsulting.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From tuxedo_man at hotmail.com Sun Feb 1 01:05:03 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sun, 01 Feb 2004 07:05:03 +0000 Subject: [AccessD] RE: [dba-SQLServer]SQL Server queries - appending strings Message-ID: SELECT LASTNAME + ', ' + FIRSTNAME from employees........... HTH Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "SQLServer" , "AccessD" > >Subject: [dba-SQLServer]SQL Server queries - appending strings >Date: Sat, 31 Jan 2004 20:44:31 -0500 > >In Access I often do things in queries like: [LastName] & ", " & >[FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby >www.ColbyConsulting.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 1 01:42:04 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Feb 2004 17:42:04 +1000 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: <401CEA1B.21659.8E078E@localhost> Message-ID: <401D3A6C.28842.1302CD5@localhost> On 31 Jan 2004 at 21:27, John W. Colby wrote: > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? > No, but you can modify views using "ALTER VIEW" to change the parameters. Not a good option with multiple users though :-( > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. > > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. > What are my options here? Do I have any? > I hate to say this, but you could go unbound with a SProc and update statements :-) One off the top of my head: Create a control table containing LoginName and ClaimID fields. Create the view of your data which includes a join on the control table and a constraint of LoginName = SYSTEM_USER. Before you pull the view, update the control table with the users LoginName and the relevant ClaimID. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sun Feb 1 03:06:43 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 10:06:43 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <1252035827.20040201100643@cactus.dk> Hi John > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. [snip] > What are my options here? Do I have any? An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it works; your efforts will minimize to moving only the tables to SQL Server and walking through your code adding some dBSeeChanges ... Of course, this depends on the client and his priorities. Does he wish quickly to move the data to SQL Server? Does he pay for your time turning the current app into an ADP (which is the "right" thing) or is that in his eyes just a "learning experience" for you? /gustav From stuart at lexacorp.com.pg Sun Feb 1 04:57:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Feb 2004 20:57:10 +1000 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <1252035827.20040201100643@cactus.dk> References: Message-ID: <401D6826.5325.1E2C8A6@localhost> On 1 Feb 2004 at 10:06, Gustav Brock wrote: > > > What are my options here? Do I have any? > > An alternative to the other suggestions - which very quickly will turn > your job into a major project - you can connect to the server via > ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it > works; your efforts will minimize to moving only the tables to SQL > Server and walking through your code adding some dBSeeChanges ... > But that doesn't solve the original problem of trying to avoid pulling a large recordset from joined tables and filtering locally :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sun Feb 1 05:54:31 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 12:54:31 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <401D6826.5325.1E2C8A6@localhost> References: <401D6826.5325.1E2C8A6@localhost> Message-ID: <9512104034.20040201125431@cactus.dk> Hi Stuart >> > What are my options here? Do I have any? >> >> An alternative to the other suggestions - which very quickly will turn >> your job into a major project - you can connect to the server via >> ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it >> works; your efforts will minimize to moving only the tables to SQL >> Server and walking through your code adding some dBSeeChanges ... >> > But that doesn't solve the original problem of trying to avoid > pulling a large recordset from joined tables and filtering locally > :-( That's right - but there is a big difference between an app that is not working and an app that works pretty much the same as before even though the backend has moved from Jet to SQL Server. A working app leaves you in peace from an impatient client out of business, freeing you to proceed with optimization work (stored procedures, views, pass through queries etc.) at your own speed. It all depends. If John's client picked SQL Server to force an ADP from John, ODBC is of course no solution. /gustav From jwcolby at colbyconsulting.com Sun Feb 1 07:20:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 08:20:25 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <401C9F56.6010809@verizon.net> Message-ID: >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 1 07:27:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 08:27:39 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <1252035827.20040201100643@cactus.dk> Message-ID: >An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. And that is exactly what is going to happen. There are enough reasons to move the data store to SQL Server to justify doing that much. As for moving to an ADP, I have a framework that implements hundreds of behaviors that are totally "automated" and allowed me to build the FE and it's functionality in 1/10th the time it would take to do it form by form implementing the same functionality. Because of this, the framework has to be modified to be modified to be ADP friendly. I do things like: SELECT [Somefield] from Sometable WHERE SomeColumn LIKE SomeForm!SomeControl. These statements return EDITABLE recordsets in Access. I use these EDITABLE recordsets EVERYWHERE. As we all know, this simply doesn't work in SQL Server. Until I can get around that obstacle in SQL Server, moving ANY project to SQL Server will be non-trivial. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 4:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi John > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. [snip] > What are my options here? Do I have any? An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it works; your efforts will minimize to moving only the tables to SQL Server and walking through your code adding some dBSeeChanges ... Of course, this depends on the client and his priorities. Does he wish quickly to move the data to SQL Server? Does he pay for your time turning the current app into an ADP (which is the "right" thing) or is that in his eyes just a "learning experience" for you? /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Feb 1 10:00:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 01 Feb 2004 08:00:38 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: Hi John: There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE is the only option (ODBC is too slow....) Stored Procedures are programs, subroutines and functions more than just queries. No 'query' import tools can work because though SQL SP work similar they are really quite different in concept. I suspect that everything will have to be completely hand coded at the query/recordset backend but your frame-work should basically be able remain in place. Another thing to note is that the MSSQL license may not be 'unlimited' but scaled on 'connections' not users. One user of a 'bound' application could grab as many as 20 plus connection or the whole license. The licensing may have changed (I have been working with Oracle for the last year or so) but some of our SQL Gurus may know the finer points. Hope you are being paid by the hour. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 5:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 1 10:15:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 17:15:34 +0100 Subject: [AccessD] Using Dates In-Reply-To: References: Message-ID: <7727766756.20040201171534@cactus.dk> Hi Robert et all Maybe Ralph Kimball is a lurker here? I guess not - then he wouldn't suggest fiddling with a spreadsheet to create the table ... Anyway, here is his latest design tip. It is not on-line so I cannot pass a link. /gustav ======================================================== KIMBALL UNIVERSITY DESIGN TIP #51 ======================================================== LATEST THINKING ON TIME DIMENSION TABLES Virtually every fact table has one or more time related dimension foreign keys. Measurements are defined at specific points of time and most measurements are repeated over time. The most common and useful time dimension is the calendar date dimension with the granularity of a single day. This dimension has surprisingly many attributes. Only a few of these attributes (such as month name and year) can be generated directly from an SQL date-time expression. Holidays, work days, fiscal periods, week numbers, last day of month flags, and other navigational attributes must be embedded in the calendar date dimension and all date navigation should be implemented in applications by using the dimensional attributes. The calendar date dimension has some very unusual properties. It is one of the only dimensions that is completely specified at the beginning of the data warehouse project. It also doesn't have a conventional source. The best way to generate the calendar date dimension is to spend an afternoon with a spreadsheet and build it by hand. Ten years worth of days is less than 4000 rows. Every calendar date dimension needs a Date Type attribute and a Full Date attribute. These two fields comprise the natural key of the dimension table. The Date Type attribute almost always has the value "date" but there must be at least one record that handles the special non-applicable date situation where the recorded date is inapplicable, corrupted, or hasn't happened yet. The foreign key references in the fact table in these cases must point to a non-date date in the calendar date table! You need at least one of these special records in the calendar date table, but you may want to distinguish several of these unusual conditions. For the inapplicable date case, the value of the Date Type is "inapplicable" or "NA". The Full Date attribute is a full relational date stamp, and it takes on the legitimate value of null for the special cases described above. Remember that the foreign key in a fact table can never be null, since by definition that violates referential integrity. The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. In some fact tables time is measured below the level of calendar day, down to minute or even second. One cannot build a time dimension with every minute second of every day represented. There are more than 31 million seconds in a year! We want to preserve the powerful calendar date dimension and simultaneously support precise querying down to the minute or second. We may also want to compute very precise time intervals by comparing the exact time of two fact table records. For these reasons we recommend a design with a calendar date dimension foreign key and a full SQL date-time stamp, both in the fact table. The calendar day component of the precise time remains as a foreign key reference to our familiar calendar day dimension. But we also embed a full SQL date-time stamp directly in the fact table for all queries requiring the extra precision. Think of this as special kind of fact, not a dimension. In this interesting case, it is not useful to make a dimension with the minutes or seconds component of the precise time stamp, because the calculation of time intervals across fact table records becomes too messy when trying to deal with separate day and time-of-day dimensions. In previous Toolkit books, we have recommended building such a dimension with the minutes or seconds component of time as an offset from midnight of each day, but we have come to realize that the resulting end user applications became too difficult, especially when trying to compute time spans. Also, unlike the calendar day dimension, there are very few descriptive attributes for the specific minute or second within a day. If the enterprise has well defined attributes for time slices within a day, such as shift names, or advertising time slots, an additional time-of-day dimension can be added to the design where this dimension is defined as the number of minutes (or even seconds) past midnight. Thus this time-of-day dimension would either have 1440 records if the grain were minutes or 86,400 records if the grain were seconds. The presence of such a time-of-day dimension does not remove the need for the SQL date-time stamp described above. Ralph Kimball Ralph at ralphkimball.com (c) Copyright Ralph Kimball Group, 2004. ===================================================== If you have colleagues and friends who would also like to receive Kimball University Design Tips, please have them email Nancy (nancy at ralphkimball.com) with "add" in the subject line. When you join, you will automatically be sent the 2003 Design Tips to date. The Design Tips published during 2000 through 2002 are available at www.ralphkimball.com. --- From jwcolby at colbyconsulting.com Sun Feb 1 10:27:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 11:27:55 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: I am being paid by the hour, but they are never going to go for that kind of massive rewrite. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, February 01, 2004 11:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE is the only option (ODBC is too slow....) Stored Procedures are programs, subroutines and functions more than just queries. No 'query' import tools can work because though SQL SP work similar they are really quite different in concept. I suspect that everything will have to be completely hand coded at the query/recordset backend but your frame-work should basically be able remain in place. Another thing to note is that the MSSQL license may not be 'unlimited' but scaled on 'connections' not users. One user of a 'bound' application could grab as many as 20 plus connection or the whole license. The licensing may have changed (I have been working with Oracle for the last year or so) but some of our SQL Gurus may know the finer points. Hope you are being paid by the hour. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 5:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 1 11:07:16 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 18:07:16 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <9330868626.20040201180716@cactus.dk> Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav From jwcolby at colbyconsulting.com Sun Feb 1 11:37:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 12:37:54 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <9330868626.20040201180716@cactus.dk> Message-ID: In fact there are valid reasons for going to SQL Server, without expecting a massive speedup. Things like: BE expansions, compactions not happening because users still in the db, lock files that don't clear even when every one is out of the db, lock files that can't be cleared at ALL without resetting the server, compacts fail as a result. Backups not happening because of open MDB files (SEE ABOVE). Memo fields causing locks on adjacent records preventing users from saving their memo records. MDB Database corruptions due to the well known problems with memo fields, causing maintenance for someone to clean up these corrupted memo fields. The ever present possibility of MDB corruptions due to NIC problems, power outages at workstations as they write to the MDB etc. Limits on the numbers of indexes available in Access due to referential integrity using indexes for foreign keys, reducing the remaining indexes available for dates, strings etc. And finally, there will be parts of the app that can be sped up (I think) even using ODBC, things like a "claim find" search screen that doesn't need updateable recordsets, where the entire thing may be able to be pushed out to the server. This client is climbing past 50 concurrent users where when I started they had about 25. They are doing the obvious, buying a new dual proc server to run this thing, putting the data store into SQL Server (assuming I say 'go'), splitting their LAN into segments, with gigabit links to the routers, etc. This client has a massive amount of data that they want available "instantly", thus the tabbed metaphor. They kept asking for more and more things, some of which required some time consuming things like "TOP 1" from child tables, available at a glance. I explained that each of these slowed the app down, but they wanted them. Over time, a dozen of these kinds of things, each slowing the whole down only a bit, the whole lot slowed the app down a lot. They wanted it, they asked for it, they were informed that it would cause slowdowns, they insisted, they got it. The biggest issue I have at the moment is that (in A2K which is what they have) recordsets cannot be set as the recordsource without making the result uneditable. If I could do that, I'd be in much better shape than I am. There appears to be no real alternatives (in A2K) to use much of the capabilities of SQL Server to offload processing to the server, yet still end up with editable recordsets / forms. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Feb 1 11:35:56 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 1 Feb 2004 17:35:56 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <003b01c3e8ea$10166400$09f66e51@martin1> John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 01, 2004 4:27 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > I am being paid by the hour, but they are never going to go for that kind of > massive rewrite. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Sunday, February 01, 2004 11:01 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. > > I suspect that everything will have to be completely hand coded at the > query/recordset backend but your frame-work should basically be able remain > in place. > > Another thing to note is that the MSSQL license may not be 'unlimited' but > scaled on 'connections' not users. One user of a 'bound' application could > grab as many as 20 plus connection or the whole license. The licensing may > have changed (I have been working with Oracle for the last year or so) but > some of our SQL Gurus may know the finer points. > > Hope you are being paid by the hour. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 01, 2004 5:20 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >It's really about the right tool for the job, although speculation would > deem that an ADP would be better suited. > > Converting to an ADP may or may not even be possible. The system uses my > framework which does a TON of rather fancy stuff like swapping combo / form > row/recordsources out on the fly, assigning the recordsource after the > framework class instantiates etc. Not to mention linked spreadsheets that > feed queries for data importation. LOTS of reasons why ADPs may never be > possible. > > >No, Views do not take parameters, that's what Stored Procedures (aka > sprocs) are for.. > > Yes, but Stored procedures are non-editable, correct? Remember, these are > bound forms needing editable recordsets. > > >you are mistaken. you can assign the recordset to the recordsource, but > because the data is from sql server (in an mdb) it becomes read only. > > Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which > means I can't assign a recordset to the recordsource. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H > Tapia > Sent: Sunday, February 01, 2004 1:40 AM > To: Access Developers discussion and problem solving; > dba-SQLServer at databaseadvisors.com > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > John W. Colby wrote: > > Thanks both of you. > > > > I have a client that purchased SQL Server and so it's time to get off the > > dime and learn this stuff. > > > > The client uses A2K. > > > > Now that I am changing to SQL Server I have to get the server doing more > of > > the work - the whole point is of course to speed things up. For technical > > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any > time > > in the near future, if at all. > > It's really about the right tool for the job, altho speculation would > deem that an ADP would be better suited. > > > I have a main tabbed form which uses a multi-table join to get live data > > from a client / claim . The client wanted it that way so that the user > > could edit fields in either table. > > > > Views appear to be similar to tables, i.e. I can link to them and they > show > > up in the table window. Is there a way to pass parameters to them? > "Where > > LastName like col*" etc? > > No, Views do not take parameters, that's what Stored Procedures (aka > sprocs) are for.. > > > ATM, I pull the whole recordset and then filter down to a single record. > > Not fast, but after the initial pull the filter proceeds at a reasonable > > rate. I can then "filter" to a specific claim reasonably fast. I would > > like to change this to actually ask SQL Server for a view of exactly one > > record each time they want to see a claim. Thus avoiding the "pull the > > entire recordset across the net, now pull the index, etc. > > That would be effective.. again... Sprocs, think Pass-Through Queries.. > generally you'd just type into the SQL window (technically not the qbe > window), EXEC stp_MyFavoriteSproc Param1, Param2 > > I'll take this quote from David McAfee's post over on Access-L on > exactly this issue > > /QUOTE/ > I couldn't get it working that way after all. I cant remember how I used > to do that. > > but... > > In one of my samples (A97 db connected to A97 BE with an ODBC link to > SQL 2K) > > I created a pass-through query called "_BrettsPassThru" > > The SQL inside the query is: > > EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' > > > So I created a command button and placed the following code behind it: > > CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC > devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', > '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL > DoCmd.OpenQuery "_BrettsPassThru" > > Let me know how it works for you. > > David > /END QUOTE/ > > > This must be editable so AFAIK I cannot use stored procedures which would > > allow passing parameters. Because this is A2K AFAIK I cannot assign a > > recordset to the form's recordsource property. > > you are mistaken. you can assign the recordset to the recordsource, but > because the data is from sql server (in an mdb) it becomes read only. > > > What are my options here? Do I have any? > > Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you > do :) > > > -- > -Francisco > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 1 12:31:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 13:31:17 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <003b01c3e8ea$10166400$09f66e51@martin1> Message-ID: Martin, I long ago modified my framework to use only ADO >The framework you use is I assume dictating the path you can take?? Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and see what happens. However I am a programmer at heart. In my apps I do things like setting up a query, then opening the query and changing the SQL statement. There are instances where this is a very useful trick. Try that with an SQL Server BE! It may be possible, but not just using DAO and the queries collection! I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased fields in queries. I write my own functions and use them in aliased fields in queries. ALL of these things will cause massive headaches porting to SQL Server, and referencing controls on a form simply can't be ported. A2K, even in an ADP (by my understanding) can't hook a stored procedure to the recordsource of a form and end up with an editable form. So the answer to your question is yes, my framework is a limitation, but a tiny one compared to my free usage of Access "goodies" that just kill you using SQL Server. This is an application with over a hundred forms, thousands of controls, tabs with JIT subforms set up, combos that swap out their SQL to allow on-the-fly filtering, and so forth. All this is entirely legal and encouraged in an Access only app. !!!!!!!!!!!!*********** Did you know that NO code runs in a form until after the data loads for the form? So if you want to run code that in any way modifies the actual SQL statement of the form, you will either: Load all your data, then reload using the modified SQL or... not have a recordsource and assign one from the code that runs after the form's class finally gets around to loading. !!!!!!!!!!!!*********** Did you know that subforms load before the main form code runs? Did you know that subforms expect the parent data to be loaded so that the Link Child Field / Master Field works? !!!!!!!!!!!!*********** All of this means that if you want to use bound subforms / forms, the parent data must load, then the child forms load (with their data), THEN the parent form's CODE finally runs. I noticed that all of my data was loading twice. Why is that? Because I use code to set a control which is used in the where clause of the form's SQL statement. The first time, the data loads, but the CODE hasn't started running yet. So... I have to set the control and requery the form. Hmmm.... So you could just not set the Recordsource at all (leave it blank) until the code runs, then set the control, then set the recordsource RIGHT? Well... yea, EXCEPT the subforms expect data to be there when they load or you get the stupid pop up dialog asking you for the PK for the Master Field. THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO data, it's code runs, it loads ITS data, then it loads any subforms which, by that time, have valid data in the parent form and can load without asking the user for the PK. Holy @#$% Batman! Now WHY oh WHY didn't MS just allow the code to run in the parent form before loading its data? Because lots of code expect to go looking at (already loaded) data. Oh the joys of Access. !!!!!!!!!!!!*********** My framework is CAPABLE of doing exactly this stuff, automagically. If the parent form's Recordsource is not set (is blank), AND (of course) the subform controls are not bound to a subform, then my form's class looks for a query named 'q' & Thisform.name. If found, the class set the form's recordsource to that query name, which causes that data to load (after setting the above mentioned control which is used in the Where clause). The form's class has a control scanner that finds all subform controls and drops a pointer to them into a collection. Once the main form's recordsource is set, each subform is able to be bound to a subform. USUALLY this is done when a specific tab of the tab control is clicked. i.e. JIT. However if the subform is on the FIRST tab, then it is bound by the main form's class so that the subform loads and is populated. So now my forms only load their data once, JIT works as expected, I can filter using controls on the form etc. Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. !!!!!!!!!!!!*********** SQL Server MAY be the holy grail, but it is far holier if you are just pulling one record from one table RE 1970s style terminal based apps. It isn't very holy at all if you have already used all of Access' built in TRICKS to the max in your apps and now want to move that app to SQL Server! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 01, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin From Oleg_123 at xuppa.com Sun Feb 1 18:44:18 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 1 Feb 2004 19:44:18 -0500 (EST) Subject: [AccessD] macro can't find function In-Reply-To: <01ad01c3e80c$19312a90$b274d0d5@minster33c3r25> References: <41912.12.3.132.98.1075481192.squirrel@heck.bay9.com> <01ad01c3e80c$19312a90$b274d0d5@minster33c3r25> Message-ID: <3560.24.187.36.171.1075682658.squirrel@heck.bay9.com> hmm, the function when run by itself works fine. Could the problem possibly bee that the module in which it is located is called the same name as function ? > Well all I can think is a) rename the function (could BreakName possibly > be a reserved word?) and/or b) decompile, repair etc to be sure it isn't > just glitchy. Other than that I cn't see what the problem is. > > Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: 30 January 2004 16:47 >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] macro can't find function >> >> >> still gives me the same error :--( >> >> >> >> > Beat me to it Lambert :-) >> > >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> >> Sent: 29 January 2004 17:08 >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: RE: [AccessD] macro can't find function >> >> >> >> >> >> I'd suggest you get rid of the space between "BreakName" and the >> opening parentheses. >> >> >> >> Lambert >> >> >> >> > -----Original Message----- >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> >> > Sent: Thursday, January 29, 2004 11:52 AM >> >> > To: accessd at databaseadvisors.com >> >> > Subject: RE: [AccessD] macro can't find function >> >> > >> >> > it's public (of course ;-) >> >> > and this is how it looks -- BreakName () >> >> > >> >> > i decided to try to make that macro call another macro >> >> which contains >> >> > the function >> >> > >> >> > > Oleg >> >> > > >> >> > > In a macro the function has to be expressed as fn(), ie. >> >> no = sign >> >> > > before it but must have the parentheses. May be worth >> >> checking. Oh >> >> > > and the function must of course be Public. >> >> > > >> >> > > Andy Lacey >> >> > > http://www.minstersystems.co.uk >> >> > > >> >> > >> -----Original Message----- >> >> > >> From: accessd-bounces at databaseadvisors.com >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> Oleg_123 at xuppa.com >> >> > >> Sent: 29 January 2004 16:12 >> >> > >> To: accessd at databaseadvisors.com >> >> > >> Subject: RE: [AccessD] macro can't find function >> >> > >> >> >> > >> >> >> > >> Group, >> >> > >> >> >> > >> I have a long macro that opens several queries, at the end its >> >> suppose to RunCode - function, however it gives me an message "The >> >> > >> expression you entered has a function name that xxx >> can't find". >> >> When I run that function separetely it works fine, and >> >> the name is >> >> > >> spelled correctly since i didn't type it but selected it using >> >> their device what should i do ? >> >> > >> >> >> > >> >> >> > >> ----------------------------------------- >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > >> http://www.xuppa.com/news/?link=webmail >> >> > >> >> >> > >> >> >> > >> >> >> > >> _______________________________________________ >> >> > >> AccessD mailing list >> >> > >> AccessD at databaseadvisors.com >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> > >> Website: >> >> > >> http://www.databaseadvisors.com >> >> > >> >> >> > >> >> >> > > >> >> > > _______________________________________________ >> >> > > AccessD mailing list >> >> > > AccessD at databaseadvisors.com >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > > Website: http://www.databaseadvisors.com >> >> > >> >> > >> >> > >> >> > ----------------------------------------- >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > http://www.xuppa.com/news/?link=webmail >> >> > >> >> > >> >> > _______________________________________________ >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> Website: >> >> http://www.databaseadvisors.com >> >> >> >> >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> Website: >> http://www.databaseadvisors.com >> >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Sun Feb 1 18:53:49 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sun, 01 Feb 2004 18:53:49 -0600 Subject: [AccessD] Re: SQL Server queries - appending strings In-Reply-To: <200402011618.i11GI7m22479@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040201185240.019384b0@pop3.highstream.net> John, LastName + ', ' + FirstName SQL Server uses single quotes and + instead of & Robert At 10:18 AM 2/1/2004 -0600, you wrote: >From: "John W. Colby" >Subject: [AccessD] SQL Server queries - appending strings >To: "SQLServer" , "AccessD" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >In Access I often do things in queries like: [LastName] & ", " & [FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby From Oleg_123 at xuppa.com Sun Feb 1 18:56:42 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 1 Feb 2004 19:56:42 -0500 (EST) Subject: [AccessD] Opening report on desired record II In-Reply-To: <01ab01c3e80c$18b85110$b274d0d5@minster33c3r25> References: <42162.12.3.132.98.1075496340.squirrel@heck.bay9.com> <01ab01c3e80c$18b85110$b274d0d5@minster33c3r25> Message-ID: <3570.24.187.36.171.1075683402.squirrel@heck.bay9.com> one more question. On the form that lets user select on what record to open report, and opens it (done thanks to Andy) there should be a a combo (or anything else) that lets user select managers name to put on the report. i select the valaue selected in the combo -- Dim xo as string xo = cmbManager.Value --- then i put text value on the report Manager. Is there now way to let manager = xo ? I tried making 'strr = "[manager] = " & xo & "" and placing it in Open Args, i am possibly on the right track since i do not get any errors, but it places 0 instead of xo value. Is there a way to fix it ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Sun Feb 1 18:57:09 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sun, 01 Feb 2004 18:57:09 -0600 Subject: [AccessD] Re: Office 2002 and Office 2003 on the same computer In-Reply-To: <200402011618.i11GI7m22479@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040201185620.0193bfe8@pop3.highstream.net> Stephen, I have 97, 2000, XP and 2003 all on the same machine with no problems. Robert At 10:18 AM 2/1/2004 -0600, you wrote: >Date: Sun, 01 Feb 2004 19:35:51 +1300 >From: Stephen Bond >Subject: [AccessD] Office 2002 and Office 2003 on the same computer >To: accessd at databaseadvisors.com >Message-ID: > <70F3D727890C784291D8433E9C418F290885C6 at server.bondsoftware.co.nz> >Content-Type: text/plain; charset=iso-8859-1 > >I have Office 97 and 2000 co-existing peacefully on one of my development >boxes, under Windows 2000 Pro. >I have Office XP on another box, under Windows XP Professional, and have >Office 2003 in shrink-wrap, begging for a home. Should I try loading it >on the box with Office XP /Win XP? > > > >Stephen Bond >Otatara, New Zealand From kathryn at bassett.net Sun Feb 1 22:01:45 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 1 Feb 2004 20:01:45 -0800 Subject: [AccessD] Merging photos from Access to Word Message-ID: I'm pretty proficient at using WordPerfect to set up documents that pull information from an Access query. But I'm not sure how to do what I want to do, and figure that I'm more likely to get some help if I ask how to do it in Word instead. I'm not having success with making a report *that will print the way I want* in Access for a variety of reasons, so please don't suggest that. http://www.ourmailinglist.org/abcmerge/whatiwant.jpg shows you in general what I want (no table lines). However, I did this by hand, by putting each graphic into a cell and making a caption for it. So, everytime I need to insert someone, I have to add a row, and copy/paste some contents to ... well, details are beside the point. And complicating things is that I need to print this in booklet format so that it prints like this: 8 1 2 7 6 3 4 5 then when they are printed double side, it's like a book - landscape 8.5x11 folded in half. Now, in WordPerfect, if I code like this: http://www.ourmailinglist.org/abcmerge/wpmergcodes.jpg then when I merge I get: http://www.ourmailinglist.org/abcmerge/wpmergcodesresult.jpg (I didn't yet put in the columns, or landscape the page for the examples) Here's the query it's based on: http://www.ourmailinglist.org/abcmerge/theaccessquery.JPG Now, if someone knows how to insert the picture into WordPerfect, that would be great (I've got WP11)! But since I imagine there are more of you who know Word Macros/Merges, then I've got Word2000. BTW, I want the graphics to be max of 2" wide or 2" high, proportional - they aren't all exactly the same size, some are vertical some horizontal. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Erwin.Craps at ithelps.be Mon Feb 2 01:17:46 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 2 Feb 2004 08:17:46 +0100 Subject: [AccessD] macro can't find function Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D1CC@stekelbes.ithelps.local> Are you sure its a function and not a sub? Sub's can not be run from Marco. As already specified below the function must be calle with () at the end, even when no parameters Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 1:44 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] macro can't find function hmm, the function when run by itself works fine. Could the problem possibly bee that the module in which it is located is called the same name as function ? > Well all I can think is a) rename the function (could BreakName > possibly be a reserved word?) and/or b) decompile, repair etc to be > sure it isn't just glitchy. Other than that I cn't see what the problem is. > > Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: 30 January 2004 16:47 >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] macro can't find function >> >> >> still gives me the same error :--( >> >> >> >> > Beat me to it Lambert :-) >> > >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> >> Sent: 29 January 2004 17:08 >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: RE: [AccessD] macro can't find function >> >> >> >> >> >> I'd suggest you get rid of the space between "BreakName" and the >> opening parentheses. >> >> >> >> Lambert >> >> >> >> > -----Original Message----- >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> >> > Sent: Thursday, January 29, 2004 11:52 AM >> >> > To: accessd at databaseadvisors.com >> >> > Subject: RE: [AccessD] macro can't find function >> >> > >> >> > it's public (of course ;-) >> >> > and this is how it looks -- BreakName () >> >> > >> >> > i decided to try to make that macro call another macro >> >> which contains >> >> > the function >> >> > >> >> > > Oleg >> >> > > >> >> > > In a macro the function has to be expressed as fn(), ie. >> >> no = sign >> >> > > before it but must have the parentheses. May be worth >> >> checking. Oh >> >> > > and the function must of course be Public. >> >> > > >> >> > > Andy Lacey >> >> > > http://www.minstersystems.co.uk >> >> > > >> >> > >> -----Original Message----- >> >> > >> From: accessd-bounces at databaseadvisors.com >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> Oleg_123 at xuppa.com >> >> > >> Sent: 29 January 2004 16:12 >> >> > >> To: accessd at databaseadvisors.com >> >> > >> Subject: RE: [AccessD] macro can't find function >> >> > >> >> >> > >> >> >> > >> Group, >> >> > >> >> >> > >> I have a long macro that opens several queries, at the end >> >> > >> its >> >> suppose to RunCode - function, however it gives me an message "The >> >> > >> expression you entered has a function name that xxx >> can't find". >> >> When I run that function separetely it works fine, and the name is >> >> > >> spelled correctly since i didn't type it but selected it >> >> > >> using >> >> their device what should i do ? >> >> > >> >> >> > >> >> >> > >> ----------------------------------------- >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > >> http://www.xuppa.com/news/?link=webmail >> >> > >> >> >> > >> >> >> > >> >> >> > >> _______________________________________________ >> >> > >> AccessD mailing list >> >> > >> AccessD at databaseadvisors.com >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> > >> Website: >> >> > >> http://www.databaseadvisors.com >> >> > >> >> >> > >> >> >> > > >> >> > > _______________________________________________ >> >> > > AccessD mailing list >> >> > > AccessD at databaseadvisors.com >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > > Website: http://www.databaseadvisors.com >> >> > >> >> > >> >> > >> >> > ----------------------------------------- >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > http://www.xuppa.com/news/?link=webmail >> >> > >> >> > >> >> > _______________________________________________ >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> Website: >> >> http://www.databaseadvisors.com >> >> >> >> >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> Website: >> http://www.databaseadvisors.com >> >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 2 07:12:34 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 2 Feb 2004 13:12:34 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <000901c3e98e$38c0e7a0$9111758f@aine> Have you tried using a stored procedure as the recordsource of a form. Try it and see what happens!! Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 01, 2004 6:31 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > Martin, > > I long ago modified my framework to use only ADO > > >The framework you use is I assume dictating the path you can take?? > > Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and > see what happens. However I am a programmer at heart. In my apps I do > things like setting up a query, then opening the query and changing the SQL > statement. There are instances where this is a very useful trick. Try that > with an SQL Server BE! It may be possible, but not just using DAO and the > queries collection! > > I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased > fields in queries. I write my own functions and use them in aliased fields > in queries. > > ALL of these things will cause massive headaches porting to SQL Server, and > referencing controls on a form simply can't be ported. > > A2K, even in an ADP (by my understanding) can't hook a stored procedure to > the recordsource of a form and end up with an editable form. > > So the answer to your question is yes, my framework is a limitation, but a > tiny one compared to my free usage of Access "goodies" that just kill you > using SQL Server. > > This is an application with over a hundred forms, thousands of controls, > tabs with JIT subforms set up, combos that swap out their SQL to allow > on-the-fly filtering, and so forth. All this is entirely legal and > encouraged in an Access only app. > > !!!!!!!!!!!!*********** > > Did you know that NO code runs in a form until after the data loads for the > form? So if you want to run code that in any way modifies the actual SQL > statement of the form, you will either: > > Load all your data, then reload using the modified SQL > > or... not have a recordsource and assign one from the code that runs after > the form's class finally gets around to loading. > > !!!!!!!!!!!!*********** > > Did you know that subforms load before the main form code runs? > > Did you know that subforms expect the parent data to be loaded so that the > Link Child Field / Master Field works? > > !!!!!!!!!!!!*********** > > All of this means that if you want to use bound subforms / forms, the parent > data must load, then the child forms load (with their data), THEN the parent > form's CODE finally runs. > > > I noticed that all of my data was loading twice. Why is that? Because I > use code to set a control which is used in the where clause of the form's > SQL statement. The first time, the data loads, but the CODE hasn't started > running yet. So... I have to set the control and requery the form. > Hmmm.... > > So you could just not set the Recordsource at all (leave it blank) until the > code runs, then set the control, then set the recordsource RIGHT? > > Well... yea, EXCEPT the subforms expect data to be there when they load or > you get the stupid pop up dialog asking you for the PK for the Master Field. > THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO > data, it's code runs, it loads ITS data, then it loads any subforms which, > by that time, have valid data in the parent form and can load without asking > the user for the PK. > > Holy @#$% Batman! > > Now WHY oh WHY didn't MS just allow the code to run in the parent form > before loading its data? Because lots of code expect to go looking at > (already loaded) data. Oh the joys of Access. > > !!!!!!!!!!!!*********** > > My framework is CAPABLE of doing exactly this stuff, automagically. If the > parent form's Recordsource is not set (is blank), AND (of course) the > subform controls are not bound to a subform, then my form's class looks for > a query named 'q' & Thisform.name. If found, the class set the form's > recordsource to that query name, which causes that data to load (after > setting the above mentioned control which is used in the Where clause). The > form's class has a control scanner that finds all subform controls and drops > a pointer to them into a collection. Once the main form's recordsource is > set, each subform is able to be bound to a subform. USUALLY this is done > when a specific tab of the tab control is clicked. i.e. JIT. However if the > subform is on the FIRST tab, then it is bound by the main form's class so > that the subform loads and is populated. > > So now my forms only load their data once, JIT works as expected, I can > filter using controls on the form etc. > > Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. > > !!!!!!!!!!!!*********** > > SQL Server MAY be the holy grail, but it is far holier if you are just > pulling one record from one table RE 1970s style terminal based apps. It > isn't very holy at all if you have already used all of Access' built in > TRICKS to the max in your apps and now want to move that app to SQL Server! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 01, 2004 12:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > John > > Tha main drawback you face moving to SQL Server is your use of the > framework. Continued reliance of this tool will place you at a disadvantage > when working with for example an ADP file. > > Of course you could consider over time rewriting the tool for use with SQL > Server. > > Moving to an SQL Server backend generally gives you a few options > > Use ODBC and stay with DAO > Rewrite from DAO to ADO using OLEDB > Use an ADP > USee Pass Through > > etc etc > > You could also consider bring the data local on login , work with it local > and then update the server with changes. > > I am currently working on rewriting a complex app from DAO to ADO. Taking a > lot longer than I assumed but almost done now. > > The licence issue is OK. Usually licenced on a per processor basis now so > connections dont matter. > > The framework you use is I assume dictating the path you can take?? > > > > Martin > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Feb 2 09:51:53 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 02 Feb 2004 07:51:53 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <9330868626.20040201180716@cactus.dk> Message-ID: Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 10:16:30 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 11:16:30 -0500 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD21@DISABILITYINS01> >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav From cfoust at infostatsystems.com Mon Feb 2 10:31:00 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:31:00 -0800 Subject: [AccessD] Using Dates Message-ID: I prefer not to spend a day fiddling with a spreadsheet to get the job done, so I built code to create the date dimension tables I use. I tweak the code for the particular application because not everyone uses the same Fiscal year, for instance, and some have other date divisions peculiar to that client. OK, so it took a day to build the code, but it doesn't take a day for each date dimension table I ever create. :-} Ralph, of course, is the datawarehouse guru, and I swear by his books. I just happen to disagree with him on this particular issue ... Not exactly a first for me and the experts. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Sunday, February 01, 2004 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using Dates Hi Robert et all Maybe Ralph Kimball is a lurker here? I guess not - then he wouldn't suggest fiddling with a spreadsheet to create the table ... Anyway, here is his latest design tip. It is not on-line so I cannot pass a link. /gustav ======================================================== KIMBALL UNIVERSITY DESIGN TIP #51 ======================================================== LATEST THINKING ON TIME DIMENSION TABLES Virtually every fact table has one or more time related dimension foreign keys. Measurements are defined at specific points of time and most measurements are repeated over time. The most common and useful time dimension is the calendar date dimension with the granularity of a single day. This dimension has surprisingly many attributes. Only a few of these attributes (such as month name and year) can be generated directly from an SQL date-time expression. Holidays, work days, fiscal periods, week numbers, last day of month flags, and other navigational attributes must be embedded in the calendar date dimension and all date navigation should be implemented in applications by using the dimensional attributes. The calendar date dimension has some very unusual properties. It is one of the only dimensions that is completely specified at the beginning of the data warehouse project. It also doesn't have a conventional source. The best way to generate the calendar date dimension is to spend an afternoon with a spreadsheet and build it by hand. Ten years worth of days is less than 4000 rows. Every calendar date dimension needs a Date Type attribute and a Full Date attribute. These two fields comprise the natural key of the dimension table. The Date Type attribute almost always has the value "date" but there must be at least one record that handles the special non-applicable date situation where the recorded date is inapplicable, corrupted, or hasn't happened yet. The foreign key references in the fact table in these cases must point to a non-date date in the calendar date table! You need at least one of these special records in the calendar date table, but you may want to distinguish several of these unusual conditions. For the inapplicable date case, the value of the Date Type is "inapplicable" or "NA". The Full Date attribute is a full relational date stamp, and it takes on the legitimate value of null for the special cases described above. Remember that the foreign key in a fact table can never be null, since by definition that violates referential integrity. The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. In some fact tables time is measured below the level of calendar day, down to minute or even second. One cannot build a time dimension with every minute second of every day represented. There are more than 31 million seconds in a year! We want to preserve the powerful calendar date dimension and simultaneously support precise querying down to the minute or second. We may also want to compute very precise time intervals by comparing the exact time of two fact table records. For these reasons we recommend a design with a calendar date dimension foreign key and a full SQL date-time stamp, both in the fact table. The calendar day component of the precise time remains as a foreign key reference to our familiar calendar day dimension. But we also embed a full SQL date-time stamp directly in the fact table for all queries requiring the extra precision. Think of this as special kind of fact, not a dimension. In this interesting case, it is not useful to make a dimension with the minutes or seconds component of the precise time stamp, because the calculation of time intervals across fact table records becomes too messy when trying to deal with separate day and time-of-day dimensions. In previous Toolkit books, we have recommended building such a dimension with the minutes or seconds component of time as an offset from midnight of each day, but we have come to realize that the resulting end user applications became too difficult, especially when trying to compute time spans. Also, unlike the calendar day dimension, there are very few descriptive attributes for the specific minute or second within a day. If the enterprise has well defined attributes for time slices within a day, such as shift names, or advertising time slots, an additional time-of-day dimension can be added to the design where this dimension is defined as the number of minutes (or even seconds) past midnight. Thus this time-of-day dimension would either have 1440 records if the grain were minutes or 86,400 records if the grain were seconds. The presence of such a time-of-day dimension does not remove the need for the SQL date-time stamp described above. Ralph Kimball Ralph at ralphkimball.com (c) Copyright Ralph Kimball Group, 2004. ===================================================== If you have colleagues and friends who would also like to receive Kimball University Design Tips, please have them email Nancy (nancy at ralphkimball.com) with "add" in the subject line. When you join, you will automatically be sent the 2003 Design Tips to date. The Design Tips published during 2000 through 2002 are available at www.ralphkimball.com. --- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Mon Feb 2 10:33:45 2004 From: pharold at proftesting.com (Perry Harold) Date: Mon, 2 Feb 2004 11:33:45 -0500 Subject: [AccessD] Code Not Working in XP In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0CFE0@cntexchange.pgdp.usec.com> Message-ID: <007501c3e9aa$53c30df0$082da8c0@D58BT131> We're using Server 2003 and AXP. When I set up the share I had to give individual permission (in addition to having them as members of a group like Authorized Users) to each user that needed access to the share before everything ran smoothly. Those permissions are on the server side not the user side. I can't say that's the definitive solution because as a small shop we usually make settings that when they work that's what we use and there might be a much better way but no one has the time research it. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Friday, January 30, 2004 12:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP Do you know what needed to be changed with the permissions? I talked to IT about the problem and they do not know what I am talking about. They said they need specifics. I do not know enough about XP or how they have the permissions set up to give them an answer. Virginia -----Original Message----- From: Perry Harold [mailto:pharold at proftesting.com] Sent: Thursday, January 29, 2004 6:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP Maybe something with the permission settings on the XP boxes. Had something similar that worked great with 98 & did the same thing as yours when switching to XP until some permissions were set to allow them access to the shared resources. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Thursday, January 29, 2004 11:29 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Code Not Working in XP I have been using the code shown below to access data on our Intranet. The code matches a field entry in the database and looks up the details. In this example it finds a stock number. Problem: The code does not work for users that are running XP. It does not do anything, it will not even try to access the web. They click the button and nothing happens. What can I do to correct this for users of XP? Virginia _____ strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber If Dir(strFile) = "" Then strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 10:43:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:43:48 -0800 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: >>There's no way these features aren't offered in Access. ROTFL Sorry, but those are famous last words! In fact, many of the things you can do in VB aren't available in Access forms ... And vice versa. Access controls are often more like ActiveX controls than the ones used in VB. Have you tried using a product like IrfanView to get a transparent background? I'm just blue-skying here because I've never seriously tried to play with buton icons in Access. It's simply been too much work for the result. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Friday, January 30, 2004 8:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2003: Masked bitmaps as button images? All, I'm trying to create some pretty navigation buttons for a client. I have a great set of icons to use, but cannot figure out how to tell Access to render each icon's mask color as transparant. This works like a chamr in VB, of course - but I need it to work in Access as well! I thought that the ImageList controls might work, but then I discovered that although I can put my icons into the ImageList, I cannot assign those images to any of my buttons. I've got to be doing something wrong. There's no way these features aren't offered in Access. Heeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 10:56:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:56:38 -0800 Subject: [AccessD] RE: Using Dates Message-ID: Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >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 AIG.com Mon Feb 2 11:06:37 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 2 Feb 2004 12:06:37 -0500 Subject: [AccessD] Code Not Working in XP Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7D91@xlivmbx12.aig.com> What is this code supposed to be doing? See my comment within it... strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber ' This next line is feeding a URL for a web page to the Dir() function ??? ' Surely it always returns "" or errors out? If Dir(strFile) = "" Then ' The effect of the next line is to set strFile equal to what it was already set to two lines of code earlier. strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) So, as the If Then part of this code does not actually do anything, the problem must be either in the fHandleFile routine or in you error handler (if there is one). Have you tried stepping through the code so see what is failing to run? Also, if you use fHandleFile() as the function that it actually is, you'll be able to see any error message it returns. e.g. MsgBox fHandleFile(strFile, WIN_MAX) Lambert > -----Original Message----- > From: Perry Harold [SMTP:pharold at proftesting.com] > Sent: Monday, February 02, 2004 11:34 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > We're using Server 2003 and AXP. When I set up the share I had to give > individual permission (in addition to having them as members of a group > like > Authorized Users) to each user that needed access to the share before > everything ran smoothly. Those permissions are on the server side not the > user side. I can't say that's the definitive solution because as a small > shop we usually make settings that when they work that's what we use and > there might be a much better way but no one has the time research it. > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Friday, January 30, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > > Do you know what needed to be changed with the permissions? I talked to IT > about the problem and they do not know what I am talking about. They said > they need specifics. I do not know enough about XP or how they have the > permissions set up to give them an answer. > > Virginia > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Thursday, January 29, 2004 6:35 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > > Maybe something with the permission settings on the XP boxes. Had > something > similar that worked great with 98 & did the same thing as yours when > switching to XP until some permissions were set to allow them access to > the > shared resources. > > Perry Harold > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Thursday, January 29, 2004 11:29 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Code Not Working in XP > > > I have been using the code shown below to access data on our Intranet. The > code matches a field entry in the database and looks up the details. In > this > example it finds a stock number. > > Problem: The code does not work for users that are running XP. It does not > do anything, it will not even try to access the web. They click the button > and nothing happens. > > What can I do to correct this for users of XP? > > Virginia > _____ > > > strPath = " http://web.com/vr.asp?xml=orafin%2Stock= > > strFile = strPath & Me.StockNumber > > If Dir(strFile) = "" Then > strFile = strPath & Me.StockNumber > End If > > Call fHandleFile(strFile, WIN_MAX) > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 2 11:10:48 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 11:10:48 -0600 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <4AE733BBEEE72647A9F950F7275F262E112774@nt04.karta.com> Another alternative is FMS Total Access Components. Graphics for buttons are available, as well as changing background colors. Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Masked bitmaps as button images? >>There's no way these features aren't offered in Access. ROTFL Sorry, but those are famous last words! In fact, many of the things you can do in VB aren't available in Access forms ... And vice versa. Access controls are often more like ActiveX controls than the ones used in VB. Have you tried using a product like IrfanView to get a transparent background? I'm just blue-skying here because I've never seriously tried to play with buton icons in Access. It's simply been too much work for the result. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Friday, January 30, 2004 8:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2003: Masked bitmaps as button images? All, I'm trying to create some pretty navigation buttons for a client. I have a great set of icons to use, but cannot figure out how to tell Access to render each icon's mask color as transparant. This works like a chamr in VB, of course - but I need it to work in Access as well! I thought that the ImageList controls might work, but then I discovered that although I can put my icons into the ImageList, I cannot assign those images to any of my buttons. I've got to be doing something wrong. There's no way these features aren't offered in Access. Heeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:18:56 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:18:56 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD22@DISABILITYINS01> lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 2 11:21:57 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 2 Feb 2004 10:21:57 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <184670-22004212172157830@christopherhawkins.com> Get ready, Charlotte...I DID IT!! Just not with the native Access command buttons. ;) I got myself a copy of the SoftBttn.ocx control - it gives you one of those Access 97-style toolbar buttons that appears flat until you float over it; then it pops up. It has properties that allow you do define a mask color; you tell it what color should be transparant, and the control takes care of it for you. It's nice. I've actually used the control before, just not since 2000 or so, when I switched over to doing ASP 3.0 exclusively. I'd forgotten all about it. I put a SoftBttn.ocx demo out on my website; this is probably old news to most of you, but I'm happy to have re-discovered this control. Anyone who wants to play with the SoftBttn control can find the sample file at http://www.christopherhawkins.com/softbttndemoA2003.zip. And yes, I did the crappy button icons myself. :P -Christopher- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] A2003: Masked bitmaps as button images? Date: Mon, 2 Feb 2004 08:43:48 -0800 >>>There's no way these features aren't offered in Access. > >ROTFL > >Sorry, but those are famous last words! In fact, many of the things >you >can do in VB aren't available in Access forms ... And vice versa. >Access controls are often more like ActiveX controls than the ones >used >in VB. Have you tried using a product like IrfanView to get a >transparent background? I'm just blue-skying here because I've never >seriously tried to play with buton icons in Access. It's simply been >too much work for the result. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Friday, January 30, 2004 8:42 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A2003: Masked bitmaps as button images? > > >All, > >I'm trying to create some pretty navigation buttons for a client. I >have a great set of icons to use, but cannot figure out how to tell >Access to render each icon's mask color as transparant. > >This works like a chamr in VB, of course - but I need it to work in >Access as well! > >I thought that the ImageList controls might work, but then I >discovered >that although I can put my icons into the ImageList, I cannot assign >those images to any of my buttons. > >I've got to be doing something wrong. There's no way these features >aren't offered in Access. > >Heeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 2 11:35:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 09:35:36 -0800 Subject: [AccessD] RE: Using Dates Message-ID: The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:55:35 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:55:35 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD23@DISABILITYINS01> Charlotte, >I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. Per the quoted text from Gustav: (Ralph Kimball?) The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:57:19 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:57:19 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD24@DISABILITYINS01> Charlotte, >The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. Yes, but many people use a single field to hold a date / time, which wouldn't index cleanly into the date table. The time would have to be stripped off before the join. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Mon Feb 2 12:12:19 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Mon, 02 Feb 2004 12:12:19 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: Thanks to you and to Gustav for giving me more good ideas. I guess your question kind of goes back to my original one. If it looks at the whole date before giving me the "1" for the month, then I'll get Jan 05 data rather than Jan 04 data. I guess the question is senseless since both Joe and Gustav have given me good alternatives, but I may still have to plug some fake data just to see what I get back. I have been following the dates table discussion and I've got another (stupid) question. Except for fiscal years and holiday schedule modifications, is this not the type of table that one of the people who has already spent the time to create it could just put out for everyone to use? I'm afraid I started following the discussion a bit late, so maybe I missed something. It's not that I mind a day spent creating something really useful, it just seems a bit like re-inventing the wheel. Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Fri, 30 Jan 2004 23:39:52 -0600 Gina, What are you going to do when the year changes and you have data for 2 January's in 2 years? The year has to be part of what you us in the query. Try using the date dimension table technique I have been talking about and it will smooth things out for you and dates (well dates in the database anyway ;-)) ). Robert At 02:27 PM 1/30/2004 -0600, you wrote: >From: Gina Hoopes >To: AccessD at databaseadvisors.com >Date: Friday, January 30, 2004 1:26 PM >Subject: [AccessD] DatePart Question > > >This may be a dumb question, but here goes. I have a table full of data >that I need to query, and what I need returned is the data from last month. >If I query the Max on DatePart("m",PeriodEnd) on the data that's there now, >I get a 12 which is correct (from 12/31/03). But, next month we will have >added January '04 data, so the latest data in the PeriodEnd field will be >1/31/04, but when I query for just the month, am I going to get a 1? I >guess I'm asking if the Max function is still going to look at the whole >date and return just the DatePart of "m", or will 12 be considered alone, >and therefore greater than 1? > >I'm always open to an easier method, if you've got any ideas. > >Thanks, >Gina Thanks, Gina _________________________________________________________________ Scope out the new MSN Plus Internet Software ? optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 From HollisVJ at pgdp.usec.com Mon Feb 2 12:17:44 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 02 Feb 2004 12:17:44 -0600 Subject: [AccessD] Code Not Working in XP Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D00A@cntexchange.pgdp.usec.com> Ok, I took out the "If..." and you're right it works fine without it. In fact it now works in XP. It would stop at the If statement with the error "bad file name or number". It seems funny I have been using it all this time in Win98 & it has worked. Thank you very much! I am glad it was such a simple fix too. Va. -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, February 02, 2004 11:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP What is this code supposed to be doing? See my comment within it... strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber ' This next line is feeding a URL for a web page to the Dir() function ??? ' Surely it always returns "" or errors out? If Dir(strFile) = "" Then ' The effect of the next line is to set strFile equal to what it was already set to two lines of code earlier. strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) So, as the If Then part of this code does not actually do anything, the problem must be either in the fHandleFile routine or in you error handler (if there is one). Have you tried stepping through the code so see what is failing to run? Also, if you use fHandleFile() as the function that it actually is, you'll be able to see any error message it returns. e.g. MsgBox fHandleFile(strFile, WIN_MAX) Lambert From andy at minstersystems.co.uk Mon Feb 2 12:29:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 2 Feb 2004 18:29:34 -0000 Subject: [AccessD] macro can't find function In-Reply-To: <3560.24.187.36.171.1075682658.squirrel@heck.bay9.com> Message-ID: <051501c3e9ba$85429cf0$b274d0d5@minster33c3r25> Oleg, I think that may be it. Seem, to recall having seen that before. Try renaming module to basXXXX, which is a standard naming convention, or mdlxxxx Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: 02 February 2004 00:44 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] macro can't find function > > > hmm, the function when run by itself works fine. Could the > problem possibly bee that the module in which it is located > is called the same name as function ? > > > Well all I can think is a) rename the function (could BreakName > > possibly be a reserved word?) and/or b) decompile, repair etc to be > > sure it isn't just glitchy. Other than that I cn't see what the > > problem is. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> Oleg_123 at xuppa.com > >> Sent: 30 January 2004 16:47 > >> To: accessd at databaseadvisors.com > >> Subject: RE: [AccessD] macro can't find function > >> > >> > >> still gives me the same error :--( > >> > >> > >> > >> > Beat me to it Lambert :-) > >> > > >> > Andy Lacey > >> > http://www.minstersystems.co.uk > >> > > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Heenan, > >> Lambert > >> >> Sent: 29 January 2004 17:08 > >> >> To: 'Access Developers discussion and problem solving' > >> >> Subject: RE: [AccessD] macro can't find function > >> >> > >> >> > >> >> I'd suggest you get rid of the space between "BreakName" and the > >> opening parentheses. > >> >> > >> >> Lambert > >> >> > >> >> > -----Original Message----- > >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > >> >> > Sent: Thursday, January 29, 2004 11:52 AM > >> >> > To: accessd at databaseadvisors.com > >> >> > Subject: RE: [AccessD] macro can't find function > >> >> > > >> >> > it's public (of course ;-) > >> >> > and this is how it looks -- BreakName () > >> >> > > >> >> > i decided to try to make that macro call another macro > >> >> which contains > >> >> > the function > >> >> > > >> >> > > Oleg > >> >> > > > >> >> > > In a macro the function has to be expressed as fn(), ie. > >> >> no = sign > >> >> > > before it but must have the parentheses. May be worth > >> >> checking. Oh > >> >> > > and the function must of course be Public. > >> >> > > > >> >> > > Andy Lacey > >> >> > > http://www.minstersystems.co.uk > >> >> > > > >> >> > >> -----Original Message----- > >> >> > >> From: accessd-bounces at databaseadvisors.com > >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> >> Oleg_123 at xuppa.com > >> >> > >> Sent: 29 January 2004 16:12 > >> >> > >> To: accessd at databaseadvisors.com > >> >> > >> Subject: RE: [AccessD] macro can't find function > >> >> > >> > >> >> > >> > >> >> > >> Group, > >> >> > >> > >> >> > >> I have a long macro that opens several queries, at the end > >> >> > >> its > >> >> suppose to RunCode - function, however it gives me an > message "The > >> >> > >> expression you entered has a function name that xxx > >> can't find". > >> >> When I run that function separetely it works fine, and > the name is > >> >> > >> spelled correctly since i didn't type it but selected it > >> >> > >> using > >> >> their device what should i do ? > >> >> > >> > >> >> > >> > >> >> > >> ----------------------------------------- > >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. > >> >> > >> http://www.xuppa.com/news/?link=webmail > >> >> > >> > >> >> > >> > >> >> > >> > >> >> > >> _______________________________________________ > >> >> > >> AccessD mailing list > >> >> > >> AccessD at databaseadvisors.com > >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> >> > >> Website: > >> >> > >> http://www.databaseadvisors.com > >> >> > >> > >> >> > >> > >> >> > > > >> >> > > _______________________________________________ > >> >> > > AccessD mailing list > >> >> > > AccessD at databaseadvisors.com > >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd > >> >> > > Website: http://www.databaseadvisors.com > >> >> > > >> >> > > >> >> > > >> >> > ----------------------------------------- > >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. > >> >> > http://www.xuppa.com/news/?link=webmail > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > AccessD mailing list > >> >> > AccessD at databaseadvisors.com > >> >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> >> > Website: http://www.databaseadvisors.com > >> >> _______________________________________________ > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> >> Website: > >> >> http://www.databaseadvisors.com > >> >> > >> >> > >> > > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > >> > >> > >> ----------------------------------------- > >> Get Breaking News from CNN, ABC, NBC, CBS Now. > >> http://www.xuppa.com/news/?link=webmail > >> > >> > >> > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> Website: > >> http://www.databaseadvisors.com > >> > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From serbach at new.rr.com Mon Feb 2 13:00:47 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 2 Feb 2004 13:00:47 -0600 Subject: [AccessD] Merging photos from Access to Word Message-ID: <20040202130047.1598301221.serbach@new.rr.com> Kathryn, I understand what you're doing. I'm more of a WordPerfect guy myself. In looking through the WordPerfect Merge commands I found EMBEDMACRO. Now, I've not played with this sort of thing myself. I tried a quick macro that inserted a graphic into a document and then went back and edited the macro and I could see the file name. It seems to me that you could use EMBEDMACRO in your Merge codes to insert the graphic given in the file name in your Photo column. It's a start anyway. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. From cfoust at infostatsystems.com Mon Feb 2 13:17:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 11:17:29 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: I use code to create them and to append to them, but I modify that code to meet the particular needs of a client, and I don't bother with holidays, since that has never been part of the specification. If you want a copy of the module that contains the routines I use, I'll be glad to send it to you to play with if you email me. I haven't looked at it in about 4 years, so I make no guarantees. Charlotte Foust -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Monday, February 02, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: DatePart Question Thanks to you and to Gustav for giving me more good ideas. I guess your question kind of goes back to my original one. If it looks at the whole date before giving me the "1" for the month, then I'll get Jan 05 data rather than Jan 04 data. I guess the question is senseless since both Joe and Gustav have given me good alternatives, but I may still have to plug some fake data just to see what I get back. I have been following the dates table discussion and I've got another (stupid) question. Except for fiscal years and holiday schedule modifications, is this not the type of table that one of the people who has already spent the time to create it could just put out for everyone to use? I'm afraid I started following the discussion a bit late, so maybe I missed something. It's not that I mind a day spent creating something really useful, it just seems a bit like re-inventing the wheel. Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Fri, 30 Jan 2004 23:39:52 -0600 Gina, What are you going to do when the year changes and you have data for 2 January's in 2 years? The year has to be part of what you us in the query. Try using the date dimension table technique I have been talking about and it will smooth things out for you and dates (well dates in the database anyway ;-)) ). Robert At 02:27 PM 1/30/2004 -0600, you wrote: >From: Gina Hoopes >To: AccessD at databaseadvisors.com >Date: Friday, January 30, 2004 1:26 PM >Subject: [AccessD] DatePart Question > > >This may be a dumb question, but here goes. I have a table full of >data that I need to query, and what I need returned is the data from >last month. If I query the Max on DatePart("m",PeriodEnd) on the data >that's there now, I get a 12 which is correct (from 12/31/03). But, >next month we will have added January '04 data, so the latest data in >the PeriodEnd field will be 1/31/04, but when I query for just the >month, am I going to get a 1? I guess I'm asking if the Max function >is still going to look at the whole date and return just the DatePart >of "m", or will 12 be considered alone, and therefore greater than 1? > >I'm always open to an easier method, if you've got any ideas. > >Thanks, >Gina Thanks, Gina _________________________________________________________________ Scope out the new MSN Plus Internet Software - optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 13:17:37 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 14:17:37 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <20040202130047.1598301221.serbach@new.rr.com> References: <20040202130047.1598301221.serbach@new.rr.com> Message-ID: <48791.12.3.132.98.1075749457.squirrel@heck.bay9.com> Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Mark.Mitsules at ngc.com Mon Feb 2 13:22:43 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 2 Feb 2004 14:22:43 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark From lists at theopg.com Mon Feb 2 13:31:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 19:31:54 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <184670-22004212172157830@christopherhawkins.com> Message-ID: <000001c3e9c3$411b5270$b00d6bd5@netboxxp> Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark From Mark.Mitsules at ngc.com Mon Feb 2 13:35:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 2 Feb 2004 14:35:18 -0500 Subject: [AccessD] [OT] Maximum length of a string value in the Regist ry Message-ID: http://support.microsoft.com/default.aspx?scid=kb;EN-US;256986 This may help...watch for wrap. Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Monday, February 02, 2004 2:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] [OT] Maximum length of a string value in the Registry Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 14:17:06 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 15:17:06 -0500 (EST) Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <000001c3e9c3$411b5270$b00d6bd5@netboxxp> References: <184670-22004212172157830@christopherhawkins.com> <000001c3e9c3$411b5270$b00d6bd5@netboxxp> Message-ID: <48862.12.3.132.98.1075753026.squirrel@heck.bay9.com> You mean how many characters ? Thereotically about 2 billion, but it obviously depends on your computer & its memory constraints integer is from -32,768 to 32,767 > Hello... > > Does anyone know how many characters can safely be stored as s string in > the registry? > > Cheers > > Mark > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From lists at theopg.com Mon Feb 2 14:24:48 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 20:24:48 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: Message-ID: <000801c3e9ca$a66e06c0$b00d6bd5@netboxxp> Perfect... Thanks Mark Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark S. (Newport News) Sent: 02 February 2004 19:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] [OT] Maximum length of a string value in the Registry http://support.microsoft.com/default.aspx?scid=kb;EN-US;256986 This may help...watch for wrap. Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Monday, February 02, 2004 2:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] [OT] Maximum length of a string value in the Registry Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 14:29:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 12:29:49 -0800 Subject: [AccessD] RE: Using Dates Message-ID: I'm not even sure what Ralph is saying there, and it flies in the face of what he does in some of his books, so I have no answer for you, John. Keep in mind, though, that datawarehouses are indexed somewhat differently from transactional databases, so that may be where the confusion is coming in. If you were using surrogate keys and meaningless values as the PK, the dates in the main records would need to be inserted *from* the date table, and that isn't generally the way the thing is used. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates Charlotte, >I'm not sure what you mean about the meaningless pk in this regard. >You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. Per the quoted text from Gustav: (Ralph Kimball?) The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Mon Feb 2 14:34:06 2004 From: pharold at proftesting.com (Perry Harold) Date: Mon, 2 Feb 2004 15:34:06 -0500 Subject: [AccessD] passing a value from report to form In-Reply-To: <48791.12.3.132.98.1075749457.squirrel@heck.bay9.com> Message-ID: <007e01c3e9cb$e790b840$082da8c0@D58BT131> How about ReportField=Forms![FormName]![FormField] Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] passing a value from report to form Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Feb 2 14:35:35 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 20:35:35 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <48862.12.3.132.98.1075753026.squirrel@heck.bay9.com> Message-ID: <000901c3e9cc$23e8b7c0$b00d6bd5@netboxxp> Thanks Oleg Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: 02 February 2004 20:17 To: accessd at databaseadvisors.com Subject: Re: [AccessD] [OT] Maximum length of a string value in the Registry You mean how many characters ? Thereotically about 2 billion, but it obviously depends on your computer & its memory constraints integer is from -32,768 to 32,767 > Hello... > > Does anyone know how many characters can safely be stored as s string > in the registry? > > Cheers > > Mark > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Feb 2 15:23:20 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 2 Feb 2004 16:23:20 -0500 Subject: [AccessD] passing a value from report to form References: <007e01c3e9cb$e790b840$082da8c0@D58BT131> Message-ID: <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> Are you opening the report from the form? If so, you can use OpenArgs -- 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs in reports came later than the form's version. Susan H. > How about ReportField=Forms![FormName]![FormField] > > Perry From Oleg_123 at xuppa.com Mon Feb 2 15:41:46 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:41:46 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> References: <007e01c3e9cb$e790b840$082da8c0@D58BT131> <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> Message-ID: <48984.12.3.132.98.1075758106.squirrel@heck.bay9.com> in 2000 yes, in 97 - no :--( no way to do it without that ? > Are you opening the report from the form? If so, you can use OpenArgs -- > 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs > in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Mon Feb 2 15:43:25 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 13:43:25 -0800 Subject: [AccessD] passing a value from report to form Message-ID: AXP was the first version that had an OpenArgs for reports. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, February 02, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] passing a value from report to form Are you opening the report from the form? If so, you can use OpenArgs -- 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs in reports came later than the form's version. Susan H. > How about ReportField=Forms![FormName]![FormField] > > Perry _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 2 15:49:56 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 15:49:56 -0600 Subject: [AccessD] passing a value from report to form Message-ID: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> Perry is correct. I do this all the time. This is especially useful to put the "To" and "From" dates for the report. Jim -----Original Message----- From: Perry Harold [mailto:pharold at proftesting.com] Sent: Monday, February 02, 2004 2:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] passing a value from report to form How about ReportField=Forms![FormName]![FormField] Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] passing a value from report to form Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 15:52:55 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:52:55 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: References: Message-ID: <48813.12.3.132.98.1075758775.squirrel@heck.bay9.com> well at home I have OpenArgs, but.. I don't really need this appl at home. can this be done using where ? in this fashion -- Dim stDocName As String Dim ddd As String stDocName = "Carol2" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , ddd > AXP was the first version that had an OpenArgs for reports. > > Charlotte Foust > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, February 02, 2004 1:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] passing a value from report to form > > > Are you opening the report from the form? If so, you can use OpenArgs -- > 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs > in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Mon Feb 2 15:59:17 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:59:17 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> Message-ID: <48760.12.3.132.98.1075759157.squirrel@heck.bay9.com> what version are we talking about ? and where should I put it. OpenArgs is not available.. stDocName = "Carol2" strSQL = "[employee number] = '" & Me!employeenumber & "'" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , strSQL > > Perry is correct. > I do this all the time. > This is especially useful to put the "To" and "From" dates for the > report. > > Jim > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Monday, February 02, 2004 2:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] passing a value from report to form > > > How about ReportField=Forms![FormName]![FormField] > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 02, 2004 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] passing a value from report to form > > > Still can't figure out how to pass a value (not related to any table) > user selects on a form to a report. Any suggestions ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 2 16:06:26 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 16:06:26 -0600 Subject: [AccessD] passing a value from report to form Message-ID: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> I've done it for A97 and A2K. Put it directly into the Control Source of the Object in the report. For example: I have a form with three date fields. Begin Date, End Date and Annual (picks the entire year) I have one control at the top of the report for dates. Below is what's in the control source: =IIf(IsNull([Forms]![frmRosterDatesSelect].[BeginDate]),"Calendar Year: "+Str([Forms]![frmRosterDatesSelect].[AnnualYear]),"Between: "+Str([Forms]![frmRosterDatesSelect].[BeginDate])+" - "+Str([Forms]![frmRosterDatesSelect].[EndDate])) HTH Jim -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 02, 2004 3:59 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] passing a value from report to form what version are we talking about ? and where should I put it. OpenArgs is not available.. stDocName = "Carol2" strSQL = "[employee number] = '" & Me!employeenumber & "'" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , strSQL > > Perry is correct. > I do this all the time. > This is especially useful to put the "To" and "From" dates for the > report. > > Jim > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Monday, February 02, 2004 2:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] passing a value from report to form > > > How about ReportField=Forms![FormName]![FormField] > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 02, 2004 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] passing a value from report to form > > > Still can't figure out how to pass a value (not related to any table) > user selects on a form to a report. Any suggestions ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 16:12:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 14:12:45 -0800 Subject: [AccessD] passing a value from report to form Message-ID: No. The WhereCondition filters the records in the report, and that isn't what you're trying to do. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 02, 2004 1:53 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] passing a value from report to form well at home I have OpenArgs, but.. I don't really need this appl at home. can this be done using where ? in this fashion -- Dim stDocName As String Dim ddd As String stDocName = "Carol2" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , ddd > AXP was the first version that had an OpenArgs for reports. > > Charlotte Foust > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, February 02, 2004 1:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] passing a value from report to form > > > Are you opening the report from the form? If so, you can use OpenArgs > -- 2002 I think -- I really can't remember if it's in 2000 or not. > OpenArgs in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Tue Feb 3 01:07:19 2004 From: viner at eunet.yu (Ervin Brindza) Date: Tue, 3 Feb 2004 08:07:19 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <184670-22004212172157830@christopherhawkins.com> Message-ID: <00e501c3ea24$6fd10f40$0100a8c0@razvoj> > I put a SoftBttn.ocx demo out on my website; this is probably old > news to most of you, but I'm happy to have re-discovered this > control. Anyone who wants to play with the SoftBttn control can find > the sample file at > http://www.christopherhawkins.com/softbttndemoA2003.zip. Can somebody provide a good address where the whole wisdom about custom navigation buttons, background images, splash screens, design tricks etc. are collected? Like Jerry Whittle did for Fixing Corrupt Databases. Or is this a right moment for a team work :) TIA, Ervin From mastercafe at ctv.es Tue Feb 3 01:11:41 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 3 Feb 2004 08:11:41 +0100 Subject: [AccessD] Printer control In-Reply-To: <00e501c3ea24$6fd10f40$0100a8c0@razvoj> Message-ID: <000301c3ea24$f9d8c0c0$0200a8c0@servercafe> Anyone knows how put params to a report. We are using this code, but there are no difference in the final print. Set Application.Printer = Application.Printers(TmpImpresora) With Application.Printer .BottomMargin = sngBot .Copies = Me.InfCopias .TopMargin = sngTop .LeftMargin = sngLft .RightMargin = sngRgt If Me.InfOrienta = 1 Then .Orientation = acPRORLandscape Else .Orientation = acPRORPortrait End If End With We are looking if the sngTop, sngBot, etc... Are in TWIPS unit or milimeters... But don't know the problem. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Feb 3 01:23:19 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 3 Feb 2004 08:23:19 +0100 Subject: [AccessD] Printer control In-Reply-To: <000301c3ea24$f9d8c0c0$0200a8c0@servercafe> Message-ID: <000401c3ea26$a5a3fb30$0200a8c0@servercafe> Finally our problem was twips conversion.... 567 twips= 1 centimeter or 1440 twips= 1 inch or 20 twips=1 point. The next problem is COPIES that don't apply the number, only 1 each time. Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: martes, 03 de febrero de 2004 8:12 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Printer control Anyone knows how put params to a report. We are using this code, but there are no difference in the final print. Set Application.Printer = Application.Printers(TmpImpresora) With Application.Printer .BottomMargin = sngBot .Copies = Me.InfCopias .TopMargin = sngTop .LeftMargin = sngLft .RightMargin = sngRgt If Me.InfOrienta = 1 Then .Orientation = acPRORLandscape Else .Orientation = acPRORPortrait End If End With We are looking if the sngTop, sngBot, etc... Are in TWIPS unit or milimeters... But don't know the problem. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Tue Feb 3 03:48:24 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 3 Feb 2004 09:48:24 -0000 Subject: FW: [AccessD] Charts Message-ID: <61F915314798D311A2F800A0C9C83188047C6A4B@dibble.observatory.donnslaw.co.uk> Stephen I have finally had a go at this and I can't really see how you're making it work - yes I am sleepy and slow today. I can get my select query showing a row for each month; the trouble is, the row is blank apart from the month. To get the correct interpretation for the chart (i.e. for months where there is no data the value for each category axis should = 0) I am somehow going to have to create a row that contains the category and a value of 0 for each category for each month. I think I might go back to working out why getting data into Excel is so difficult :/ Roz -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: 30 January 2004 09:18 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Charts I don't know about sledgehammer but it sounds like it could do the job... :) -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: 29 January 2004 19:44 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Charts I see what you're up against - I've never been a fan of Access charts ..... Excel always excels .... I had a bit of a play, I'm afraid my approach has overtones of sledgehammer, but tell me what you think: I created a new local table called tblMasterMonths, one field called MM, type number (byte). Filled the table with 12 records, values 1, 2, 3, ... 12. To build the query underlying the Chart, I took the select query I had (the one that only shows me January) and altered it to include tblMasterMonths, with a Left Join from tblmasterMonths to the query that contains the raw data. This forces months with no data to still have an entry in the output. Use the output from this into the Chart. Stephen Bond > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Friday, 30 January 2004 7:04 a.m. > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > Sorry Stephen, I guess I wasn't clear enough > > I have the column headings set in my cross-tab query and that works > just fine. The problem is when I try to base a line graph on that > data... I just > can't see a way to do it. > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > Making an assumption here that you have a Cross-tab Q with the month > column header formatted MM ... > > * go to Query Properties, and put something like this in the 'Column > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > This will force a column heading for each month. > > Stephen Bond > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 5:54 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Charts > > > > > > Hi all. Hope everyone is well. > > > > I have a problem with a chart I need to display in Access. I used to > > do this by exporting data to Excel but the connection to Excel has > > been so slow and > > unstable that I am now trying to bring it within Access. > > > > The data I need to display is in a cross-tab query, where I have > > categories as the row header and months of the year as the column > > header. I need to > > show all the months even though we currently have data only > > for January. > > > > If I base the chart on the cross-tab, I cannot see a way to tell it > > that each column should be an axis entry. If I base the chart on a > > select query, > > it correctly allows me to set 'month' as an axis, but only > > shows me January. > > > > Can anyone help? > > > > TIA > > > > Roz > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Feb 3 04:21:11 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 3 Feb 2004 03:21:11 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <184670-22004223102111824@christopherhawkins.com> Well...there is this: http://www.activ8.com.au/interface/ But that mainly has pretty interfaces, which are not the same as "good" interfaces. -Christopher Hawkins- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Tue, 3 Feb 2004 08:07:19 +0100 >> I put a SoftBttn.ocx demo out on my website; this is probably old >> news to most of you, but I'm happy to have re-discovered this >> control. Anyone who wants to play with the SoftBttn control can >find >> the sample file at >> http://www.christopherhawkins.com/softbttndemoA2003.zip. > >Can somebody provide a good address where the whole wisdom about >custom >navigation buttons, background images, splash screens, design tricks >etc. >are collected? Like Jerry Whittle did for Fixing Corrupt Databases. >Or is >this a right moment for a team work :) >TIA, > Ervin > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From subs1847 at solution-providers.ie Tue Feb 3 06:42:00 2004 From: subs1847 at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Feb 2004 12:42:00 -0000 Subject: [AccessD] 80/20 and request for data Message-ID: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> Hello All, I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably I got no replies! So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be sales orders and products, items purchased by department, voters and the geographic region they came from, patients and their final bill, auto parts in inventory and the stock movements, financial stocks and their values over time, horses win / loses by jockey / racecourse or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. Thanks in advance for your help, Mark Breen Ireland From Mark.Mitsules at ngc.com Tue Feb 3 07:22:10 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 3 Feb 2004 08:22:10 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Group, I realize that my question yesterday was rather long-winded, but I am in search of someone who has experience in customizing report page numbers. I'm not talking about just changing the starting page number...I mean custom page numbering based on report grouping. No one has done this? Can anyone point out an online reference? Mark From jimdettman at earthlink.net Tue Feb 3 07:27:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 3 Feb 2004 08:27:06 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Feb 3 07:50:49 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 3 Feb 2004 07:50:49 -0600 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA2B@natexch.jenkens.com> One method I have used is to have a stored procedure with parameters. I can make a query that calls the stored procedure and gives the parameter. (This is not ADP compatible) I use the pass through query builder off of Dev Ashish's site to put the correct parameter into the query. This just builds the query I want with the correct parameter each time I use it. Debbie -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, January 31, 2004 8:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] was SQL Server queries - appending strings Thanks both of you. I have a client that purchased SQL Server and so it's time to get off the dime and learn this stuff. The client uses A2K. Now that I am changing to SQL Server I have to get the server doing more of the work - the whole point is of course to speed things up. For technical reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time in the near future, if at all. I have a main tabbed form which uses a multi-table join to get live data from a client / claim . The client wanted it that way so that the user could edit fields in either table. Views appear to be similar to tables, i.e. I can link to them and they show up in the table window. Is there a way to pass parameters to them? "Where LastName like col*" etc? ATM, I pull the whole recordset and then filter down to a single record. Not fast, but after the initial pull the filter proceeds at a reasonable rate. I can then "filter" to a specific claim reasonably fast. I would like to change this to actually ask SQL Server for a view of exactly one record each time they want to see a claim. Thus avoiding the "pull the entire recordset across the net, now pull the index, etc. This must be editable so AFAIK I cannot use stored procedures which would allow passing parameters. Because this is A2K AFAIK I cannot assign a recordset to the form's recordsource property. What are my options here? Do I have any? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, January 31, 2004 8:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server queries - appending strings On 31 Jan 2004 at 20:44, John W. Colby wrote: > In Access I often do things in queries like: [LastName] & ", " & [FirstName] > > This appears to be bad syntax in SQL Server. Is there an equivalent? > Lastname + ', ' + FirstName Text delimiters are single quotes. String concatenation uses "+". "&" performs an AND logical bitwise comparison. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From gustav at cactus.dk Tue Feb 3 07:57:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2004 14:57:34 +0100 Subject: [AccessD] 80/20 and request for data In-Reply-To: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> References: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> Message-ID: <7221800006.20040203145734@cactus.dk> Hi Mark I have anonymized a 15.000 record table covering some nationwide statistics and "cab'ed" it to your e-mail address. As I don't join the OT list I would be pleased if you bring your observations here - if the moderators allow? /gustav > Hello All, > I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those > of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. > Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic > regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. > I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably > I got no replies! > So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be > sales orders and products, > items purchased by department, > voters and the geographic region they came from, > patients and their final bill, > auto parts in inventory and the stock movements, > financial stocks and their values over time, > horses win / loses by jockey / racecourse > or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. > Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? > If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. > Thanks in advance for your help, > Mark Breen > Ireland > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From subs1847 at solution-providers.ie Tue Feb 3 09:13:44 2004 From: subs1847 at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Feb 2004 15:13:44 -0000 Subject: [AccessD] 80/20 and request for data References: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> <7221800006.20040203145734@cactus.dk> Message-ID: <00cd01c3ea68$5b7860e0$0101a8c0@D8TZHN0J> Hello Gustav, Thank you. I will post the results back onto AccessD, at least there is some MS Access code behind what I am doing. If the other listers are then annoyed, we can take it off line, if there is any other interest related to Access, so be it. Thanks for the file, I will look at it over the next couple of days and get back to you soon, Mark ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 03, 2004 1:57 PM Subject: Re: [AccessD] 80/20 and request for data > Hi Mark > > I have anonymized a 15.000 record table covering some nationwide > statistics and "cab'ed" it to your e-mail address. > > As I don't join the OT list I would be pleased if you bring your > observations here - if the moderators allow? > > /gustav > > > > Hello All, > > > I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those > > of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. > > > Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic > > regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. > > > I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably > > I got no replies! > > > So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be > > > sales orders and products, > > items purchased by department, > > voters and the geographic region they came from, > > patients and their final bill, > > auto parts in inventory and the stock movements, > > financial stocks and their values over time, > > horses win / loses by jockey / racecourse > > > or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. > > > Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? > > > If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. > > > Thanks in advance for your help, > > > Mark Breen > > Ireland > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 3 09:19:55 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:19:55 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> Message-ID: <50445.12.3.132.98.1075821595.squirrel@heck.bay9.com> thanks a lot Jim , it seems to be working :--) > I've done it for A97 and A2K. > Put it directly into the Control Source of the Object in the report. For > example: > I have a form with three date fields. Begin Date, End Date and Annual > (picks the entire year) > I have one control at the top of the report for dates. Below is what's > in the control source: > > =IIf(IsNull([Forms]![frmRosterDatesSelect].[BeginDate]),"Calendar Year: > "+Str([Forms]![frmRosterDatesSelect].[AnnualYear]),"Between: > "+Str([Forms]![frmRosterDatesSelect].[BeginDate])+" - > "+Str([Forms]![frmRosterDatesSelect].[EndDate])) > > HTH > Jim > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 02, 2004 3:59 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] passing a value from report to form > > > what version are we talking about ? and where should I put it. OpenArgs > is not available.. > > stDocName = "Carol2" > strSQL = "[employee number] = '" & Me!employeenumber & "'" > ddd = "[namee] = " & Me!Combo14.Value > > DoCmd.OpenReport stDocName, acPreview, , strSQL > > > > > > > >> >> Perry is correct. >> I do this all the time. >> This is especially useful to put the "To" and "From" dates for the >> report. >> >> Jim >> >> -----Original Message----- >> From: Perry Harold [mailto:pharold at proftesting.com] >> Sent: Monday, February 02, 2004 2:34 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] passing a value from report to form >> >> >> How about ReportField=Forms![FormName]![FormField] >> >> Perry >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: Monday, February 02, 2004 2:18 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] passing a value from report to form >> >> >> Still can't figure out how to pass a value (not related to any table) >> user selects on a form to a report. Any suggestions ? >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Tue Feb 3 09:21:57 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:21:57 -0500 (EST) Subject: [AccessD] referencing form control In-Reply-To: References: Message-ID: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> I can never remember this -- how do I reference a control ? on VB6 it would have been this way -- If Me.state.Text = "CA" Then stDocName = "screeningCA" Else stDocName = "screening49" End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Tue Feb 3 09:34:04 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:34:04 -0500 (EST) Subject: [AccessD] getting the value from list box In-Reply-To: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> References: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> Message-ID: <50328.12.3.132.98.1075822444.squirrel@heck.bay9.com> another question, to get the value selected in combo box I do comboname.value. How do I get the value selected in list box value ? there is no such option. Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Tue Feb 3 10:16:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 08:16:44 -0800 Subject: [AccessD] getting the value from list box Message-ID: ListboxName.Value works unless you're using a multiselect. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 7:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] getting the value from list box another question, to get the value selected in combo box I do comboname.value. How do I get the value selected in list box value ? there is no such option. Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 3 10:17:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 08:17:51 -0800 Subject: [AccessD] referencing form control Message-ID: Just drop the .Text property and use Me.state or Me.state.Value. You can only refer to the Text property of a control that has the focus in Access. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 7:22 AM To: accessd at databaseadvisors.com Subject: [AccessD] referencing form control I can never remember this -- how do I reference a control ? on VB6 it would have been this way -- If Me.state.Text = "CA" Then stDocName = "screeningCA" Else stDocName = "screening49" End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 3 10:35:26 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 11:35:26 -0500 (EST) Subject: [AccessD] referencing form control In-Reply-To: References: Message-ID: <50438.12.3.132.98.1075826126.squirrel@heck.bay9.com> thank you, in vb6 i had to put .text > Just drop the .Text property and use Me.state or Me.state.Value. You > can only refer to the Text property of a control that has the focus in > Access. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Tuesday, February 03, 2004 7:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] referencing form control > > > I can never remember this -- how do I reference a control ? on VB6 it > would have been this way -- > > If Me.state.Text = "CA" Then > stDocName = "screeningCA" > Else > stDocName = "screening49" > End If > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Tue Feb 3 10:47:04 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 3 Feb 2004 10:47:04 -0600 Subject: [AccessD] referencing form control Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE311@TAPPEEXCH01> FYI, there is a Text property, but it is only available when focus is on the control. It represents what was just typed into the control, which is not committed to the buffer (Value property) until the control loses focus. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 10:35 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] referencing form control thank you, in vb6 i had to put .text > Just drop the .Text property and use Me.state or Me.state.Value. You > can only refer to the Text property of a control that has the focus in > Access. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Tuesday, February 03, 2004 7:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] referencing form control > > > I can never remember this -- how do I reference a control ? on VB6 it > would have been this way -- > > If Me.state.Text = "CA" Then > stDocName = "screeningCA" > Else > stDocName = "screening49" > End If > -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Mark.Mitsules at ngc.com Tue Feb 3 11:29:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 3 Feb 2004 12:29:51 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Jim, Thank you so much for your help. After a bit of massaging, I was able to get exactly what I wanted. I can post the resulting code if anyone's interested. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, February 03, 2004 8:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 3 13:23:36 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 13:23:36 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402030946.i139kem11082@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203125932.029901b0@pop3.highstream.net> Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina From rl_stewart at highstream.net Tue Feb 3 13:31:42 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 13:31:42 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402030946.i139kem11082@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> Charlotte, What I think he is saying is that in 99% of the cases, the regular date dimension table will work. In a few cases, where the date may be missing and you want to get some kind of value for it, you cannot use the date itself as the key, thus the surrogate. The surrogate would be stored in the fact tables (another data warehousing concept, for those that do not know about them). That way when you hit an invalid or null date value, the date dimension table would be able to handle it in a predefined way. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 2 Feb 2004 12:29:49 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] RE: Using Dates >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I'm not even sure what Ralph is saying there, and it flies in the face >of what he does in some of his books, so I have no answer for you, John. >Keep in mind, though, that datawarehouses are indexed somewhat >differently from transactional databases, so that may be where the >confusion is coming in. If you were using surrogate keys and >meaningless values as the PK, the dates in the main records would need >to be inserted *from* the date table, and that isn't generally the way >the thing is used. > >Charlotte Foust From stephen at bondsoftware.co.nz Tue Feb 3 13:30:28 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 04 Feb 2004 08:30:28 +1300 Subject: [AccessD] Charts Message-ID: <70F3D727890C784291D8433E9C418F290885D8@server.bondsoftware.co.nz> Roz, I have sent you something off line. Stephen > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Tuesday, 3 February 2004 10:48 p.m. > To: AccessD (AccessD at databaseadvisors.com) > Subject: FW: [AccessD] Charts > > > Stephen > > I have finally had a go at this and I can't really see how > you're making it > work - yes I am sleepy and slow today. > > I can get my select query showing a row for each month; the > trouble is, the > row is blank apart from the month. To get the correct > interpretation for the > chart (i.e. for months where there is no data the value for > each category > axis should = 0) I am somehow going to have to create a row > that contains > the category and a value of 0 for each category for each month. > > I think I might go back to working out why getting data into > Excel is so > difficult :/ > > Roz > > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: 30 January 2004 09:18 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > I don't know about sledgehammer but it sounds like it could > do the job... :) > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 19:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > I see what you're up against - I've never been a fan of > Access charts ..... > Excel always excels .... > > I had a bit of a play, I'm afraid my approach has overtones > of sledgehammer, > but tell me what you think: > > I created a new local table called tblMasterMonths, one field > called MM, > type number (byte). Filled the table with 12 records, values > 1, 2, 3, ... > 12. > > To build the query underlying the Chart, I took the select > query I had (the > one that only shows me January) and altered it to include > tblMasterMonths, > with a Left Join from tblmasterMonths to the query that > contains the raw > data. This forces months with no data to still have an entry > in the output. > > Use the output from this into the Chart. > > Stephen Bond > > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 7:04 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Charts > > > > > > Sorry Stephen, I guess I wasn't clear enough > > > > I have the column headings set in my cross-tab query and that works > > just fine. The problem is when I try to base a line graph on that > > data... I just > > can't see a way to do it. > > > > -----Original Message----- > > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > > Sent: 29 January 2004 17:34 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Charts > > > > > > Making an assumption here that you have a Cross-tab Q with > the month > > column header formatted MM ... > > > > * go to Query Properties, and put something like this in the 'Column > > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > > > This will force a column heading for each month. > > > > Stephen Bond > > > > > -----Original Message----- > > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > > Sent: Friday, 30 January 2004 5:54 a.m. > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Charts > > > > > > > > > Hi all. Hope everyone is well. > > > > > > I have a problem with a chart I need to display in > Access. I used to > > > do this by exporting data to Excel but the connection to Excel has > > > been so slow and > > > unstable that I am now trying to bring it within Access. > > > > > > The data I need to display is in a cross-tab query, where I have > > > categories as the row header and months of the year as the column > > > header. I need to > > > show all the months even though we currently have data only > > > for January. > > > > > > If I base the chart on the cross-tab, I cannot see a way > to tell it > > > that each column should be an axis entry. If I base the chart on a > > > select query, > > > it correctly allows me to set 'month' as an axis, but only > > > shows me January. > > > > > > Can anyone help? > > > > > > TIA > > > > > > Roz > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 3 13:42:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2004 20:42:30 +0100 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> References: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> Message-ID: <542496076.20040203204230@cactus.dk> Hi Robert > What I think he is saying is that in 99% of the cases, the regular date > dimension table will work. In a few cases, where the date may be missing > and you want to get some kind of value for it, you cannot use the date > itself as the key, thus the surrogate. The surrogate would be stored in > the fact tables (another data warehousing concept, for those that do not > know about them). That way when you hit an invalid or null date value, the > date dimension table would be able to handle it in a predefined way. I noticed this too and wondered. How can one "hit an invalid date"? Do dataware house people not validate data before storing them? A missing date may, of course, be accepted, but an invalid? Where would that come from? /gustav >>I'm not even sure what Ralph is saying there, and it flies in the face >>of what he does in some of his books, so I have no answer for you, John. >>Keep in mind, though, that datawarehouses are indexed somewhat >>differently from transactional databases, so that may be where the >>confusion is coming in. If you were using surrogate keys and >>meaningless values as the PK, the dates in the main records would need >>to be inserted *from* the date table, and that isn't generally the way >>the thing is used. >> >>Charlotte Foust From hoopesg at hotmail.com Tue Feb 3 14:33:06 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 03 Feb 2004 14:33:06 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: I understand your logic. I made the assumption that it was a "one size fits all" data table. Thanks for explaining it. As to the original issue, the process I'm creating is an automatic one, so there is no opportunity for the user to choose anything. It simply needs to take last month's data and process it, and I think I'll be able to accomplish that quite well with what I've learned in the last few days. Thanks again, Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Tue, 03 Feb 2004 13:23:36 -0600 Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina Thanks, Gina _________________________________________________________________ There are now three new levels of MSN Hotmail Extra Storage! Learn more. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1 From jimdettman at earthlink.net Tue Feb 3 14:34:02 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 3 Feb 2004 15:34:02 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, Glad to hear your on your way! Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Tuesday, February 03, 2004 12:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Jim, Thank you so much for your help. After a bit of massaging, I was able to get exactly what I wanted. I can post the resulting code if anyone's interested. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, February 03, 2004 8:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 3 15:09:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 15:09:44 -0600 Subject: [AccessD] Re: A2K2 - Report Grouping - Page Numbering In-Reply-To: <200402031800.i13I0Km21608@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203150056.02979708@pop3.highstream.net> Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am in >search of someone who has experience in customizing report page numbers. >I'm not talking about just changing the starting page number...I mean custom >page numbering based on report grouping. No one has done this? Can anyone >point out an online reference? > >Mark From conny at qad.se Tue Feb 3 15:22:33 2004 From: conny at qad.se (Conny Johansson) Date: Tue, 3 Feb 2004 22:22:33 +0100 Subject: [AccessD] MSO.dll ? hints please Message-ID: <002501c3ea9b$d6dffda0$0400a8c0@QAD> Hi I have a small Access XP Runtime. Development machine = WinXP, Office97 DevEd, O2K Pro, OXP DevEd, O2003 Beta All SP's and uppdates OK Client running Win2K and Office 2K standard edition. App connect's to a SQL-server to collect some data (never write to server) App have been working earlier without problems but after minor changes an new Runtime I get the following error Running installed app on clients mahcine I get random errors and starts MS error-reporting tool. It says that mso.dll generated an error. I can't figure this out though I think I heard it mentionded somewhere. I tried konverting the app to previous version, didn't help Tried different config's in install--program, didn't help Mso.dll version is 10.0.4219.0 It says it's an Microsoft Office XP component. Should this matter in a Runtime install? Thank you Conny J --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-03 Tested on: 2004-02-03 22:22:33 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From DWUTKA at marlow.com Tue Feb 3 16:05:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 16:05:16 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227824@main2.marlow.com> Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 3 16:38:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 14:38:05 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Tue Feb 3 18:08:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 3 Feb 2004 16:08:36 -0800 Subject: [AccessD] Code Not Working in XP In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7D91@xlivmbx12.aig.com> Message-ID: Virginia, This may or may not be related to your issue but I came across an application that stopped working when the OS was upgraded (via clean install) from Windows 2000 to Windows XP. This was an app that did an HTTP post to a remote server with a VB front end and an Access MDB back end. The solution that worked for me today after many hours of messing around... Open IE and go to Tools, Internet Options and then click the Advanced tab and then check the box that says Use HTTP 1.1 through proxy connections Again this may or may not solve your issues but it's something you may want to look into. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Thursday, January 29, 2004 11:29 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Code Not Working in XP > > > I have been using the code shown below to access data on our Intranet. The > code matches a field entry in the database and looks up the details. In > this > example it finds a stock number. > > Problem: The code does not work for users that are running XP. It does not > do anything, it will not even try to access the web. They click the button > and nothing happens. > > What can I do to correct this for users of XP? > > Virginia > _____ > > > strPath = " http://web.com/vr.asp?xml=orafin%2Stock= > > strFile = strPath & Me.StockNumber > > If Dir(strFile) = "" Then > strFile = strPath & Me.StockNumber > End If > > Call fHandleFile(strFile, WIN_MAX) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 From d.dick at uws.edu.au Tue Feb 3 19:09:37 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 12:09:37 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <004201c3eabb$8f0fd7f0$48619a89@DDICK> Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With From cfoust at infostatsystems.com Tue Feb 3 19:39:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 17:39:03 -0800 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: Try specifying the CommandType for the Open. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Tuesday, February 03, 2004 5:10 PM To: AccessD List Subject: [AccessD] A2K: Can't update (ADO) Recordset Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 3 19:49:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 12:49:00 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: Message-ID: <009f01c3eac1$0fcc70b0$48619a89@DDICK> Hi Charlotte Many thanks for the response Sorry but I am a real luddite What does that mean ? CommandType gives me nothing in the help (Rarely ever does though) Darren ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 12:39 PM Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset > Try specifying the CommandType for the Open. > > Charlotte Foust > > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Tuesday, February 03, 2004 5:10 PM > To: AccessD List > Subject: [AccessD] A2K: Can't update (ADO) Recordset > > > Hello all > > Can anyone tell me why I get the following Error message when I try and > update the following record set? > ================================================= > Error Number 3251 > Current Recordset does not support updating. > This may be a limitation of the provider, or of the > selected locktype ================================================= > > Code... > Dim con As Object > Dim rs As Object > Dim sel_SQL As String > > Set con = Application.CurrentProject.Connection > > Set rs = CreateObject("ADODB.Recordset") > > > sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM > tblMyTable" _ > & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); > > rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks > > With rs > While Not .EOF > !FieldToBeUpdated = -1 > .MoveNext > Wend > End With > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 20:16:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 20:16:14 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF802227829@main2.marlow.com> Um, you'll need rs.Open sel_SQL, con, 1, 512 That 512 is Optimistic record locking. I think the default is 1, which is read-only. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, February 03, 2004 7:10 PM To: AccessD List Subject: [AccessD] A2K: Can't update (ADO) Recordset Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 3 20:44:16 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 13:44:16 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: <2F8793082E00D4119A1700B0D0216BF802227829@main2.marlow.com> Message-ID: <00d701c3eac8$c81edb10$48619a89@DDICK> Sigh Still don't work Now I get runtime error 3001 Arguments are of the wrong Type, are out of acceptable range, or are in conflict with one another. The the debug highlights the line... rs.Open sel_SQL, con, 1, 512 The field in the underlying table does exist. And is named correctly I dunno Darren ----- Original Message ----- From: To: Sent: Wednesday, February 04, 2004 1:16 PM Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset > Um, you'll need > > rs.Open sel_SQL, con, 1, 512 > > That 512 is Optimistic record locking. I think the default is 1, which is > read-only. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, February 03, 2004 7:10 PM > To: AccessD List > Subject: [AccessD] A2K: Can't update (ADO) Recordset > > > Hello all > > Can anyone tell me why I get the following Error message when I try > and update the following record set? > ================================================= > Error Number 3251 > Current Recordset does not support updating. > This may be a limitation of the provider, or of the > selected locktype > ================================================= > > Code... > Dim con As Object > Dim rs As Object > Dim sel_SQL As String > > Set con = Application.CurrentProject.Connection > > Set rs = CreateObject("ADODB.Recordset") > > > sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" > _ > & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); > > rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks > > With rs > While Not .EOF > !FieldToBeUpdated = -1 > .MoveNext > Wend > End With > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Feb 3 20:58:27 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 03 Feb 2004 18:58:27 -0800 Subject: [AccessD] MSO.dll ? hints please References: <002501c3ea9b$d6dffda0$0400a8c0@QAD> Message-ID: <40205FD3.1010301@shaw.ca> If you go to the DLL Hell er Help database you will see that version number comes from Office XP SP-2 http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion%2fdefault.asp%3fvartarget%3dmsdn Also some version of Visio have older versions of this dll.Perhaps a Visio install has overwritten it. This Dll also seems to handle office command bars. There are different versions of this dll for each version of office like mso97.dll Conny Johansson wrote: >Hi >I have a small Access XP Runtime. >Development machine = WinXP, Office97 DevEd, O2K Pro, OXP DevEd, O2003 Beta >All SP's and uppdates OK > >Client running Win2K and Office 2K standard edition. >App connect's to a SQL-server to collect some data (never write to server) > >App have been working earlier without problems but after minor changes an >new Runtime I get the following error >Running installed app on clients mahcine I get random errors and starts MS >error-reporting tool. >It says that mso.dll generated an error. I can't figure this out though I >think I heard it mentionded somewhere. >I tried konverting the app to previous version, didn't help >Tried different config's in install--program, didn't help >Mso.dll version is 10.0.4219.0 >It says it's an Microsoft Office XP component. Should this matter in a >Runtime install? >Thank you >Conny J > >--- >avast! Antivirus: Outbound message clean. >Virus Database (VPS): 2004-02-03 >Tested on: 2004-02-03 22:22:33 >avast! is copyright (c) 2000-2003 ALWIL Software. >http://www.avast.com > > > > > >------------------------------------------------------------------------ > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Feb 3 21:23:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 13:23:31 +1000 Subject: [AccessD] A2K: Can't update (ADO) Recordset In-Reply-To: <00d701c3eac8$c81edb10$48619a89@DDICK> Message-ID: <4020F253.23538.540007@localhost> On 4 Feb 2004 at 13:44, Darren DICK wrote: > Sigh > Still don't work > Now I get runtime error 3001 > Arguments are of the wrong Type, are out of acceptable range, > or are in conflict with one another. > The the debug highlights the line... > > rs.Open sel_SQL, con, 1, 512 > > The field in the underlying table does exist. And is named correctly > I dunno > 512 is *way* out of acceptable range ADBOB locktype constants are: adLockBatchOptistic = 1 adLockOptimistic = 3 (the one you want) adLockPessimistic = 2 AdLockReadOnly = 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From d.dick at uws.edu.au Tue Feb 3 21:46:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 14:46:42 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: <4020F253.23538.540007@localhost> Message-ID: <00e701c3ead1$80d31f10$48619a89@DDICK> Thank Stuart yes 3 was the answer Have a great day and many many thanks Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 2:23 PM Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 22:19:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 22:19:42 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF80222782D@main2.marlow.com> YIKES! sorry about that. I knew that. Sorry, been a little brain fried lately. Personal life is going somewhere decidedly down, in a hurry, and in a nice wicker handbasket. If you know what I mean. For future reference, the 512 I was thinking of, is the LAST argument, and it is for adCmdTableDirect. I usually use VB, and in doing so, the first option I use is keyset (which is 1), the second is either Read only or dynamic (1 and 3 respectively), and if I open a table directly, I have to tack on adCmdTableDirect. Now, when writing raw ASP, I use the numeric values, which is 1, 1 or 3, and nothing or 512. Unfortunately, since I do 99% of my db work in ASP with VB .dll's, I don't use the numeric values very often, in fact, had to look them up 2 months ago, cause it had been so long since I used them last. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, February 03, 2004 9:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset Thank Stuart yes 3 was the answer Have a great day and many many thanks Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 2:23 PM Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 22:20:11 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 22:20:11 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF80222782E@main2.marlow.com> Thanks for catching that Stuart! Massive brain fart! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, February 03, 2004 9:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset On 4 Feb 2004 at 13:44, Darren DICK wrote: > Sigh > Still don't work > Now I get runtime error 3001 > Arguments are of the wrong Type, are out of acceptable range, > or are in conflict with one another. > The the debug highlights the line... > > rs.Open sel_SQL, con, 1, 512 > > The field in the underlying table does exist. And is named correctly > I dunno > 512 is *way* out of acceptable range ADBOB locktype constants are: adLockBatchOptistic = 1 adLockOptimistic = 3 (the one you want) adLockPessimistic = 2 AdLockReadOnly = 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Feb 3 22:41:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 14:41:28 +1000 Subject: [AccessD] A2K: Can't update (ADO) Recordset In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222782E@main2.marlow.com> Message-ID: <40210498.7596.9B5C47@localhost> A little brain fart myself. The last one should be: AdLockReadOnly = 4 On 3 Feb 2004 at 22:20, DWUTKA at marlow.com wrote: > Thanks for catching that Stuart! Massive brain fart! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Tuesday, February 03, 2004 9:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > > > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From viner at eunet.yu Wed Feb 4 00:41:45 2004 From: viner at eunet.yu (Ervin Brindza) Date: Wed, 4 Feb 2004 07:41:45 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <184670-22004223102111824@christopherhawkins.com> Message-ID: <005b01c3eaea$1ea3bd40$0100a8c0@razvoj> ----- Original Message ----- From: "Christopher Hawkins" To: Sent: 03 February, 2004 11:21 AM Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > Well...there is this: > > http://www.activ8.com.au/interface/ > > But that mainly has pretty interfaces, which are not the same as > "good" interfaces. > > -Christopher Hawkins- > Nobody is unsatisfied with his own interface and need no new idea? What about gliding subforms, bouncing(animated) images etc.?! Ervin From accessd667 at yahoo.com Wed Feb 4 00:46:33 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 3 Feb 2004 22:46:33 -0800 (PST) Subject: [AccessD] OT: New mail account... Message-ID: <20040204064633.87340.qmail@web61102.mail.yahoo.com> blablabla if this gets through unsubscribe accessd666... --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From accessd667 at yahoo.com Wed Feb 4 01:00:57 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 3 Feb 2004 23:00:57 -0800 (PST) Subject: [AccessD] OT: OO? Message-ID: <20040204070057.30555.qmail@web61103.mail.yahoo.com> Hi group, I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From accessd at shaw.ca Wed Feb 4 01:15:31 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 03 Feb 2004 23:15:31 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F1079BD21@DISABILITYINS01> Message-ID: Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundRepor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Feb 4 02:43:19 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 4 Feb 2004 01:43:19 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <257900-2200423484319659@christopherhawkins.com> Why would you add a gliding subform or animated image to a database app? Graphic elements are supposed to enhance the usability of an application, not distract from it. This is not ot say that UIs should be battleship gray and plain; from from it. But be careful how much glitz you put into things. -C- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Wed, 4 Feb 2004 07:41:45 +0100 > >----- Original Message ----- >From: "Christopher Hawkins" >To: >Sent: 03 February, 2004 11:21 AM >Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > > >> Well...there is this: >> >> http://www.activ8.com.au/interface/ >> >> But that mainly has pretty interfaces, which are not the same as >> "good" interfaces. >> >> -Christopher Hawkins- >> > >Nobody is unsatisfied with his own interface and need no new idea? >What >about gliding subforms, bouncing(animated) images etc.?! >Ervin > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From viner at eunet.yu Wed Feb 4 03:02:19 2004 From: viner at eunet.yu (Ervin Brindza) Date: Wed, 4 Feb 2004 10:02:19 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <257900-2200423484319659@christopherhawkins.com> Message-ID: <005301c3eafd$b4c76de0$0100a8c0@razvoj> > Why would you add a gliding subform or animated image to a database > app? Graphic elements are supposed to enhance the usability of an > application, not distract from it. This is not ot say that UIs > should be battleship gray and plain; from from it. But be careful > how much glitz you put into things. > That is matter of taste! If you take a look at www.medela.co.yu the jumping cookies are very effective. The visitors noticed that first, and memorize too. And I have a situation where the form contains two subforms, the first of them contain a subform, the second subform contains two subforms! So, there are 5 subforms on the main form. And there is a need only for 1 "thread", so I displace the unnecessary "thread" with a little animation with gliding move to the very left or right side of the form. And, trust me, that is my most popular application! Ervin From accessd667 at yahoo.com Wed Feb 4 04:00:49 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 4 Feb 2004 02:00:49 -0800 (PST) Subject: [AccessD] Export to Excel URGENT! Message-ID: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From jwcolby at colbyconsulting.com Wed Feb 4 05:59:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 06:59:30 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: I was under the impression that, using A2K, regardless of anything else, binding a recordsource to a form made it read only. AND that this changes with AXP. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Wednesday, February 04, 2004 2:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundRepor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 4 06:04:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 22:04:19 +1000 Subject: [AccessD] Export to Excel URGENT! In-Reply-To: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Message-ID: <40216C63.32763.14DA4B8@localhost> What format is the ID in your Access table? Does the number need to be treated as a number in Excel? If not, just leave the initial single quote there. On 4 Feb 2004 at 2:00, S D wrote: > Hi group, > > i've got a big problem. I exporting 18 digit numbers to Excel. > Like 123456789012345678. This is an ID. > The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 > > I've tried reformating the column/row to TEXT but it didn't work. When > I directly type the number into Excel it works. The 18 digit number > doesn't reformat. When I export it to Excel using a ' (quote?) sign > and then manually remove the ' it also works. When i use Find & > replace the number is reformatted to 8.72E+17?! > > Please help me with this one. > > Sander > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From rl_stewart at highstream.net Wed Feb 4 06:41:15 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 06:41:15 -0600 Subject: [AccessD] RE: Using Dates In-Reply-To: Message-ID: <5.1.0.14.2.20040204063949.00b83048@pop3.highstream.net> Charlotte, Correct, it would be taken care of in the ETL (Extract, Transform, and Load) process for the fact tables. Robert At 01:27 PM 2/3/2004 -0800, you wrote: >I see. But in that case, you would probably massage the data when it >went into the data warehouse, wouldn't you? You would have to in order >to introduce the surrogate key. It isn't like this is transactional >data. > >Charlotte > >-----Original Message----- >From: Robert L. Stewart [mailto:rl_stewart at highstream.net] >Sent: Tuesday, February 03, 2004 11:32 AM >To: accessd at databaseadvisors.com >Cc: Charlotte Foust >Subject: Re: Using Dates > > >Charlotte, > >What I think he is saying is that in 99% of the cases, the regular date >dimension table will work. In a few cases, where the date may be >missing >and you want to get some kind of value for it, you cannot use the date >itself as the key, thus the surrogate. The surrogate would be stored in > >the fact tables (another data warehousing concept, for those that do not > >know about them). That way when you hit an invalid or null date value, >the >date dimension table would be able to handle it in a predefined way. > >Robert > >At 03:46 AM 2/3/2004 -0600, you wrote: > >Date: Mon, 2 Feb 2004 12:29:49 -0800 > >From: "Charlotte Foust" > >Subject: RE: [AccessD] RE: Using Dates > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >I'm not even sure what Ralph is saying there, and it flies in the face > >of what he does in some of his books, so I have no answer for you, > >John. Keep in mind, though, that datawarehouses are indexed somewhat > >differently from transactional databases, so that may be where the > >confusion is coming in. If you were using surrogate keys and > >meaningless values as the PK, the dates in the main records would need > >to be inserted *from* the date table, and that isn't generally the way > >the thing is used. > > > >Charlotte Foust From jarus at amerinet-gpo.com Wed Feb 4 06:46:04 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Wed, 04 Feb 2004 06:46:04 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: Can't you reformat the column to Number with 0 decimal places? Works for me. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> stuart at lexacorp.com.pg 02/04/04 06:04AM >>> What format is the ID in your Access table? Does the number need to be treated as a number in Excel? If not, just leave the initial single quote there. On 4 Feb 2004 at 2:00, S D wrote: > Hi group, > > i've got a big problem. I exporting 18 digit numbers to Excel. > Like 123456789012345678. This is an ID. > The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 > > I've tried reformating the column/row to TEXT but it didn't work. When > I directly type the number into Excel it works. The 18 digit number > doesn't reformat. When I export it to Excel using a ' (quote?) sign > and then manually remove the ' it also works. When i use Find & > replace the number is reformatted to 8.72E+17?! > > Please help me with this one. > > Sander > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From garykjos at hotmail.com Wed Feb 4 07:31:32 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Wed, 04 Feb 2004 07:31:32 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: It's Excel trying to be to smart I think. It thinks it's a number and that you want to look at it as a number, but it's really not a number it's an ID. And don't be messin with my ID's ! Did you make an OUTPUT Specification? Define the field as text there? Or how about if you make a query with a format([fieldname],"00000000000000000") and then export the query instead of the table? Or concatinate a space to make it into an alpha. Adding a dummy first record with XXXXXXXXXXXXXXX in the field so that Excel sees the field as a text field has worked for me too. Then you delete or ignore the dummy on the Excel side Good luck. Gary Kjos garykjos at hotmail.com >From: "Terri Jarus" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Export to Excel URGENT! >Date: Wed, 04 Feb 2004 06:46:04 -0600 > >Can't you reformat the column to Number with 0 decimal places? Works for >me. > >Terri Jarus >Director, Contract Support Services >jarus at amerinet-gpo.com >314-542-1902 > > >>> stuart at lexacorp.com.pg 02/04/04 06:04AM >>> >What format is the ID in your Access table? > >Does the number need to be treated as a number in Excel? If not, just >leave the initial single quote there. > > >On 4 Feb 2004 at 2:00, S D wrote: > > > Hi group, > > > > i've got a big problem. I exporting 18 digit numbers to Excel. > > Like 123456789012345678. This is an ID. > > The ID's are copied to Excel. When I open Excel I see numbers >like:8.72E+17 > > > > I've tried reformating the column/row to TEXT but it didn't work. When > > I directly type the number into Excel it works. The 18 digit number > > doesn't reformat. When I export it to Excel using a ' (quote?) sign > > and then manually remove the ' it also works. When i use Find & > > replace the number is reformatted to 8.72E+17?! > > > > Please help me with this one. > > > > Sander > > > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to >suggest "Do it manually" > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. Try it! > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System Support. > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >--------------------------------------------------------------------------- >This email and any files transmitted with it are confidential and >intended solely for the use of the individuals or entities to whom they >are addressed. If you have received this email in error please return >it to the sender, and erase any copies thereof. >Copyright 2004 Amerinet 1nc. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From JHewson at karta.com Wed Feb 4 07:41:48 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 4 Feb 2004 07:41:48 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: <4AE733BBEEE72647A9F950F7275F262E112790@nt04.karta.com> Excel is treating formatting the number in scientific notation. Check the format of the ID number when exporting. HTH Jim -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, February 04, 2004 4:01 AM To: accessd Subject: [AccessD] Export to Excel URGENT! Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Wed Feb 4 08:07:23 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 4 Feb 2004 06:07:23 -0800 (PST) Subject: [AccessD] Export to Excel URGENT! In-Reply-To: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Message-ID: <20040204140723.20823.qmail@web61108.mail.yahoo.com> Hi group, thnx for all tips/tricks/idea's. I've implemented a workaround using a csv file. The user imports this into Excel. Works like a charm. SD S D wrote: Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From rl_stewart at highstream.net Wed Feb 4 08:15:22 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 08:15:22 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402040442.i144g0m09380@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> Hi Gustav, The best that I can think of is something like processing and ETL (extract,transform,load) routine you run into a date 2/1/1003 that was technically correct, but invalid because it should have been 2/1/2003. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 20:42:30 +0100 >From: Gustav Brock >Subject: Re: [AccessD] Re: Using Dates >To: Access Developers discussion and problem solving > >Message-ID: <542496076.20040203204230 at cactus.dk> >Content-Type: text/plain; charset=us-ascii > >Hi Robert > > > What I think he is saying is that in 99% of the cases, the regular date > > dimension table will work. In a few cases, where the date may be missing > > and you want to get some kind of value for it, you cannot use the date > > itself as the key, thus the surrogate. The surrogate would be stored in > > the fact tables (another data warehousing concept, for those that do not > > know about them). That way when you hit an invalid or null date value, > the > > date dimension table would be able to handle it in a predefined way. > >I noticed this too and wondered. How can one "hit an invalid date"? Do >dataware house people not validate data before storing them? A missing >date may, of course, be accepted, but an invalid? Where would that >come from? > >/gustav From Mark.Mitsules at ngc.com Wed Feb 4 08:17:08 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 09:17:08 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark From rl_stewart at highstream.net Wed Feb 4 08:30:16 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 08:30:16 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402040442.i144g0m09380@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204082329.02980460@pop3.highstream.net> Charlotte, You are quite correct. A date dimension table becomes useful in a transactional system only when you have users that need to create their own queries against the data and they are not at the level to learn how to do date math. Then, they are wonderful. Since I primarily work with large transactional systems and data warehouses, I taught my Developer's Workshop how to use warehousing techniques to create data marts to speed up reporting in Access. Once they learn the techniques, they can be applied to any back-end database. I do not know the bound/unbound issue, but unless we get exposure to different techniques for doing things, we will stagnate as developers. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 14:38:05 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >The essential difference is that the date dimension table is generally >used in data warehouse applications, not in regular data entry >databases. They can be useful in the latter for reporting purposes >only, but you can get by nicely if you've never had to slice and dice >very large tables based on a bunch of date criteria. Note that fact >tables in a datawarehouse are usually not normalized in the same way as >regular database tables either (they are commonly 1NF), so dimension >tables give you flexibility that it's hard to get any other way. Data >warehousing may be slightly off-topic, but only because Access >developers don't have to deal with it very often. I have, so I can >appreciate both sides of the discussion. > >Charlotte Foust > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Tuesday, February 03, 2004 2:05 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Re: DatePart Question > > >Nothing personal, but I have to agree with Gustav's point of view. I >can see (and I believe he does too), where a table would help certain >situations. However, I know first hand, the extreme lack of >understanding on how a date works. I'm not saying you don't understand >that, however, to a computer, it is MUCH faster for many functions, to >just let the processor do a logic operation on a number, then to have it >pull other data up, and compare that. Holidays, etc, those require >heavier logic, so a table could be faster (depending on the amount of >data). > >I'm not knocking your approach. But in my experience, I have never >needed to do anything like that. > >We better be careful that this doesn't turn into another bound/unbound >issue. > >Drew From jimdettman at earthlink.net Wed Feb 4 08:39:15 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 4 Feb 2004 09:39:15 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Feb 4 08:55:32 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 09:55:32 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: > You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. Jim, I had read about the two-pass method in the ADH ("printing the page range anywhere"), but didn't make the extrapolation...thanks again. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 4 08:56:26 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 4 Feb 2004 06:56:26 -0800 (PST) Subject: [AccessD] Access XP and Outlook Security Message-ID: <20040204145627.52362.qmail@web20416.mail.yahoo.com> I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From gustav at cactus.dk Wed Feb 4 09:09:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 4 Feb 2004 16:09:07 +0100 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> References: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> Message-ID: <16528903901.20040204160907@cactus.dk> Hi Robert Again, I wonder which system, say accounting system, should generate a date of year 1003. A user might, of course, type something like that, but the application should have validation rules to determine which date range is allowed to input. If not, any date can be input by mistake, and you will have no chance later to determine what it "should have been". As for your data warehouse and such dates, a join between the date field and your date table will rule out such entries as - for a business application - no join will exist - which to me would be the proper way to deal with it. /gustav > Hi Gustav, > The best that I can think of is something like processing and ETL > (extract,transform,load) routine you run into a date 2/1/1003 that > was technically correct, but invalid because it should have been > 2/1/2003. > Robert > At 10:42 PM 2/3/2004 -0600, you wrote: >>Date: Tue, 3 Feb 2004 20:42:30 +0100 >>From: Gustav Brock >>Subject: Re: [AccessD] Re: Using Dates >>To: Access Developers discussion and problem solving >> >>Message-ID: <542496076.20040203204230 at cactus.dk> >>Content-Type: text/plain; charset=us-ascii >> >>Hi Robert >> >> > What I think he is saying is that in 99% of the cases, the regular date >> > dimension table will work. In a few cases, where the date may be missing >> > and you want to get some kind of value for it, you cannot use the date >> > itself as the key, thus the surrogate. The surrogate would be stored in >> > the fact tables (another data warehousing concept, for those that do not >> > know about them). That way when you hit an invalid or null date value, the >> > date dimension table would be able to handle it in a predefined way. >> >>I noticed this too and wondered. How can one "hit an invalid date"? Do >>dataware house people not validate data before storing them? A missing >>date may, of course, be accepted, but an invalid? Where would that >>come from? From Mark.Mitsules at ngc.com Wed Feb 4 09:10:30 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 10:10:30 -0500 Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and Outlook Security Message-ID: To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Feb 4 16:14:13 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:14:13 (MET) Subject: [AccessD] lowercase Message-ID: <200402041514.i14FEDNA010209@mailhostC.plex.net> From pedro at plex.nl Wed Feb 4 16:18:21 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:18:21 (MET) Subject: [AccessD] lowercase Message-ID: <200402041518.i14FILNA010431@mailhostC.plex.net> Hello group, what is the quickest way to set al caracters in all fields in all Tables in a database to lowercase. I can make a query an do all the fields with an LCase expression, but that costs a lot of time. Any idea's TIA Pedro Janssen From BBarabash at TappeConstruction.com Wed Feb 4 09:22:23 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 09:22:23 -0600 Subject: FAQ-BestPractices? Was: RE: [AccessD] Access XP and Outlook Security Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE31C@TAPPEEXCH01> My way: Use the Redemption DLL (www.dimastr.com/redemption). It uses extended MAPI calls to bypass the foul security dialog. Another way: Install the Express ClickYes utility, that will automatically click the Yes button when the dialog appears. http://www.express-soft.com/mailmate/clickyes.html Yet another way: Don't install SP3, or any other service pack/security update that includes the Outlook security dialog. (I only listed the third method because another list member became quite irate when I dismissed it as dangerous. Apparently he uses it and advises his clients to do so as well. Personally, I don't advise it.) -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From pedro at plex.nl Wed Feb 4 16:27:56 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:27:56 (MET) Subject: [AccessD] Code Librarian 2 Message-ID: <200402041527.i14FRuNA010908@mailhostC.plex.net> Hello Group, about 10 months ago i expressed an idea to this group to make a code Librarian. Some groupmembers found it a great idea and would participate to this project. Is this project ever started and with what result? Pedro Janssen From markamatte at hotmail.com Wed Feb 4 09:53:00 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 04 Feb 2004 15:53:00 +0000 Subject: [AccessD] lowercase Message-ID: Pedro, Just off the top of my head...I would use vba to do it...combining the following functions: I would Start with LISTALLTABLES and loop FIELDNAMES after each table and run the sql(using LCase for each field found) inside the FIELDNAMES loop. I just copied these functions from MSKnowledgeBase and A97 Help. Good luck. Thanks, Mark ******************************************** Function ListAllTables (fld As Control, id As Long, row As _ Long, col As Long, code As Integer) Dim db As Database Dim tbdf As TableDef Static tbls(256) As String Static Entries As Integer Dim i As Integer Dim ReturnVal ReturnVal = Null Select Case code Case LB_INITIALIZE ' Initialize database. Set db = DBEngine.Workspaces(0).databases(0) Entries = 0 For i = 0 To db.tabledefs.count - 1 tbls(Entries) = db.tabledefs(i).name Entries = Entries + 1 Next i ReturnVal = Entries Case LB_OPEN ' Open. ReturnVal = Timer ' Unique ID number for control. Case LB_GETROWCOUNT ' Number of rows. ReturnVal = Entries Case LB_GETCOLUMNCOUNT ' Number of columns. ReturnVal = 1 Case LB_GETCOLUMNWIDTH ' Column width. ReturnVal = -1 ' Use the default width. Case LB_GETVALUE ' Get the data. ReturnVal = tbls(row) Case LB_END ' End. For Entries = 0 To 256 tbls(Entries) = "" Next End Select ListAllTables = ReturnVal End Function ******************************************************* Sub FieldNames() Dim dbs As Database, tdf As TableDef Dim fld As Field ' Return reference to current database. Set dbs = CurrentDb ' Return reference to Employees table. Set tdf = dbs.TableDefs!Employees ' Enumerate all fields in Fields collection of TableDef object. For Each fld in tdf.Fields Debug.Print fld.Name Next fld Set dbs = Nothing End Sub ********************************************************************* >From: pedro at plex.nl >Reply-To: Access Developers discussion and problem >solving >To: AccessD at databaseadvisors.com >Subject: [AccessD] lowercase >Date: Wed, 04 Feb 2004 16:18:21 (MET) > >Hello group, > >what is the quickest way to set al caracters in all fields in all Tables in >a database to lowercase. >I can make a query an do all the fields with an LCase expression, but that >costs a lot of time. > >Any idea's > >TIA > >Pedro Janssen >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From BBarabash at TappeConstruction.com Wed Feb 4 10:01:19 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 10:01:19 -0600 Subject: [AccessD] lowercase Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE31F@TAPPEEXCH01> Hi Pedro, This should do what you want (make sure your project has a DAO reference set): Sub ConvertAllFieldsToLowercase() Dim db As DAO.Database Dim tdf As DAO.TableDef Dim fld As DAO.Field Dim strSQL As String 'Loop through all tables in the current database Set db = CurrentDb() For Each tdf In db.TableDefs 'Exclude system tables If Not (tdf.Name Like "MSys*") Then 'Build an update query, adding all text/memo fields Debug.Print tdf.Name strSQL = "" For Each fld In tdf.Fields If fld.Type = dbText Or fld.Type = dbMemo Then If strSQL <> "" Then strSQL = strSQL & ", " End If strSQL = strSQL & "[" & fld.Name & "]=LCase([" & fld.Name & "])" End If Next fld 'Are there any text fields in this table? If strSQL <> "" Then 'Execute the update query strSQL = "UPDATE [" & tdf.Name & "] SET " & strSQL & ";" db.Execute strSQL End If End If Next tdf Set fld = Nothing Set tdf = Nothing Set db = Nothing End Sub -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Wednesday, February 04, 2004 10:18 AM To: AccessD at databaseadvisors.com Subject: [AccessD] lowercase Hello group, what is the quickest way to set al caracters in all fields in all Tables in a database to lowercase. I can make a query an do all the fields with an LCase expression, but that costs a lot of time. Any idea's TIA Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From cfoust at infostatsystems.com Wed Feb 4 10:28:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:28:51 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: >>I do not know the bound/unbound issue Stick around a while and you'll get to know it quite well, along with surrogate vs natural keys, the distinction between primary and unique keys, and a few other topics that can get very ... Er, heated? Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Wednesday, February 04, 2004 6:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: DatePart Question Charlotte, You are quite correct. A date dimension table becomes useful in a transactional system only when you have users that need to create their own queries against the data and they are not at the level to learn how to do date math. Then, they are wonderful. Since I primarily work with large transactional systems and data warehouses, I taught my Developer's Workshop how to use warehousing techniques to create data marts to speed up reporting in Access. Once they learn the techniques, they can be applied to any back-end database. I do not know the bound/unbound issue, but unless we get exposure to different techniques for doing things, we will stagnate as developers. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 14:38:05 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >The essential difference is that the date dimension table is generally >used in data warehouse applications, not in regular data entry >databases. They can be useful in the latter for reporting purposes >only, but you can get by nicely if you've never had to slice and dice >very large tables based on a bunch of date criteria. Note that fact >tables in a datawarehouse are usually not normalized in the same way as >regular database tables either (they are commonly 1NF), so dimension >tables give you flexibility that it's hard to get any other way. Data >warehousing may be slightly off-topic, but only because Access >developers don't have to deal with it very often. I have, so I can >appreciate both sides of the discussion. > >Charlotte Foust > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Tuesday, February 03, 2004 2:05 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Re: DatePart Question > > >Nothing personal, but I have to agree with Gustav's point of view. I >can see (and I believe he does too), where a table would help certain >situations. However, I know first hand, the extreme lack of >understanding on how a date works. I'm not saying you don't understand >that, however, to a computer, it is MUCH faster for many functions, to >just let the processor do a logic operation on a number, then to have >it pull other data up, and compare that. Holidays, etc, those require >heavier logic, so a table could be faster (depending on the amount of >data). > >I'm not knocking your approach. But in my experience, I have never >needed to do anything like that. > >We better be careful that this doesn't turn into another bound/unbound >issue. > >Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 4 10:38:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:38:45 -0800 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: In both A2k and XP, when a *form* with controls bound to an ADO recordset in an MDB is read only regardless of recordset type. It isn't exactly the recordset that is read-only, it's the form interface to it that is restricted. That didn't change in AXP, but I believe you can bind a recordset to the form and use unbound controls, using code to read and write the controls and update the recordset. I can't recall whether I've tried that or not. Generally, bound forms (with bound controls) means DAO recordsets, even in AXP. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 04, 2004 4:00 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings I was under the impression that, using A2K, regardless of anything else, binding a recordsource to a form made it read only. AND that this changes with AXP. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Wednesday, February 04, 2004 2:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR epor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are > programs, subroutines and functions more than just queries. No 'query' > import tools can work because though SQL SP work similar they are > really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 4 10:43:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:43:41 -0800 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: Popular with whom? I generally dislike additional animation on forms, although I can tolerate a limited amount of it on web pages. Database applications aren't generally meant to be entertaining, they're meant to be useful and usable. While colorful and active applications might have video appeal for those with short attention spans, they get wearing fast when you have to do down and dirty data entry in them IMO. Charlotte Foust -----Original Message----- From: Ervin Brindza [mailto:viner at eunet.yu] Sent: Wednesday, February 04, 2004 1:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > Why would you add a gliding subform or animated image to a database > app? Graphic elements are supposed to enhance the usability of an > application, not distract from it. This is not ot say that UIs should > be battleship gray and plain; from from it. But be careful how much > glitz you put into things. > That is matter of taste! If you take a look at www.medela.co.yu the jumping cookies are very effective. The visitors noticed that first, and memorize too. And I have a situation where the form contains two subforms, the first of them contain a subform, the second subform contains two subforms! So, there are 5 subforms on the main form. And there is a need only for 1 "thread", so I displace the unnecessary "thread" with a little animation with gliding move to the very left or right side of the form. And, trust me, that is my most popular application! Ervin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 4 10:47:32 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 10:47:32 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE321@TAPPEEXCH01> Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From rl_stewart at highstream.net Wed Feb 4 10:52:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 10:52:44 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402041513.i14FDum32478@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204105025.02a79c50@pop3.highstream.net> Gustav, You are totally correct, that is why I personally do not use a surrogate key and use the date itself for the key. Data entry validation for the date should be a part of the business rule layer of the program. Robert At 09:13 AM 2/4/2004 -0600, you wrote: > From gustav at cactus.dk Wed Feb 4 09:09:18 2004 >Subject: Re: [AccessD] Re: Using Dates > >Hi Robert > >Again, I wonder which system, say accounting system, should generate a >date of year 1003. A user might, of course, type something like that, >but the application should have validation rules to determine which >date range is allowed to input. If not, any date can be input by >mistake, and you will have no chance later to determine what it >"should have been". >As for your data warehouse and such dates, a join between the date >field and your date table will rule out such entries as - for a >business application - no join will exist - which to me would be the >proper way to deal with it. > >/gustav From Oleg_123 at xuppa.com Wed Feb 4 11:08:11 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 12:08:11 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <52958.12.3.132.98.1075914491.squirrel@heck.bay9.com> =Date() if i put that on report (or formatted)=Format(Date(),"mmmm dd"", ""yyyy") it opens fine on my machine and on several others. There are however couple of ppl who have both Access 97 and 2000 on their machines, they get errors at this part. All the other references to tables and forms works fine. What could be the problem ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DElam at jenkens.com Wed Feb 4 11:21:29 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 4 Feb 2004 11:21:29 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA41@natexch.jenkens.com> We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From cfoust at infostatsystems.com Wed Feb 4 11:37:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 09:37:47 -0800 Subject: [AccessD] Date Message-ID: Check for broken references on their machines. Date() is one of the built-in functions that breaks when a reference is flaky. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 9:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date =Date() if i put that on report (or formatted)=Format(Date(),"mmmm dd"", ""yyyy") it opens fine on my machine and on several others. There are however couple of ppl who have both Access 97 and 2000 on their machines, they get errors at this part. All the other references to tables and forms works fine. What could be the problem ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 4 11:55:44 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 4 Feb 2004 17:55:44 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <02aa01c3eb48$1c4480d0$9111758f@aine> http://support.microsoft.com/default.aspx?scid=kb;EN-US;281998 Have a read at that Martin ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 4:38 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > In both A2k and XP, when a *form* with controls bound to an ADO > recordset in an MDB is read only regardless of recordset type. It isn't > exactly the recordset that is read-only, it's the form interface to it > that is restricted. That didn't change in AXP, but I believe you can > bind a recordset to the form and use unbound controls, using code to > read and write the controls and update the recordset. I can't recall > whether I've tried that or not. Generally, bound forms (with bound > controls) means DAO recordsets, even in AXP. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, February 04, 2004 4:00 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > I was under the impression that, using A2K, regardless of anything else, > binding a recordsource to a form made it read only. AND that this > changes with AXP. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Wednesday, February 04, 2004 2:16 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > I have a sample of code that was used in demonstrating a method at > populating a report and it is at the DBA site: > http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR > epor > ts.htm (watch for wrap). All the code is not shown but it is all in the > ZIP file is a full source set. It only demos the connection between two > MDBs but it should give enough of an idea. > > By simply changing the recordset type from 'adOpenStatic, > adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle > 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved > not by pages and then does all/most of the internal record management.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John > Sent: Monday, February 02, 2004 8:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >In a number of cases I have used the conversion from ODBC to ADO-OLE to > resolve client bottle-necks issues. > > What is this, and can I use it to get an editable bound form? > > John W. Colby > The database guy > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Monday, February 02, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi Gustav: > > I must reluctantly agree with your business assessment. > > As for saying ODBC is slow, it works well with up to twenty or thirty > records but any larger amount... In a number of cases I have used the > conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Sunday, February 01, 2004 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > Hi Jim > > > There is a lot of work in creating the 'data-interface' to MSSQL and > ADO-OLE > > is the only option (ODBC is too slow....) Stored Procedures are > > programs, subroutines and functions more than just queries. No 'query' > > > import tools can work because though SQL SP work similar they are > > really quite > different > > in concept. > > Too slow compared to what? Of course, ADP is the way to go for > Access/SQL Server, but - assuming a high quality LAN - speed of ODBC > compared to Jet and to the client's current needs may be fully > acceptable. > > If John couldn't speak for himself, he would only need to quote the > messages on this thread to justify for the client that a total rebuild > of the app is too expensive - either it would kill the client's budget > or it would consume an unreasonable part of John's valuable time. > > Now, we don't know why the client has obtained this SQL Server. Is it an > idea originated at the client without consulting John about the > consequences, or did John talk the client into it? In the first case we > have a classic example of a situation where the client may be a fool but > no one wins by stressing that point. Hooking the client's data up via > ODBC may quickly set his SQL Server into action with little effort and > within his budget, and he will be happy about his decision; then later > John can prepare a demo showing the advantages of moving the app to an > ADP but, if agreed to do so, at the costs of the client. > > This could very well be an example where (continued) business is more > important then technical excellence. > > /gustav > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Feb 4 11:59:33 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 12:59:33 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <52956.12.3.132.98.1075917573.squirrel@heck.bay9.com> i checked on of the problematic ppl's references right now me and him have all the same exsept I have Word 8.0 Object Library and he has 9.0 donn't think it makes any difference > Check for broken references on their machines. Date() is one of the > built-in functions that breaks when a reference is flaky. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 9:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Date > > > =Date() > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > ""yyyy") it opens fine on my machine and on several others. There are > however couple of ppl who have both Access 97 and 2000 on their > machines, they get errors at this part. All the other references to > tables and forms works fine. What could be the problem ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From artful at rogers.com Wed Feb 4 12:00:37 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 4 Feb 2004 13:00:37 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: Use views not sprocs for this sort of thing. Or alternatively, use table UDFs that accept a parameter so you can scope them to your needs. You might think that the performance hit of views will be huge, but not so. For example, I have a form that I call the Sales Browser, which defaults to sales of the past month by date descending. An option group on the form footer offers various selections: 30, 60, 90 and All. Each of these corresponds to a view that SELECTs * FROM Sales WHERE DateEntered >= GetDate()- x, where x is one of those values. The All button uses a view that skips the WHERE clause. (That's an oversimplification. There's one view corresponding to ALL and then 3 other views that select from that view and apply the GetDate() thing.) I realize that this answer does not correspond exactly to your question. However, it offers a solution that works, and has been tested with loads of data and a large number of users. HTH, Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 1:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Martin, I long ago modified my framework to use only ADO >The framework you use is I assume dictating the path you can take?? Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and see what happens. However I am a programmer at heart. In my apps I do things like setting up a query, then opening the query and changing the SQL statement. There are instances where this is a very useful trick. Try that with an SQL Server BE! It may be possible, but not just using DAO and the queries collection! I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased fields in queries. I write my own functions and use them in aliased fields in queries. ALL of these things will cause massive headaches porting to SQL Server, and referencing controls on a form simply can't be ported. A2K, even in an ADP (by my understanding) can't hook a stored procedure to the recordsource of a form and end up with an editable form. So the answer to your question is yes, my framework is a limitation, but a tiny one compared to my free usage of Access "goodies" that just kill you using SQL Server. This is an application with over a hundred forms, thousands of controls, tabs with JIT subforms set up, combos that swap out their SQL to allow on-the-fly filtering, and so forth. All this is entirely legal and encouraged in an Access only app. !!!!!!!!!!!!*********** Did you know that NO code runs in a form until after the data loads for the form? So if you want to run code that in any way modifies the actual SQL statement of the form, you will either: Load all your data, then reload using the modified SQL or... not have a recordsource and assign one from the code that runs after the form's class finally gets around to loading. !!!!!!!!!!!!*********** Did you know that subforms load before the main form code runs? Did you know that subforms expect the parent data to be loaded so that the Link Child Field / Master Field works? !!!!!!!!!!!!*********** All of this means that if you want to use bound subforms / forms, the parent data must load, then the child forms load (with their data), THEN the parent form's CODE finally runs. I noticed that all of my data was loading twice. Why is that? Because I use code to set a control which is used in the where clause of the form's SQL statement. The first time, the data loads, but the CODE hasn't started running yet. So... I have to set the control and requery the form. Hmmm.... So you could just not set the Recordsource at all (leave it blank) until the code runs, then set the control, then set the recordsource RIGHT? Well... yea, EXCEPT the subforms expect data to be there when they load or you get the stupid pop up dialog asking you for the PK for the Master Field. THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO data, it's code runs, it loads ITS data, then it loads any subforms which, by that time, have valid data in the parent form and can load without asking the user for the PK. Holy @#$% Batman! Now WHY oh WHY didn't MS just allow the code to run in the parent form before loading its data? Because lots of code expect to go looking at (already loaded) data. Oh the joys of Access. !!!!!!!!!!!!*********** My framework is CAPABLE of doing exactly this stuff, automagically. If the parent form's Recordsource is not set (is blank), AND (of course) the subform controls are not bound to a subform, then my form's class looks for a query named 'q' & Thisform.name. If found, the class set the form's recordsource to that query name, which causes that data to load (after setting the above mentioned control which is used in the Where clause). The form's class has a control scanner that finds all subform controls and drops a pointer to them into a collection. Once the main form's recordsource is set, each subform is able to be bound to a subform. USUALLY this is done when a specific tab of the tab control is clicked. i.e. JIT. However if the subform is on the FIRST tab, then it is bound by the main form's class so that the subform loads and is populated. So now my forms only load their data once, JIT works as expected, I can filter using controls on the form etc. Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. !!!!!!!!!!!!*********** SQL Server MAY be the holy grail, but it is far holier if you are just pulling one record from one table RE 1970s style terminal based apps. It isn't very holy at all if you have already used all of Access' built in TRICKS to the max in your apps and now want to move that app to SQL Server! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 01, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From cfoust at infostatsystems.com Wed Feb 4 12:12:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 10:12:49 -0800 Subject: [AccessD] Date Message-ID: Yes, it does make a difference. If you aren't using the Word library, uncheck it on his machine, otherwise, reset it on his machine. If you have a reference to Word 8, that reference may not resolve properly on a machine without the Word 8 library. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 10:00 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date i checked on of the problematic ppl's references right now me and him have all the same exsept I have Word 8.0 Object Library and he has 9.0 donn't think it makes any difference > Check for broken references on their machines. Date() is one of the > built-in functions that breaks when a reference is flaky. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 9:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Date > > > =Date() > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > ""yyyy") it opens fine on my machine and on several others. There are > however couple of ppl who have both Access 97 and 2000 on their > machines, they get errors at this part. All the other references to > tables and forms works fine. What could be the problem ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 4 12:14:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Feb 2004 12:14:58 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF802227830@main2.marlow.com> Actually, that was a double brain fart, because adLockReadOnly is 1. adLockBatchOptimistic is 4. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, February 03, 2004 10:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset A little brain fart myself. The last one should be: AdLockReadOnly = 4 On 3 Feb 2004 at 22:20, DWUTKA at marlow.com wrote: > Thanks for catching that Stuart! Massive brain fart! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Tuesday, February 03, 2004 9:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > > > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Feb 4 12:34:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 12:34:56 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402041800.i14I0Im06383@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Pedro, I am putting the final touches on a web based one now. Any one will be able to add entries to it. Send me what you would like to see as fields and I will see how well I have designed it. When I get it finished, I will post a link to it to the different Access lists that I am on. Robert At 12:00 PM 2/4/2004 -0600, you wrote: >Date: Wed, 04 Feb 2004 16:27:56 (MET) >From: pedro at plex.nl >Subject: [AccessD] Code Librarian 2 >To: AccessD at databaseadvisors.com >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > >Hello Group, > >about 10 months ago i expressed an idea to this group to make a code >Librarian. Some groupmembers found it a great idea and would participate >to this project. Is this project ever started and with what result? > >Pedro Janssen From rl_stewart at highstream.net Wed Feb 4 12:37:46 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 12:37:46 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402041800.i14I0Im06383@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204123603.028ec7b8@pop3.highstream.net> Charlotte, I guess that I am a bound, surrogate primary key, unique business key, index most everything, SQL Server kind of guy. ;-)) Robert At 12:00 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 08:28:51 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > > >>I do not know the bound/unbound issue >Stick around a while and you'll get to know it quite well, along with >surrogate vs natural keys, the distinction between primary and unique >keys, and a few other topics that can get very ... Er, heated? > >Charlotte Foust From DWUTKA at marlow.com Wed Feb 4 12:45:07 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Feb 2004 12:45:07 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227832@main2.marlow.com> I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Feb 4 12:58:17 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 4 Feb 2004 11:58:17 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <221640-22004234185817999@christopherhawkins.com> I was talking about your typical corporate-utility database apps, not websites. The site you linked is just animated enough without being distracting. Try those cute animations in a corporate app, though. ;) Bad news! -C- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Wed, 4 Feb 2004 10:02:19 +0100 >> Why would you add a gliding subform or animated image to a database >> app? Graphic elements are supposed to enhance the usability of an >> application, not distract from it. This is not ot say that UIs >> should be battleship gray and plain; from from it. But be careful >> how much glitz you put into things. >> >That is matter of taste! If you take a look at www.medela.co.yu the >jumping >cookies are very effective. The visitors noticed that first, and >memorize >too. And I have a situation where the form contains two subforms, >the first >of them contain a subform, the second subform contains two subforms! >So, >there are 5 subforms on the main form. And there is a need only for 1 >"thread", so I displace the unnecessary "thread" with a little >animation >with gliding move to the very left or right side of the form. And, >trust me, >that is my most popular application! >Ervin > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From kathryn at bassett.net Wed Feb 4 12:57:28 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 4 Feb 2004 10:57:28 -0800 Subject: [AccessD] OT (sorta) - looking for a font Message-ID: I have a word processed document that I did a long time ago, and used the "Uppercrust Regular". It's no longer on my system and I can't find it. Anybody know who did it or where to get it? Later today, I'll scan an existing page to show what it looks like, but I'm hoping I'll have an answer before that needs doing. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From cfoust at infostatsystems.com Wed Feb 4 13:22:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 11:22:51 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 4 13:44:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 4 Feb 2004 20:44:04 +0100 Subject: [AccessD] Re: DatePart Question In-Reply-To: References: Message-ID: <3945400171.20040204204404@cactus.dk> Hi Charlotte > You're way off, Drew. The reason for those divisions is because > data warehouses are used to query data, period. So the user wants to > see all fact records within a particular month for the past 5 years. > The point of a dimension table is that you don't need to do any date > calculations in the query. All you need do is specify the month number > (no function required), and the year number. The join filters out the > appropriate records. You need do no date math at all to filter the > records because any date math was done when the dimension table was > created. Since SQL is much faster than code, why would you expect this > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > And Year(Now()) > to be faster than this > [MonthNo]=5 And YearNo Between 5 And 10 Because of the missing inner join, of course. Also, for this example, you could state: [MyDateField] Between #5/1/1999# And #5/31/1999 or ... [MyDateField] Between #5/1/2004# And #5/31/2004 But I'm guessing. I neither have a huge set of data to test with nor - as Drew - the time at the moment to play with it. So I'll have to rely on the opinion from people having experience in this area. /gustav > I understand more 'complex' date 'info', such as holidays, fiscal > period, etc. I still don't understand the reason for basic date > information, such as day, month, year, day of week, etc. I have never > actually run any tests, but my gut says that a query where I wanted all > records in the month of May (ANY year), that if I put > Month([MyDateField])=5 in the Where clause, that it would be faster then > having a relationship to a date dimension table. > Data entry, or data warehousing, the speed should still be a factor, > correct? Or am I way off on my gut feeling (really too busy to build an > appropriate test.) > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 03, 2004 4:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: DatePart Question > The essential difference is that the date dimension table is generally > used in data warehouse applications, not in regular data entry > databases. They can be useful in the latter for reporting purposes > only, but you can get by nicely if you've never had to slice and dice > very large tables based on a bunch of date criteria. Note that fact > tables in a datawarehouse are usually not normalized in the same way as > regular database tables either (they are commonly 1NF), so dimension > tables give you flexibility that it's hard to get any other way. Data > warehousing may be slightly off-topic, but only because Access > developers don't have to deal with it very often. I have, so I can > appreciate both sides of the discussion. > Charlotte Foust > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Tuesday, February 03, 2004 2:05 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Re: DatePart Question > Nothing personal, but I have to agree with Gustav's point of view. I > can see (and I believe he does too), where a table would help certain > situations. However, I know first hand, the extreme lack of > understanding on how a date works. I'm not saying you don't understand > that, however, to a computer, it is MUCH faster for many functions, to > just let the processor do a logic operation on a number, then to have it > pull other data up, and compare that. Holidays, etc, those require > heavier logic, so a table could be faster (depending on the amount of > data). > I'm not knocking your approach. But in my experience, I have never > needed to do anything like that. > We better be careful that this doesn't turn into another bound/unbound > issue. > Drew From pedro at plex.nl Wed Feb 4 13:25:39 2004 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 4 Feb 2004 20:25:39 +0100 Subject: [AccessD] lowercase References: <426071E0B0A6D311B3C0006008B0AB23AFE31F@TAPPEEXCH01> Message-ID: <002401c3eb57$6e19e9e0$f9c581d5@pedro> Hello Brett and Mark, thanks for the code you both shaired with me. This will save me a lott of time. Pedro Janssen ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 04, 2004 5:01 PM Subject: RE: [AccessD] lowercase > Hi Pedro, > This should do what you want (make sure your project has a DAO reference > set): > > Sub ConvertAllFieldsToLowercase() > > Dim db As DAO.Database > Dim tdf As DAO.TableDef > Dim fld As DAO.Field > Dim strSQL As String > > 'Loop through all tables in the current database > Set db = CurrentDb() > > For Each tdf In db.TableDefs > 'Exclude system tables > If Not (tdf.Name Like "MSys*") Then > 'Build an update query, adding all text/memo fields > Debug.Print tdf.Name > strSQL = "" > > For Each fld In tdf.Fields > If fld.Type = dbText Or fld.Type = dbMemo Then > If strSQL <> "" Then > strSQL = strSQL & ", " > End If > > strSQL = strSQL & "[" & fld.Name & "]=LCase([" & > fld.Name & "])" > End If > Next fld > > 'Are there any text fields in this table? > If strSQL <> "" Then > 'Execute the update query > strSQL = "UPDATE [" & tdf.Name & "] SET " & strSQL & ";" > db.Execute strSQL > End If > End If > Next tdf > > Set fld = Nothing > Set tdf = Nothing > Set db = Nothing > > End Sub > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Wednesday, February 04, 2004 10:18 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] lowercase > > > Hello group, > > what is the quickest way to set al caracters in all fields in all Tables in > a database to lowercase. > I can make a query an do all the fields with an LCase expression, but that > costs a lot of time. > > Any idea's > > TIA > > Pedro Janssen > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------- ------------------------------------------ > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Feb 4 13:44:20 2004 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 4 Feb 2004 20:44:20 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Message-ID: <002601c3eb57$7338f2e0$f9c581d5@pedro> Hello Robert, this is good news. I believe that your design will be perfect, so i don't send in any fields. For such a design i think the problem lies in how to find the code that one needs. How are the search options for the codes and its titles. Pedro Janssen ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Wednesday, February 04, 2004 7:34 PM Subject: [AccessD] Re: Code Librarian 2 > Pedro, > > I am putting the final touches on a web based one now. > Any one will be able to add entries to it. Send me > what you would like to see as fields and I will see > how well I have designed it. > > When I get it finished, I will post a link to it to > the different Access lists that I am on. > > Robert > > At 12:00 PM 2/4/2004 -0600, you wrote: > >Date: Wed, 04 Feb 2004 16:27:56 (MET) > >From: pedro at plex.nl > >Subject: [AccessD] Code Librarian 2 > >To: AccessD at databaseadvisors.com > >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > > > >Hello Group, > > > >about 10 months ago i expressed an idea to this group to make a code > >Librarian. Some groupmembers found it a great idea and would participate > >to this project. Is this project ever started and with what result? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Wed Feb 4 13:54:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 04 Feb 2004 11:54:57 -0800 Subject: [AccessD] Access XP and Outlook Security References: <20040204145627.52362.qmail@web20416.mail.yahoo.com> Message-ID: <40214E11.9020406@shaw.ca> Without using Redemption extended mapi code, this free method is best for quick and dirty It sits in the Systray when in use and traps message Express ClickYes 1.0.7 http://www.express-soft.com/mailmate/clickyes.html Lonnie Johnson wrote: >I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. > >I was wondering if any of the Gurus out there had code to either.... > >1. Bypass the Outlook Security > >or > >2. Send maild directly to a receipiant without going through Outlook. > >Thanks in advance. > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Wed Feb 4 15:16:17 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 4 Feb 2004 13:16:17 -0800 Subject: [AccessD] Jumping Forms Message-ID: <031201c3eb64$20f10830$6601a8c0@HAL9002> John Colby: I finally tracked down why my forms are jumping and flashing when I open them. It's your error trapper code. When I turn it off, the forms stop jumping. Can you think of a reason why this should happen? TIA and Regards, Rocky From cfoust at infostatsystems.com Wed Feb 4 15:22:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 13:22:27 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: I think you guys are missing the point. You're dealing with specific dates in [MyDateField] Between #5/1/1999# And #5/31/1999. But if someone just wants to see a particular month's data, you can specify MonthNumberSinceStart and immediately filter out all the records where their date values have the same MonthNumberSinceStart value in the Date dimension table. You don't have to compare [MyDateField] to anything because it's already joined to the dimension table. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 04, 2004 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: DatePart Question Hi Charlotte > You're way off, Drew. The reason for those divisions is because > data warehouses are used to query data, period. So the user wants to > see all fact records within a particular month for the past 5 years. > The point of a dimension table is that you don't need to do any date > calculations in the query. All you need do is specify the month > number (no function required), and the year number. The join filters > out the appropriate records. You need do no date math at all to > filter the records because any date math was done when the dimension > table was created. Since SQL is much faster than code, why would you > expect this > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > And Year(Now()) > to be faster than this > [MonthNo]=5 And YearNo Between 5 And 10 Because of the missing inner join, of course. Also, for this example, you could state: [MyDateField] Between #5/1/1999# And #5/31/1999 or ... [MyDateField] Between #5/1/2004# And #5/31/2004 But I'm guessing. I neither have a huge set of data to test with nor - as Drew - the time at the moment to play with it. So I'll have to rely on the opinion from people having experience in this area. /gustav > I understand more 'complex' date 'info', such as holidays, fiscal > period, etc. I still don't understand the reason for basic date > information, such as day, month, year, day of week, etc. I have never > actually run any tests, but my gut says that a query where I wanted > all records in the month of May (ANY year), that if I put > Month([MyDateField])=5 in the Where clause, that it would be faster > then having a relationship to a date dimension table. > Data entry, or data warehousing, the speed should still be a factor, > correct? Or am I way off on my gut feeling (really too busy to build > an appropriate test.) > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 03, 2004 4:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: DatePart Question > The essential difference is that the date dimension table is generally > used in data warehouse applications, not in regular data entry > databases. They can be useful in the latter for reporting purposes > only, but you can get by nicely if you've never had to slice and dice > very large tables based on a bunch of date criteria. Note that fact > tables in a datawarehouse are usually not normalized in the same way > as regular database tables either (they are commonly 1NF), so > dimension tables give you flexibility that it's hard to get any other > way. Data warehousing may be slightly off-topic, but only because > Access developers don't have to deal with it very often. I have, so I > can appreciate both sides of the discussion. > Charlotte Foust > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Tuesday, February 03, 2004 2:05 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Re: DatePart Question > Nothing personal, but I have to agree with Gustav's point of view. I > can see (and I believe he does too), where a table would help certain > situations. However, I know first hand, the extreme lack of > understanding on how a date works. I'm not saying you don't understand > that, however, to a computer, it is MUCH faster for many functions, to > just let the processor do a logic operation on a number, then to have it > pull other data up, and compare that. Holidays, etc, those require > heavier logic, so a table could be faster (depending on the amount of > data). > I'm not knocking your approach. But in my experience, I have never > needed to do anything like that. > We better be careful that this doesn't turn into another bound/unbound > issue. > Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 4 15:43:49 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 4 Feb 2004 13:43:49 -0800 (PST) Subject: [AccessD] Access XP and Outlook Security In-Reply-To: <40214E11.9020406@shaw.ca> Message-ID: <20040204214349.90332.qmail@web20420.mail.yahoo.com> Thanks Marty, I've already adapted that and also became aquinted with Redemtion. I was trying to avoid putting ClickYes on all the user computers because there are some user apps that send automatic emails. I was trying to see if there was a free fix for this. I may have to go with Redemption. It's not that expensive considering the company will be paying for it. Thanks again. MartyConnelly wrote: Without using Redemption extended mapi code, this free method is best for quick and dirty It sits in the Systray when in use and traps message Express ClickYes 1.0.7 http://www.express-soft.com/mailmate/clickyes.html Lonnie Johnson wrote: >I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. > >I was wondering if any of the Gurus out there had code to either.... > >1. Bypass the Outlook Security > >or > >2. Send maild directly to a receipiant without going through Outlook. > >Thanks in advance. > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From jwcolby at colbyconsulting.com Wed Feb 4 15:57:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 16:57:41 -0500 Subject: [AccessD] Jumping Forms In-Reply-To: <031201c3eb64$20f10830$6601a8c0@HAL9002> Message-ID: Rocky, No, no idea. I assume you mean when an error is trapped? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, February 04, 2004 4:16 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Jumping Forms John Colby: I finally tracked down why my forms are jumping and flashing when I open them. It's your error trapper code. When I turn it off, the forms stop jumping. Can you think of a reason why this should happen? TIA and Regards, Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 4 16:15:40 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 16:15:40 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE325@TAPPEEXCH01> Thanks Debbie, One thing confuses me, though: >From what I've seen, it looks like when you issue a BACKUP LOG statement in SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE option available). However, our DB Maintenance plan that backs up the log file doesn't seem to truncate it. There isn't even a truncate option. I was thinking about adding a step to the job, to execute a BACKUP LOG WITH TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the log and reclaim unused space. Am I going about this the right way? Thanks again for all your help. Brett -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Wednesday, February 04, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From DElam at jenkens.com Wed Feb 4 16:26:35 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 4 Feb 2004 16:26:35 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA46@natexch.jenkens.com> Yes, that should work. There are several very nice wizards that can set up a maintenance plan too. See database eminence under Management. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 4:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size Thanks Debbie, One thing confuses me, though: >From what I've seen, it looks like when you issue a BACKUP LOG statement in SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE option available). However, our DB Maintenance plan that backs up the log file doesn't seem to truncate it. There isn't even a truncate option. I was thinking about adding a step to the job, to execute a BACKUP LOG WITH TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the log and reclaim unused space. Am I going about this the right way? Thanks again for all your help. Brett -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Wednesday, February 04, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From andy at minstersystems.co.uk Wed Feb 4 16:48:26 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 4 Feb 2004 22:48:26 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <005c01c3eb71$01134de0$b274d0d5@minster33c3r25> Another problem is calling a field on a table Date. Causes mayhem when you use the Date function. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 04 February 2004 18:13 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > Yes, it does make a difference. If you aren't using the Word > library, uncheck it on his machine, otherwise, reset it on > his machine. If you have a reference to Word 8, that > reference may not resolve properly on a machine without the > Word 8 library. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 10:00 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Date > > > i checked on of the problematic ppl's references right now > me and him have all the same exsept I have Word 8.0 Object > Library and he has 9.0 donn't think it makes any difference > > > Check for broken references on their machines. Date() is one of the > > built-in functions that breaks when a reference is flaky. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > > Sent: Wednesday, February 04, 2004 9:08 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Date > > > > > > =Date() > > > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > > ""yyyy") it opens fine on my machine and on several others. > There are > > however couple of ppl who have both Access 97 and 2000 on their > > machines, they get errors at this part. All the other references to > > tables and forms works fine. What could be the problem ? > > > > > > ----------------------------------------- > > Get Breaking News from CNN, ABC, NBC, CBS Now. > > http://www.xuppa.com/news/?link=webmail > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bruce_bruen at mlc.com.au Wed Feb 4 16:58:11 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 5 Feb 2004 09:58:11 +1100 Subject: [AccessD] Date Message-ID: You betcha! and how many times have we all fell for that one :-) In fact, there are several intrinsic functions that cause the same problem. BBB Another problem is calling a field on a table Date. Causes mayhem when you use the Date function. Andy Lacey http://www.minstersystems.co.uk From stuart at lexacorp.com.pg Wed Feb 4 17:16:26 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 09:16:26 +1000 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040204105025.02a79c50@pop3.highstream.net> References: <200402041513.i14FDum32478@databaseadvisors.com> Message-ID: <402209EA.27761.52E139@localhost> On 4 Feb 2004 at 10:52, Robert L. Stewart wrote: > Gustav, > > You are totally correct, that is why I personally do not use a surrogate > key and use the date itself for the key. Ah sh*t - Quick, where's my flak jacket and steel helmet :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Wed Feb 4 17:27:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 15:27:27 -0800 Subject: [AccessD] Re: Using Dates Message-ID: NO ARCHIVE ROTFL Relax, Stuart. Maybe it will slip by under the radar this time! :-} Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, February 04, 2004 3:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Using Dates On 4 Feb 2004 at 10:52, Robert L. Stewart wrote: > Gustav, > > You are totally correct, that is why I personally do not use a > surrogate > key and use the date itself for the key. Ah sh*t - Quick, where's my flak jacket and steel helmet :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Feb 4 17:39:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 4 Feb 2004 15:39:14 -0800 Subject: [AccessD] Jumping Forms References: Message-ID: <034c01c3eb78$19666650$6601a8c0@HAL9002> John: No. I have an opening screen. Displays OK. Goes to Main Menu. Displays OK. To switch users you go back to the opening screen. Opening screen jumps. Or from the main menu if you go to any sub menu, when you return to the main menu, the screen jumps. Very weird. If I turn off error trapping (global Boolean variable) it stops jumping. Not a clue. Been puzzling over it for weeks. Finally commented out pieces of code until I found the culprit. I thought it was the ADH resizing code. But it wasn't. Rocky Rocky ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 1:57 PM Subject: RE: [AccessD] Jumping Forms > Rocky, > > No, no idea. I assume you mean when an error is trapped? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, February 04, 2004 4:16 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Jumping Forms > > > John Colby: > > I finally tracked down why my forms are jumping and flashing when I open > them. It's your error trapper code. When I turn it off, the forms stop > jumping. > > Can you think of a reason why this should happen? > > TIA and Regards, > > 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 Oleg_123 at xuppa.com Wed Feb 4 17:45:04 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 18:45:04 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <3183.24.187.36.171.1075938304.squirrel@heck.bay9.com> nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Wed Feb 4 18:12:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 16:12:19 -0800 Subject: [AccessD] Date Message-ID: The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ 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 Feb 4 18:48:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 10:48:34 +1000 Subject: [AccessD] Date In-Reply-To: <3183.24.187.36.171.1075938304.squirrel@heck.bay9.com> References: Message-ID: <40221F82.22785.1EE55E70@localhost> On 4 Feb 2004 at 18:45, Oleg_123 at xuppa.com wrote: > nee, I know that one. > it worked fine after i took of reference to MS Word 9 on 2 ppl machines, > but i can't do it for everybody, caz one of the secretaries needs it for > something. I dunno why Format(date) worked on some machines but not > others, i just wrote function myself that reformats it from 2/2/04 (or > with leading zeros) February 2, 2004. > Trouble is, if the Date() function is broken because of a broken reference, a number of other functions will be as well -including several string manipulation functions (including Format$). You need to treat the cause, not just a single symptom. Otherwise, you are going to keep on finding problems: or worse, you will not find them - but they will be giving you incorrect outputs. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From jscott at mchsi.com Wed Feb 4 19:23:01 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Wed, 4 Feb 2004 19:23:01 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can?t find out how to build it without a dsn. It is not an option for me to use a dsn and I don?t want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I?ve included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From jwcolby at colbyconsulting.com Wed Feb 4 19:30:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 20:30:33 -0500 Subject: [AccessD] Date In-Reply-To: Message-ID: Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Feb 4 19:38:38 2004 From: Developer at UltraDNT.com (Developer) Date: Wed, 4 Feb 2004 20:38:38 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Message-ID: <000001c3eb88$c78d1f20$7001a8c0@COA3> Try qryDef.Connect = gOcon.Connection Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Wednesday, February 04, 2004 8:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] HELP! Access97 passthrough query to SQL Importance: High Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can't find out how to build it without a dsn. It is not an option for me to use a dsn and I don't want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I've included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Feb 4 19:42:27 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 4 Feb 2004 19:42:27 -0600 Subject: [AccessD] Using Modified Julian Days In-Reply-To: Message-ID: <00a301c3eb89$50175860$2a3ca8c0@TEXASSYSTEMS.COM> Charlotte, Robert, Gustav and all, This regards the date fact table, and Kimball's discussion of it, as quoted by Gustav. I'll start with a quote from Charlotte: >If you were using surrogate keys and >meaningless values as the PK, the dates in the main records would need >to be inserted *from* the date table, and that isn't generally the way >the thing is used. The tricky thing is, it is far harder to make a 'meaningless' PK in this situation than it might appear. Take the most commonly used surrogate key: the autonumber. You would typically order your Date fact table from the least recent date to the most recent, i.e. in ascending order. If your table creation routine runs flawlessly, your default autonumber PK would generate values: 1, 2, 3, ... n, with n being the number of records. Meaningless? Hardly. Its the number of days since 'Day 0' in your fact table, which is the day before the first date in the table. I suppose, if you were truly nihilistic, you could use a random autonumber and make it truly meaningless, but I can't see any sense in that. My point is, with any common sense ordering and keying of dates, your PK has meaning. So, if your key has a meaning, namely the number of days since an arbitrary day 0, why not take advantage of it? What if there was a widely recognized standard for numbering days in this manner? Enter the Modified Julian Day. The MJD is a standard day numbering system based on the old Julian Day count. The MJD was introduced in the 1950's by space scientists, and is recognized by several international standards bodies. It is used by the US Naval Observatory and the National Institute of Standards in their timekeeping duties. My proposal is: Key your date fact table using MJDs ====================================== This has several advantages: * MJDs can be easily stored as a Short integer. This makes indexing the date fact table efficient. * MJDs are easy to calculate (see below) * Date fact tables generated in different locales using different date ranges would match if keyed using MJDs. * The MJD foreign key values in the main records would not have to be looked up using the date fact table. When the main record is created or modified, the MJD values can be calculated on the fly, with perfect assurance that they will match the primary key in the date fact table. * You can do a number of date related calculations on the main records themselves, without having to resort to the date fact table. Examples: beginning and end date ranges, and days elapsed Here is code I wrote for converting Dates to MJDs and vice versa: ' 0 Hours, 17 November 1858 AD Private Const mcDte_MJD_Day0 As Date = #11/17/1858# ' Returns the Modified Julian Date for a specified Date Public Function Date_MJD(dteUDdate As Date) As Long ' Calculate the number of days since Day 0 Date_MJD = CLng(DateDiff("d", mcDte_MJD_Day0, dteUDdate)) End Function ' Returns the Date for a specified Modified Julian Date Public Function MJD_Date(lngMJD As Long) As Date ' Add MJD to Day 0 to find the Date equivalent MJD_Date = CDate(DateAdd("d", lngMJD, mcDte_MJD_Day0)) End Function If you agree that a meaningless PK doesn't make sense in this instance, you may find that using MJDs gives you extra versatility, while preserving the advantages of the date fact table. -Ken From stuart at lexacorp.com.pg Wed Feb 4 19:41:08 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 11:41:08 +1000 Subject: [AccessD] Date In-Reply-To: References: Message-ID: <40222BD4.28096.1F1580D0@localhost> On 4 Feb 2004 at 20:30, John W. Colby wrote: > Charlotte, > > What is the answer to this? It isn't so much "a reference to a specific > version" as it is "a reference to a lib" and that lib unfortunately includes > a "version". I have this problem myself. I use outlook and word both, one > of which requires an actual reference to an OLB. That OLB is a specific > file in a specific location. > Late binding. From http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From jwcolby at colbyconsulting.com Wed Feb 4 19:58:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 20:58:50 -0500 Subject: [AccessD] Date In-Reply-To: <40222BD4.28096.1F1580D0@localhost> Message-ID: oh, ok. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, February 04, 2004 8:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date On 4 Feb 2004 at 20:30, John W. Colby wrote: > Charlotte, > > What is the answer to this? It isn't so much "a reference to a specific > version" as it is "a reference to a lib" and that lib unfortunately includes > a "version". I have this problem myself. I use outlook and word both, one > of which requires an actual reference to an OLB. That OLB is a specific > file in a specific location. > Late binding. From http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Wed Feb 4 19:59:46 2004 From: demulling at centurytel.net (Demulling Family) Date: Wed, 04 Feb 2004 19:59:46 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> References: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Message-ID: <4021A392.7080503@centurytel.net> > > >Jeanine, > > Here is some sample code from one of my applications: Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim mysql As String ' Create a QueryDef object to retrieve data from a Microsoft SQL Server database. Set db = DBEngine(0)(0) Set qdf = db.CreateQueryDef("qryTemp") With qdf .Connect = "ODBC;Description=<>;DRIVER=SQL Server;SERVER=<>;UID=<>;PWD=< > > > From rjhjr at cox.net Wed Feb 4 20:09:29 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 4 Feb 2004 21:09:29 -0500 Subject: [AccessD] OT: OO? In-Reply-To: <20040204070057.30555.qmail@web61103.mail.yahoo.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> Message-ID: <20040205020928.GA5422@kongemord.krig.net> On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > Hi group, > > I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). > > C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. > > I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! "The Little OO Book" gives an introduction to OO without being tied to any language. I can't remember the author. My brother borrowed my copy and lost it. Bob Hall From ebarro at afsweb.com Wed Feb 4 20:41:06 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 4 Feb 2004 18:41:06 -0800 Subject: [AccessD] Date In-Reply-To: Message-ID: Declare it like this... VB.Date() --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 04, 2004 5:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 From accessd at shaw.ca Wed Feb 4 21:21:09 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 04 Feb 2004 19:21:09 -0800 Subject: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity In-Reply-To: Message-ID: Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 4 21:31:14 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 04 Feb 2004 19:31:14 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <02aa01c3eb48$1c4480d0$9111758f@aine> Message-ID: Well, that answers a couple of questions that I had. For major projects, (with SQL BE), I have never used bound forms and have handled all the connections, error checking, locking, feeding the forms and reports, behind the scenes, using ADO-OLE recordsets. The first application was an effort and a half but now it is second nature. For smaller centralized projects, with DBs under a 2 GB, bound forms are just fine. Thanks Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Wednesday, February 04, 2004 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings http://support.microsoft.com/default.aspx?scid=kb;EN-US;281998 Have a read at that Martin ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 4:38 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > In both A2k and XP, when a *form* with controls bound to an ADO > recordset in an MDB is read only regardless of recordset type. It isn't > exactly the recordset that is read-only, it's the form interface to it > that is restricted. That didn't change in AXP, but I believe you can > bind a recordset to the form and use unbound controls, using code to > read and write the controls and update the recordset. I can't recall > whether I've tried that or not. Generally, bound forms (with bound > controls) means DAO recordsets, even in AXP. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, February 04, 2004 4:00 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > I was under the impression that, using A2K, regardless of anything else, > binding a recordsource to a form made it read only. AND that this > changes with AXP. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Wednesday, February 04, 2004 2:16 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > I have a sample of code that was used in demonstrating a method at > populating a report and it is at the DBA site: > http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR > epor > ts.htm (watch for wrap). All the code is not shown but it is all in the > ZIP file is a full source set. It only demos the connection between two > MDBs but it should give enough of an idea. > > By simply changing the recordset type from 'adOpenStatic, > adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle > 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved > not by pages and then does all/most of the internal record management.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John > Sent: Monday, February 02, 2004 8:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >In a number of cases I have used the conversion from ODBC to ADO-OLE to > resolve client bottle-necks issues. > > What is this, and can I use it to get an editable bound form? > > John W. Colby > The database guy > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Monday, February 02, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi Gustav: > > I must reluctantly agree with your business assessment. > > As for saying ODBC is slow, it works well with up to twenty or thirty > records but any larger amount... In a number of cases I have used the > conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Sunday, February 01, 2004 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > Hi Jim > > > There is a lot of work in creating the 'data-interface' to MSSQL and > ADO-OLE > > is the only option (ODBC is too slow....) Stored Procedures are > > programs, subroutines and functions more than just queries. No 'query' > > > import tools can work because though SQL SP work similar they are > > really quite > different > > in concept. > > Too slow compared to what? Of course, ADP is the way to go for > Access/SQL Server, but - assuming a high quality LAN - speed of ODBC > compared to Jet and to the client's current needs may be fully > acceptable. > > If John couldn't speak for himself, he would only need to quote the > messages on this thread to justify for the client that a total rebuild > of the app is too expensive - either it would kill the client's budget > or it would consume an unreasonable part of John's valuable time. > > Now, we don't know why the client has obtained this SQL Server. Is it an > idea originated at the client without consulting John about the > consequences, or did John talk the client into it? In the first case we > have a classic example of a situation where the client may be a fool but > no one wins by stressing that point. Hooking the client's data up via > ODBC may quickly set his SQL Server into action with little effort and > within his budget, and he will be happy about his decision; then later > John can prepare a demo showing the advantages of moving the app to an > ADP but, if agreed to do so, at the costs of the client. > > This could very well be an example where (continued) business is more > important then technical excellence. > > /gustav > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Thu Feb 5 00:37:07 2004 From: viner at eunet.yu (Ervin Brindza) Date: Thu, 5 Feb 2004 07:37:07 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: Message-ID: <009901c3ebb2$8200c360$0100a8c0@razvoj> > Popular with whom? I generally dislike additional animation on forms, To my customers, the like motley forms. I'm developing only, and they watching the screen all day long :) I heard a wisdom: if you wath to catch a fish you have to put worm on the hook because the fish will taste it, not the fisher :) > although I can tolerate a limited amount of it on web pages. Database > applications aren't generally meant to be entertaining, they're meant to > be useful and usable. While colorful and active applications might have > video appeal for those with short attention spans, they get wearing fast > when you have to do down and dirty data entry in them IMO. > Ok, you two beat me :) Sorry for increasing the traffic on the List! Best regards, Ervin From andy at minstersystems.co.uk Thu Feb 5 03:49:49 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 09:49:49 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <00e501c3ebcd$66108e90$b274d0d5@minster33c3r25> PITA not being able to use the intrinsic constants though. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 05 February 2004 01:59 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > oh, ok. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Stuart McLachlan > Sent: Wednesday, February 04, 2004 8:41 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > On 4 Feb 2004 at 20:30, John W. Colby wrote: > > > Charlotte, > > > > What is the answer to this? It isn't so much "a reference to a > > specific version" as it is "a reference to a lib" and that lib > > unfortunately > includes > > a "version". I have this problem myself. I use outlook and word > > both, > one > > of which requires an actual reference to an OLB. That OLB is a > > specific file in a specific location. > > > Late binding. > > From > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 5 04:04:28 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 5 Feb 2004 11:04:28 +0100 (CET) Subject: =?iso-8859-1?Q?Re:_RE:_FAQ-BestPractices=3F_=A0Was:_RE:_[?= =?iso-8859-1?Q?AccessD]_Access_XP_and_OutlookSecurity?= Message-ID: <4893960.1075975468090.JavaMail.www@wwinf3001> Lonnie, Did you get you r XP and Oultook security question answered ? Paul Message date : Feb 05 2004, 03:28 AM >From : "Jim Lawrence (AccessD)" To : "Access Developers discussion and problem solving" Copy to : Subject : RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Mark.Mitsules at ngc.com Thu Feb 5 06:56:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 07:56:18 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark From Bryan_Carbonnell at cbc.ca Thu Feb 5 07:11:21 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 08:11:21 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: Well, I can say with certainty there is currently no list setup for this. It may have existed before we switched hosts about a year ago, but it's not currently there. Bryan Carbonnell bryan_carbonnell at cbc.ca Your Friendly Neighbourhood Listmaster >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 5 07:25:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 08:25:29 -0500 Subject: [AccessD] Date Message-ID: Yea, but if you use early binding for the dev work, you can see what the intrinsic constant values are and roll your own constants and then switch to late binding for deployment. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> andy at minstersystems.co.uk 05-Feb-04 4:49:49 AM >>> PITA not being able to use the intrinsic constants though. Andy Lacey > > of which requires an actual reference to an OLB. That OLB is a > > specific file in a specific location. > > > Late binding. > > From > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 From andy at minstersystems.co.uk Thu Feb 5 07:33:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 13:33:45 -0000 Subject: [AccessD] RE: FAQ-BestPractices? In-Reply-To: Message-ID: <000801c3ebec$ae158140$b274d0d5@minster33c3r25> I can shed some light on this. A team, and indeed a list as you see, was created way back when. Our team leader, however, went awol. Nothing happened other than some basic ideas being thrown around, so it never erached first base. What did emerge, however, was just how much would need to go into it, which is perhaps why it foundered. If someone does want to have a crack at it they need to think about who looks after the kb, who submits KB articles, who vets them, who edits them, who tests any code examples, how the searching works (full text? Keywords?), etc. I'm not trying to dampen anyone's enthusiasm, just don't want anyone to imagine this'd be a walk in the park. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:11 > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: FAQ-BestPractices? > > > Well, I can say with certainty there is currently no list > setup for this. > > It may have existed before we switched hosts about a year > ago, but it's not currently there. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > Your Friendly Neighbourhood Listmaster > > > >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> > Jim, > > I was under the impression that a team already existed. I'm > quoting the > website: > http://www.databaseadvisors.com/lists.htm > >> Dev-kb * restricted to members of the Engineering Development > department, > specifically concerning the Knowledgebase << > > I can certainly suggest topics and help coordinate responses > as time allows, but I honestly don't feel qualified enough to > do a code review prior to publication. > > Mark > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, February 04, 2004 10:21 PM > To: Access Developers discussion and problem solving > Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > Hi Mark: > > That is a wonderful idea...definitely one worth pursuing. If > you and/or some others could assemble the information I would > assemble the web pages. > > ...and I am serious... > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. (Newport News) > Sent: Wednesday, February 04, 2004 7:11 AM > To: 'Access Developers discussion and problem solving' > Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > To whom it may concern... > > Database Advisors have done such a wonderful job on the > downloads section of the website that questions such as the > one below remind me that I haven't seen any discussions on > the development of a "FAQ", "Best Practices", or > "Knowledgebase" area. Honestly, I'm not complaining...just curious... > > > Mark > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Thu Feb 5 07:35:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 13:35:45 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <000b01c3ebec$f594e150$b274d0d5@minster33c3r25> I know, Bryan. I've been there. But support of that isn't easy. Yes you can add comments about the intrinsic constants, but if you're toing and froing between dev't, handobver to live, more dev't and so on it gets to be, as I said before, a PITA. Of course it may be a PITA that just has to be borne. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:25 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Date > > > Yea, but if you use early binding for the dev work, you can > see what the intrinsic constant values are and roll your own > constants and then switch to late binding for deployment. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > > >>> andy at minstersystems.co.uk 05-Feb-04 4:49:49 AM >>> > PITA not being able to use the intrinsic constants though. > > Andy Lacey > > > > of which requires an actual reference to an OLB. That OLB is a > > > specific file in a specific location. > > > > > Late binding. > > > > From > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From tinanfields at torchlake.com Thu Feb 5 07:46:20 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 05 Feb 2004 08:46:20 -0500 Subject: [AccessD] OT: OO? References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> Message-ID: <4022492C.3060505@torchlake.com> Is this the book you are talking about? THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, 1943- , University of Toledo Publisher : Prentice Hall - Englewood Cliffs, N.J. Bibliographic : * Paperback * ISBN: 0-13-396342-X * October 1995, ? 1996 * viii, 181 p. ; 23 cm. * Dewey No.: 005.13 20 * Object-oriented programming (Computer science) * Computer Programming: Object-Oriented Programming DESCRIPTION: Based on the premise that there is much needless confusion about OOP, this mini-book offers a very simple, clear explanation of the truly fundamental issues in OOP that can be read by any programmer. CONTENTS: 1. Introduction. 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and Exercises. 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further Reading and Exercises. 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and Exercises. 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 Smalltalk and Eiffel. Further Reading and Exercises. 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. Appendix 3: Glossary. References (p. 172-178). * Index. ======== It sure looks good to me. Think I will go buy a copy. Tina Bob Hall wrote: >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > >>Hi group, >> >>I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). >> >>C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. >> >>I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! >> >> > >"The Little OO Book" gives an introduction to OO without being tied to >any language. I can't remember the author. My brother borrowed my copy >and lost it. > >Bob Hall >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From Mark.Mitsules at ngc.com Thu Feb 5 08:04:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 09:04:22 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: If the "powers that be" consider this as an appropriate time to begin development of such a project, then as a catalyst, I offer my earlier statement, and research skills. I will be more than willing to help research web-published code. But in fairness to the eventual published content (code), I shouldn't write it;) To answer Andy's concerns, I honestly wasn't envisioning a database (knowledgebase) approach to this project. To keep it simple, thereby promoting actual progress;) I would suggest an "FAQ" type approach. A simple list of frequently asked questions and dbAdvisors suggested approach(es). And realistically, we needn't re-invent the wheel on every occasion. If Helen Feddema, Dev Ashish, Stephen Lebans, et. al. already have an accepted method, than a simple link will suffice. To recap, I think we need more than just a list of links to the established FAQs. I was thinking more along the lines of a "Best Practice" FAQ where we research alternative solutions to a particular problem, and provide dbAdvisors' "suggested approach". And, as background, I am not qualified to make those types of decisions. My applications, to date, have not been subject to driving concerns such as tight security, or heavy optimization. I am way to deep into the school of... "If it works, go with it". Mark -----Original Message----- From: Bryan Carbonnell [mailto:Bryan_Carbonnell at cbc.ca] Sent: Thursday, February 05, 2004 8:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] RE: FAQ-BestPractices? Well, I can say with certainty there is currently no list setup for this. It may have existed before we switched hosts about a year ago, but it's not currently there. Bryan Carbonnell bryan_carbonnell at cbc.ca Your Friendly Neighbourhood Listmaster >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 5 08:19:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:19:20 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205081432.02998738@pop3.highstream.net> Drew, Actually you are way off. ;-) The data warehouses I deal with are multi terrabyte. Think about performing a function on 200 million rows, one row at a time, versus joining to a table that has it done already. Sorry guy, but it is a no-brainer in warehousing. Now, for creating a simplified interface for end users that want to do queries and not learn VBA, it is also great. Other than those two uses, it is a personal preference. My preference is to create the function to populate the data and not do date math. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 12:45:07 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF802227832 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >I understand more 'complex' date 'info', such as holidays, fiscal period, >etc. I still don't understand the reason for basic date information, such >as day, month, year, day of week, etc. I have never actually run any tests, >but my gut says that a query where I wanted all records in the month of May >(ANY year), that if I put Month([MyDateField])=5 in the Where clause, that >it would be faster then having a relationship to a date dimension table. > >Data entry, or data warehousing, the speed should still be a factor, >correct? Or am I way off on my gut feeling (really too busy to build an >appropriate test.) > >Drew From rl_stewart at highstream.net Thu Feb 5 08:25:15 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:25:15 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> Gustav, Your example would not return the same data Charlotte's would. You would return all months. Hers would only return May of the years specified. A date and/or date/time dimension is essential in data warehousing, period. As for the use in a transactional system, personal preference. As for the use in reporting systems, it is a really good idea. That is what data warehouses and data marts are for and where the date dimension shines. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 20:44:04 +0100 >From: Gustav Brock >Subject: Re: [AccessD] Re: DatePart Question >To: Access Developers discussion and problem solving > >Message-ID: <3945400171.20040204204404 at cactus.dk> >Content-Type: text/plain; charset=us-ascii > >Hi Charlotte > > > You're way off, Drew. The reason for those divisions is because > > data warehouses are used to query data, period. So the user wants to > > see all fact records within a particular month for the past 5 years. > > The point of a dimension table is that you don't need to do any date > > calculations in the query. All you need do is specify the month number > > (no function required), and the year number. The join filters out the > > appropriate records. You need do no date math at all to filter the > > records because any date math was done when the dimension table was > > created. Since SQL is much faster than code, why would you expect this > > > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > > And Year(Now()) > > > to be faster than this > > > [MonthNo]=5 And YearNo Between 5 And 10 > >Because of the missing inner join, of course. Also, for this example, >you could state: > > [MyDateField] Between #5/1/1999# And #5/31/1999 or > ... > [MyDateField] Between #5/1/2004# And #5/31/2004 > >But I'm guessing. I neither have a huge set of data to test with nor - >as Drew - the time at the moment to play with it. So I'll have to rely >on the opinion from people having experience in this area. > >/gustav From rl_stewart at highstream.net Thu Feb 5 08:30:13 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:30:13 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205082600.0299af58@pop3.highstream.net> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen From rl_stewart at highstream.net Thu Feb 5 08:35:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:35:56 -0600 Subject: [AccessD] Re: SQL Server transaction log size In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205083322.02972378@pop3.highstream.net> Brett and Debbie, Here is a stored procedure you can run to do what you need to do. CREATE PROCEDURE [DBO].[usp_Truncate_Log] AS BEGIN EXEC sp_dboption 'Your DB Name' , 'trunc. log on chkpt.','TRUE' END BEGIN CHECKPOINT END BEGIN EXEC sp_dboption 'Your DB Name' , 'trunc. log on chkpt.','FALSE' END BEGIN DBCC SHRINKFILE(Your Log File Name,1) END GO Note that this does not backup the log. It simple sets a checkpoint and then truncates the log and recovers the space. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 16:15:40 -0600 >From: Brett Barabash >Subject: RE: [AccessD] OT - SQL Server transaction log size >To: "'Access Developers discussion and problem solving'" > >Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE325 at TAPPEEXCH01> >Content-Type: text/plain; charset="iso-8859-1" > >Thanks Debbie, >One thing confuses me, though: > > >From what I've seen, it looks like when you issue a BACKUP LOG statement in >SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE >option available). However, our DB Maintenance plan that backs up the log >file doesn't seem to truncate it. There isn't even a truncate option. > >I was thinking about adding a step to the job, to execute a BACKUP LOG WITH >TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the >log and reclaim unused space. Am I going about this the right way? > >Thanks again for all your help. >Brett From Alun.Garraway at otto.de Thu Feb 5 08:38:17 2004 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Thu, 5 Feb 2004 15:38:17 +0100 Subject: [AccessD] OT: OO? Message-ID: There is really no clear format to what the author is trying to accomplish. This is not about theory or practice, just ramblings about an imaginary progamming language. First, he introduces his own language, then expects you to follow it, with no examples, just his own syntax. Then tries to make this OO. Not recommended for beg or adv. programmers. This book should be titled, "The little book of mahem." This author is clearly not an instructor or mentor, probably just some hack who is trying to cash in on OO. Save your money, and you sanity and stay away from this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris Fields Sent: Thursday, February 05, 2004 2:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: OO? Is this the book you are talking about? THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, 1943- , University of Toledo Publisher : Prentice Hall - Englewood Cliffs, N.J. Bibliographic : * Paperback * ISBN: 0-13-396342-X * October 1995, ? 1996 * viii, 181 p. ; 23 cm. * Dewey No.: 005.13 20 * Object-oriented programming (Computer science) * Computer Programming: Object-Oriented Programming DESCRIPTION: Based on the premise that there is much needless confusion about OOP, this mini-book offers a very simple, clear explanation of the truly fundamental issues in OOP that can be read by any programmer. CONTENTS: 1. Introduction. 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and Exercises. 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further Reading and Exercises. 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and Exercises. 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 Smalltalk and Eiffel. Further Reading and Exercises. 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. Appendix 3: Glossary. References (p. 172-178). * Index. ======== It sure looks good to me. Think I will go buy a copy. Tina Bob Hall wrote: >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > >>Hi group, >> >>I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). >> >>C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. >> >>I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! >> >> > >"The Little OO Book" gives an introduction to OO without being tied to >any language. I can't remember the author. My brother borrowed my copy >and lost it. > >Bob Hall >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 5 08:49:21 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2004 15:49:21 +0100 Subject: [AccessD] Re: DatePart Question In-Reply-To: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> References: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> Message-ID: <15824447093.20040205154921@cactus.dk> Hi Robert > Your example would not return the same data Charlotte's would. > You would return all months. .. Ehh (ignoring tiny typy), not here ... why do you think so?? > Hers would only return May of the years specified. Yes. > A date and/or date/time dimension is essential in data > warehousing, period. As for the use in a transactional > system, personal preference. As for the use in reporting > systems, it is a really good idea. That is what data > warehouses and data marts are for and where the date > dimension shines. OK. As I have stated, I have no experience in this area, so I believe you. /gustav >> > You're way off, Drew. The reason for those divisions is because >> > data warehouses are used to query data, period. So the user wants to >> > see all fact records within a particular month for the past 5 years. >> > The point of a dimension table is that you don't need to do any date >> > calculations in the query. All you need do is specify the month number >> > (no function required), and the year number. The join filters out the >> > appropriate records. You need do no date math at all to filter the >> > records because any date math was done when the dimension table was >> > created. Since SQL is much faster than code, why would you expect this >> >> > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 >> > And Year(Now()) >> >> > to be faster than this >> >> > [MonthNo]=5 And YearNo Between 5 And 10 >> >>Because of the missing inner join, of course. Also, for this example, >>you could state: >> >> [MyDateField] Between #5/1/1999# And #5/31/1999 or >> ... >> [MyDateField] Between #5/1/2004# And #5/31/2004 >> >>But I'm guessing. I neither have a huge set of data to test with nor - >>as Drew - the time at the moment to play with it. So I'll have to rely >>on the opinion from people having experience in this area. From Mark.Mitsules at ngc.com Thu Feb 5 09:42:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 10:42:41 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 10:11:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 08:11:50 -0800 Subject: [AccessD] Date Message-ID: I believe that should be VBA.Date(). Charlotte Foust -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: Wednesday, February 04, 2004 6:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Declare it like this... VB.Date() --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 04, 2004 5:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Thu Feb 5 11:32:21 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 11:32:21 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D04C@cntexchange.pgdp.usec.com> I have the code shown below on a command button that closes a form. The form is a data entry form with a checkbox that will cancel the request by changing the status to 3 (canceled). If the status = canceled then the form will close. If an entry has been made on the form, there are certain required fields that must be completed before closing. Problem: Everything works fine except when I check the Cancel box. The status changes from 1 (Pending) to 3 (Canceled) & the form will close, but I get an error, "Can't find frmPermitEntry refered to in a macro of visual basic code". I tried commenting out different sections of the code, but I can't find the problem. What I don't understand, I have used this same code before without any problems. What am I missing? ******************** If PStatusID = 3 Then DoCmd.Close 'Request has been canceled If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If From John.Clark at niagaracounty.com Thu Feb 5 11:34:05 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 05 Feb 2004 12:34:05 -0500 Subject: [AccessD] Re: Code Librarian 2 Message-ID: I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 11:43:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 09:43:19 -0800 Subject: [AccessD] Re: Code Librarian 2 Message-ID: I still like the Code Librarian that comes with XP MOD. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 05, 2004 9:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Code Librarian 2 I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 5 12:05:07 2004 From: john at winhaven.net (John Bartow) Date: Thu, 5 Feb 2004 12:05:07 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Message-ID: Robert, Pedro, etal: Originally when we started the EngLib list, it was to develop something we could use to share our code tips, etc. between AccessD members. I'm still subscribed to it but it has been pretty quite lately. Maybe you could sign up there along with the interested listers and we could pick it up. I volunteer the use of my website as a beta test site if one is needed. It has plenty of bandwidth and storage available. My hopes were that it was either a DB with import/export capabilities or a web based DB that could be hosted on the Database Advisor's site. I keep code, Reg Tweaks, bugs, articles, and valuable software (for things that I don't keep loaded but use for one thing) in my "Code and Tips DB". I keep everything in there now just because otherwise I have to search too many places to find something that doesn't fit into a category just right. Each is broken down into Category General Area of Application Description Item Details (Code, Article Text, etc) Who (or where) it came from Date Product Last modified John B. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. > Stewart > Sent: Wednesday, February 04, 2004 12:35 PM > To: accessd at databaseadvisors.com > Cc: pedro at plex.nl > Subject: [AccessD] Re: Code Librarian 2 > > > Pedro, > > I am putting the final touches on a web based one now. > Any one will be able to add entries to it. Send me > what you would like to see as fields and I will see > how well I have designed it. > > When I get it finished, I will post a link to it to > the different Access lists that I am on. > > Robert > > At 12:00 PM 2/4/2004 -0600, you wrote: > >Date: Wed, 04 Feb 2004 16:27:56 (MET) > >From: pedro at plex.nl > >Subject: [AccessD] Code Librarian 2 > >To: AccessD at databaseadvisors.com > >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > > > >Hello Group, > > > >about 10 months ago i expressed an idea to this group to make a code > >Librarian. Some groupmembers found it a great idea and would participate > >to this project. Is this project ever started and with what result? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From adtp at touchtelindia.net Thu Feb 5 12:09:23 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 5 Feb 2004 23:39:23 +0530 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering References: Message-ID: <005901c3ec13$467e4540$e3edf73d@winxp> Mark, If it could be of any help, you might also like to take a look at my sample database named ReportGrpPgTrack at Rogers Access Library. It features a listing of group headers along with particulars of page numbers spanned by each group. This information can be printed either as an independent report or as a subreport to the main report. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Mitsules, Mark S. (Newport News) To: 'Access Developers discussion and problem solving' Sent: Thursday, February 05, 2004 21:12 Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark From DWUTKA at marlow.com Thu Feb 5 12:23:36 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 12:23:36 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227833@main2.marlow.com> I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Feb 5 12:34:07 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 13:34:07 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: A.D., Thank you. I will look at it and respond later. Mark -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Thursday, February 05, 2004 1:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, If it could be of any help, you might also like to take a look at my sample database named ReportGrpPgTrack at Rogers Access Library. It features a listing of group headers along with particulars of page numbers spanned by each group. This information can be printed either as an independent report or as a subreport to the main report. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Mitsules, Mark S. (Newport News) To: 'Access Developers discussion and problem solving' Sent: Thursday, February 05, 2004 21:12 Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 12:35:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 10:35:39 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: Good grief! Are you sure you don't want to argue?? Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 05, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 5 13:56:26 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 13:56:26 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402051800.i15I0Bm04603@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205135225.02999088@pop3.highstream.net> John, What I was envisioning was a web based application that I could use as a code repository. Web based so others could get code and post code. I have my own repository in my own framework program that I import into each new DB that I create. I have looked at many programs and built a few, but this is one that I am using to learn VB.net and ASP.net, so the cost in time is nothing. I look at it as therapy. ;-)) Also, I am using the text data type in SQL Server and not an Access BE for it so the memo field is not a problem. Robert At 12:00 PM 2/5/2004 -0600, you wrote: >From: "John Clark" >Subject: [AccessD] Re: Code Librarian 2 >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >I just demoed a program simular to what I believe y'all are talking >about. It was called "Code Manager 4" and it wasn't all that bad. It has >a web site: > > http://www.vba-programmer.com/CodeManager/InfoPage.htm > >I'm not selling this program or anything, I had actually decided >against purchasing it, although I may change my mind--I'm not sure. It >just seems like I could do something just like this...but...when would I >have the time? There really isn't much to the program either, but the >cool thing is that when you look code it automatically goes to the >clipboard and is ready to be pasted into your program. And, it is only >about $25 (US) and I can't program it fast enough to beat this price. > >Just curious--in case I do get the inkling to do something like >this--would the code have to go into a memo field? I am memophobic! I >come from a FoxPro background and I have sustained too many war wounds >caused by the damn things! There was a programmer that preceded me, who >was a memo-maniac--he even used them, in one program, for the entire >address field (Street, City, State, Zip). In his defense, he really >wasn't a programmer and he is now in his own element as our Network >Admin--he is really good at this job. > >Take care! > >John W Clark From rl_stewart at highstream.net Thu Feb 5 13:57:23 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 13:57:23 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402051800.i15I0Bm04603@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205135657.0290ad88@pop3.highstream.net> It is good for individual use. At 12:00 PM 2/5/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 09:43:19 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I still like the Code Librarian that comes with XP MOD. > >Charlotte Foust From garykjos at hotmail.com Thu Feb 5 14:09:55 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 05 Feb 2004 14:09:55 -0600 Subject: [AccessD] Error Closing Form Message-ID: Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up ? fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 From rjhjr at cox.net Thu Feb 5 14:20:09 2004 From: rjhjr at cox.net (Bob Hall) Date: Thu, 5 Feb 2004 15:20:09 -0500 Subject: [AccessD] OT: OO? In-Reply-To: <4022492C.3060505@torchlake.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> Message-ID: <20040205202008.GB10477@kongemord.krig.net> On Thu, Feb 05, 2004 at 08:46:20AM -0500, Tina Norris Fields wrote: > Is this the book you are talking about? Yes. > > THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, > 1943- , University of Toledo > > Publisher : Prentice Hall - Englewood Cliffs, > N.J. > > Bibliographic : > > * Paperback > * ISBN: 0-13-396342-X > * October 1995, ? 1996 > * viii, 181 p. ; 23 cm. > * Dewey No.: 005.13 20 > > * Object-oriented programming (Computer science) > * Computer Programming: Object-Oriented Programming > > DESCRIPTION: > > Based on the premise that there is much needless confusion about OOP, > this mini-book offers a very simple, clear explanation of the truly > fundamental issues in OOP that can be read by any programmer. > > CONTENTS: > > 1. Introduction. > > 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive > Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and > Exercises. > > 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type > Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further > Reading and Exercises. > > 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and > Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 > Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. > > 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full > Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and > Exercises. > > 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 > Smalltalk and Eiffel. Further Reading and Exercises. > > 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 > Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. > > 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of > Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. > > Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. > Appendix 3: Glossary. > > References (p. 172-178). * Index. > > > ======== It sure looks good to me. Think I will go buy a copy. > Tina > > > > Bob Hall wrote: > > >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > > > > >>Hi group, > >> > >>I know how to build classes, interfaces etc. I did this in VB6 and also > >>classes in Access. Now I want to know more about OO (object oriented) > >>programming (C#). > >> > >>C# programming isn't the problem but I know very very little about OO. I > >>worked with a very experienced Java programmer for the last 2 weeks and > >>he showed me some very cool programming stuff using C# / OO. > >> > >>I need some reading stuff about OO but the books i've seen are all > >>plunging into the deep after page 1! > >> > > > >"The Little OO Book" gives an introduction to OO without being tied to > >any language. I can't remember the author. My brother borrowed my copy > >and lost it. > > > >Bob Hall > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Thu Feb 5 14:26:17 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 15:26:17 -0500 (EST) Subject: [AccessD] MsysModules2 In-Reply-To: <20040205202008.GB10477@kongemord.krig.net> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> <20040205202008.GB10477@kongemord.krig.net> Message-ID: <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> What can this mean -- Table 'MsysModules2' is exclusevely locked by user 'Admin' on machine 'Lssd-xxxxx' ?? They are very unhappy about it . ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From HollisVJ at pgdp.usec.com Thu Feb 5 14:27:08 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 14:27:08 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D054@cntexchange.pgdp.usec.com> It isn't stopping, the form closes, Then I get the message so I don't know where the problem is. Is there a way I can tell? Virginia -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, February 05, 2004 2:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Error Closing Form Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 5 14:28:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:28:30 -0600 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227835@main2.marlow.com> Because we were talking a code library, for personal use, with all sorts of wamadyne search capabilities. Quite frankly, a KB site wouldn't be that hard to build. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, February 05, 2004 7:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: FAQ-BestPractices? I can shed some light on this. A team, and indeed a list as you see, was created way back when. Our team leader, however, went awol. Nothing happened other than some basic ideas being thrown around, so it never erached first base. What did emerge, however, was just how much would need to go into it, which is perhaps why it foundered. If someone does want to have a crack at it they need to think about who looks after the kb, who submits KB articles, who vets them, who edits them, who tests any code examples, how the searching works (full text? Keywords?), etc. I'm not trying to dampen anyone's enthusiasm, just don't want anyone to imagine this'd be a walk in the park. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:11 > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: FAQ-BestPractices? > > > Well, I can say with certainty there is currently no list > setup for this. > > It may have existed before we switched hosts about a year > ago, but it's not currently there. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > Your Friendly Neighbourhood Listmaster > > > >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> > Jim, > > I was under the impression that a team already existed. I'm > quoting the > website: > http://www.databaseadvisors.com/lists.htm > >> Dev-kb * restricted to members of the Engineering Development > department, > specifically concerning the Knowledgebase << > > I can certainly suggest topics and help coordinate responses > as time allows, but I honestly don't feel qualified enough to > do a code review prior to publication. > > Mark > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, February 04, 2004 10:21 PM > To: Access Developers discussion and problem solving > Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > Hi Mark: > > That is a wonderful idea...definitely one worth pursuing. If > you and/or some others could assemble the information I would > assemble the web pages. > > ...and I am serious... > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. (Newport News) > Sent: Wednesday, February 04, 2004 7:11 AM > To: 'Access Developers discussion and problem solving' > Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > To whom it may concern... > > Database Advisors have done such a wonderful job on the > downloads section of the website that questions such as the > one below remind me that I haven't seen any discussions on > the development of a "FAQ", "Best Practices", or > "Knowledgebase" area. Honestly, I'm not complaining...just curious... > > > Mark > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Thu Feb 5 14:31:37 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 14:31:37 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D055@cntexchange.pgdp.usec.com> Also, it only happens if I have entered some data first, then marked the checkbox to cancel the request. If I don't enter any data & check the cancel box, I do not get the error. -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, February 05, 2004 2:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Error Closing Form Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 5 14:32:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:32:05 -0600 Subject: [AccessD] Re: Code Librarian 2 Message-ID: <2F8793082E00D4119A1700B0D0216BF802227836@main2.marlow.com> Did you know about the Foxpro/Access Memo bug? (That Microsoft acknowleges)? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Thursday, February 05, 2004 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Code Librarian 2 I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rjhjr at cox.net Thu Feb 5 14:33:11 2004 From: rjhjr at cox.net (Bob Hall) Date: Thu, 5 Feb 2004 15:33:11 -0500 Subject: [AccessD] OT: OO? In-Reply-To: References: Message-ID: <20040205203311.GC10477@kongemord.krig.net> On Thu, Feb 05, 2004 at 03:38:17PM +0100, Garraway, Alun wrote: > > > > There is really no clear format to what the author is trying to accomplish. This is not about theory or practice, just ramblings about an imaginary progamming language. First, he introduces his own language, then expects you to follow it, with no examples, just his own syntax. Then tries to make this OO. Not recommended for beg or adv. programmers. This book should be titled, "The little book of mahem." This author is clearly not an instructor or mentor, probably just some hack who is trying to cash in on OO. Save your money, and you sanity and stay away from this one. I don't know what the reviewer's problem was, but I found the book to be very good. The author, if I recall correctly, is a CS professor somewhere, and this is used in one of his classes. This book was my introduction to OO, and I found it to be a clear, concise introduction to a subject I had little previous exposure to. I've been using what I learned from the book ever since. The author does use his own language. I had no problems with it, and I've been able to apply the concepts to real-life languages with no difficulty. The topics are very well organized. The author starts with the most basic data types and gradually adds functionality until he's got full-blown classes and objects. If you are looking for something that will get you programming quickly, this is not it. This is an execellent intro to the concepts. Bob Hall From DWUTKA at marlow.com Thu Feb 5 14:34:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:34:19 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227837@main2.marlow.com> Hey, sorry, been bogged down in a project at work, needed something to latch onto for a break. So I picked the wrong subject! How about those unbound forms..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, February 05, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question Good grief! Are you sure you don't want to argue?? Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 05, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Thu Feb 5 14:42:29 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 15:42:29 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> <20040205202008.GB10477@kongemord.krig.net> <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> Message-ID: <55486.12.3.132.98.1076013749.squirrel@heck.bay9.com> found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Thu Feb 5 14:49:09 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 12:49:09 -0800 Subject: [AccessD] MsysModules2 II Message-ID: Are you using an MDE? http://support.microsoft.com/?id=170696 Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Thursday, February 05, 2004 12:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] MsysModules2 II found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Feb 5 14:51:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 5 Feb 2004 14:51:25 -0600 Subject: [AccessD] MsysModules2 II Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> Nope Access can theoretically have up to 255 users (according to the Jet programmers guide). Although for all practical purposes, performance takes a major hit after 20. Sounds like something has corrupted the LDB file. Just a guess, but if it is the MSysModules2 table, it may have been the result of importing an object. Is the machine name mentioned in your original message a valid one (i.e. refers to a machine that has the app open)? If so, what happens if you get them to close it? I'd try getting everyone out of the system, delete the LDB if it doesn't do so automatically, and perform a repair just for good measure. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Thursday, February 05, 2004 2:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] MsysModules2 II found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From stephen at bondsoftware.co.nz Thu Feb 5 15:00:35 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Fri, 06 Feb 2004 10:00:35 +1300 Subject: [AccessD] OT: OO? Message-ID: <70F3D727890C784291D8433E9C418F290885F2@server.bondsoftware.co.nz> > I can't remember the author. My brother borrowed my copy > >and lost it. Bob, it's $0.99 at Amazon, used. At that price what's to lose? The reviewer was so damning I got curious and ordered one. Stephen Bond > -----Original Message----- > From: Bob Hall [mailto:rjhjr at cox.net] > Sent: Friday, 6 February 2004 9:33 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: OO? > From Oleg_123 at xuppa.com Thu Feb 5 15:03:23 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 16:03:23 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> Message-ID: <55277.12.3.132.98.1076015003.squirrel@heck.bay9.com> yeah that person had it open, after i closed it on her machine, someone else , Anthony was able to get in, and then when I tried to enter it told me that its locked under Anthony :--) > Nope > Access can theoretically have up to 255 users (according to the Jet > programmers guide). Although for all practical purposes, performance > takes a major hit after 20. > Sounds like something has corrupted the LDB file. Just a guess, but if > it is the MSysModules2 table, it may have been the result of importing > an object. Is the machine name mentioned in your original message a > valid one (i.e. refers to a machine that has the app open)? If so, what > happens if you get them to close it? > I'd try getting everyone out of the system, delete the LDB if it doesn't > do so automatically, and perform a repair just for good measure. > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Thursday, February 05, 2004 2:42 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MsysModules2 II > > > found this on another forumm --- > > I'm getting the message "Table MsysModules2 is Exclusively Locked by > user X on machine Y" when attempting to access Microsoft Access > Version 97 systems, with or without enforced Access system security. > > * What has been identified with solely self contained Access 97 > systems : > * With Access 97 security (MDW file), > * On a Windows 2000 machine > > another person repplied:I saw in an other newsgroup (access newsgroup) > that you can use a maximum of > 7 user at one time. This IS the case at our work. But why not more than > 7 ??? Where can I find this? > > > ----- > we also have Access 97 on Windows 2000 machine > 7 users ???? is this true ?? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From garykjos at hotmail.com Thu Feb 5 15:05:59 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 05 Feb 2004 15:05:59 -0600 Subject: [AccessD] Error Closing Form Message-ID: Seems like it might be trying to close it twice or again after it's already closed. Try setting a breakpoint at the beginning of this routine and when it gets to it use the F8 key to step through. Perhaps it's trying to loop back someplace. Or maybe something is contaminated in the form itself? try to create a new form and paste everything into the new form. Long shot but I've had that happen. It's worth a shot. You have the name of the form spelled right everywhere it's used right? Haven't renamed it or copied from another one? Or maybe trying to close it from another form? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: RE: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 14:27:08 -0600 > >It isn't stopping, the form closes, Then I get the message so I don't know >where the problem is. Is there a way I can tell? > >Virginia > >-----Original Message----- >From: Gary Kjos [mailto:garykjos at hotmail.com] >Sent: Thursday, February 05, 2004 2:10 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Error Closing Form > > >Did you comment out any "on error" statement so it stops an the error line? >What line is it failing on? > > > >Gary Kjos >garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = canceled then the >form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form will close, >but > >I > >get an error, "Can't find frmPermitEntry refered to in a macro of visual > >basic code". > > > >I tried commenting out different sections of the code, but I can't find >the > >problem. What I don't understand, I have used this same code before >without > >any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, >" > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, >" > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Check out the new MSN 9 Dial-up - fast & reliable Internet access with >prime > >features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Scope out the new MSN Plus Internet Software ? optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 From stuart at lexacorp.com.pg Thu Feb 5 15:10:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 07:10:11 +1000 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D055@cntexchange.pgdp.usec.com> Message-ID: <40233DD3.21987.1643B5@localhost> Try: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Exit Sub End If If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes On 5 Feb 2004 at 14:31, Hollis,Virginia wrote: > Also, it only happens if I have entered some data first, then marked the > checkbox to cancel the request. If I don't enter any data & check the cancel > box, I do not get the error. > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but > >I > >get an error, "Can't find frmPermitEntry refered to in a macro of visual > >basic code". > > > >I tried commenting out different sections of the code, but I can't find the > >problem. What I don't understand, I have used this same code before without > >any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Oleg_123 at xuppa.com Thu Feb 5 15:37:00 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 16:37:00 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: References: Message-ID: <55392.12.3.132.98.1076017020.squirrel@heck.bay9.com> hey Charlotte, that seems to be a different error -- Record(s) can't be read; no read permissions on 'MsysModules2', I got -- "Table MsysModules2 is Exclusively Locked by user X on machine Y" when i enter Table MsysModules2 in search for 97 thats I do not get my error, only the one you pointed out > Are you using an MDE? http://support.microsoft.com/?id=170696 > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Thursday, February 05, 2004 12:42 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MsysModules2 II > > > found this on another forumm --- > > I'm getting the message "Table MsysModules2 is Exclusively Locked by > user X on machine Y" when attempting to access Microsoft Access Version > 97 systems, with or without enforced Access system security. > > * What has been identified with solely self contained Access 97 systems > : > * With Access 97 security (MDW file), > * On a Windows 2000 machine > > another person repplied:I saw in an other newsgroup (access newsgroup) > that you can use a maximum of 7 user at one time. This IS the case at > our work. But why not more than 7 ??? Where can I find this? > > > ----- > we also have Access 97 on Windows 2000 machine > 7 users ???? is this true ?? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mikedorism at adelphia.net Thu Feb 5 15:40:57 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 5 Feb 2004 16:40:57 -0500 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D04C@cntexchange.pgdp.usec.com> Message-ID: <000001c3ec30$bd9b1af0$8b194244@hargrove.internal> It can't find frmPermitEntry because the form has closed and all references to the form's controls have been destroyed. I would set a boolean variable to true if the cancel status is met. Then just before asking them if they want to exit, I would look at the value of the boolean. If it is true, go ahead and exit...otherwise ask if they want to exit. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Thursday, February 05, 2004 12:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error Closing Form I have the code shown below on a command button that closes a form. The form is a data entry form with a checkbox that will cancel the request by changing the status to 3 (canceled). If the status = canceled then the form will close. If an entry has been made on the form, there are certain required fields that must be completed before closing. Problem: Everything works fine except when I check the Cancel box. The status changes from 1 (Pending) to 3 (Canceled) & the form will close, but I get an error, "Can't find frmPermitEntry refered to in a macro of visual basic code". I tried commenting out different sections of the code, but I can't find the problem. What I don't understand, I have used this same code before without any problems. What am I missing? ******************** If PStatusID = 3 Then DoCmd.Close 'Request has been canceled If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Feb 5 15:25:03 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 5 Feb 2004 22:25:03 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040205082600.0299af58@pop3.highstream.net> Message-ID: <000c01c3ec31$b8e6ec40$f3c581d5@pedro> Hello, The fields that you mentioned and the fields that John Bartow suggested are ok with me. Other fields that i would recomment are: references (that are needed), expected problems, Contributor, Email. Greetings Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Thursday, February 05, 2004 3:30 PM Subject: [AccessD] Re: Code Librarian 2 > Hi, > > That is why I would like to get feedback on > what you would like to see. Right now, I > have it categorized by programming system, > i.e. VB.net, Access, SQL Server, Java, etc. > and then the version(s) of the programming > system that it is compatible with. I also > have a keyword list where the person posting > the code snippet can add words to search on. > I then have the code itself, in text field, > as well as the ability of adding a file with > a sample of the code, i.e. an mdb. > > Robert > > At 04:29 PM 2/4/2004 -0600, you wrote: > >From: "Pedro Janssen" > >Subject: Re: [AccessD] Re: Code Librarian 2 > >To: "Access Developers discussion and problem solving" > > > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Robert, > > > >this is good news. > >I believe that your design will be perfect, > >so i don't send in any fields. > >For such a design i think the problem lies in how > >to find the code that one needs. How are the search > >options for the codes and its titles. > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Thu Feb 5 15:46:55 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 5 Feb 2004 22:46:55 +0100 Subject: [AccessD] problem with DoCmd.OpenReport Message-ID: <000d01c3ec31$ba498980$f3c581d5@pedro> Hello group, i have problems with a code that i use to open a report with the value of field Code of the current record. I would like to use the following code: Private Sub cmdDymoEtiket_Click() Dim stDocName as String Dim strExp as string strExp = "[code] =" & Me![Code] stDocName = "EtiketqryDymo" DoCmd.OpenReport, acViewPreview, , strExp End sub When i use this i get an error: Syntax error (operator missing). How is this possible, i used this code many times before with forms. Pedro Janssen From stuart at lexacorp.com.pg Thu Feb 5 15:58:40 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 07:58:40 +1000 Subject: [AccessD] problem with DoCmd.OpenReport In-Reply-To: <000d01c3ec31$ba498980$f3c581d5@pedro> Message-ID: <40234930.15924.42A6DD@localhost> On 5 Feb 2004 at 22:46, Pedro Janssen wrote: > strExp = "[code] =" & Me![Code] > stDocName = "EtiketqryDymo" > DoCmd.OpenReport, acViewPreview, , strExp > > End sub > > When i use this i get an error: > Syntax error (operator missing). > > How is this possible, i used this code many times before with forms. > You forgot to tell it which report to open : DoCmd.OpenReport stDocName, acViewPreview, , strExp -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From andy at minstersystems.co.uk Thu Feb 5 16:16:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 22:16:43 -0000 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D054@cntexchange.pgdp.usec.com> Message-ID: <009801c3ec35$bcd5dce0$b274d0d5@minster33c3r25> Virginia Once you've closed the form you can't refer to it. It's closed. I'm not totally clear what you're doinmg but I 'think' you need to change it to an IF...ELSEIF construct. At the moment you're issuing the close but the rest of the code is running, then failing because the form can no longer be referenced. Try making it: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Else If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 February 2004 20:27 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Error Closing Form > > > It isn't stopping, the form closes, Then I get the message so > I don't know where the problem is. Is there a way I can tell? > > Virginia > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an > the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes > a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = > canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the > Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form > will close, > >but I get an error, "Can't find frmPermitEntry refered to in > a macro of > >visual basic code". > > > >I tried commenting out different sections of the code, but I > can't find > >the problem. What I don't understand, I have used this same > code before > >without any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, > vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, > vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & > vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + > >vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet > access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From rl_stewart at highstream.net Thu Feb 5 16:19:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 16:19:44 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402052033.i15KXZm26311@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205161811.0292f4b0@pop3.highstream.net> Drew, If you want to see a real speed difference, take the join out completely and place a.datefield = b.datefield in the WHERE clause. From the tests I have done it is about twice as fast. Robert At 02:33 PM 2/5/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 12:23:36 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF802227833 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >I did some testing. I have a table with ~ 500k records. > >Using a date table to look for a specific month is definitely faster then >looking for Month()=5 > >Using a date table to look for a month and year is about the same as Between >(maybe a hair slower) > >Using a date table to look for a month AND another criteria within 'data' >table is the same as Month() (same for Month & year) > >Using date table for particular month and year AND another criteria look a >hair slower then Between. > >So yes, searching strictly for dates is faster. With an inner join (Left >join changes everything, goes at about the same speed, but can't think of >any instance where you would have a left join versus an inner join with a >date dimension table). However, when you have criteria in the 'data' table, >the VBA method is just as fast as the date dimension process. > >I don't have millisecond times, nor did I test it up the wazoo, but I can >understand why the date dimension table is faster now. (That was my problem, >understanding the speed difference). With an inner join, only having >criteria in the date table forces JET to look at it's indexes first, and >then only pulling up records from the indexed 'data' table. That is fast. >A Left join forces it to look at the data table first, so there is no speed >difference. Inner join with WHERE clause for data table negates the speed >difference with the date table, because it is only looking at the dates >applied for the records found from the date table. > >So I concede on the speed issue relating to date dimensions! (Don't >get used to me conceding though....LOL.) > >Drew From john at winhaven.net Thu Feb 5 16:27:29 2004 From: john at winhaven.net (John Bartow) Date: Thu, 5 Feb 2004 16:27:29 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <000c01c3ec31$b8e6ec40$f3c581d5@pedro> Message-ID: Pedro, References needed is a good one. Right now I put it into the details and it isn't easy to find there. Contributor is a better description for what I listed as "Who (or where) it came from" John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, February 05, 2004 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Re: Code Librarian 2 > > > Hello, > > The fields that you mentioned and the fields that > John Bartow suggested are ok with me. > Other fields that i would recomment are: > references (that are needed), expected problems, > Contributor, Email. > > Greetings > > Pedro From MPorter at acsalaska.com Thu Feb 5 17:04:23 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Thu, 5 Feb 2004 14:04:23 -0900 Subject: [AccessD] OT: OO? Message-ID: I have not seen this book, but by the author using his 'own' language he abstracts the OO concepts from any particular implementation. It seems to be a conceptual book rather than one geared for a specific implementation, and this review seems to verify that. Sometimes even damning testimony about a product can be a selling point for me. Mark > -----Original Message----- > From: Bob Hall [mailto:rjhjr at cox.net] > Sent: Thursday, February 05, 2004 11:33 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: OO? > > > On Thu, Feb 05, 2004 at 03:38:17PM +0100, Garraway, Alun wrote: > > > > > > > > There is really no clear format to what the author is > trying to accomplish. This is not about theory or practice, > just ramblings about an imaginary progamming language. First, > he introduces his own language, then expects you to follow > it, with no examples, just his own syntax. Then tries to make > this OO. Not recommended for beg or adv. programmers. This > book should be titled, "The little book of mahem." This > author is clearly not an instructor or mentor, probably just > some hack who is trying to cash in on OO. Save your money, > and you sanity and stay away from this one. > > I don't know what the reviewer's problem was, but I found the > book to be > very good. The author, if I recall correctly, is a CS > professor somewhere, > and this is used in one of his classes. This book was my > introduction to > OO, and I found it to be a clear, concise introduction to a > subject I had > little previous exposure to. I've been using what I learned > from the book > ever since. > > The author does use his own language. I had no problems with > it, and I've > been able to apply the concepts to real-life languages with > no difficulty. > The topics are very well organized. The author starts with > the most basic > data types and gradually adds functionality until he's got full-blown > classes and objects. > > If you are looking for something that will get you > programming quickly, > this is not it. This is an execellent intro to the concepts. > > Bob Hall > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > *********************************************************************************** 5/2/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From pedro at plex.nl Thu Feb 5 17:03:30 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 6 Feb 2004 00:03:30 +0100 Subject: [AccessD] problem with DoCmd.OpenReport References: <40234930.15924.42A6DD@localhost> Message-ID: <005001c3ec3c$88951390$f3c581d5@pedro> Hello Stuart and others, Sorry i mistyped in that mail. In my code the report (stDocName) is there, like in your line of code you mentioned. Sorry for this. When i use the code i get the Syntax error(operator missing)????? Pedro Private Sub cmdDymoEtiket_Click() Dim stDocName as String Dim strExp as string strExp = "[code] =" & Me![Code] stDocName = "EtiketqryDymo" DoCmd.OpenReport stDocName, acViewPreview, , strExp End sub ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, February 05, 2004 10:58 PM Subject: Re: [AccessD] problem with DoCmd.OpenReport > On 5 Feb 2004 at 22:46, Pedro Janssen wrote: > > > strExp = "[code] =" & Me![Code] > > stDocName = "EtiketqryDymo" > > DoCmd.OpenReport, acViewPreview, , strExp > > > > End sub > > > > When i use this i get an error: > > Syntax error (operator missing). > > > > How is this possible, i used this code many times before with forms. > > > > You forgot to tell it which report to open : > > DoCmd.OpenReport stDocName, acViewPreview, , strExp > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Thu Feb 5 17:49:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 09:49:39 +1000 Subject: [AccessD] problem with DoCmd.OpenReport In-Reply-To: <005001c3ec3c$88951390$f3c581d5@pedro> Message-ID: <40236333.21970.23D5F979@localhost> On 6 Feb 2004 at 0:03, Pedro Janssen wrote: > Hello Stuart and others, > > Sorry i mistyped in that mail. > In my code the report (stDocName) is there, like in your line of code you > mentioned. > Sorry for this. > When i use the code i get the Syntax error(operator missing)????? > Try putting a Msgbox "Test" at the start of the report's On_Open to see where the problem really is. If you get the message box before the error, then it's something in the report or underlying query that's causing it. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From SDSSoftware at optusnet.com.au Thu Feb 5 20:16:31 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Fri, 6 Feb 2004 13:16:31 +1100 Subject: [AccessD] OT: Lotus Notes Developer Melbourne Message-ID: <000801c3ec57$3cde7e30$6401a8c0@user> If anyone on this list knows of a good Lotus Notes developer in Melbourne (Australia) could they please drop me a line off-list? Thanks Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 sdssoftware at optusnet.com.au From carbonnb at sympatico.ca Thu Feb 5 20:22:51 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 21:22:51 -0500 Subject: [AccessD] Date In-Reply-To: <000b01c3ebec$f594e150$b274d0d5@minster33c3r25> References: Message-ID: <4022B42B.13856.D126E3@localhost> On 5 Feb 2004 at 13:35, Andy Lacey wrote: > I know, Bryan. I've been there. But support of that isn't easy. Yes > you can add comments about the intrinsic constants, but if you're > toing and froing between dev't, handobver to live, more dev't and so > on it gets to be, as I said before, a PITA. Of course it may be a PITA > that just has to be borne. Yep no question it's a PITA, but less of a PITA than trying to figure out what: Application.Dialogs(45).Show means, IMHO Show the borders dialog in case you are interested :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From carbonnb at sympatico.ca Thu Feb 5 20:27:56 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 21:27:56 -0500 Subject: [AccessD] Re: DatePart Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227837@main2.marlow.com> Message-ID: <4022B55C.6223.D5D066@localhost> On 5 Feb 2004 at 14:34, DWUTKA at marlow.com wrote: > Hey, sorry, been bogged down in a project at work, needed something to > latch onto for a break. So I picked the wrong subject! > > How about those unbound forms..... And you were doing SO well Drew. :( ;))) -- Bryan Carbonnell - carbonnb at sympatico.ca I DON'T HAVE AN ATTITUDE PROBLEM. YOU HAVE A PERCEPTION PROBLEM. From accessd667 at yahoo.com Fri Feb 6 02:03:36 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 6 Feb 2004 00:03:36 -0800 (PST) Subject: [AccessD] Function Return array? Message-ID: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From andy at minstersystems.co.uk Fri Feb 6 02:12:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 6 Feb 2004 08:12:34 -0000 Subject: [AccessD] Function Return array? In-Reply-To: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <014701c3ec88$f9ec34a0$b274d0d5@minster33c3r25> Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From accessd667 at yahoo.com Fri Feb 6 03:19:37 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 6 Feb 2004 01:19:37 -0800 (PST) Subject: [AccessD] Function Return array? In-Reply-To: <014701c3ec88$f9ec34a0$b274d0d5@minster33c3r25> Message-ID: <20040206091937.25733.qmail@web61101.mail.yahoo.com> Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd at shaw.ca Fri Feb 6 06:14:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 06 Feb 2004 04:14:51 -0800 Subject: [AccessD] Function Return array? In-Reply-To: <20040206091937.25733.qmail@web61101.mail.yahoo.com> Message-ID: Hi Sander: Can you not just pass the array, by name through the function call? I have not done so, with an array but have been passing types/collections/objects for years and can see no reason why an array is different. Why not send the whole Listbox? Private Function MyFunction(MyComboBox As Control, typHardlyMyType as MyType) As Control ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, February 06, 2004 1:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Fri Feb 6 06:18:03 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Fri, 06 Feb 2004 06:18:03 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D05A@cntexchange.pgdp.usec.com> This works thanks! Since this is a data entry form requesting services, they do not control the status of the request, the Engineer does. So I added a checkbox they could use if they entered data and half way through the entry, decide it isn't needed. Also, if they are going to submit the request, there are certain fields that must be entered. This is where the If Len(PRequestorID & "") = 0, etc. Then comes in. I still want the form to be able to close if no entry has been made. Does that make any sense? Anyway, thanks for the help. Virginia -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Thursday, February 05, 2004 4:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error Closing Form Virginia Once you've closed the form you can't refer to it. It's closed. I'm not totally clear what you're doinmg but I 'think' you need to change it to an IF...ELSEIF construct. At the moment you're issuing the close but the rest of the code is running, then failing because the form can no longer be referenced. Try making it: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Else If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 February 2004 20:27 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Error Closing Form > > > It isn't stopping, the form closes, Then I get the message so > I don't know where the problem is. Is there a way I can tell? > > Virginia > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an > the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes > a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = > canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the > Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form > will close, > >but I get an error, "Can't find frmPermitEntry refered to in > a macro of > >visual basic code". > > > >I tried commenting out different sections of the code, but I > can't find > >the problem. What I don't understand, I have used this same > code before > >without any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, > vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, > vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & > vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + > >vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet > access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Fri Feb 6 06:15:12 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 6 Feb 2004 17:45:12 +0530 Subject: [AccessD] Function Return array? References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <003a01c3ecab$a274c430$87edf73d@winxp> Sander, Return value for the function can be set as Variant. For a practical demonstration, you might like to have a look at my sample database BackUpManager at Rogers Access Library. Function F_FileSelect() in module Bk_FileDlg_2K of the 2K version of this sample should be relevant. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: S D To: accessd Sent: Friday, February 06, 2004 13:33 Subject: [AccessD] Function Return array? Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander From rl_stewart at highstream.net Fri Feb 6 08:36:10 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 06 Feb 2004 08:36:10 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402060812.i168CVm27237@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040206082854.0299be48@pop3.highstream.net> Here is the current SQL for the tables: CREATE TABLE [dbo].[tbl_CodeBase] ( [CodeBaseID] [int] IDENTITY (1, 1) NOT NULL , [Category] [varchar] (15) NOT NULL , [Short_Desc] [varchar] (75) NOT NULL , [Contributor_Name] [varchar] (50) NULL , [Contributor_Email] [varchar] (50) NULL , [Full_Desc] [text] NOT NULL , [Code_Text] [text] NOT NULL , [KnownIssues] [text] NULL , [Audt_Create_Dt] [datetime] NOT NULL , [Audt_Create_UID] [varchar] (20) NOT NULL , [Audt_Modify_Dt] [datetime] NULL , [Audt_Modify_UID] [varchar] (20) NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodeBaseReferences] ( [CodeBaseReferenceID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [RequiredReference] [varchar] (75) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodeBaseSoftware] ( [CodeBaseSoftwareID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [SoftwareVersionID] [int] NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodebaseFiles] ( [Code_Link_ID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [CodeFile] [binary] (50) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodebaseKeyword] ( [CodeBaseKeywordID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [Keyword] [varchar] (10) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_Category] ( [Category] [varchar] (15) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_SoftwareName] ( [SoftwareName] [varchar] (20) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_SoftwareVersion] ( [SoftwareVersionID] [int] IDENTITY (1, 1) NOT NULL , [SoftwareName] [varchar] (20) NOT NULL , [SoftwareVersion] [varchar] (10) NOT NULL ) ON [PRIMARY] GO If you catch something that I forgot, drop me a note and I will get it in there. Robert At 02:12 AM 2/6/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 16:27:29 -0600 >From: "John Bartow" >Subject: RE: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Pedro, >References needed is a good one. Right now I put it into the details and it >isn't easy to find there. >Contributor is a better description for what I listed as "Who (or where) it >came from" > >John > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, February 05, 2004 3:25 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Re: Code Librarian 2 > > > > > > Hello, > > > > The fields that you mentioned and the fields that > > John Bartow suggested are ok with me. > > Other fields that i would recomment are: > > references (that are needed), expected problems, > > Contributor, Email. > > > > Greetings > > > > Pedro From cfoust at infostatsystems.com Fri Feb 6 10:03:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 6 Feb 2004 08:03:55 -0800 Subject: [AccessD] Function Return array? Message-ID: 1. Declare the variable that will hold the returned array as a variant. Dim varArray as Variant 2. Declare the return value of the function that builds the array as a variant. Build the array in the function and set the function's return value to the array, whatever datatype the array may be. Public Function ReturnArray(lst As Listbox) As Variant 3. Even though the variable in the calling routine is declared as a variant rather than as an array, it will contain an array that is returned by the function and you can use it in code as if you had built the array within that routine. varArray = ReturnArray(Me.lstSelect) If Ubound(varArray) > 0 Then ... Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Friday, February 06, 2004 1:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 6 10:07:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 08:07:35 -0800 Subject: [AccessD] Re: Code Librarian 2 References: Message-ID: <4023BBC7.80404@shaw.ca> How about putting it in something simple like an RSS XML feed Something like the following using kbAlertz.com from Scott Cate or MSDN You can then put up a quick XPath query ASP page to search. or the user could dump into an mdb http://www.kbalertz.com/rss/acc.xml or http://msdn.microsoft.com/vbasic/rss.xml http://msdn.microsoft.com/rss.xml John Bartow wrote: >Pedro, >References needed is a good one. Right now I put it into the details and it >isn't easy to find there. >Contributor is a better description for what I listed as "Who (or where) it >came from" > >John > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen >>Sent: Thursday, February 05, 2004 3:25 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Re: Code Librarian 2 >> >> >>Hello, >> >>The fields that you mentioned and the fields that >>John Bartow suggested are ok with me. >>Other fields that i would recomment are: >>references (that are needed), expected problems, >>Contributor, Email. >> >>Greetings >> >>Pedro >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 6 10:22:43 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 08:22:43 -0800 Subject: [AccessD] Function Return array? References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <4023BF53.6050507@shaw.ca> Or you can pass by reference Public Sub Test1() Dim aryTest1(1 To 3) As Integer Dim i As Integer For i = 1 To 3 Step 1 aryTest1(i) = i Debug.Print aryTest1(i) Next i Call Test2(aryTest1()) For i = 1 To 3 Step 1 Debug.Print aryTest1(i) Next i End Sub Public Sub Test2(ByRef aryTest2() As Integer) Dim i As Integer Dim j As Integer Dim k As Integer j = LBound(aryTest2) k = UBound(aryTest2) For i = j To k aryTest2(i) = i * 2 Debug.Print aryTest2(i) Next i End Sub S D wrote: >Hi group, > >I have a function that builds an array. Is it possible to let the function return the array? > >Any ideas? > >TIA >Sander > > >--------------------------------- >Do you Yahoo!? >Yahoo! Finance: Get your refund fast by filing online >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From starkey at wanadoo.nl Fri Feb 6 10:45:13 2004 From: starkey at wanadoo.nl (StaRKeY) Date: Fri, 6 Feb 2004 17:45:13 +0100 Subject: [AccessD] Function Return array? In-Reply-To: <4023BF53.6050507@shaw.ca> Message-ID: Hi all, Nothing against an array but did you also consider a (class)collection? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: vrijdag 6 februari 2004 17:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Function Return array? Or you can pass by reference Public Sub Test1() Dim aryTest1(1 To 3) As Integer Dim i As Integer For i = 1 To 3 Step 1 aryTest1(i) = i Debug.Print aryTest1(i) Next i Call Test2(aryTest1()) For i = 1 To 3 Step 1 Debug.Print aryTest1(i) Next i End Sub Public Sub Test2(ByRef aryTest2() As Integer) Dim i As Integer Dim j As Integer Dim k As Integer j = LBound(aryTest2) k = UBound(aryTest2) For i = j To k aryTest2(i) = i * 2 Debug.Print aryTest2(i) Next i End Sub S D wrote: >Hi group, > >I have a function that builds an array. Is it possible to let the function return the array? > >Any ideas? > >TIA >Sander > > >--------------------------------- >Do you Yahoo!? >Yahoo! Finance: Get your refund fast by filing online >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 3-2-2004 Tested on: 6-2-2004 17:45:13 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From DWUTKA at marlow.com Fri Feb 6 11:01:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 11:01:40 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227841@main2.marlow.com> I think the only reason I have been doing so well, Bryan, is that I've just been to %^&^%$#@#$% swamped to do anything but peruse the list! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 05, 2004 8:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question On 5 Feb 2004 at 14:34, DWUTKA at marlow.com wrote: > Hey, sorry, been bogged down in a project at work, needed something to > latch onto for a break. So I picked the wrong subject! > > How about those unbound forms..... And you were doing SO well Drew. :( ;))) -- Bryan Carbonnell - carbonnb at sympatico.ca I DON'T HAVE AN ATTITUDE PROBLEM. YOU HAVE A PERCEPTION PROBLEM. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 11:05:45 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 11:05:45 -0600 Subject: [AccessD] Function Return array? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227842@main2.marlow.com> Yes. Function BuildArray() As Variant Dim tmpArray(1 To 6) tmpArray(1) = "This" tmpArray(2) = "is" tmpArray(3) = "how" tmpArray(4) = "to" tmpArray(5) = "do" tmpArray(6) = "it." BuildArray = tmpArray End Function Private Sub Command0_Click() Dim tmp As Variant Dim i As Long Dim strTemp As String tmp = BuildArray For i = LBound(tmp) To UBound(tmp) strTemp = strTemp & tmp(i) & " " Next i strTemp = Trim(strTemp) MsgBox strTemp End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, February 06, 2004 2:04 AM To: accessd Subject: [AccessD] Function Return array? Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Feb 6 11:11:39 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 6 Feb 2004 12:11:39 -0500 Subject: [Fwd: [AccessD] AXP - Create HTML Document] Message-ID: <20040206171203.QDH4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> > From: "Terri Jarus" > Date: Fri, 06 Feb 2004 07:54:39 -0600 > To: > Subject: [AccessD] AXP - Create HTML Document > > I have a report that is created dynamically in Word, however, we now want it to be created in HTML. > > Does anyone have sample code to do something like this? > > Here is a sample (shortened version) of what we use for the Word doc - how can I change it to HTML. Or is there a better way? > > Private Sub CreateCDS_Click() > DoCmd.Save > Dim objWord As Word.Application > Dim filename As String > > Set objWord = New Word.Application > > filename = "U:\Suppliers\Reports\Contract Sales\EForm\cds.dot" > > With objWord > > On Error GoTo MsgInfo > .Visible = True > > .Documents.Add _ > Template:=filename, _ > NewTemplate:=False > > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="ContractNumber" > > .Selection.TypeText _ > Text:=ContractNumber > > If HubSupplier <> "" Then > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Hub" > > .Selection.TypeText _ > Text:="Hub Supplier: " & Nz([HubSupplier]) > Else > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="ContUpd" > > .Selection.TypeText _ > Text:=ContUpd > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="InternalNum" > > .Selection.TypeText _ > Text:=Nz([VendorInternal]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="PDU" > > .Selection.TypeText _ > Text:=Prog > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Category" > > .Selection.TypeText _ > Text:=IndexCategory > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="SupplierName" > > .Selection.TypeText _ > Text:=UCase([SupplierPrintName]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Address1" > > .Selection.TypeText _ > Text:=SupplierAddress1 > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Address2" > > .Selection.TypeText _ > Text:=Nz([SupplierAddress2]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="CityStateZip" > > .Selection.TypeText _ > Text:=CityStateZip > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Phone" > > .Selection.TypeText _ > Text:=Nz([SupplierPhone]) > > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Fax" > > If Nz(SupplierFax, "") = "" Then > .Selection.Expand wdWord > .Selection.Delete > Else > > .Selection.TypeText _ > Text:="FAX: " & Nz([SupplierFax]) > > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="TollFree" > > If Nz(SupplierTollFree, "") = "" Then > .Selection.Expand wdParagraph > .Selection.Delete > Else > > .Selection.TypeText _ > Text:="TOLL FREE: " & Nz([SupplierTollFree]) > > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="WebAddress" > > .Selection.TypeText _ > Text:="Website: " & Nz([VendorWeb]) > > objWord.Selection.TypeParagraph > objWord.Selection.MoveDown Unit:=wdLine > > > .Quit > > End With > > Set objWord = Nothing > > MsgInfo: > On Error Resume Next > 'MsgBox "There is a required field missing information, please recheck your CDS data. Enter any required data into the Contract Info database." > Exit Sub > End Sub > > Please advise. > > Thanks for any help. > > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From jscott at mchsi.com Fri Feb 6 11:18:59 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Fri, 6 Feb 2004 11:18:59 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3eb88$c78d1f20$7001a8c0@COA3> Message-ID: <000b01c3ecd5$4f4d6fd0$d62ed70c@JeanineScott> Thanks for both responses. They were helpful! However, I am still having issues with this. When I set my .connect to the gOcon.connectionstring I get an error message stating the connection string is too long. It's the same connection string used in all my ado recordsets. CONNECTION STRING: Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use Encryption for Data=False;Tag with column collation when possible=False Any ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Wednesday, February 04, 2004 7:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Try qryDef.Connect = gOcon.Connection Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Wednesday, February 04, 2004 8:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] HELP! Access97 passthrough query to SQL Importance: High Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can't find out how to build it without a dsn. It is not an option for me to use a dsn and I don't want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I've included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 11:30:37 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 12:30:37 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: try this - it is using ado in access 2000, it might work in 97 but I haven't tried it Dim cnn As New ADODB.Connection cnn.Open fWrtConnect() fWrtConnect is a function I have that builds the connection string and returns it to the calling routine Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > Thanks for both responses. They were helpful! However, I am > still having > issues with this. > > When I set my .connect to the gOcon.connectionstring I get an error > message stating the connection string is too long. It's the same > connection string used in all my ado recordsets. > > > CONNECTION STRING: > Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security > Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto > Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use > Encryption for Data=False;Tag with column collation when > possible=False > > Any ideas? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer > Sent: Wednesday, February 04, 2004 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > Try qryDef.Connect = gOcon.Connection > > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jeanine Scott > Sent: Wednesday, February 04, 2004 8:23 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] HELP! Access97 passthrough query to SQL > Importance: High > > > Anyone know how to set a connection string for a passthrough query in > code? I can easily run my passthrough using a dsn but I can't find out > how to build it without a dsn. It is not an option for me to use a dsn > and I don't want to hardcode the connection string because I want to > easily switch databases (test to production, etc). > > I am using a dsnless connection with NT Authentication. I've included > the connection code below. > > > Thank you!!!! > > > > If gOcon.State = adStateOpen Then > Exit Sub > End If > > If IsEmpty(gvarSQLDataLocation) Then > gvarSQLDataLocation = GetLocationINI("PathTestHome") > End If > > 'open the sql connection > With gOcon > > .ConnectionTimeout = 5000 > .CommandTimeout = 5000 > .CursorLocation = adUseServer > '.Provider = "Microsoft.Jet.OLEDB.3.51" > .Provider = "SQLOLEDB" > > 'NT Authentication > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "Integrated Security=SSPIPersist Security > Info=False" > 'with > .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ > "Integrated Security=SSPI;Persist Security > Info=False" > 'CMK End > 'Works with SQL Auth > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "User ID=Paruser " & _ > "Password=Paruser" > > .Open > > .DefaultDatabase = gstrDBName > End With > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jscott at mchsi.com Fri Feb 6 11:51:32 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Fri, 6 Feb 2004 11:51:32 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: Message-ID: <001601c3ecd9$db381550$d62ed70c@JeanineScott> This is essentially what I'm doing since my connection function sets a global that holds the connections string. I keep getting the string too long error. Do you use it in pass through queries? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 11:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL try this - it is using ado in access 2000, it might work in 97 but I haven't tried it Dim cnn As New ADODB.Connection cnn.Open fWrtConnect() fWrtConnect is a function I have that builds the connection string and returns it to the calling routine Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > Thanks for both responses. They were helpful! However, I am > still having > issues with this. > > When I set my .connect to the gOcon.connectionstring I get an error > message stating the connection string is too long. It's the same > connection string used in all my ado recordsets. > > > CONNECTION STRING: > Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security > Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto > Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use > Encryption for Data=False;Tag with column collation when > possible=False > > Any ideas? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer > Sent: Wednesday, February 04, 2004 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > Try qryDef.Connect = gOcon.Connection > > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jeanine Scott > Sent: Wednesday, February 04, 2004 8:23 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] HELP! Access97 passthrough query to SQL > Importance: High > > > Anyone know how to set a connection string for a passthrough query in > code? I can easily run my passthrough using a dsn but I can't find out > how to build it without a dsn. It is not an option for me to use a dsn > and I don't want to hardcode the connection string because I want to > easily switch databases (test to production, etc). > > I am using a dsnless connection with NT Authentication. I've included > the connection code below. > > > Thank you!!!! > > > > If gOcon.State = adStateOpen Then > Exit Sub > End If > > If IsEmpty(gvarSQLDataLocation) Then > gvarSQLDataLocation = GetLocationINI("PathTestHome") > End If > > 'open the sql connection > With gOcon > > .ConnectionTimeout = 5000 > .CommandTimeout = 5000 > .CursorLocation = adUseServer > '.Provider = "Microsoft.Jet.OLEDB.3.51" > .Provider = "SQLOLEDB" > > 'NT Authentication > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "Integrated Security=SSPIPersist Security > Info=False" > 'with > .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ > "Integrated Security=SSPI;Persist Security > Info=False" > 'CMK End > 'Works with SQL Auth > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "User ID=Paruser " & _ > "Password=Paruser" > > .Open > > .DefaultDatabase = gstrDBName > End With > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From ranthony at wrsystems.com Fri Feb 6 11:56:58 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Fri, 6 Feb 2004 12:56:58 -0500 Subject: [AccessD] Update table with update query Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A40@mail2.wrsystems.com> Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 From rl_stewart at highstream.net Fri Feb 6 12:15:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 06 Feb 2004 12:15:41 -0600 Subject: [AccessD] Re: Update table with update query In-Reply-To: <200402061800.i16I0Gm18547@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040206121511.029900f0@pop3.highstream.net> Yes it is. You will probably need to do it in code. Robert At 12:00 PM 2/6/2004 -0600, you wrote: >Date: Fri, 6 Feb 2004 12:56:58 -0500 >From: Randall Anthony >Subject: [AccessD] Update table with update query >To: accessd at databaseadvisors.com >Message-ID: > <5F21A4E8B8DD734992EF9E70AC9D3064128A40 at mail2.wrsystems.com> >Content-Type: text/plain > >Hey group, >I have a problem that seems a no-brainer. I use a select groupby query to >get a recordset. I then use a second query with the first query and the >target table in order to update the target table. I thought this should >work no problem, however I get an "Operation must use an updatable query" >error. Is this one of those you can't get there from here things? Using >A97. From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 12:26:49 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 13:26:49 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ---------------------------------------------------------------------------- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the > string too > long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't > tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > From martyconnelly at shaw.ca Fri Feb 6 12:43:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 10:43:03 -0800 Subject: [Fwd: [AccessD] AXP - Create HTML Document] References: <20040206171203.QDH4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <4023E037.8040401@shaw.ca> This might get you started but constants vary for each version of Word This worked for 2000. Also it generates a lot of excess html see for other methods or use word macro recorder to see code generated by SaveAs HTML http://word.mvps.org/FAQs/General/SaveAsWebWithoutXML.htm Public Sub ConvertWordToHTML(strPath, strDocName) On Error Resume Next Dim lenDocname As Integer Dim intStart As Integer Dim bolStarted As Boolean Dim newDocName As String Dim oldDocName As String Dim strContents As String Dim WordApp As Word.Application Dim wordDoc As Word.Document Dim noneDoc As Word.Document Set noneDoc = Nothing Set WordApp = GetObject(, "Word.Application") If Err <> 0 Then 'word wasn't running, start it from code Set WordApp = CreateObject("Word.Application") End If 'get old document name oldDocName = Trim(strDocName) ' get length lenDocname = Len(Trim(strDocName)) 'remove last 4 characters and replace with .htm extension newDocName = Left(Trim(strDocName), lenDocname - 4) & ".htm" 'delete new file just in case strContents = strPath & newDocName 'Kill (strContents) 'open and display document strContents = strPath & oldDocName Set wordDoc = Documents.Open(FileName:=strContents, _ ConfirmConversions:=False, _ ReadOnly:=False, _ AddToRecentFiles:=False, _ Revert:=False, _ Format:=wdOpenFormatAuto) ' Visible:=True) ' Format:=wdDocument, ' no idea why but i sometimes get err 53 file not found yet the file still opens If Err <> 0 And Err <> 53 Then GoTo Quit_Conversion End If Err.Clear 'save as html wordDoc.SaveAs FileName:=strPath & newDocName, _ FileFormat:=wdFormatHTML, _ LockComments:=False, _ Password:="", _ AddToRecentFiles:=False, _ WritePassword:="", _ ReadOnlyRecommended:=False, _ EmbedTrueTypeFonts:=False, _ SaveNativePictureFormat:=False, _ SaveFormsData:=False, _ SaveAsAOCELetter:=False If Err <> 0 Then GoTo Quit_Conversion End If Debug.Print newDocName 'cmdConvert.Enabled = False 'cmdConvert.Visible = False Debug.print "Document Converted successfully" Quit_Conversion: If Err <> 0 Then Debug.Print Err.Number & " " & Err.Description _ & ", " & Err.Source, "e" End If If wordDoc <> noneDoc Then wordDoc.Close SaveChanges:=False End If Set wordDoc = Nothing If bolStarted = True Then WordApp.Quit End If Set WordApp = Nothing End Sub Bryan Carbonnell wrote: >>From: "Terri Jarus" >>Date: Fri, 06 Feb 2004 07:54:39 -0600 >>To: >>Subject: [AccessD] AXP - Create HTML Document >> >>I have a report that is created dynamically in Word, however, we now want it to be created in HTML. >> >>Does anyone have sample code to do something like this? >> >>Here is a sample (shortened version) of what we use for the Word doc - how can I change it to HTML. Or is there a better way? >> >>Private Sub CreateCDS_Click() >>DoCmd.Save >> Dim objWord As Word.Application >> Dim filename As String >> >> Set objWord = New Word.Application >> >> filename = "U:\Suppliers\Reports\Contract Sales\EForm\cds.dot" >> >> With objWord >> >> On Error GoTo MsgInfo >> .Visible = True >> >> .Documents.Add _ >> Template:=filename, _ >> NewTemplate:=False >> >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="ContractNumber" >> >> .Selection.TypeText _ >> Text:=ContractNumber >> >> If HubSupplier <> "" Then >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Hub" >> >> .Selection.TypeText _ >> Text:="Hub Supplier: " & Nz([HubSupplier]) >> Else >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="ContUpd" >> >> .Selection.TypeText _ >> Text:=ContUpd >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="InternalNum" >> >> .Selection.TypeText _ >> Text:=Nz([VendorInternal]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="PDU" >> >> .Selection.TypeText _ >> Text:=Prog >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Category" >> >> .Selection.TypeText _ >> Text:=IndexCategory >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="SupplierName" >> >> .Selection.TypeText _ >> Text:=UCase([SupplierPrintName]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Address1" >> >> .Selection.TypeText _ >> Text:=SupplierAddress1 >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Address2" >> >> .Selection.TypeText _ >> Text:=Nz([SupplierAddress2]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="CityStateZip" >> >> .Selection.TypeText _ >> Text:=CityStateZip >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Phone" >> >> .Selection.TypeText _ >> Text:=Nz([SupplierPhone]) >> >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Fax" >> >> If Nz(SupplierFax, "") = "" Then >> .Selection.Expand wdWord >> .Selection.Delete >> Else >> >> .Selection.TypeText _ >> Text:="FAX: " & Nz([SupplierFax]) >> >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="TollFree" >> >> If Nz(SupplierTollFree, "") = "" Then >> .Selection.Expand wdParagraph >> .Selection.Delete >> Else >> >> .Selection.TypeText _ >> Text:="TOLL FREE: " & Nz([SupplierTollFree]) >> >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="WebAddress" >> >> .Selection.TypeText _ >> Text:="Website: " & Nz([VendorWeb]) >> >> objWord.Selection.TypeParagraph >> objWord.Selection.MoveDown Unit:=wdLine >> >> >> .Quit >> >> End With >> >> Set objWord = Nothing >> >>MsgInfo: >> On Error Resume Next >> 'MsgBox "There is a required field missing information, please recheck your CDS data. Enter any required data into the Contract Info database." >> Exit Sub >>End Sub >> >>Please advise. >> >>Thanks for any help. >> >> >>Terri Jarus >>Director, Contract Support Services >>jarus at amerinet-gpo.com >>314-542-1902 >> >> >>--------------------------------------------------------------------------- >>This email and any files transmitted with it are confidential and >>intended solely for the use of the individuals or entities to whom they >>are addressed. If you have received this email in error please return >>it to the sender, and erase any copies thereof. >>Copyright 2004 Amerinet 1nc. >> >> >> > >-- >Bryan Carbonnell - carbonnb at sympatico.ca >Unfortunately common sense isn't so common! > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From John.Clark at niagaracounty.com Fri Feb 6 13:24:54 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Feb 2004 14:24:54 -0500 Subject: [AccessD] How to do an Admin Table Message-ID: Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing From KIsmert at TexasSystems.com Fri Feb 6 13:29:12 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 6 Feb 2004 13:29:12 -0600 Subject: [AccessD] Function Return array? In-Reply-To: Message-ID: <008901c3ece7$809ba3b0$2a3ca8c0@TEXASSYSTEMS.COM> Alternately, Private Function fnsArray() As String() Dim sArray() As String ' Contstruct your array.... ' Return fnsArray = sArray End Function To use: Dim sArray() As String sArray = fnsArray -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 06, 2004 10:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? 1. Declare the variable that will hold the returned array as a variant. Dim varArray as Variant 2. Declare the return value of the function that builds the array as a variant. Build the array in the function and set the function's return value to the array, whatever datatype the array may be. Public Function ReturnArray(lst As Listbox) As Variant 3. Even though the variable in the calling routine is declared as a variant rather than as an array, it will contain an array that is returned by the function and you can use it in code as if you had built the array within that routine. varArray = ReturnArray(Me.lstSelect) If Ubound(varArray) > 0 Then ... Charlotte Foust From KIsmert at TexasSystems.com Fri Feb 6 13:38:28 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 6 Feb 2004 13:38:28 -0600 Subject: [AccessD] Update table with update query In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128A40@mail2.wrsystems.com> Message-ID: <00a201c3ece8$cc372640$2a3ca8c0@TEXASSYSTEMS.COM> Randall, Welcome to the unnecessarily restricted world of Jet SQL ;) Summary queries aren't updatable. Jet requires ALL parts of the query to be updatable, even the source query that you explicitly aren't updating. This limitation chaps my hide regularly. Three ways around it: 1. Open the source query in code. Loop through the query, construct and issue individual UPDATEs for each target record affected. 2. Append the source to a temp table, then update the target using the temp 3. Move to SQL Server or some other REAL data server that's smart enough to do this in the obvious way -Ken -----Original Message----- From: Randall Anthony [mailto:ranthony at wrsystems.com] Sent: Friday, February 06, 2004 11:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Update table with update query Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 From jeffrey.demulling at usbank.com Fri Feb 6 13:44:43 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 6 Feb 2004 13:44:43 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: I have a table in my databases that is called tblProperty and it has the following structure: - PropertyInternalNumber (Autonumber) -PropertyName (Text:255) -PropertyValue (Text:255) Then I have functions that can retrieve and update the values as needed. Function GetPropertyValue(myPropertyName As String, myconnection As String) As String Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String Dim mymessage As String On Error GoTo GetPropertyValueError con = myconnection con.Open cmdtext = "SELECT tblProperty.PropertyValue" cmdtext = cmdtext & " FROM tblProperty" cmdtext = cmdtext & " WHERE tblProperty.PropertyName = '" & myPropertyName & "';" rs.Open cmdtext, con If Not rs.EOF And Not rs.BOF Then 'Property is present rs.MoveFirst GetPropertyValue = rs.Fields("PropertyValue") con.Close Else con.Close GetPropertyValue = "Unknown" End If Exit Function GetPropertyValueError: GetPropertyValue = "Unknown" End Function Function SetPropertyValue(myPropertyName As String, mypropertyvalue As String, myconnection As String) Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String Dim mymessage As String On Error GoTo GetPropertyValueError con = myconnection con.Open cmdtext = "UPDATE" cmdtext = cmdtext & " tblProperty" cmdtext = cmdtext & " SET" cmdtext = cmdtext & " tblProperty.PropertyValue =" & Chr(34) & mypropertyvalue & Chr(34) cmdtext = cmdtext & " WHERE" cmdtext = cmdtext & " tblProperty.PropertyName=" & Chr(34) & myPropertyName & Chr(34) & ";" rs.Open cmdtext, con con.Close Exit Function GetPropertyValueError: SetPropertyValue = "Unknown" End Function I can store an custom "property" and change it. For example I have the version of the program, the program name, last time interest was caluculated, etc.. I believe I saw the idea orginally from John Colby. -Jeff "John Clark" cc: Sent by: Subject: [AccessD] How to do an Admin Table accessd-bounces at databasead visors.com 02/06/2004 01:24 PM Please respond to "Access Developers discussion and problem solving" Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Feb 6 13:53:01 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 6 Feb 2004 13:53:01 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127B1@nt04.karta.com> Think of it as a lookup table. For the directors names, addresses, etc. You can use domain functions to glean the values. Use the table for the splash screen. In your case, I would have at least two tables, one for directors and another for mileage. The mileage table would have rates and effective dates. Add a row for the next effective date range. That way, a person can recalculate for any given period. HTH Jim -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 06, 2004 1:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Fri Feb 6 13:55:10 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Fri, 6 Feb 2004 14:55:10 -0500 Subject: [AccessD] Update table with update query Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A42@mail2.wrsystems.com> Thanks, Ken, I think I had encountered this before, but like most bad memories, I chose to ignore it. What threw me is exactly what you wrote, "even the source query that you explicitly aren't updating". So, I've gone with Door #2, create a temp table. And the table I'm updating is a temp table (sheesh). Thanks for the replies everyone. Have a nice weekend. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Friday, February 06, 2004 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Update table with update query Randall, Welcome to the unnecessarily restricted world of Jet SQL ;) Summary queries aren't updatable. Jet requires ALL parts of the query to be updatable, even the source query that you explicitly aren't updating. This limitation chaps my hide regularly. Three ways around it: 1. Open the source query in code. Loop through the query, construct and issue individual UPDATEs for each target record affected. 2. Append the source to a temp table, then update the target using the temp 3. Move to SQL Server or some other REAL data server that's smart enough to do this in the obvious way -Ken -----Original Message----- From: Randall Anthony [mailto:ranthony at wrsystems.com] Sent: Friday, February 06, 2004 11:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Update table with update query Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 6 14:09:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 6 Feb 2004 15:09:54 -0500 Subject: [AccessD] How to do an Admin Table In-Reply-To: Message-ID: John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From MPorter at acsalaska.com Fri Feb 6 14:09:02 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Fri, 6 Feb 2004 11:09:02 -0900 Subject: [AccessD] How to do an Admin Table Message-ID: I utilize a similar structure, and I've seen large scale List of Value tables which work well. Value group Value name Display value Value (property can be visiblility, order, active/inactive, etc.) Value I've seen this get really complex, the Siebel system I work with has an LOV table with about 2 dozen attributes including display language. In Access my structure is pretty simple, mainly the top three on that list. This can also be used to translate values from a business value (High, Med, Low) to something more usable (5, 3, 1) or measurable. Mark > -----Original Message----- > From: jeffrey.demulling at usbank.com > [mailto:jeffrey.demulling at usbank.com] > Sent: Friday, February 06, 2004 10:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to do an Admin Table > > > > I have a table in my databases that is called tblProperty and > it has the > following structure: > > - PropertyInternalNumber (Autonumber) > -PropertyName (Text:255) > -PropertyValue (Text:255) > > Then I have functions that can retrieve and update the values > as needed. > > Function GetPropertyValue(myPropertyName As String, > myconnection As String) > As String > Dim con As New ADODB.Connection > Dim rs As New ADODB.Recordset > Dim cmdtext As String > Dim mymessage As String > > On Error GoTo GetPropertyValueError > > con = myconnection > con.Open > > cmdtext = "SELECT tblProperty.PropertyValue" > cmdtext = cmdtext & " FROM tblProperty" > cmdtext = cmdtext & " WHERE tblProperty.PropertyName = '" & > myPropertyName > & "';" > > rs.Open cmdtext, con > > If Not rs.EOF And Not rs.BOF Then 'Property is present > rs.MoveFirst > GetPropertyValue = rs.Fields("PropertyValue") > con.Close > Else > con.Close > GetPropertyValue = "Unknown" > End If > > Exit Function > > GetPropertyValueError: > GetPropertyValue = "Unknown" > End Function > > Function SetPropertyValue(myPropertyName As String, mypropertyvalue As > String, myconnection As String) > Dim con As New ADODB.Connection > Dim rs As New ADODB.Recordset > Dim cmdtext As String > Dim mymessage As String > > On Error GoTo GetPropertyValueError > > con = myconnection > con.Open > > cmdtext = "UPDATE" > cmdtext = cmdtext & " tblProperty" > cmdtext = cmdtext & " SET" > cmdtext = cmdtext & " tblProperty.PropertyValue =" & Chr(34) & > mypropertyvalue & Chr(34) > cmdtext = cmdtext & " WHERE" > cmdtext = cmdtext & " tblProperty.PropertyName=" & Chr(34) & > myPropertyName > & Chr(34) & ";" > > rs.Open cmdtext, con > > con.Close > > Exit Function > > GetPropertyValueError: > SetPropertyValue = "Unknown" > End Function > > I can store an custom "property" and change it. For example > I have the > version of the program, the program name, last time interest was > caluculated, etc.. > > I believe I saw the idea orginally from John Colby. > > -Jeff > > > > > > "John Clark" > > > accessd at databaseadvisors.com > > com> cc: > > > Sent by: Subject: > [AccessD] How to do an Admin Table > > accessd-bounces at databasead > > > visors.com > > > > > > > > > 02/06/2004 01:24 PM > > > Please respond to "Access > > > Developers discussion and > > > problem solving" > > > > > > > > > > > > > Forgive me, if this is an easy one, but I've even asked someone that > teaches the Microsoft Access certification classes, and they > didn't know > how to do this either--or maybe I wasn't clear, when I asked. > > I have had many programs where it would be useful to have an "admin" > table. This table would contain one single record with information > referenced in other parts of the program. For instance, I > have a program > that figures monthly mileage for our county legislators, but it is > currently setup so that the rates are hard-coded and I have to alter > them everytime they are changed. I would like the user to alter this > themselves. > > I have also thought about using this for programs--maybe in their > splash screens--to list the current directors names, and > other info that > may or may not change in the future. > > Any ideas how? > > Thanks ahead of time...because I know if it can be done, somebody on > this list knows how to do it!!! > > John W Clark > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > *********************************************************************************** 6/2/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From kost36 at otenet.gr Fri Feb 6 14:28:16 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Fri, 6 Feb 2004 22:28:16 +0200 Subject: [AccessD] Something too hard for me... References: <5033688681.20040108174145@cactus.dk> Message-ID: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis From Oleg_123 at xuppa.com Fri Feb 6 14:49:51 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 6 Feb 2004 15:49:51 -0500 (EST) Subject: [AccessD] = NULL In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: <57492.12.3.132.98.1076100591.squirrel@heck.bay9.com> I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Fri Feb 6 14:55:29 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 6 Feb 2004 14:55:29 -0600 Subject: [AccessD] = NULL Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE336@TAPPEEXCH01> IsNull(txtStartDate) -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 2:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From jeffrey.demulling at usbank.com Fri Feb 6 14:59:06 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 6 Feb 2004 14:59:06 -0600 Subject: [AccessD] = NULL Message-ID: try If isnull(txtStartDate) Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If Oleg_123 at xuppa.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasead cc: visors.com Subject: [AccessD] = NULL 02/06/2004 02:49 PM Please respond to "Access Developers discussion and problem solving" I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Fri Feb 6 15:00:17 2004 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 06 Feb 2004 13:00:17 -0800 Subject: [AccessD] = NULL Message-ID: <249C1CB246997C48BB74963CCD361C1B014A0462@pnlmse28.pnl.gov> How about trying this: If IsNull(txtStartDate.Value) = TRUE Then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 12:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 6 15:04:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 6 Feb 2004 13:04:19 -0800 Subject: [AccessD] How to do an Admin Table Message-ID: That's the way I do it as well, although I structure my table a bit differently. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 06, 2004 12:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to do an Admin Table John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Fri Feb 6 15:18:01 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Fri, 6 Feb 2004 22:18:01 +0100 Subject: AW: [AccessD] Something too hard for me... In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: Hi Kostas, here's something I'd try (not tested...): Public function GetTotalPrice(lngNumberOfSpots as long) as currency Dim rst as new adodb.recordset rst.open "SELECT * FROM " & lngNumberOfSpots 'Found one? if not rst.eof 'Yes GetTotalPrice=(rst!Category-lngNumberOfSpots)*rst!Price/rst!Category 'Move one record back rst.move -1 'Not sure about the exact syntax here... GetTotalPrice=GetTotalPrice+curPriceL else 'We'll have to think about that... endif endif close rst set rst=nothing end function I am sure there is potential for optimizing that, but it should get you started. The example is based on an ADO-recordset. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Kostas Konstantinidis Gesendet: Freitag, 6. Februar 2004 21:28 An: Access Developers discussion and problem solving Betreff: [AccessD] Something too hard for me... Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 6 15:34:43 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 6 Feb 2004 14:34:43 -0700 Subject: [AccessD] Capturing SHIFT+Click? Message-ID: <16850-22004256213443893@christopherhawkins.com> All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- From Erwin.Craps at ithelps.be Fri Feb 6 15:33:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 6 Feb 2004 22:33:48 +0100 Subject: [AccessD] = NULL Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D21D@stekelbes.ithelps.local> It should be If (IsNull(me.txtStartDate) = TRUE) or (me.txtStartDate ="") then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Or more easy because it can be "" to....which is not null This covers both Don't forget to put the format of the field to date....because I supose your field is unbound. If nz(me.txtStartDate) = "" then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stoker, Kenneth E Verzonden: vrijdag 6 februari 2004 22:00 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] = NULL How about trying this: If IsNull(txtStartDate.Value) = TRUE Then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 12:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 6 15:42:45 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 6 Feb 2004 14:42:45 -0700 Subject: [AccessD] IDIOT! Shift + Click resolved... Message-ID: <35310-22004256214245571@christopherhawkins.com> ..I was looking at the wrong event. *slaps forehead* MouseDown has a built-in check for Shift. I've been staring at the Click event for an hour, saying to myself "I know I've done this, but I can't remember how..." *sigh* Sometimes I think just writing the "ask for help" message clarifies the problem enough that the message itself becoems moot. Heh. Sorry for the traffic. -C- From mikedorism at adelphia.net Fri Feb 6 15:44:48 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Fri, 6 Feb 2004 16:44:48 -0500 Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: <16850-22004256213443893@christopherhawkins.com> Message-ID: <000101c3ecfa$714b3840$8b194244@hargrove.internal> There is... KeyDown event (if you want to do something when the keys are pressed) or KeyUp event (if you want to do something after the keys are pressed). Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 4:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 15:43:44 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:43:44 -0600 Subject: [AccessD] Something too hard for me... Message-ID: <2F8793082E00D4119A1700B0D0216BF802227847@main2.marlow.com> Okay, made a table called tblTest. Put two fields in it. Quantity and Price. I filled it with the following information: 10 55 20 80 30 90 40 95 50 97 To do this on an individual basis, I created the following SQL: SELECT [Enter Number of Spots] AS NumberOfSpots, (SELECT [Price]/[Quantity] As PerUnit FROM tblTest WHERE Quantity=(SELECT Min(Quantity) AS MinQuantity FROM tblTest WHERE Quantity>=[Enter Number of Spots])) AS NextPerUnitCost, tblTest.Quantity AS BaseQuantity, [Price]+(([Enter Number of Spots]-[BaseQuantity])*[NextPerUnitCost]) AS NewCost FROM tblTest WHERE (((tblTest.Quantity)=(SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=[Enter Number of Spots]))); Run that, and put in 25, when prompted for 'Enter Number of Spots', and you get 25 for the NumberOfSpots, 3 for NextPerUnitCost, 20 for BaseQuantity, and $95 for NewCost. Now, if you want have the SQL generate a complete table, Create a table called tblTestValues and give it one field, TestQuantity. (Long) Then, put the following SQL into a Query, and call it qryPriceMatrix SELECT T1.TestQuantity, (SELECT [Price]/[Quantity] As PerUnit FROM tblTest WHERE Quantity=(SELECT Min(Quantity) AS MinQuantity FROM tblTest WHERE Quantity>=T1.TestQuantity)) AS NextPerUnitCost, (SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=T1.TestQuantity) AS BaseQuantity, (SELECT Price FROM tblTest WHERE Quantity=(SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=T1.TestQuantity))+(([TestQuantity]-[BaseQuantity])*[NextPerUnitCos t]) AS NewCost FROM tblTestValues AS T1 LEFT JOIN tblTest ON T1.TestQuantity = tblTest.Quantity; Then create a form, and put a command button on it, and put the following code behind the OnClick Event: Dim rsTest As Recordset Dim rs As Recordset Dim i As Long CurrentDb.Execute "DELETE * FROM tblTestValues" Set rsTest = CurrentDb.OpenRecordset("tblTestValues", dbOpenTable) Set rs = CurrentDb.OpenRecordset("Select Min(Quantity) As Minimum, Max(Quantity) As Maximum FROM tblTest") For i = rs.Fields(0).Value To rs.Fields(1).Value rsTest.AddNew rsTest.Fields(0).Value = i rsTest.Update Next i rsTest.Close rs.Close Set rsTest = Nothing Set rs = Nothing DoCmd.OpenQuery "qryPriceMatrix" (Note, this code was written in Access 97, so it uses DAO by default. If you are using A2k or up, set a reference to DAO) Now, you can change the price matrix in tblTest, and just click the button to see the complete 'list' of quantity versus price. Enjoy. By the way, this was fun, should have posted this before I got into the Date Dimension table issue! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kostas Konstantinidis Sent: Friday, February 06, 2004 2:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Something too hard for me... Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 6 15:46:07 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 6 Feb 2004 13:46:07 -0800 (PST) Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: <16850-22004256213443893@christopherhawkins.com> Message-ID: <20040206214607.67749.qmail@web20405.mail.yahoo.com> The first thing that comes to mind for me is to have a boolean in the module of your form. On the "Key Down" event of the form check to see if it is the shift key, then set the boolean to True. Then when you click the mouse you can check to see if the boolean is true and run your code. When the user lets go of the shift (On Key Up) set the boolean back to False. Just a thought. Christopher Hawkins wrote: All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From DWUTKA at marlow.com Fri Feb 6 15:46:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:46:38 -0600 Subject: [AccessD] Capturing SHIFT+Click? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227848@main2.marlow.com> Little groggy today, long night, but I'm sure there is an API call to detect the state of the shift key. I'll go look, and get back to you. You could then just 'wrap' your on-click event with the API Call/Check. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 3:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 15:55:38 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 16:55:38 -0500 Subject: [AccessD] Information about Access 2003 Message-ID: We are going to be getting Access 2003 in about a month. 1. Has anyone successfully installed & used Access2003 on the same machine with 97 & 2k 2. What are the major differences/problems with A2003 compared to A97 & 2k. Are there any articles, books, etc besides MS.com to read up on these. 3. We have several Access 97 database systems in use. Should I upgrade them to A2k first then A2003. Thanks From DWUTKA at marlow.com Fri Feb 6 15:56:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:56:58 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: <2F8793082E00D4119A1700B0D0216BF802227849@main2.marlow.com> Building a Class is the key (IMHO). On top of what you have described, I would also have the Class contain a default value, so that no values would be required in the table to begin with. In fact (and I must admit I do this a lot in VB, because I use .mdb's as my datasource, but usually use VB or ASP for FE), something I might suggest expiramenting with, just for the Heck of it, would be to use the Implements statement. Not sure how well this would work with Access, but in VB, I have had a WONDERFUL time with Implements. Just wish I had more instances where I could use it. Possible scenario...... Create a Class that calls an sets an Implements Class. Like this: Dim myClass As ImplementedClass Property Get SysValue(strName as String) On Error Resume Next Set myClass=CreateObject("MyProject." & strName) If Err Then Err.Clear Set myClass=CreateObject("MyProject.DefaultClass") End if SysValue=myClass.Value End Property Now, with that class, you would absolutely need the 'DefaultClass' Class, so that if it can't find the appropriate class, it has something to fall on. But, and this is where it gets cool (at least from a VB perspective.), not only can I change the values from the FE, or BE, but I can change how the Class works by just registering a new Class. (In VB, that would just be registering a new .dll). New Changes would automatically be taken into affect. So if I want to change a 'values' default value, or even do some type of business logic on a value, or error handling/prevention, no need to change the main project, I just send out a new .dll with the new implemented classes. I love Implements! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 06, 2004 2:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to do an Admin Table John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Feb 6 15:57:32 2004 From: James at fcidms.com (James Barash) Date: Fri, 6 Feb 2004 16:57:32 -0500 Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: Message-ID: You want to use the MouseDown event. That has a Shift parameter which gives the state of the Ctrl, Alt and Shift keys. I don't remember the values of each but with a little experimentation if should be easy to detect the appropriate value for the Shift key. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 4:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 16:13:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 16:13:18 -0600 Subject: [AccessD] IDIOT! Shift + Click resolved... Message-ID: <2F8793082E00D4119A1700B0D0216BF80222784A@main2.marlow.com> Told you I was groggy. When I get tired, my first reaction is usually....'hey, I know there's got to be an API call for that!'. Just for the fun of it, here is how you can do this with an API call. I am posting it, because it can go beyond what you are going to get with the MouseDown event. With NT machines, the following code will detect both left and/or right shift key depression: Option Compare Database Option Explicit Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Const VK_LSHIFT = &HA0 Private Const VK_RSHIFT = &HA1 Private Sub Command1_Click() Dim intLeft As Integer Dim intRight As Integer intLeft = GetAsyncKeyState(VK_LSHIFT) intRight = GetAsyncKeyState(VK_RSHIFT) If intLeft < 0 And intRight < 0 Then 'Both Shifts are Pressed MsgBox "You are pressing both left and right shift keys." Else If intLeft < 0 Then 'Just the Left shift is pressed MsgBox "You are pressing the Left shift key." Else If intRight < 0 Then 'Just the Right Shift is pressed MsgBox "You are pressing the Right shift key." Else 'No Shifts are being pressed MsgBox "No shift keys are being pressed." End If End If End If End Sub Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 3:43 PM To: accessd at databaseadvisors.com Subject: [AccessD] IDIOT! Shift + Click resolved... ..I was looking at the wrong event. *slaps forehead* MouseDown has a built-in check for Shift. I've been staring at the Click event for an hour, saying to myself "I know I've done this, but I can't remember how..." *sigh* Sometimes I think just writing the "ask for help" message clarifies the problem enough that the message itself becoems moot. Heh. Sorry for the traffic. -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Fri Feb 6 15:29:34 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 6 Feb 2004 16:29:34 -0500 (EST) Subject: [AccessD] = NULL In-Reply-To: References: Message-ID: <57456.12.3.132.98.1076102974.squirrel@heck.bay9.com> thank you :--) > > try > > If isnull(txtStartDate) Then > MsgBox "Please fill in the required dates", , "dates missing" > Exit Sub > End If > > > > Oleg_123 at xuppa.com > > Sent by: > To: accessd at databaseadvisors.com > > accessd-bounces at databasead cc: > > visors.com > Subject: [AccessD] = NULL > > > > 02/06/2004 02:49 PM > > Please respond to "Access > > Developers > discussion and > > problem solving" > > > > > > > > > I know i am not suppose to write = Null, but is null doesn't work > either, whats the correct coding ? > > If txtStartDate.Value = NULL Then > MsgBox "Please fill in the required dates", , "dates missing" > Exit Sub > End If > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From pedro at plex.nl Fri Feb 6 17:09:32 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:09:32 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040206082854.0299be48@pop3.highstream.net> Message-ID: <003701c3ed08$172ea500$f4c581d5@pedro> Hello Robert, its Ok with me. Do you have an idea when it will be active and on which site? Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Friday, February 06, 2004 3:36 PM Subject: [AccessD] Re: Code Librarian 2 > Here is the current SQL for the tables: > > CREATE TABLE [dbo].[tbl_CodeBase] ( > [CodeBaseID] [int] IDENTITY (1, 1) NOT NULL , > [Category] [varchar] (15) NOT NULL , > [Short_Desc] [varchar] (75) NOT NULL , > [Contributor_Name] [varchar] (50) NULL , > [Contributor_Email] [varchar] (50) NULL , > [Full_Desc] [text] NOT NULL , > [Code_Text] [text] NOT NULL , > [KnownIssues] [text] NULL , > [Audt_Create_Dt] [datetime] NOT NULL , > [Audt_Create_UID] [varchar] (20) NOT NULL , > [Audt_Modify_Dt] [datetime] NULL , > [Audt_Modify_UID] [varchar] (20) NULL > ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodeBaseReferences] ( > [CodeBaseReferenceID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [RequiredReference] [varchar] (75) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodeBaseSoftware] ( > [CodeBaseSoftwareID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [SoftwareVersionID] [int] NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodebaseFiles] ( > [Code_Link_ID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [CodeFile] [binary] (50) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodebaseKeyword] ( > [CodeBaseKeywordID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [Keyword] [varchar] (10) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_Category] ( > [Category] [varchar] (15) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_SoftwareName] ( > [SoftwareName] [varchar] (20) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_SoftwareVersion] ( > [SoftwareVersionID] [int] IDENTITY (1, 1) NOT NULL , > [SoftwareName] [varchar] (20) NOT NULL , > [SoftwareVersion] [varchar] (10) NOT NULL > ) ON [PRIMARY] > GO > > If you catch something that I forgot, drop me a note and I will > get it in there. > > Robert > > At 02:12 AM 2/6/2004 -0600, you wrote: > >Date: Thu, 5 Feb 2004 16:27:29 -0600 > >From: "John Bartow" > >Subject: RE: [AccessD] Re: Code Librarian 2 > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > > > >Pedro, > >References needed is a good one. Right now I put it into the details and it > >isn't easy to find there. > >Contributor is a better description for what I listed as "Who (or where) it > >came from" > > > >John > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > > Sent: Thursday, February 05, 2004 3:25 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Re: Code Librarian 2 > > > > > > > > > Hello, > > > > > > The fields that you mentioned and the fields that > > > John Bartow suggested are ok with me. > > > Other fields that i would recomment are: > > > references (that are needed), expected problems, > > > Contributor, Email. > > > > > > Greetings > > > > > > 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 Feb 6 17:15:27 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:15:27 +0100 Subject: [AccessD] problem with DoCmd.OpenReport References: <40236333.21970.23D5F979@localhost> Message-ID: <003801c3ed08$1a67d700$f4c581d5@pedro> Hello Stuart, the messagebox gave me the right value of field Code. Then trying again. Same Error. Then i switched field [code] in the [ID] field of the table. Voila everything worked fine. Strange, because the code field is also an Unique ID field. Thanks fot your help. Pedro Janssen ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 06, 2004 12:49 AM Subject: Re: [AccessD] problem with DoCmd.OpenReport > On 6 Feb 2004 at 0:03, Pedro Janssen wrote: > > > Hello Stuart and others, > > > > Sorry i mistyped in that mail. > > In my code the report (stDocName) is there, like in your line of code you > > mentioned. > > Sorry for this. > > When i use the code i get the Syntax error(operator missing)????? > > > > > Try putting a Msgbox "Test" at the start of the report's On_Open to see > where the problem really is. If you get the message box before the error, > then it's something in the report or underlying query that's causing it. > > > > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy > http://www.lexacorp.com.pg > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Fri Feb 6 17:21:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:21:28 +0100 Subject: [AccessD] filter on more then one field Message-ID: <003901c3ed08$1b77e770$f4c581d5@pedro> Hello Group, i would like to filter a value that i have entered in a tekstbox. The filter must search for this value in more then one field on a form, and return the record in which the value is found. How can i do this? Pedro Janssen From Developer at UltraDNT.com Fri Feb 6 22:02:38 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 6 Feb 2004 23:02:38 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: Message-ID: <000001c3ed2f$3d1fdcd0$7001a8c0@COA3> Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 6 22:35:48 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 6 Feb 2004 23:35:48 -0500 Subject: [AccessD] Re: DatePart Question In-Reply-To: Message-ID: Hear, hear! There is IMO a large distinction between OLTP and OLAP apps, and what works in the former cannot be assumed to work in the latter. And vice-versa. Data-entry and modification should never be confused with data-analysis, and asking a single database to do both is IMO stupid or lazy or both. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 5:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From bchacc at san.rr.com Sat Feb 7 00:45:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 6 Feb 2004 22:45:14 -0800 Subject: [AccessD] = NULL References: <57456.12.3.132.98.1076102974.squirrel@heck.bay9.com> Message-ID: <015901c3ed45$f0db3510$6601a8c0@HAL9002> Oleg: You might also try IsDate(txtStartDate) and error message read date is missing or invalid. This would catch both missing and invalid dates. Rocky ----- Original Message ----- From: To: Sent: Friday, February 06, 2004 1:29 PM Subject: Re: [AccessD] = NULL > thank you :--) > > > > > try > > > > If isnull(txtStartDate) Then > > MsgBox "Please fill in the required dates", , "dates missing" > > Exit Sub > > End If > > > > > > > > Oleg_123 at xuppa.com > > > > Sent by: > > To: accessd at databaseadvisors.com > > > > accessd-bounces at databasead cc: > > > > visors.com > > Subject: [AccessD] = NULL > > > > > > > > 02/06/2004 02:49 PM > > > > Please respond to "Access > > > > Developers > > discussion and > > > > problem solving" > > > > > > > > > > > > > > > > > > I know i am not suppose to write = Null, but is null doesn't work > > either, whats the correct coding ? > > > > If txtStartDate.Value = NULL Then > > MsgBox "Please fill in the required dates", , "dates missing" > > Exit Sub > > End If > > > > > > > > ----------------------------------------- > > Get Breaking News from CNN, ABC, NBC, CBS Now. > > http://www.xuppa.com/news/?link=webmail > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Sat Feb 7 03:28:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sat, 07 Feb 2004 03:28:48 -0600 Subject: [AccessD] Re: How to do an Admin Table In-Reply-To: <200402062142.i16Lgkm25127@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040207032457.018f9490@pop3.highstream.net> John, tsys_Defaults DefaultID Autonumber PK DefaultDesc text(20) Unique Key (i.e. Mileage Rate, Call Phone Rate, etc) DefaultNbrValue Number (double) DefaultTxtValue Text(10) With this, you can do a lookup for whatever value you want to use and not have to add columns to a table when you get new requirements. Robert At 03:42 PM 2/6/2004 -0600, you wrote: >Date: Fri, 06 Feb 2004 14:24:54 -0500 >From: "John Clark" >Subject: [AccessD] How to do an Admin Table >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Forgive me, if this is an easy one, but I've even asked someone that >teaches the Microsoft Access certification classes, and they didn't know >how to do this either--or maybe I wasn't clear, when I asked. > >I have had many programs where it would be useful to have an "admin" >table. This table would contain one single record with information >referenced in other parts of the program. For instance, I have a program >that figures monthly mileage for our county legislators, but it is >currently setup so that the rates are hard-coded and I have to alter >them everytime they are changed. I would like the user to alter this >themselves. > >I have also thought about using this for programs--maybe in their >splash screens--to list the current directors names, and other info that >may or may not change in the future. > >Any ideas how? > >Thanks ahead of time...because I know if it can be done, somebody on >this list knows how to do it!!! > >John W Clark > >John W. Clark >Computer Programmer >Niagara County >Central Data Processing From gustav at cactus.dk Sat Feb 7 06:56:41 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Feb 2004 13:56:41 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: <14915413513.20040207135641@cactus.dk> Hi Kostas > I am trying to create a little project to calculate some prices of a Radio > Station advertising list > In a table I keep CATEGORY and PRICE e.g. 10 -->> 55,00EURO 20 -->> 80,00 30 -->> 90,00 > bla, bla > What I want to calculate is the price of an uncategorized spots between two > categories. > 25 SPOTS.... > The calculation is: > A) the 20 spots cost 80,00 > B) I have to select the next category (in that case 30) to find out how much > cost one spot (90,00/30 = 3,00EURO) > C). the 5 spots cost 5X3,00=15,00 > so, the total price for the uncategorized query must be > 80,00+15,00=95,00euro You can, as an exercise in DMax(), do this with a single line of code where Q is your number of spots: curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) The limitation is that your rate table must include an entry equal to or exceeding the largest possible quantity of spots for a single order. Have fun! /gustav From jscott at mchsi.com Sat Feb 7 08:53:15 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Sat, 7 Feb 2004 08:53:15 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3ed2f$3d1fdcd0$7001a8c0@COA3> Message-ID: <000001c3ed8a$1dd2a640$d62ed70c@JeanineScott> I figured it out yesterday...finally. I could use the same connection string for my pass through query as I do for my linked table or my ADO recordset connection! This worked... .Connect = SetPassThroughConnection() With the connection string being... "ODBC;Driver={SQL Server};Server=" & gvarSQLDataLocation & ";Database=" & gstrDBName & ";Trusted_Connection=yes" Thanks to everyone for their help... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Friday, February 06, 2004 10:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From jscott at mchsi.com Sat Feb 7 08:56:58 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Sat, 7 Feb 2004 08:56:58 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3ed8a$1dd2a640$d62ed70c@JeanineScott> Message-ID: <000101c3ed8a$a28e7260$d62ed70c@JeanineScott> Oops - could "not" use the same connection string... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Saturday, February 07, 2004 8:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL I figured it out yesterday...finally. I could use the same connection string for my pass through query as I do for my linked table or my ADO recordset connection! This worked... .Connect = SetPassThroughConnection() With the connection string being... "ODBC;Driver={SQL Server};Server=" & gvarSQLDataLocation & ";Database=" & gstrDBName & ";Trusted_Connection=yes" Thanks to everyone for their help... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Friday, February 06, 2004 10:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From kost36 at otenet.gr Sat Feb 7 12:43:10 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 7 Feb 2004 20:43:10 +0200 Subject: [AccessD] Something too hard for me... References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <14915413513.20040207135641@cactus.dk> Message-ID: <000f01c3edaa$3d9d7b60$0100a8c0@kost36> Hi Gustav, thank's a lot for your really excellent job. It works perfect but I have another question which is very critical. we are a network of 19 Regional Greek Stations so the general advertising list incloudes common Quantities but different prices for every of them. Every Station based on its ID (from 1 to 19) I tried to put your code on but it conficts with good reason cause the same quantities are iclouding several times Michael and Drew Many thank's for your time too Be well Kostas ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 07, 2004 2:56 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > I am trying to create a little project to calculate some prices of a Radio > > Station advertising list > > In a table I keep CATEGORY and PRICE e.g. > > 10 -->> 55,00EURO > 20 -->> 80,00 > 30 -->> 90,00 > > bla, bla > > > What I want to calculate is the price of an uncategorized spots between two > > categories. > > 25 SPOTS.... > > The calculation is: > > A) the 20 spots cost 80,00 > > B) I have to select the next category (in that case 30) to find out how much > > cost one spot (90,00/30 = 3,00EURO) > > C). the 5 spots cost 5X3,00=15,00 > > so, the total price for the uncategorized query must be > > 80,00+15,00=95,00euro > > > You can, as an exercise in DMax(), do this with a single line of code > where Q is your number of spots: > > curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) > > The limitation is that your rate table must include an entry equal to > or exceeding the largest possible quantity of spots for a single > order. > > Have fun! > > /gustav > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From gustav at cactus.dk Sat Feb 7 14:08:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Feb 2004 21:08:38 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000f01c3edaa$3d9d7b60$0100a8c0@kost36> References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> Message-ID: <922182757.20040207210838@cactus.dk> Hi Kostas > Hi Gustav, > thank's a lot for your really excellent job. > It works perfect but I have another question which is very critical. > we are a network of 19 Regional Greek Stations so the general advertising > list incloudes common Quantities but different prices for every of them. > Every Station based on its ID (from 1 to 19) > I tried to put your code on but it conficts with good reason cause the same > quantities are iclouding several times > Michael and Drew Many thank's for your time too > Be well This is possible and still fun but before being slammed by my fellow listers, let me note that we are approaching the land of unreadable code. Nevertheless: curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0) In addition to the inclusion of a Station ID, please note a minor correction (<=). Your table should now as minimum read: Station: Integer Quantity: Integer Price: Currency A unique index should be applied to the fields Station and Quantity. Also, you may need to round the total: curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0), "Standard") /gustav > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 07, 2004 2:56 PM > Subject: Re: [AccessD] Something too hard for me... >> Hi Kostas >> >> > I am trying to create a little project to calculate some prices of a Radio >> > Station advertising list >> > In a table I keep CATEGORY and PRICE e.g. >> >> 10 -->> 55,00EURO >> 20 -->> 80,00 >> 30 -->> 90,00 >> > bla, bla >> >> > What I want to calculate is the price of an uncategorized spots between two >> > categories. >> > 25 SPOTS.... >> > The calculation is: >> > A) the 20 spots cost 80,00 >> > B) I have to select the next category (in that case 30) to find out how much >> > cost one spot (90,00/30 = 3,00EURO) >> > C). the 5 spots cost 5X3,00=15,00 >> > so, the total price for the uncategorized query must be >> > 80,00+15,00=95,00euro >> >> >> You can, as an exercise in DMax(), do this with a single line of code >> where Q is your number of spots: >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) >> >> The limitation is that your rate table must include an entry equal to >> or exceeding the largest possible quantity of spots for a single >> order. >> >> Have fun! From kost36 at otenet.gr Sun Feb 8 02:38:31 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sun, 8 Feb 2004 10:38:31 +0200 Subject: [AccessD] Something too hard for me... References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36> <922182757.20040207210838@cactus.dk> Message-ID: <000701c3ee1e$f16da470$0100a8c0@kost36> Hi Gustav, In my language we use to say "I have no words to thank you..." So, after two years using this access list I have to say that ADDPS is a real great help community with no date and time limits. Well, may be I couldn't manage to give you the right tips about my question. I put your code line by line into a query but it gives back the same calculation for all records. There is no need to put a filter about the S because I want to know the Q of all ID's with the same quantity. My table contains records like: ID Q PRICE 1 10 55,00 1 20 72,00 1 30 98,00 2 10 47,00 2 20 60,00 2 30 72,00 3 10 65,00 3 20 77,00 3 30 92,00 ... so, I can't use unique index to the fields Station and Quantity. Running the query e.g. for a 25 Q it must answers ID Q PRICE 1 25 88,30 2 25 62,00 3 25 92,30 ... Have a nice day Kostas --- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 07, 2004 10:08 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > Hi Gustav, > > thank's a lot for your really excellent job. > > It works perfect but I have another question which is very critical. > > > we are a network of 19 Regional Greek Stations so the general advertising > > list incloudes common Quantities but different prices for every of them. > > Every Station based on its ID (from 1 to 19) > > I tried to put your code on but it conficts with good reason cause the same > > quantities are iclouding several times > > Michael and Drew Many thank's for your time too > > > Be well > > > This is possible and still fun but before being slammed by my fellow > listers, let me note that we are approaching the land of unreadable > code. Nevertheless: > > curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0) > > In addition to the inclusion of a Station ID, please note a minor > correction (<=). > > Your table should now as minimum read: > > Station: Integer > Quantity: Integer > Price: Currency > > A unique index should be applied to the fields Station and Quantity. > Also, you may need to round the total: > > curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0), "Standard") > > /gustav > > > > ----- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 07, 2004 2:56 PM > > Subject: Re: [AccessD] Something too hard for me... > > > >> Hi Kostas > >> > >> > I am trying to create a little project to calculate some prices of a Radio > >> > Station advertising list > >> > In a table I keep CATEGORY and PRICE e.g. > >> > >> 10 -->> 55,00EURO > >> 20 -->> 80,00 > >> 30 -->> 90,00 > >> > bla, bla > >> > >> > What I want to calculate is the price of an uncategorized spots between two > >> > categories. > >> > 25 SPOTS.... > >> > The calculation is: > >> > A) the 20 spots cost 80,00 > >> > B) I have to select the next category (in that case 30) to find out how much > >> > cost one spot (90,00/30 = 3,00EURO) > >> > C). the 5 spots cost 5X3,00=15,00 > >> > so, the total price for the uncategorized query must be > >> > 80,00+15,00=95,00euro > >> > >> > >> You can, as an exercise in DMax(), do this with a single line of code > >> where Q is your number of spots: > >> > >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + > >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", > >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) > >> > >> The limitation is that your rate table must include an entry equal to > >> or exceeding the largest possible quantity of spots for a single > >> order. > >> > >> Have fun! > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 8 04:07:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 8 Feb 2004 11:07:17 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000701c3ee1e$f16da470$0100a8c0@kost36> References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> Message-ID: <1705431139.20040208110717@cactus.dk> Hi Kostas > Hi Gustav, > In my language we use to say "I have no words to thank you..." > So, after two years using this access list I have to say that ADDPS is a > real great help community with no date and time limits. You are welcome! That is was the list is for. > Well, may be I couldn't manage to give you the right tips about my question. > I put your code line by line into a query but it gives back the same > calculation for all records. > There is no need to put a filter about the S because I want to know the Q of > all ID's with the same quantity. > My table contains records like: > ID Q PRICE > 1 10 55,00 > 1 20 72,00 > 1 30 98,00 > 2 10 47,00 > 2 20 60,00 > 2 30 72,00 > 3 10 65,00 > 3 20 77,00 > 3 30 92,00 > ... > so, I can't use unique index to the fields Station and Quantity. The index was only meant to prevent duplicate entries as the combination of Station ID and Quantity must be unique. > Running the query e.g. for a 25 Q it must answers > ID Q PRICE > 1 25 88,30 > 2 25 62,00 > 3 25 92,30 > ... OK. You can include the expression in a query where it will be run record by record with the respective Station ID. Note the correction of Format() to round to one decimal: PARAMETERS Q Short; SELECT DISTINCT Station, [Q] AS Quantity, Format( Nz(DMax("Price", "tblRate", "Station = " & Station & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & Station & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & Station & " And Quantity > " & Q & ""), 0), "0.0" & "\0") AS Total FROM tblRate; Copy and paste this into a new query and adjust to your naming of fields etc. However, if this - to build a list - is the purpose, and the DMax() exercise hadn't be done or your count of stations were 1900 and not 19, I would suggest to follow the approach of Drew and build a query and calculate in SQL, though - with the needed in-line or sub select queries - it wouldn't be much nicer to watch. /gustav > --- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 07, 2004 10:08 PM > Subject: Re: [AccessD] Something too hard for me... >> Hi Kostas >> >> > Hi Gustav, >> > thank's a lot for your really excellent job. >> > It works perfect but I have another question which is very critical. >> >> > we are a network of 19 Regional Greek Stations so the general advertising >> > list incloudes common Quantities but different prices for every of them. >> > Every Station based on its ID (from 1 to 19) >> > I tried to put your code on but it conficts with good reason cause the same >> > quantities are iclouding several times >> > Michael and Drew Many thank's for your time too >> >> > Be well >> >> >> This is possible and still fun but before being slammed by my fellow >> listers, let me note that we are approaching the land of unreadable >> code. Nevertheless: >> >> curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " >> \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), >> 0) >> >> In addition to the inclusion of a Station ID, please note a minor >> correction (<=). >> >> Your table should now as minimum read: >> >> Station: Integer >> Quantity: Integer >> Price: Currency >> >> A unique index should be applied to the fields Station and Quantity. >> Also, you may need to round the total: >> >> curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & >> Q & " \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), >> 0), "Standard") >> >> /gustav >> >> >> > ----- Original Message ----- >> > From: "Gustav Brock" >> > To: "Access Developers discussion and problem solving" >> > >> > Sent: Saturday, February 07, 2004 2:56 PM >> > Subject: Re: [AccessD] Something too hard for me... >> >> >> >> Hi Kostas >> >> >> >> > I am trying to create a little project to calculate some prices of a Radio >> >> > Station advertising list >> >> > In a table I keep CATEGORY and PRICE e.g. >> >> >> >> 10 -->> 55,00EURO >> >> 20 -->> 80,00 >> >> 30 -->> 90,00 >> >> > bla, bla >> >> >> >> > What I want to calculate is the price of an uncategorized spots between two >> >> > categories. >> >> > 25 SPOTS.... >> >> > The calculation is: >> >> > A) the 20 spots cost 80,00 >> >> > B) I have to select the next category (in that case 30) to find out how much >> >> > cost one spot (90,00/30 = 3,00EURO) >> >> > C). the 5 spots cost 5X3,00=15,00 >> >> > so, the total price for the uncategorized query must be >> >> > 80,00+15,00=95,00euro >> >> >> >> >> >> You can, as an exercise in DMax(), do this with a single line of code >> >> where Q is your number of spots: >> >> >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + >> >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", >> >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""),> 0) >> >> >> >> The limitation is that your rate table must include an entry equal to >> >> or exceeding the largest possible quantity of spots for a single >> >> order. >> >> >> >> Have fun! From kost36 at otenet.gr Sun Feb 8 14:32:28 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sun, 8 Feb 2004 22:32:28 +0200 Subject: [AccessD] Something too hard for me... References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36><000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> Message-ID: <001d01c3ee82$acf76740$0100a8c0@kost36> Hi Gustav, thank's a lot Everything works perfect Kostas ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 12:07 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > Hi Gustav, > > In my language we use to say "I have no words to thank you..." > > So, after two years using this access list I have to say that ADDPS is a > > real great help community with no date and time limits. > > You are welcome! That is was the list is for. > > > Well, may be I couldn't manage to give you the right tips about my question. > > I put your code line by line into a query but it gives back the same > > calculation for all records. > > There is no need to put a filter about the S because I want to know the Q of > > all ID's with the same quantity. > > My table contains records like: > > ID Q PRICE > > 1 10 55,00 > > 1 20 72,00 > > 1 30 98,00 > > 2 10 47,00 > > 2 20 60,00 > > 2 30 72,00 > > 3 10 65,00 > > 3 20 77,00 > > 3 30 92,00 > > ... > > so, I can't use unique index to the fields Station and Quantity. > > The index was only meant to prevent duplicate entries as the > combination of Station ID and Quantity must be unique. > > > Running the query e.g. for a 25 Q it must answers > > > ID Q PRICE > > 1 25 88,30 > > 2 25 62,00 > > 3 25 92,30 > > ... > > > OK. You can include the expression in a query where it will be run > record by record with the respective Station ID. > Note the correction of Format() to round to one decimal: > > > > PARAMETERS > Q Short; > SELECT DISTINCT > Station, > [Q] AS Quantity, > Format( > Nz(DMax("Price", "tblRate", "Station = " & Station & " And " & Q & " \ Quantity > 0"), 0) + > Nz(DMax("(Price / Quantity) * (" & Q - > Nz(DMax("Quantity", "tblRate", "Station = " & Station & " And Quantity <= " & Q & ""), 0) > & ")", "tblRate", "Station = " & Station & " And Quantity > " & Q & ""), 0), > "0.0" & "\0") AS Total > FROM > tblRate; > > > > Copy and paste this into a new query and adjust to your naming of > fields etc. > > However, if this - to build a list - is the purpose, and the DMax() > exercise hadn't be done or your count of stations were 1900 and not > 19, I would suggest to follow the approach of Drew and build a query > and calculate in SQL, though - with the needed in-line or sub select > queries - it wouldn't be much nicer to watch. > > /gustav > > > > --- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 07, 2004 10:08 PM > > Subject: Re: [AccessD] Something too hard for me... > > > >> Hi Kostas > >> > >> > Hi Gustav, > >> > thank's a lot for your really excellent job. > >> > It works perfect but I have another question which is very critical. > >> > >> > we are a network of 19 Regional Greek Stations so the general advertising > >> > list incloudes common Quantities but different prices for every of them. > >> > Every Station based on its ID (from 1 to 19) > >> > I tried to put your code on but it conficts with good reason cause the same > >> > quantities are iclouding several times > >> > Michael and Drew Many thank's for your time too > >> > >> > Be well > >> > >> > >> This is possible and still fun but before being slammed by my fellow > >> listers, let me note that we are approaching the land of unreadable > >> code. Nevertheless: > >> > >> curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " > >> \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - > >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & > >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), > >> 0) > >> > >> In addition to the inclusion of a Station ID, please note a minor > >> correction (<=). > >> > >> Your table should now as minimum read: > >> > >> Station: Integer > >> Quantity: Integer > >> Price: Currency > >> > >> A unique index should be applied to the fields Station and Quantity. > >> Also, you may need to round the total: > >> > >> curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & > >> Q & " \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - > >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & > >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), > >> 0), "Standard") > >> > >> /gustav > >> > >> > >> > ----- Original Message ----- > >> > From: "Gustav Brock" > >> > To: "Access Developers discussion and problem solving" > >> > > >> > Sent: Saturday, February 07, 2004 2:56 PM > >> > Subject: Re: [AccessD] Something too hard for me... > >> > >> > >> >> Hi Kostas > >> >> > >> >> > I am trying to create a little project to calculate some prices of a Radio > >> >> > Station advertising list > >> >> > In a table I keep CATEGORY and PRICE e.g. > >> >> > >> >> 10 -->> 55,00EURO > >> >> 20 -->> 80,00 > >> >> 30 -->> 90,00 > >> >> > bla, bla > >> >> > >> >> > What I want to calculate is the price of an uncategorized spots between two > >> >> > categories. > >> >> > 25 SPOTS.... > >> >> > The calculation is: > >> >> > A) the 20 spots cost 80,00 > >> >> > B) I have to select the next category (in that case 30) to find out how much > >> >> > cost one spot (90,00/30 = 3,00EURO) > >> >> > C). the 5 spots cost 5X3,00=15,00 > >> >> > so, the total price for the uncategorized query must be > >> >> > 80,00+15,00=95,00euro > >> >> > >> >> > >> >> You can, as an exercise in DMax(), do this with a single line of code > >> >> where Q is your number of spots: > >> >> > >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + > >> >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", > >> >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""),> 0) > >> >> > >> >> The limitation is that your rate table must include an entry equal to > >> >> or exceeding the largest possible quantity of spots for a single > >> >> order. > >> >> > >> >> Have fun! > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bruce_bruen at mlc.com.au Sun Feb 8 17:13:39 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 9 Feb 2004 10:13:39 +1100 Subject: [AccessD] Something too hard for me... Message-ID: A bit late on the input but nethertheless... Kostas, Without understanding anything about the business rules of your situation, I just wanted to add the folllowing. I have seen this problem many times in distribution and sales systems. The best general solution I have seen is the use of a "margin" column in the structure table, viz |--+----+--------+----------+---------| |ID|Base| Limit | BaseCost | Margin | |--+----+--------+----------+---------| | | | | | | |--+----+--------+----------+---------| | 1| 0| 9| $0.00|$6,000.00| |--+----+--------+----------+---------| | 1| 10| 19|$55,000.00|$3,960.00| |--+----+--------+----------+---------| | 1| 20| 29|$72,000.00|$3,593.33| |--+----+--------+----------+---------| | 1| 30|99999999|$98,000.00|$3,500.00| |--+----+--------+----------+---------| | 2| 0| 9| $0.00|$5,000.00| |--+----+--------+----------+---------| | 2| 10| 19|$47,000.00|$3,300.00| |--+----+--------+----------+---------| | 2| 20| 29|$60,000.00|$2,640.00| |--+----+--------+----------+---------| | 2| 30|99999999|$72,000.00|$2,500.00| |--+----+--------+----------+---------| | 3| 0| 9| $0.00|$7,000.00| |--+----+--------+----------+---------| | 3| 10| 19|$65,000.00|$4,235.00| |--+----+--------+----------+---------| | 3| 20| 29|$77,000.00|$3,373.33| |--+----+--------+----------+---------| | 3| 30|99999999|$92,000.00|$3,300.00| |--+----+--------+----------+---------| This structure allows the marketers to fine tune the marginal costs to make higher volume sales more attractive, can be maintained by the marketers rather than having to change the margin cost calculation code everytime they want to push a particular bracket, and allows "simpler" querying of the table to get the correct pricing. SELECT tblCost.ID, tblCost.Base, tblCost.Limit, tblCost.BaseCost, tblCost.Margin, (([Enter Q]-[Base])*[Margin])+[BaseCost] AS TotalCost FROM tblCost WHERE (((tblCost.ID)=[Enter station ID]) AND ((tblCost.Base)<[Enter Q]) AND ((tblCost.Limit)>=[Enter Q])); Just thought this might be of interest. Bruce From martyconnelly at shaw.ca Sun Feb 8 17:14:45 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 08 Feb 2004 15:14:45 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> <001d01c3ee82$acf76740$0100a8c0@kost36> Message-ID: <4026C2E5.3030204@shaw.ca> Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada From bruce_bruen at mlc.com.au Sun Feb 8 17:44:40 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 9 Feb 2004 10:44:40 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen Message-ID: This isn't a case of "it aint broke so lets fix it" its more like "it aint broke, so lets throw it out". B MartyConnelly To: Access Developers discussion and problem solving Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Next Version of Access 12 Musings on what might happen 09/02/2004 10:14 Please respond to Access Developers discussion and problem solving Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [AccessD] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From martyconnelly at shaw.ca Sun Feb 8 21:02:22 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 08 Feb 2004 19:02:22 -0800 Subject: [AccessD] More Musings on what might happen MS moving away from OOPs by Don Box References: Message-ID: <4026F83E.5020707@shaw.ca> Microsoft steers away from object orientation http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sun Feb 8 21:31:37 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 09 Feb 2004 13:31:37 +1000 Subject: [AccessD] More Musings on what might happen MS moving away from OOPs by Don Box In-Reply-To: <4026F83E.5020707@shaw.ca> Message-ID: <40278BB9.23463.134404A@localhost> On 8 Feb 2004 at 19:02, MartyConnelly wrote: > Microsoft steers away from object orientation > http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm > "How do we discourage unwanted intimacy?... The metaphor we?re going to use for integrating programs [on Indigo] is service orientation. I can only interact by sending and receiving messages. Message-based comms gives more flexibility." Why don't we try to come up with some fancy new name for this. I know! How about Dynamic Data Exchange or DDE for short - that has a nice ring to it -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Sun Feb 8 22:29:55 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 8 Feb 2004 20:29:55 -0800 Subject: [AccessD] Access as Service (What is a service?) In-Reply-To: <401A12C9.60.187A9A@localhost> Message-ID: <000001c3eec5$6177e040$6501a8c0@delllaptop> What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Feb 8 23:53:38 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 9 Feb 2004 00:53:38 -0500 Subject: [AccessD] Administrivia - List Software Upgrade References: <4026A67B.1068.B05F0E@localhost> Message-ID: <002001c3eed1$1074c710$6101a8c0@dejpolsys> ...thanks for the "heads up" Bryan ...hope it goes smoothly :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Sunday, February 08, 2004 9:13 PM Subject: [AccessD] Administrivia - List Software Upgrade > On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the > software that runs the lists hosted by Database Advisors will be > upgraded. It should only take a couple of hours. > > This will bring our software upto date. Not only is it necessary for > security but it will also be a step on the road to a completely > searchable archive at http://databaseadvisors.com > > During the time it takes to run the upgrade, the server will be down. > Any post made during this time will not be accepted. It may be > rejected by the server as well. However, it will only be a temporary > situation. A notice will be posted once the server is back up and > running with the new list software. > > You can also keep an eye on > http://www.databaseadvisors.com/liststatus.htm for any changes or > notices. > > Thank you for your patience during this, and the upcoming changes and > upgrades. > > Thank You, > > -- > Bryan Carbonnell - Your Listmaster > listmaster at databaseadvisors.com > > _______________________________________________ > Administrivia mailing list > Administrivia at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/administrivia > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Mon Feb 9 01:52:58 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 08:52:58 +0100 Subject: [AccessD] More Musings on what might happen MS moving away fromOOPs by Don Box Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D225@stekelbes.ithelps.local> I'm +/- 16 year in I.T. now, I sometimes have the impression we are making rounds and putting the same old stuff into a new, but bigger, package.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 09, 2004 4:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] More Musings on what might happen MS moving away fromOOPs by Don Box On 8 Feb 2004 at 19:02, MartyConnelly wrote: > Microsoft steers away from object orientation > http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm > "How do we discourage unwanted intimacy?... The metaphor we're going to use for integrating programs [on Indigo] is service orientation. I can only interact by sending and receiving messages. Message-based comms gives more flexibility." Why don't we try to come up with some fancy new name for this. I know! How about Dynamic Data Exchange or DDE for short - that has a nice ring to it -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Mon Feb 9 04:22:37 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 09 Feb 2004 05:22:37 -0500 Subject: [AccessD] Administrivia - List Software Upgrade In-Reply-To: <002001c3eed1$1074c710$6101a8c0@dejpolsys> Message-ID: <4027191D.3822.11B596@localhost> On 9 Feb 2004 at 0:53, William Hindman wrote: > ...thanks for the "heads up" Bryan ...hope it goes smoothly :) No problem. You and 400+ others hope it goes smoothly too :) -- Bryan Carbonnell - carbonnb at sympatico.ca There's a fine line between a hobby and mental illness. Which side of the line are you on? From tortise at paradise.net.nz Mon Feb 9 04:23:41 2004 From: tortise at paradise.net.nz (Tortise) Date: Mon, 09 Feb 2004 23:23:41 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: <46B976F2B698FF46A4FE7636509B22DF03D225@stekelbes.ithelps.local> Message-ID: <000701c3eef6$ca0449b0$1e00a8c0@cheqsoft.local> Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards David From jimdettman at earthlink.net Mon Feb 9 06:38:57 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 9 Feb 2004 07:38:57 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: <4026C2E5.3030204@shaw.ca> Message-ID: Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 9 07:38:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 9 Feb 2004 08:38:05 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <000701c3eef6$ca0449b0$1e00a8c0@cheqsoft.local> Message-ID: Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards David _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 08:21:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 08:21:04 -0600 Subject: [AccessD] Access as Service (What is a service?) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222784F@main2.marlow.com> A service is a program that runs in the background of the OS. In Windows 9x machines, services are setup in the registry, and there is little you can do with them, other then put them in the registry, and reboot. The real key of a 'service', is that it runs no matter who is logged on, or even if anyone is logged on at all. Why would that be important? Simple. Take for example a Firewall program. You would want your firewall to be running whenever your computer is on, not just when you are logged in. In Windows NT (NT 4.0, 2k, XP), there is a 'services' panel in the control panel. This lists all of the programs that are setup as services on your machine. Each program can be set to Automatic, Manual, or Disabled. (which determines how the service is started when your OS boots). You can also stop/start the various services. There are other options available, depending on what OS you are using. I hope this answers your question. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Sunday, February 08, 2004 10:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access as Service (What is a service?) What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 08:24:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 08:24:05 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen Message-ID: <2F8793082E00D4119A1700B0D0216BF802227850@main2.marlow.com> Couldn't agree more. I still use primarily Access 97. Once in a while, I am using A2k. However, there is nothing out there yet, where Access 97 can't be used to it's full potential. Nor have I really seen anything is blows Access 97 out of the water yet (except for A2k's raiseevents capability). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Monday, February 09, 2004 6:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Mon Feb 9 08:26:10 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Mon, 9 Feb 2004 09:26:10 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> <001d01c3ee82$acf76740$0100a8c0@kost36> <4026C2E5.3030204@shaw.ca> Message-ID: <005701c3ef18$acbcbe10$6401a8c0@default> Marty, Thank you for the links - both quite thought provoking. I hope MS will consider going back to the old .hlp format for MSDN and .Net documentation in Office 12! Michael R. Mattys www.mattysconsulting.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 6:14 PM Subject: [AccessD] Next Version of Access 12 Musings on what might happen > Thought this might be of interest. > What's Next? Microsoft hints at what the future might hold for Access. > > By Ken Getz > > > http://accessvbsql.advisor.com/doc/13516 > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Feb 9 08:32:08 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 15:32:08 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D242@stekelbes.ithelps.local> Idd, since they changed the HLP files I can't find a thing anymore.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, February 09, 2004 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Next Version of Access 12 Musings on what might happen Marty, Thank you for the links - both quite thought provoking. I hope MS will consider going back to the old .hlp format for MSDN and .Net documentation in Office 12! Michael R. Mattys www.mattysconsulting.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 6:14 PM Subject: [AccessD] Next Version of Access 12 Musings on what might happen > Thought this might be of interest. > What's Next? Microsoft hints at what the future might hold for Access. > > By Ken Getz > > > http://accessvbsql.advisor.com/doc/13516 > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Mon Feb 9 09:05:17 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Mon, 9 Feb 2004 15:05:17 +0000 Subject: [AccessD] Checking if a file is open Message-ID: Hi All, I am importing data from Excel into Access. The initial step in this process involves copying the data from the excel spreadsheet into a temporary copy of itself. This step fails if the file is open. Does anyone recommend a method that I could use to see if the file is already open (and then notify the user to shut it down?) TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rl_stewart at highstream.net Mon Feb 9 09:19:25 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 09 Feb 2004 09:19:25 -0600 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <200402071800.i17I0Vm07030@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> Answers below: At 12:00 PM 2/7/2004 -0600, you wrote: >Date: Fri, 6 Feb 2004 16:55:38 -0500 >From: "O'Connor, Patricia " >Subject: [AccessD] Information about Access 2003 >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain; charset="ISO-8859-1" > > >We are going to be getting Access 2003 in about a month. > >1. Has anyone successfully installed & used Access2003 on the same machine >with 97 & 2k I have 97, 2000, 2002, and 2003 installed and running quite well on a Win 2003 server machine. >2. What are the major differences/problems with A2003 compared to A97 & 2k. It is very different from 97, but close (with enhancements) to 2000 and 2002. >Are there any articles, books, etc besides MS.com to read up on these. Don't have an answer for you here. I teach a developer's workshop and I have went to 2003 exclusively for teaching it. >3. We have several Access 97 database systems in use. Should I upgrade them >to A2k first then A2003. Might not be a bad idea. It will give you a chance to get the references and anything else straightened out first. Robert From rl_stewart at highstream.net Mon Feb 9 09:23:38 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 09 Feb 2004 09:23:38 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402071800.i17I0Vm07030@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040209092104.029bee98@pop3.highstream.net> Pedro, I am finishing another project now. I should be able to start it in the next week and it should not take long to get the initial site up. I was planning on have it on my business site: TheDysonGroup.com. So all in all, I would say within the next 3 weeks the basic functionality will be in place on online. Robert At 12:00 PM 2/7/2004 -0600, you wrote: >Date: Sat, 7 Feb 2004 00:09:32 +0100 >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <003701c3ed08$172ea500$f4c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >its Ok with me. >Do you have an idea when it will be active and on which site? > >Pedro From Oleg_123 at xuppa.com Mon Feb 9 09:26:16 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:26:16 -0500 (EST) Subject: [AccessD] Checking if a file is open In-Reply-To: References: Message-ID: <13407.12.3.132.98.1076340376.squirrel@heck.bay9.com> the easiest (aaltough not the best) way would be to see what is the number of the error you are getting, and write code for that error prompting the user to close excel appl, and exiting the sub > Hi All, > > I am importing data from Excel into Access. The initial step in this > process involves copying the data from the excel spreadsheet into a > temporary copy of itself. This step fails if the file is open. Does > anyone recommend a method that I could use to see if the file is already > open (and then notify the user to shut it down?) > > TIA > RyanS > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rsmethurst at UK.EY.COM Mon Feb 9 09:28:26 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Mon, 9 Feb 2004 15:28:26 +0000 Subject: [AccessD] Checking if a file is open Message-ID: Thanks for the reply Oleg. That is what I have at the moment, but if at all possible I would like to work around the file being open, (like I said though - if at all possible) Cheers Ryan Sent by: accessd-bounces at databaseadvisors.com 09/02/2004 15:26 Please respond to Access Developers discussion and problem solving To: cc: Subject: Re: [AccessD] Checking if a file is open the easiest (aaltough not the best) way would be to see what is the number of the error you are getting, and write code for that error prompting the user to close excel appl, and exiting the sub > Hi All, > > I am importing data from Excel into Access. The initial step in this > process involves copying the data from the excel spreadsheet into a > temporary copy of itself. This step fails if the file is open. Does > anyone recommend a method that I could use to see if the file is already > open (and then notify the user to shut it down?) > > TIA > RyanS > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Oleg_123 at xuppa.com Mon Feb 9 09:37:15 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:37:15 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: References: Message-ID: <13582.12.3.132.98.1076341035.squirrel@heck.bay9.com> Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Erwin.Craps at ithelps.be Mon Feb 9 09:47:07 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 16:47:07 +0100 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> Aha very simple.... The date of the computer was changed.... It is also posible to alter these dates from an API.... Think about FTP programs that set date and time equal to the one on the FTP server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 4:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Feb 9 09:51:06 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 9 Feb 2004 10:51:06 -0500 Subject: [AccessD] (OT) text file modified before created ? Message-ID: There are numerous utilities available that can modify these values at will with no regard to the accepted time-space continuum. Mark -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 09, 2004 10:37 AM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 09:52:28 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 09:52:28 -0600 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> If you copy a file from one location to another, it will maintain it's modified tag, but have a new Created date/time, because the physical file was created when you copied it, but it still rememembers the last time the original was modified. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 09:55:39 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 09:55:39 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com From Oleg_123 at xuppa.com Mon Feb 9 09:57:28 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:57:28 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> Message-ID: <13379.12.3.132.98.1076342248.squirrel@heck.bay9.com> hmm, date of the computer was changed ? how > Aha very simple.... > The date of the computer was changed.... > It is also posible to alter these dates from an API.... > > Think about FTP programs that set date and time equal to the one on the > FTP server. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 4:37 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Mon Feb 9 10:01:37 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:01:37 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: References: Message-ID: <13497.12.3.132.98.1076342497.squirrel@heck.bay9.com> yeah, but i didn't try to do it myself, it happened without my interferance > There are numerous utilities available that can modify these values at > will with no regard to the accepted time-space continuum. > > > > Mark > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mwp.reid at qub.ac.uk Mon Feb 9 10:04:37 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:04:37 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <001601c3ef26$6acef690$9111758f@aine> Are they users or soon to be developers? Martin ----- Original Message ----- From: "Jim Hewson" To: "'AccessD'" Sent: Monday, February 09, 2004 3:55 PM Subject: [AccessD] Teaching Access Course > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > ---------------------------------------------------------------------------- ---- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 9 10:06:36 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:06:36 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> Message-ID: <13898.12.3.132.98.1076342796.squirrel@heck.bay9.com> thank you, this sounds understandable > If you copy a file from one location to another, it will maintain it's > modified tag, but have a new Created date/time, because the physical > file was created when you copied it, but it still rememembers the last > time the original was modified. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 9:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 9 10:10:12 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:10:12 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> All users. Jim -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Are they users or soon to be developers? Martin ----- Original Message ----- From: "Jim Hewson" To: "'AccessD'" Sent: Monday, February 09, 2004 3:55 PM Subject: [AccessD] Teaching Access Course > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > ---------------------------------------------------------------------------- ---- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 10:17:00 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 10:17:00 -0600 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227852@main2.marlow.com> It should, because it's true! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] (OT) text file modified before created ? thank you, this sounds understandable > If you copy a file from one location to another, it will maintain it's > modified tag, but have a new Created date/time, because the physical > file was created when you copied it, but it still rememembers the last > time the original was modified. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 9:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 9 10:18:40 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:18:40 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> Message-ID: <000d01c3ef28$61310a40$9111758f@aine> I run a couple of courses here Users are taught how to work with existing systems. We do teach them a little about table construction and relationships in the context of the work they do with the existing systems. We dont teach norminisation, reserved words etc which we cover in teh application development courses. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:10 PM Subject: RE: [AccessD] Teaching Access Course > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > > > > > Our customer has added a tasking on our contract. > > I have developed several Access databases for this customer on several > > different contracts. They want a two-day course to teach 6-10 people. A > > classroom with computers and Access loaded on them will be on their site. > > The student's experience ranges from someone who knows how to spell Access > > to someone who thinks they know how to use it. > > I do have experience conducting courses - just not Access. > > > > My first cut of a syllabus is below. Any suggestions? > > > > Thanks in advance. > > Jim > > > > 1. Introduction to Databases > > a. Systems [Software] Development Life Cycle (SDLC > > b. Database Nomenclature > > c. Naming Conventions > > d. Normalization > > e. Relational Database > > f. Database design concepts > > 2. Introduction to Access > > a. Access Specifications > > b. Short cut keys > > c. Reserved Words > > d. Access Objects > > e. Relationships between tables > > 3. Access Tables > > a. Primary keys > > b. Fields and records > > c. Navigate through records > > d. Enter, edit and delete records > > e. Format tables > > f. Filtering data in tables > > 4. Designing Access Tables > > a. Design view > > b. Adding and naming fields > > c. Assigning Field types > > d. Assigning Field Properties > > e. Creating Key Fields > > f. Creating relationships > > 5. Designing Access Queries > > a. Using "And" and "Or" statements > > b. "=" vs "like" > > c. Parameter Queries > > d. Auto lookup Queries > > e. Advanced Queries (Nested Queries, Sub-queries) > > f. Insert/Update/Delete/Make-Table Queries > > 6. Access Form Design > > a. Designing a Form > > b. Formatting forms > > c. Adding controls > > d. Combo boxes / list boxes > > e. Groups > > f. MS Visual Basic > > g. Using Wizards > > 7. Access Report Design > > a. Creating a report > > b. Formatting reports > > c. Using Wizards > > > > > > Jim H. Hewson > > Marketing/Proposal Support Manager > > Karta Technologies, Inc. > > 5555 Northwest Parkway > > San Antonio, Texas 78249 > > 210-582-3233 > > jhewson at karta.com > > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 9 10:20:41 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:20:41 -0500 (EST) Subject: [AccessD] Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> Message-ID: <13383.12.3.132.98.1076343641.squirrel@heck.bay9.com> Jim, why would users ever need to know anything about field types, reserved words, and nested queries ???? > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > >> >> Our customer has added a tasking on our contract. >> I have developed several Access databases for this customer on several >> different contracts. They want a two-day course to teach 6-10 people. >> A classroom with computers and Access loaded on them will be on their >> site. The student's experience ranges from someone who knows how to >> spell Access to someone who thinks they know how to use it. >> I do have experience conducting courses - just not Access. >> >> My first cut of a syllabus is below. Any suggestions? >> >> Thanks in advance. >> Jim >> >> 1. Introduction to Databases >> a. Systems [Software] Development Life Cycle (SDLC >> b. Database Nomenclature >> c. Naming Conventions >> d. Normalization >> e. Relational Database >> f. Database design concepts >> 2. Introduction to Access >> a. Access Specifications >> b. Short cut keys >> c. Reserved Words >> d. Access Objects >> e. Relationships between tables >> 3. Access Tables >> a. Primary keys >> b. Fields and records >> c. Navigate through records >> d. Enter, edit and delete records >> e. Format tables >> f. Filtering data in tables >> 4. Designing Access Tables >> a. Design view >> b. Adding and naming fields >> c. Assigning Field types >> d. Assigning Field Properties >> e. Creating Key Fields >> f. Creating relationships >> 5. Designing Access Queries >> a. Using "And" and "Or" statements >> b. "=" vs "like" >> c. Parameter Queries >> d. Auto lookup Queries >> e. Advanced Queries (Nested Queries, Sub-queries) >> f. Insert/Update/Delete/Make-Table Queries >> 6. Access Form Design >> a. Designing a Form >> b. Formatting forms >> c. Adding controls >> d. Combo boxes / list boxes >> e. Groups >> f. MS Visual Basic >> g. Using Wizards >> 7. Access Report Design >> a. Creating a report >> b. Formatting reports >> c. Using Wizards >> >> >> Jim H. Hewson >> Marketing/Proposal Support Manager >> Karta Technologies, Inc. >> 5555 Northwest Parkway >> San Antonio, Texas 78249 >> 210-582-3233 >> jhewson at karta.com >> >> >> > > > ---------------------------------------------------------------------------- > ---- > > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 9 10:23:13 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:23:13 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BD@nt04.karta.com> In this context, my definition of users refers to those people who will "develop" databases on their computer, not for the use of others. These databases will be for personal use only. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 09, 2004 10:21 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Teaching Access Course Jim, why would users ever need to know anything about field types, reserved words, and nested queries ???? > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > >> >> Our customer has added a tasking on our contract. >> I have developed several Access databases for this customer on several >> different contracts. They want a two-day course to teach 6-10 people. >> A classroom with computers and Access loaded on them will be on their >> site. The student's experience ranges from someone who knows how to >> spell Access to someone who thinks they know how to use it. >> I do have experience conducting courses - just not Access. >> >> My first cut of a syllabus is below. Any suggestions? >> >> Thanks in advance. >> Jim >> >> 1. Introduction to Databases >> a. Systems [Software] Development Life Cycle (SDLC >> b. Database Nomenclature >> c. Naming Conventions >> d. Normalization >> e. Relational Database >> f. Database design concepts >> 2. Introduction to Access >> a. Access Specifications >> b. Short cut keys >> c. Reserved Words >> d. Access Objects >> e. Relationships between tables >> 3. Access Tables >> a. Primary keys >> b. Fields and records >> c. Navigate through records >> d. Enter, edit and delete records >> e. Format tables >> f. Filtering data in tables >> 4. Designing Access Tables >> a. Design view >> b. Adding and naming fields >> c. Assigning Field types >> d. Assigning Field Properties >> e. Creating Key Fields >> f. Creating relationships >> 5. Designing Access Queries >> a. Using "And" and "Or" statements >> b. "=" vs "like" >> c. Parameter Queries >> d. Auto lookup Queries >> e. Advanced Queries (Nested Queries, Sub-queries) >> f. Insert/Update/Delete/Make-Table Queries >> 6. Access Form Design >> a. Designing a Form >> b. Formatting forms >> c. Adding controls >> d. Combo boxes / list boxes >> e. Groups >> f. MS Visual Basic >> g. Using Wizards >> 7. Access Report Design >> a. Creating a report >> b. Formatting reports >> c. Using Wizards >> >> >> Jim H. Hewson >> Marketing/Proposal Support Manager >> Karta Technologies, Inc. >> 5555 Northwest Parkway >> San Antonio, Texas 78249 >> 210-582-3233 >> jhewson at karta.com >> >> >> > > > ---------------------------------------------------------------------------- > ---- > > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Mon Feb 9 10:34:00 2004 From: chizotz at charter.net (chizotz at charter.net) Date: Mon, 9 Feb 2004 10:34:00 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <200402091633.i19GX383073749@mxsf05.cluster1.charter.net> Jim, >From my experience, many of the topics you're including are going to be way off the track for the vast majority of users. It depends on what the users are going to be expected to do, of course, but I can promise you that "typical users" are going to be overwhelmed and are going to come away being more dangerous than proficient. We recently implemented a basic Access skills assessment test for new hires. It consisted of a provided table and a requirement to create two very simple queries and a report using a wizard. The first take on this was deemed "too advanced" and an "unfair test", so we dumbed it down even more. It's a little scary what passes for "skills" among non-tech people, but there it is. I would cut out most of the underlying theory stuff and all of the programming. If the users are going to be expected to write simple queries, I would give the basics of how to use the query designer and an overview of how data is related. If they need to create reports, I'd show them how to use the wizard, and maybe some basic customizing tools. Also, this is jam-packed for two days. Be prepared for even what you would consider the most simple of concepts to take at least twice as much time as you'd expect to cover. Even then, you're going to have someone in the class leave without understanding the material. Our 2-day basic Access course covers the base essentials of tables (the differences between numeric, text, and date data and the mechanics of creating a table), queries (how to set up a simple select from one and two tables), and creating a report with a wizard. Our "typical users" consider it a very difficult and taxing class. We have very few people who go on to sign up for our so-called "advanced" class. If you're like me, you will be disappointed and amazed at how difficult most people think this very basic stuff is. Good luck, Ron > > From: Jim Hewson > Date: 2004/02/09 Mon AM 09:55:39 CST > To: "'AccessD'" > Subject: [AccessD] Teaching Access Course > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 9 10:40:42 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:40:42 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BD@nt04.karta.com> Message-ID: <001301c3ef2b$75826d60$9111758f@aine> Jim A good starting point is the Microsoft Office User Specialist Course Access Not sure of the URL but a full spec is on the MS web site. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:23 PM Subject: RE: [AccessD] Teaching Access Course > > In this context, my definition of users refers to those people who will > "develop" databases on their computer, not for the use of others. > These databases will be for personal use only. > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:21 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Teaching Access Course > > > Jim, why would users ever need to know anything about field types, > reserved words, and nested queries ???? > > > > > All users. > > Jim > > -----Original Message----- > > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > > Sent: Monday, February 09, 2004 10:05 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Teaching Access Course > > > > > > Are they users or soon to be developers? > > > > Martin > > > > > > ----- Original Message ----- > > From: "Jim Hewson" > > To: "'AccessD'" > > Sent: Monday, February 09, 2004 3:55 PM > > Subject: [AccessD] Teaching Access Course > > > > > >> > >> Our customer has added a tasking on our contract. > >> I have developed several Access databases for this customer on several > >> different contracts. They want a two-day course to teach 6-10 people. > >> A classroom with computers and Access loaded on them will be on their > >> site. The student's experience ranges from someone who knows how to > >> spell Access to someone who thinks they know how to use it. > >> I do have experience conducting courses - just not Access. > >> > >> My first cut of a syllabus is below. Any suggestions? > >> > >> Thanks in advance. > >> Jim > >> > >> 1. Introduction to Databases > >> a. Systems [Software] Development Life Cycle (SDLC > >> b. Database Nomenclature > >> c. Naming Conventions > >> d. Normalization > >> e. Relational Database > >> f. Database design concepts > >> 2. Introduction to Access > >> a. Access Specifications > >> b. Short cut keys > >> c. Reserved Words > >> d. Access Objects > >> e. Relationships between tables > >> 3. Access Tables > >> a. Primary keys > >> b. Fields and records > >> c. Navigate through records > >> d. Enter, edit and delete records > >> e. Format tables > >> f. Filtering data in tables > >> 4. Designing Access Tables > >> a. Design view > >> b. Adding and naming fields > >> c. Assigning Field types > >> d. Assigning Field Properties > >> e. Creating Key Fields > >> f. Creating relationships > >> 5. Designing Access Queries > >> a. Using "And" and "Or" statements > >> b. "=" vs "like" > >> c. Parameter Queries > >> d. Auto lookup Queries > >> e. Advanced Queries (Nested Queries, Sub-queries) > >> f. Insert/Update/Delete/Make-Table Queries > >> 6. Access Form Design > >> a. Designing a Form > >> b. Formatting forms > >> c. Adding controls > >> d. Combo boxes / list boxes > >> e. Groups > >> f. MS Visual Basic > >> g. Using Wizards > >> 7. Access Report Design > >> a. Creating a report > >> b. Formatting reports > >> c. Using Wizards > >> > >> > >> Jim H. Hewson > >> Marketing/Proposal Support Manager > >> Karta Technologies, Inc. > >> 5555 Northwest Parkway > >> San Antonio, Texas 78249 > >> 210-582-3233 > >> jhewson at karta.com > >> > >> > >> > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Mon Feb 9 10:44:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 08:44:21 -0800 Subject: [AccessD] Teaching Access Course Message-ID: Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com From DWUTKA at marlow.com Mon Feb 9 10:46:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 10:46:30 -0600 Subject: [AccessD] Rule Test.. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227853@main2.marlow.com> Had to change rules on my machine, testing that the AccessD one still works! Drew From JHewson at karta.com Mon Feb 9 10:45:35 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:45:35 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BF@nt04.karta.com> Thanks, I'll take out some of the theory stuff. -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course I run a couple of courses here Users are taught how to work with existing systems. We do teach them a little about table construction and relationships in the context of the work they do with the existing systems. We dont teach norminisation, reserved words etc which we cover in teh application development courses. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:10 PM Subject: RE: [AccessD] Teaching Access Course > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > > > > > Our customer has added a tasking on our contract. > > I have developed several Access databases for this customer on several > > different contracts. They want a two-day course to teach 6-10 people. A > > classroom with computers and Access loaded on them will be on their site. > > The student's experience ranges from someone who knows how to spell Access > > to someone who thinks they know how to use it. > > I do have experience conducting courses - just not Access. > > > > My first cut of a syllabus is below. Any suggestions? > > > > Thanks in advance. > > Jim > > > > 1. Introduction to Databases > > a. Systems [Software] Development Life Cycle (SDLC > > b. Database Nomenclature > > c. Naming Conventions > > d. Normalization > > e. Relational Database > > f. Database design concepts > > 2. Introduction to Access > > a. Access Specifications > > b. Short cut keys > > c. Reserved Words > > d. Access Objects > > e. Relationships between tables > > 3. Access Tables > > a. Primary keys > > b. Fields and records > > c. Navigate through records > > d. Enter, edit and delete records > > e. Format tables > > f. Filtering data in tables > > 4. Designing Access Tables > > a. Design view > > b. Adding and naming fields > > c. Assigning Field types > > d. Assigning Field Properties > > e. Creating Key Fields > > f. Creating relationships > > 5. Designing Access Queries > > a. Using "And" and "Or" statements > > b. "=" vs "like" > > c. Parameter Queries > > d. Auto lookup Queries > > e. Advanced Queries (Nested Queries, Sub-queries) > > f. Insert/Update/Delete/Make-Table Queries > > 6. Access Form Design > > a. Designing a Form > > b. Formatting forms > > c. Adding controls > > d. Combo boxes / list boxes > > e. Groups > > f. MS Visual Basic > > g. Using Wizards > > 7. Access Report Design > > a. Creating a report > > b. Formatting reports > > c. Using Wizards > > > > > > Jim H. Hewson > > Marketing/Proposal Support Manager > > Karta Technologies, Inc. > > 5555 Northwest Parkway > > San Antonio, Texas 78249 > > 210-582-3233 > > jhewson at karta.com > > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 10:48:41 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:48:41 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C0@nt04.karta.com> Very good. Thank you. I was afraid I was looking at too much material. I'll return to the basics and hope for the best. -----Original Message----- From: chizotz at charter.net [mailto:chizotz at charter.net] Sent: Monday, February 09, 2004 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Thanks again. Jim Jim, >From my experience, many of the topics you're including are going to be way off the track for the vast majority of users. It depends on what the users are going to be expected to do, of course, but I can promise you that "typical users" are going to be overwhelmed and are going to come away being more dangerous than proficient. We recently implemented a basic Access skills assessment test for new hires. It consisted of a provided table and a requirement to create two very simple queries and a report using a wizard. The first take on this was deemed "too advanced" and an "unfair test", so we dumbed it down even more. It's a little scary what passes for "skills" among non-tech people, but there it is. I would cut out most of the underlying theory stuff and all of the programming. If the users are going to be expected to write simple queries, I would give the basics of how to use the query designer and an overview of how data is related. If they need to create reports, I'd show them how to use the wizard, and maybe some basic customizing tools. Also, this is jam-packed for two days. Be prepared for even what you would consider the most simple of concepts to take at least twice as much time as you'd expect to cover. Even then, you're going to have someone in the class leave without understanding the material. Our 2-day basic Access course covers the base essentials of tables (the differences between numeric, text, and date data and the mechanics of creating a table), queries (how to set up a simple select from one and two tables), and creating a report with a wizard. Our "typical users" consider it a very difficult and taxing class. We have very few people who go on to sign up for our so-called "advanced" class. If you're like me, you will be disappointed and amazed at how difficult most people think this very basic stuff is. Good luck, Ron > > From: Jim Hewson > Date: 2004/02/09 Mon AM 09:55:39 CST > To: "'AccessD'" > Subject: [AccessD] Teaching Access Course > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards From JHewson at karta.com Mon Feb 9 10:50:02 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:50:02 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C1@nt04.karta.com> I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 10:50:19 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:50:19 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C2@nt04.karta.com> thanks, I'll check it out. Jim -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Jim A good starting point is the Microsoft Office User Specialist Course Access Not sure of the URL but a full spec is on the MS web site. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:23 PM Subject: RE: [AccessD] Teaching Access Course > > In this context, my definition of users refers to those people who will > "develop" databases on their computer, not for the use of others. > These databases will be for personal use only. > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:21 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Teaching Access Course > > > Jim, why would users ever need to know anything about field types, > reserved words, and nested queries ???? > > > > > All users. > > Jim > > -----Original Message----- > > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > > Sent: Monday, February 09, 2004 10:05 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Teaching Access Course > > > > > > Are they users or soon to be developers? > > > > Martin > > > > > > ----- Original Message ----- > > From: "Jim Hewson" > > To: "'AccessD'" > > Sent: Monday, February 09, 2004 3:55 PM > > Subject: [AccessD] Teaching Access Course > > > > > >> > >> Our customer has added a tasking on our contract. > >> I have developed several Access databases for this customer on several > >> different contracts. They want a two-day course to teach 6-10 people. > >> A classroom with computers and Access loaded on them will be on their > >> site. The student's experience ranges from someone who knows how to > >> spell Access to someone who thinks they know how to use it. > >> I do have experience conducting courses - just not Access. > >> > >> My first cut of a syllabus is below. Any suggestions? > >> > >> Thanks in advance. > >> Jim > >> > >> 1. Introduction to Databases > >> a. Systems [Software] Development Life Cycle (SDLC > >> b. Database Nomenclature > >> c. Naming Conventions > >> d. Normalization > >> e. Relational Database > >> f. Database design concepts > >> 2. Introduction to Access > >> a. Access Specifications > >> b. Short cut keys > >> c. Reserved Words > >> d. Access Objects > >> e. Relationships between tables > >> 3. Access Tables > >> a. Primary keys > >> b. Fields and records > >> c. Navigate through records > >> d. Enter, edit and delete records > >> e. Format tables > >> f. Filtering data in tables > >> 4. Designing Access Tables > >> a. Design view > >> b. Adding and naming fields > >> c. Assigning Field types > >> d. Assigning Field Properties > >> e. Creating Key Fields > >> f. Creating relationships > >> 5. Designing Access Queries > >> a. Using "And" and "Or" statements > >> b. "=" vs "like" > >> c. Parameter Queries > >> d. Auto lookup Queries > >> e. Advanced Queries (Nested Queries, Sub-queries) > >> f. Insert/Update/Delete/Make-Table Queries > >> 6. Access Form Design > >> a. Designing a Form > >> b. Formatting forms > >> c. Adding controls > >> d. Combo boxes / list boxes > >> e. Groups > >> f. MS Visual Basic > >> g. Using Wizards > >> 7. Access Report Design > >> a. Creating a report > >> b. Formatting reports > >> c. Using Wizards > >> > >> > >> Jim H. Hewson > >> Marketing/Proposal Support Manager > >> Karta Technologies, Inc. > >> 5555 Northwest Parkway > >> San Antonio, Texas 78249 > >> 210-582-3233 > >> jhewson at karta.com > >> > >> > >> > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 9 10:52:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 9 Feb 2004 16:52:43 +0000 Subject: [AccessD] Checking if a file is open Message-ID: <20040209165240.094942766DB@smithers.nildram.co.uk> You could try renaming it and bleep if you can't. Then rename it back if all ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Checking if a file is open Date: 09/02/04 20:27 > > the easiest (aaltough not the best) way would be to see what is the > number of the error you are getting, and write code for that error > prompting the user to close excel appl, and exiting the sub > > > Hi All, > > > > I am importing data from Excel into Access. The initial step in this > > process involves copying the data from the excel spreadsheet into a > > temporary copy of itself. This step fails if the file is open. Does > > anyone recommend a method that I could use to see if the file is already > > open (and then notify the user to shut it down?) > > > > TIA > > RyanS > > > > > > > > This e-mail and any attachment are confidential and contain proprietary > > information, some or all of which may be legally privileged. It is > > intended solely for the use of the individual or entity to which it is > > addressed. If you are not the intended recipient, please notify the > > author immediately by telephone or by replying to this e-mail, and then > > delete all copies of the e-mail on your system. If you are not the > > intended recipient, you must not use, disclose, distribute, copy, print > > or rely on this e-mail. > > > > Whilst we have taken reasonable precautions to ensure that this e-mail > > and any attachment has been checked for viruses, we cannot guarantee > > that they are virus free and we cannot accept liability for any damage > > sustained as a result of software viruses. We would advise that you > > carry out your own virus checks, especially before opening an > > attachment. > > > > The UK firm Ernst & Young LLP is a limited liability partnership > > registered in England and Wales with registered number OC300001 and is a > > member practice of Ernst & Young Global. A list of members? names is > > available for inspection at 1 More London Place, London, SE1 2AF, the > > firm?s principal place of business and its registered office. > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cfoust at infostatsystems.com Mon Feb 9 10:59:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 08:59:12 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: Unfortunately, sometimes you have to deal with a hybrid, particularly if the client is governmental. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, February 06, 2004 8:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question Hear, hear! There is IMO a large distinction between OLTP and OLAP apps, and what works in the former cannot be assumed to work in the latter. And vice-versa. Data-entry and modification should never be confused with data-analysis, and asking a single database to do both is IMO stupid or lazy or both. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 5:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tim at irwingreenhouses.com Mon Feb 9 10:59:17 2004 From: tim at irwingreenhouses.com (Tim Thiessen) Date: Mon, 9 Feb 2004 10:59:17 -0600 Subject: [AccessD] Appending to table Message-ID: <001501c3ef2e$0ec79200$7800a8c0@timt> Hi Group! I have a table with the following data: ItemNo LotNo SeqNo Weeks WkNo 2556 401 1 3 0 2556 401 2 3 0 2556 401 3 6 0 What I need to do is to append records to the table so that the WkNo is filled in starting at 1 to Weeks-1. For example: ItemNo LotNo SeqNo Weeks WkNo 2556 401 1 3 0 2556 401 1 3 1 2556 401 1 3 2 2556 401 2 3 0 2556 401 2 3 1 2556 401 2 3 2 2556 401 3 6 0 2556 401 3 6 1 2556 401 3 6 2 2556 401 3 6 3 2556 401 3 6 4 2556 401 3 6 5 What is the best way for this to be accomplished? I'm blank at the moment. Tim Thiessen From cfoust at infostatsystems.com Mon Feb 9 11:03:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 09:03:13 -0800 Subject: [AccessD] Teaching Access Course Message-ID: I always give clients a brief explanation of relational theory and normalization so they can understand the principles of what I'm doing, and you can sometimes see the light go on for them. At that point they also stop arguing about the way the data structures should be designed and get back to what they want the application to do. Unfortunately, unless they use the theory on a daily basis, it doesn't stick. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Teaching Access Course I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 11:09:28 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 11:09:28 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C4@nt04.karta.com> That was my thought also. Give them the principles of development. And go from there. Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course I always give clients a brief explanation of relational theory and normalization so they can understand the principles of what I'm doing, and you can sometimes see the light go on for them. At that point they also stop arguing about the way the data structures should be designed and get back to what they want the application to do. Unfortunately, unless they use the theory on a daily basis, it doesn't stick. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Teaching Access Course I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 9 11:54:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 9 Feb 2004 18:54:32 +0100 Subject: [AccessD] Appending to table In-Reply-To: <001501c3ef2e$0ec79200$7800a8c0@timt> References: <001501c3ef2e$0ec79200$7800a8c0@timt> Message-ID: <16836466345.20040209185432@cactus.dk> Hi Tim That can be done by a query with a cartesian join. First you need a table for multiplication, tbzFactor. It has one Integer field, Factor. Fill it with values from 1 to 10 or whatever your maximum number of weeks will be, say 100. Then, all you need is this query to display your missing rows: SELECT tblWeeks.ItemNo, tblWeeks.LotNo, tblWeeks.SeqNo, tblWeeks.Weeks, tbzMultiply.Factor AS WkNo FROM tblWeeks, tbzMultiply WHERE tbzMultiply.Factor < Weeks AND tblWeeks.WkNo = 0; Note the no inner or outer join is specified. To append the missing rows directly, turn the select query into an append query: INSERT INTO tblWeeks ( ItemNo, LotNo, SeqNo, Weeks, WkNo ) SELECT tblWeeks.ItemNo, tblWeeks.LotNo, tblWeeks.SeqNo, tblWeeks.Weeks, tbzMultiply.Factor AS WkNo FROM tblWeeks, tbzMultiply WHERE tbzMultiply.Factor < Weeks AND tblWeeks.WkNo = 0; To prevent multiple inserts from running the append query more than once, add one unique index on all five fields of table tblWeeks. /gustav > I have a table with the following data: > ItemNo LotNo SeqNo Weeks WkNo > 2556 401 1 3 0 > 2556 401 2 3 0 > 2556 401 3 6 0 > What I need to do is to append records to the table so that the WkNo is > filled in starting at 1 to Weeks-1. For example: > ItemNo LotNo SeqNo Weeks WkNo > 2556 401 1 3 0 > 2556 401 1 3 1 > 2556 401 1 3 2 > 2556 401 2 3 0 > 2556 401 2 3 1 > 2556 401 2 3 2 > 2556 401 3 6 0 > 2556 401 3 6 1 > 2556 401 3 6 2 > 2556 401 3 6 3 > 2556 401 3 6 4 > 2556 401 3 6 5 > What is the best way for this to be accomplished? I'm blank at the moment. > Tim Thiessen From tortise at paradise.net.nz Mon Feb 9 11:56:12 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 10 Feb 2004 06:56:12 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: Message-ID: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 artful at rogers.com Mon Feb 9 13:27:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 9 Feb 2004 14:27:38 -0500 Subject: [AccessD] Unique fields in N tables In-Reply-To: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: Given N tables, I want to construct a new table consisting of all the fields comprising all the tables, duplicates excluded. DAO/ADO doesn't matter. I'm not well-practised with fielddefs etc. Ideas? TIA, Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From KIsmert at TexasSystems.com Mon Feb 9 15:24:18 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 9 Feb 2004 15:24:18 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227850@main2.marlow.com> Message-ID: <014c01c3ef53$14556290$2a3ca8c0@TEXASSYSTEMS.COM> I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. Look at the Longhorn Architectural diagram in the 'Pillars of Longhorn' page: http://msdn.microsoft.com/Longhorn/understanding/pillars/default.aspx The .Net CLR is part of the base OS services. You may not feel the .Net tsunami now in the open ocean, but it will hit with tremendous force when it arrives. The momentum behind COM is diminishing, and eventually it will only exist as legacy support. Marty Connelly's link enforces this critical point. Because the current Access is COM-based (actually, pre-COM objects in a COM wrapper), it has no future. It makes no sense to indefinitely extend a platform that can't directly integrate with the new, and superior, object architecture. Further, Access's traditional strength, its report engine, is being marginalized. SQL Server Reporting Services are being promoted by Microsoft as filling a gap in its reporting lineup, one once occupied by Access. This product has met a very warm response from the SQL Server community. That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken From dc8 at btinternet.com Mon Feb 9 16:03:16 2004 From: dc8 at btinternet.com (Chris Swann) Date: Mon, 9 Feb 2004 22:03:16 -0000 Subject: [AccessD] Rename a form via code ? Message-ID: Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann From clh at christopherhawkins.com Mon Feb 9 16:17:41 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:17:41 -0700 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: <45600-22004219221741556@christopherhawkins.com> Here's my deal. I need to squeeze two line sof text inot a label caption, and I need to do it programmatically. I've tried doing this: .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") And that leaves me with a label that has a little square character between the Foo and Bar text. There's GOT to be a way, and I'm betting this list knows what it is. Heeeeeeeeeeeeeeeeeeeeeeelp... -Christopher- From bruce_bruen at mlc.com.au Mon Feb 9 16:17:53 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:17:53 +1100 Subject: [AccessD] Rename a form via code ? Message-ID: Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Oldname, acForm, Newname End Sub "Chris Swann" To: "AccessD" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Rename a form via code ? dvisors.com 10/02/2004 09:03 Please respond to Access Developers discussion and problem solving Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 9 16:17:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 14:17:51 -0800 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: Try vbCrLf. You need a full carriage return AND line feed. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Programmatically adding line breaks to a label caption? Here's my deal. I need to squeeze two line sof text inot a label caption, and I need to do it programmatically. I've tried doing this: .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") And that leaves me with a label that has a little square character between the Foo and Bar text. There's GOT to be a way, and I'm betting this list knows what it is. Heeeeeeeeeeeeeeeeeeeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 16:19:38 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:19:38 +1100 Subject: [AccessD] Rename a form via code ? Message-ID: OOPS! Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Newname, acForm, Oldname End Sub "Chris Swann" To: "AccessD" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Rename a form via code ? dvisors.com 10/02/2004 09:03 Please respond to Access Developers discussion and problem solving Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Feb 9 16:18:22 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 9 Feb 2004 17:18:22 -0500 Subject: [AccessD] Programmatically adding line breaks to a label capt ion? Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7DF7@xlivmbx12.aig.com> .Controls(sLabelName).Caption = mrs("Foo") & VbCrLf & mrs("Bar") should do the trick. Lambert > -----Original Message----- > From: Christopher Hawkins [SMTP:clh at christopherhawkins.com] > Sent: Monday, February 09, 2004 5:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Programmatically adding line breaks to a label > caption? > > Here's my deal. I need to squeeze two line sof text inot a label > caption, and I need to do it programmatically. I've tried doing this: > > .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") > > And that leaves me with a label that has a little square character > between the Foo and Bar text. There's GOT to be a way, and I'm > betting this list knows what it is. > > Heeeeeeeeeeeeeeeeeeeeeeelp... > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 9 16:31:45 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:31:45 -0700 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: <84000-22004219223145786@christopherhawkins.com> D'oh! I do indeed thanks. -Christopher- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Programmatically adding line breaks to a label caption? Date: Mon, 9 Feb 2004 14:17:51 -0800 >Try vbCrLf. You need a full carriage return AND line feed. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Programmatically adding line breaks to a label >caption? > > >Here's my deal. I need to squeeze two line sof text inot a label >caption, and I need to do it programmatically. I've tried doing >this: > >.Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") > >And that leaves me with a label that has a little square character >between the Foo and Bar text. There's GOT to be a way, and I'm >betting >this list knows what it is. > >Heeeeeeeeeeeeeeeeeeeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From dc8 at btinternet.com Mon Feb 9 16:30:25 2004 From: dc8 at btinternet.com (Chris Swann) Date: Mon, 9 Feb 2004 22:30:25 -0000 Subject: [AccessD] Rename a form via code ? In-Reply-To: Message-ID: Many thanks for the quick reply. I always seem to struggle with the simplest things !! BTW your first reply had me going for a minute or two ;-) Chris -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: 09 February 2004 22:20 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rename a form via code ? OOPS! Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Newname, acForm, Oldname End Sub snipped for brevity.................. From clh at christopherhawkins.com Mon Feb 9 16:33:37 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:33:37 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <160540-22004219223337647@christopherhawkins.com> In keeping with my recent trend of asking remedial questions... Suppose I need to make a word or two within a label caption appear bold, but leave the remainder of the caption at normal font weight? I know there's a way to do it; I've seen it on the list before. Anyone remember the details? -Christopher- From alan.lawhon at us.army.mil Mon Feb 9 16:31:07 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Mon, 9 Feb 2004 16:31:07 -0600 Subject: [AccessD] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 Message-ID: We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon From alan.lawhon at us.army.mil Mon Feb 9 16:31:07 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Mon, 9 Feb 2004 16:31:07 -0600 Subject: [AccessD] [dba-SQLServer] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 Message-ID: We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 16:36:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:36:52 +1100 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: Two labels jamed together? After all they are static. "Christopher Hawkins" cc: Sent by: Subject: [AccessD] Bolding a selected word within a label caption? accessd-bounces at databasea dvisors.com 10/02/2004 09:33 Please respond to Access Developers discussion and problem solving In keeping with my recent trend of asking remedial questions... Suppose I need to make a word or two within a label caption appear bold, but leave the remainder of the caption at normal font weight? I know there's a way to do it; I've seen it on the list before. Anyone remember the details? -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 9 16:50:12 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:50:12 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <87040-22004219225012925@christopherhawkins.com> Can't do it. I need to get it all into the same control. -C- ---- Original Message ---- From: bruce_bruen at mlc.com.au To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Bolding a selected word within a label caption? Date: Tue, 10 Feb 2004 09:36:52 +1100 > > > > >Two labels jamed together? After all they are static. > > > > > > > "Christopher Hawkins" > > > accessd at databaseadvisors.com > > om> cc: > > > Sent by: Subject: >[AccessD] Bolding a selected word within a label caption? > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 10/02/2004 09:33 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > >In keeping with my recent trend of asking remedial questions... > >Suppose I need to make a word or two within a label caption appear >bold, but leave the remainder of the caption at normal font weight? >I know there's a way to do it; I've seen it on the list before. >Anyone remember the details? > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 9 16:49:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 14:49:45 -0800 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: You can't using the native Access labels. You'll have to use split labels or other controls. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 2:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Bolding a selected word within a label caption? Can't do it. I need to get it all into the same control. -C- ---- Original Message ---- From: bruce_bruen at mlc.com.au To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Bolding a selected word within a label caption? Date: Tue, 10 Feb 2004 09:36:52 +1100 > > > > >Two labels jamed together? After all they are static. > > > > > > > "Christopher Hawkins" > > > accessd at databaseadvisors.com > > om> cc: > > > Sent by: Subject: >[AccessD] Bolding a selected word within a label caption? > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 10/02/2004 09:33 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > >In keeping with my recent trend of asking remedial questions... > >Suppose I need to make a word or two within a label caption appear >bold, but leave the remainder of the caption at normal font weight? I >know there's a way to do it; I've seen it on the list before. Anyone >remember the details? > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Mon Feb 9 16:50:27 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Tue, 10 Feb 2004 09:50:27 +1100 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <009201c3ef5f$1ccc52b0$6401a8c0@user> Jim - I have also given many intro courses for intro, intermed and advanced and I think your suggested content is good - the only changes I would make are to remove VB (other than to explain why the tab for modules is there) and to remove advanced queries for intro. I think that it is really important to discuss how they would create a database in Word or Excel and then show them how that flat file structure could simply create duplicate records and unneccessarily repetitive data. That gives them an idea of the purpose of a relational database and basically gets you into normalization in a concrete way. I think it is good to create a course framework which has a point, ie., not just discussing design for the sake of it which will lose people but make the intro course all about creating a simple database to solve a business scenario - and make all exercises part of that - at the end they will have created a simple system.. Your suggested work on queries is a great idea as that is something they will probably all do straight away - either want to query an existing database or set up a simple one with queries (the and / or and like are really important there). But I think that I would stick to only select queries, and select queries with parameters for intro level. If you want to add another query topic then I would add calculated queries, but maybe not the delete / update / make table queries which could get beginners into a lot of trouble (only my opinion). It's great to be able to leave some time at the end of the 2nd day and ask people to discuss databases they have been asked to design (there are always some who are on the course as they have been asked to set something up). This gives the group the chance to tackle it together, throwing up suggested table structures and primary keys and relationships on the whiteboard - they can list their requried output and see if the design will work for that. If you have time to do 2 of these workups it seems to really help the students. Best of luck. Kath ----- Original Message ----- From: Jim Hewson To: 'AccessD' Sent: Tuesday, February 10, 2004 2:55 AM Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Feb 9 16:51:50 2004 From: john at winhaven.net (John Bartow) Date: Mon, 9 Feb 2004 16:51:50 -0600 Subject: [AccessD] Banyan Data Systems Message-ID: Does anyone on this list work for Banyan Data Systems? Please contact me off list. John R Bartow WinHaven Computer Services PO Box 130 Winneconne, WI 54986-0130 Office: 920-582-7574 john at winhaven.net Outgoing mail is certified Virus Free. Checked by Symantec's Norton anti-virus system. From wdhindman at bellsouth.net Mon Feb 9 16:59:52 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 9 Feb 2004 17:59:52 -0500 Subject: [AccessD] Bolding a selected word within a label caption? References: <160540-22004219223337647@christopherhawkins.com> Message-ID: <003f01c3ef60$6d250f30$6101a8c0@dejpolsys> http://www.lebans.com/mixbold-plain.htm William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Monday, February 09, 2004 5:33 PM Subject: [AccessD] Bolding a selected word within a label caption? > In keeping with my recent trend of asking remedial questions... > > Suppose I need to make a word or two within a label caption appear > bold, but leave the remainder of the caption at normal font weight? > I know there's a way to do it; I've seen it on the list before. > Anyone remember the details? > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From joeget at vgernet.net Mon Feb 9 17:08:46 2004 From: joeget at vgernet.net (John Eget) Date: Mon, 9 Feb 2004 18:08:46 -0500 Subject: [AccessD] access report graph to power point Message-ID: <014201c3ef61$c1cf2470$1ac2f63f@Desktop> I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John From clh at christopherhawkins.com Mon Feb 9 17:11:40 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 16:11:40 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <189290-22004219231140817@christopherhawkins.com> Wait - I can use a text box if I set Enabled to false and Locked to true. So suppose I have to make a selecteed word in a text box bold instead...is that do-able in VBA? -C- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Bolding a selected word within a label caption? Date: Mon, 9 Feb 2004 14:49:45 -0800 >You can't using the native Access labels. You'll have to use split >labels or other controls. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:50 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Bolding a selected word within a label >caption? > > >Can't do it. I need to get it all into the same control. > >-C- > >---- Original Message ---- >From: bruce_bruen at mlc.com.au >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Bolding a selected word within a label >caption? >Date: Tue, 10 Feb 2004 09:36:52 +1100 > >> >> >> >> >>Two labels jamed together? After all they are static. >> >> >> >> > >> > >> >> "Christopher Hawkins" > >> > >> >> >accessd at databaseadvisors.com > >> >> om> cc: > >> > >> >> Sent by: Subject: >>[AccessD] Bolding a selected word within a label caption? > >> >> accessd-bounces at databasea > >> > >> >> dvisors.com > >> > >> >> > >> > >> >> > >> > >> >> 10/02/2004 09:33 > >> > >> >> Please respond to Access > >> > >> >> Developers discussion and > >> > >> >> problem solving > >> > >> >> > >> > >> >> > >> > >> >> >> >> >> >>In keeping with my recent trend of asking remedial questions... >> >>Suppose I need to make a word or two within a label caption appear >>bold, but leave the remainder of the caption at normal font weight? >I >>know there's a way to do it; I've seen it on the list before. >Anyone >>remember the details? >> >>-Christopher- >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 9 17:14:04 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 15:14:04 -0800 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: No. Formatting is applied at the control level, not within the data. Try the link to Stephen Lebans' site that someone else posted. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 3:12 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Bolding a selected word within a label caption? Wait - I can use a text box if I set Enabled to false and Locked to true. So suppose I have to make a selecteed word in a text box bold instead...is that do-able in VBA? -C- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Bolding a selected word within a label caption? Date: Mon, 9 Feb 2004 14:49:45 -0800 >You can't using the native Access labels. You'll have to use split >labels or other controls. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:50 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Bolding a selected word within a label >caption? > > >Can't do it. I need to get it all into the same control. > >-C- > >---- Original Message ---- >From: bruce_bruen at mlc.com.au >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Bolding a selected word within a label >caption? >Date: Tue, 10 Feb 2004 09:36:52 +1100 > >> >> >> >> >>Two labels jamed together? After all they are static. >> >> >> >> > >> > >> >> "Christopher Hawkins" > >> > >> >> >accessd at databaseadvisors.com > >> >> om> cc: > >> > >> >> Sent by: Subject: >>[AccessD] Bolding a selected word within a label caption? > >> >> accessd-bounces at databasea > >> > >> >> dvisors.com > >> > >> >> > >> > >> >> > >> > >> >> 10/02/2004 09:33 > >> > >> >> Please respond to Access > >> > >> >> Developers discussion and > >> > >> >> problem solving > >> > >> >> > >> > >> >> > >> > >> >> >> >> >> >>In keeping with my recent trend of asking remedial questions... >> >>Suppose I need to make a word or two within a label caption appear >>bold, but leave the remainder of the caption at normal font weight? >I >>know there's a way to do it; I've seen it on the list before. >Anyone >>remember the details? >> >>-Christopher- >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 17:28:35 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 10:28:35 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: (Please do not take this as a statement of diminution of Access applications) In the last 10 or so years I have developed, I suppose, in excess of 200 Access databases in the course of my work. None of these of which I speak are "commercial multiuser business applications" ( I have developed and maintained several of these as well). These databases have varied in size of one to hundreds of tables, zero to dozens of forms, zero to dozens of reports, been used by one to (in one case) 62 concurrent users and have had between zero and several thousand lines of code. They have been single tier, FE/BE, FE/multiple BE and have contained linked tables, have used foreign desktop rdbms (FoxPro, BDE, MSDE) and foreign server RDBMS (SQLServer, Oracle, Sybase, MySQL) data linkages. I have loaded and unloaded probably tens, possibly hundreds, of millions of data rows from text files, web pages, mail clients, spreadsheets and even DB2 databases into and out of these databases. Why? I am a consultant in information management. I often deal with large sets of data, often with very complex relationships or with rapidly varying relationships. Occasionally we have needed to develop vast test databases containing synthetic or at least extremely disguised data. Sometimes I have needed to explore a particular information factor with a client that involves an extremely simple demo dataset, for example to show a small businessman how (i.e. the technical details) he could use a secure website for his "top" customers to place orders and track production. I turned to Access at Ver 1.0 when we needed to generate a set of 200,000 futures trades as test data. The choices were to do it in Excel, get a programmer to do it in VBasic(? memory fails me) or try and do it ourselves. The Excel route was discounted as we couldn't get the statistical profiles needed for the trade flow across the whole series due to the row limit. So I thought it was about time I learned how to use this new fangled database thingy. At that time I had a fairly good rdb skillset, some experience in "playing" with the Access front end - forms and queries etc but no access basic expertise. I completed the 200,000 row profile we needed in 16 hours. Furthermore, we also had the ability to vary the profile and regenerate the dataset in minutes. The Basic programmer had quoted me 5 days to do the job as a single shot exercise. Three years later I heard that the exchange was still using the database to generate test data - the profile changing with every new commodity added to the floor. Since then I have used Access in just about every contract I have had. >From data quality reviews, security reviews, information restructuring assignments through to prototype GUIs, prototype databases and even in process controllers and business management anlyses. The beauty of Access in my environment lies in its immediately accessible power - build your solution and its deployed. End of story. It saddens, if not infuriates me, that Microsoft and these industry "pundits" have for several years been promoting the demise of Access, the Jet engine and the brilliant desktop analytic toolset contrived by the originators. First off, the bloody "murder" of DAO. Amusingly denied by MS publications wherein they stated that DAO was still the best direct access method for JET and would remain so. Now, totally unsupported. I dont "need" the features offered by ADO. My data, when I'm working with it is all within the Jet database, all readily and efficiently accessible thorugh DAO. I am not trying to build a massive, scalable, one size fits all application using a desktop database. I need a tool that lets me do sophisticated manipulations of large amounts of data in a desktop environment. DAO wasn't broken, so they made it extinct. Secondly, the so far unsubstantiated rumours of the death of the Jet engine. Now it seems imminent unless Getz hasn't been too diligent on his confirmation of rumours. And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine? I presume Getz prefers the bus to a Ferrari as well. Anyway, to get back to Jet. Now I willl grant that, at times, I have resorted to hevier duty engines for speed reasons on more complex analyses. But in the main the Jet engine has provided all the speed needed, and also some very sophisticated query handling. So why does MS need to get rid of Jet? I just dont understand the mentality in this type of thinking. Is it "its just a desktop database" and the MS marketers want to be mainframe programmers? Is it, "Access is just a toy incapable of serious application"? HAH! Finally, THE EXCRUTIATING AGONY of forms design and data binding in VS and VS.net compared to Access, leaves me strangely nausious in the light of statements such as "It's unclear at this point how well-integrated with Visual Studio the Access designers might be". I would think totally disconnected and never to be considered might be the better approach. To me then, these furphy's being propogated by Getz (and I do not know how well connected he is,and therefore how much weight to assign them) are dangerous and belittling to a great product. It isn't a matter of jumping on the "technology revolution" bandwagon. I dont want to be "left behind with obsolete skills". So take a letter Miss Simth, Dear Bill, The Access tool is damned fine now, thanks very much. Squeaky clean, well oiled and working well. Please dont let the kids play in it. yours etc.. Bruce p.s. Stuart McLachlan's comment about calling this new pancea DDE had me definitely smiling. I well recall the MS marketspeak that went with COM/DCOM had a melody line very similar to Box's/Loney's statements. I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. ...... That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 9 17:27:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 10 Feb 2004 09:27:17 +1000 Subject: [AccessD] Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <4028A3F5.4689.24803D@localhost> On 9 Feb 2004 at 9:55, Jim Hewson wrote: > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > Do you have any experience designing training? The basic principle of course design is not to start with "how long", but with "what". What are you trying to produce - Computer Science Graduates, Analyst/Programmers or Competent Users? You need to start by stating a Course Objective and then breaking that down into training needs to achieve that objective. Once you have done that, decide how many of those objectives can be achieved in your "two-day course" My first cut of a syllabus is below. Any suggestions? > That looks like a classic one year syllabus for an "educational" institution, not a two day training course. Forget teaching them concepts, train then to do things - this is workplace oriented training, not academia. I'd say that a reason amount of content for a two day course would be to train them to use a developed Access application and to create their own queries. If they are good enough, you may have time to teach them to create simple reports using Wizards. Day 1: Basic concepts of what a relational database and why it is used ie: data stored in different tables based on context, the *very* basic principles of normalisation (WITHOUT even using the word) and the benefits of it (consistent data, only change in one place etc) The building blocks of Access: In simple terms - what is a table, query, form, report and what are they used for (mention VBA under the hood as the *magic bit* that makes it work, but don't show then how to get into the editor) How to navigate around forms ; how to use Combos (F4 key, autofilling), listboxes, checkboxes/option buttons, hotkeys, use of navigation buttons to move through a recordset, what the record selectors do, what the "dirty" icon means, when dirty records are saved, switching between form and datasheet view Form Filtering/Sorting using the main menu/toolbar items and the right click menu. Basic use of Reports: Printing/Previewing reports including changing printers/printing specific pages, zooming in preview mode. Day 2 Building queries using the QBE grid. Selecting tables/queries to use Basic concepts of keys, datatypes, creating joins Building criteria (use of and/or, <,>, =, Between, Not, Null, Date(), Year(),Month() etc) If sufficient time: Using the Report Wizard. > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bruce_bruen at mlc.com.au Mon Feb 9 17:44:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 10:44:25 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: NO ARCHIVE ... besides which, if Access dies JC and DW would probably have to go into politics to command the same audiences :-) From stuart at lexacorp.com.pg Mon Feb 9 17:52:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 10 Feb 2004 09:52:09 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <4028A9C9.20539.3B423A@localhost> On 10 Feb 2004 at 10:28, bruce_bruen at mlc.com.au wrote: > > > So take a letter Miss Simth, > > Dear Bill, > The Access tool is damned fine now, thanks very much. Squeaky > clean, well oiled and working well. > Please dont let the kids play in it. >yours etc.. Here,here! I for one will be using Access for many years yet , regardless of what Redmond says. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jimdettman at earthlink.net Mon Feb 9 18:14:29 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 9 Feb 2004 19:14:29 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: Bruce, <> Well just in case you missed it, JET is officially dead. No new versions are planned and DAO is frozen at release 3.61. Is it still around? Certainly. Will it still be around for years? Yes. Can you still use it in a new app? Yes. Would you? Sure (depending on the app). But will we see any new features? No. Will you still see "official" support in a few years? No. That's what I would call dead. << And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine?>> I guess that would depend on the file system wouldn't it? And while JET may be a "specifically tailored and tuned rdb query engine", it stinks when it comes to stability over a network. It's very sensitive to network timeouts and generally complains long before any other network app does. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 09, 2004 6:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) (Please do not take this as a statement of diminution of Access applications) In the last 10 or so years I have developed, I suppose, in excess of 200 Access databases in the course of my work. None of these of which I speak are "commercial multiuser business applications" ( I have developed and maintained several of these as well). These databases have varied in size of one to hundreds of tables, zero to dozens of forms, zero to dozens of reports, been used by one to (in one case) 62 concurrent users and have had between zero and several thousand lines of code. They have been single tier, FE/BE, FE/multiple BE and have contained linked tables, have used foreign desktop rdbms (FoxPro, BDE, MSDE) and foreign server RDBMS (SQLServer, Oracle, Sybase, MySQL) data linkages. I have loaded and unloaded probably tens, possibly hundreds, of millions of data rows from text files, web pages, mail clients, spreadsheets and even DB2 databases into and out of these databases. Why? I am a consultant in information management. I often deal with large sets of data, often with very complex relationships or with rapidly varying relationships. Occasionally we have needed to develop vast test databases containing synthetic or at least extremely disguised data. Sometimes I have needed to explore a particular information factor with a client that involves an extremely simple demo dataset, for example to show a small businessman how (i.e. the technical details) he could use a secure website for his "top" customers to place orders and track production. I turned to Access at Ver 1.0 when we needed to generate a set of 200,000 futures trades as test data. The choices were to do it in Excel, get a programmer to do it in VBasic(? memory fails me) or try and do it ourselves. The Excel route was discounted as we couldn't get the statistical profiles needed for the trade flow across the whole series due to the row limit. So I thought it was about time I learned how to use this new fangled database thingy. At that time I had a fairly good rdb skillset, some experience in "playing" with the Access front end - forms and queries etc but no access basic expertise. I completed the 200,000 row profile we needed in 16 hours. Furthermore, we also had the ability to vary the profile and regenerate the dataset in minutes. The Basic programmer had quoted me 5 days to do the job as a single shot exercise. Three years later I heard that the exchange was still using the database to generate test data - the profile changing with every new commodity added to the floor. Since then I have used Access in just about every contract I have had. >From data quality reviews, security reviews, information restructuring assignments through to prototype GUIs, prototype databases and even in process controllers and business management anlyses. The beauty of Access in my environment lies in its immediately accessible power - build your solution and its deployed. End of story. It saddens, if not infuriates me, that Microsoft and these industry "pundits" have for several years been promoting the demise of Access, the Jet engine and the brilliant desktop analytic toolset contrived by the originators. First off, the bloody "murder" of DAO. Amusingly denied by MS publications wherein they stated that DAO was still the best direct access method for JET and would remain so. Now, totally unsupported. I dont "need" the features offered by ADO. My data, when I'm working with it is all within the Jet database, all readily and efficiently accessible thorugh DAO. I am not trying to build a massive, scalable, one size fits all application using a desktop database. I need a tool that lets me do sophisticated manipulations of large amounts of data in a desktop environment. DAO wasn't broken, so they made it extinct. Secondly, the so far unsubstantiated rumours of the death of the Jet engine. Now it seems imminent unless Getz hasn't been too diligent on his confirmation of rumours. And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine? I presume Getz prefers the bus to a Ferrari as well. Anyway, to get back to Jet. Now I willl grant that, at times, I have resorted to hevier duty engines for speed reasons on more complex analyses. But in the main the Jet engine has provided all the speed needed, and also some very sophisticated query handling. So why does MS need to get rid of Jet? I just dont understand the mentality in this type of thinking. Is it "its just a desktop database" and the MS marketers want to be mainframe programmers? Is it, "Access is just a toy incapable of serious application"? HAH! Finally, THE EXCRUTIATING AGONY of forms design and data binding in VS and VS.net compared to Access, leaves me strangely nausious in the light of statements such as "It's unclear at this point how well-integrated with Visual Studio the Access designers might be". I would think totally disconnected and never to be considered might be the better approach. To me then, these furphy's being propogated by Getz (and I do not know how well connected he is,and therefore how much weight to assign them) are dangerous and belittling to a great product. It isn't a matter of jumping on the "technology revolution" bandwagon. I dont want to be "left behind with obsolete skills". So take a letter Miss Simth, Dear Bill, The Access tool is damned fine now, thanks very much. Squeaky clean, well oiled and working well. Please dont let the kids play in it. yours etc.. Bruce p.s. Stuart McLachlan's comment about calling this new pancea DDE had me definitely smiling. I well recall the MS marketspeak that went with COM/DCOM had a melody line very similar to Box's/Loney's statements. I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. ...... That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shait at mindspring.com Mon Feb 9 18:17:53 2004 From: shait at mindspring.com (Stephen Hait) Date: Mon, 9 Feb 2004 19:17:53 -0500 Subject: [AccessD] [dba-SQLServer] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 In-Reply-To: Message-ID: <4027DCE1.15509.15C15786@localhost> As far as I know this difference in how True is represented in TrueFalse/bit fields has existed between Access and SQL Server since at least SQL Server 6.5. Access uses -1 for True, 0 for False while SQL Server uses 1 for True and 0 for False. One approach that allows you to work the same way with both systems is to only check against a False condition. Rather than test for -1 or 1 to test for True, just test for <> 0 instead. Stephen > We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the > weekend. The front end runs Access 2000 GUI client applications. > > After the conversion, we are experiencing a problem with Access > queries that select data from the [converted] back end SQL Server > tables. The problem involves a hardcoded "-1" (i.e. "True" logic > condition criteria) in the Access queries testing against a "Bit" > data type field in the SQL Server back end. With the SQL Server 7.0 > backend tables, the Access queries were working just fine. In > converting to SQL Server 2000, it appears that previously populated > bit fields populated with the value of "-1" ("True") got > arbitrarily switched to a value of "1" during the conversion. (The > "-1" values in the back end table ["Bit" fields] got changed, NOT > the "-1" criteria value in the front end query cells!) Further, > when the query runs against the [converted] back end table, the "-1" > criteria (from the Access query) is no longer recognized - the query > doesn't return data. > > Needless to say, we are no longer getting the expected results (from > execution of the queries) after the conversion from SQL Server 7.0 > to SQL Server 2000. I suspect that Microsoft implemented a change > in the behaviour of "Bit" fields from version 7.0 to SQL Server > 2000. While I search the Knowledge Base and try to track this down, > can anybody confirm whether this is the case? > > We have a lot of queries (and VBA code) that test the "-1" value > against fields of data type "Bit", so we don't want to start > changing these hardcoded criteria (from "-1" to just plain "1") > until and unless we are ABSOLUTELY SURE that this is a SQL Server > version 7.0 to version 2000 conversion anomaly. > > TIA for any info or enlightenment on this problem. > > > Alan C. Lawhon > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Mon Feb 9 19:16:38 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Mon, 9 Feb 2004 20:16:38 -0500 Subject: [AccessD] Unique fields in N tables References: Message-ID: <022701c3ef73$89726940$6401a8c0@default> Arthur, Did you do this yet? I have some code ... Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Monday, February 09, 2004 2:27 PM Subject: [AccessD] Unique fields in N tables > Given N tables, I want to construct a new table consisting of all the fields > comprising all the tables, duplicates excluded. DAO/ADO doesn't matter. I'm > not well-practised with fielddefs etc. > > Ideas? > > TIA, > Arthur > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon Feb 9 19:19:51 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 9 Feb 2004 19:19:51 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <017a01c3ef73$fbf571b0$2a3ca8c0@TEXASSYSTEMS.COM> >>Dear Bill, >>The Access tool is damned fine now, thanks very much. Squeaky clean, well >>oiled and working well. >>Please dont let the kids play in it. >>yours etc.. What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Say, how 'bout this new saw, with the "Genuine Microsoft" hologram on the blade? Its got a scroll wheel on the handle! Happy with what you have, you say? Well, that's being mighty disrespectful to Microsoft's future revenue stream. Seriously, though, we are witnessing the dilemma of monopoly. Once a company achieves effective control of a market, it first grows horizontally, expanding to take as much share as it possibly can. However, it can't rest there. The company must grow. Thus, it expands in the only way left: vertically. It tries to extract more revenue, more frequently, from its existing base. The catch is, software doesn't wear out. And, to its credit, Microsoft has done a good enough job with many of its products that it has created a truly thorny problem: contented customers. To combat this, it must continually obsolete its old products, and sell us the new. Microsoft's growth must come out of your hide and mine, my friend. The question is, what's your threshold of pain? Of course, this has been a one-sided presentation. Microsoft has many valid reasons to drive change. It is facing a security crisis with its current software. Business needs and hardware are evolving. And there are many genuine improvements to be made. But still, it does nothing that isn't deeply intended to further its own financial interests. Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken From cfoust at infostatsystems.com Mon Feb 9 19:26:33 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 17:26:33 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Monday, February 09, 2004 5:20 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) >>Dear Bill, >>The Access tool is damned fine now, thanks very much. Squeaky clean, >>well oiled and working well. Please dont let the kids play in it. >>yours etc.. What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Say, how 'bout this new saw, with the "Genuine Microsoft" hologram on the blade? Its got a scroll wheel on the handle! Happy with what you have, you say? Well, that's being mighty disrespectful to Microsoft's future revenue stream. Seriously, though, we are witnessing the dilemma of monopoly. Once a company achieves effective control of a market, it first grows horizontally, expanding to take as much share as it possibly can. However, it can't rest there. The company must grow. Thus, it expands in the only way left: vertically. It tries to extract more revenue, more frequently, from its existing base. The catch is, software doesn't wear out. And, to its credit, Microsoft has done a good enough job with many of its products that it has created a truly thorny problem: contented customers. To combat this, it must continually obsolete its old products, and sell us the new. Microsoft's growth must come out of your hide and mine, my friend. The question is, what's your threshold of pain? Of course, this has been a one-sided presentation. Microsoft has many valid reasons to drive change. It is facing a security crisis with its current software. Business needs and hardware are evolving. And there are many genuine improvements to be made. But still, it does nothing that isn't deeply intended to further its own financial interests. Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Feb 9 19:29:59 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 09 Feb 2004 17:29:59 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: Message-ID: I agree with your comments. After a recent interview, it was noted that a programmers' skill sets are only good for three years. Those degrees and certifications you have been able obtain within that ever moving window are the only bankable products you have. Ten plus years of knowlege is not. Clients have these expectancies and demand the latest and greatest. We must thank Microsoft for this every changing market, of which they control so well. I wonder if the process is more to force sales and intergrate their products lines into the OS so as to eliminate all competition....but these are idle musings. Lucky the programmer who has found themselves supporting older database systems that have proved too large and expensive to change and so that they have been able to really master the product. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Monday, February 09, 2004 4:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 19:32:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 12:32:21 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Mon Feb 9 20:28:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 10 Feb 2004 15:28:18 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: <01b701c3ef7d$8b7fe0f0$1e00a8c0@cheqsoft.local> mmm Seems Shift F9 is not the full answer. It worked once...only.... Is there some way to unlock a memo which is erroneously locked??? Kind Regards David ----- Original Message ----- From: Tortise To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 6:56 AM Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Feb 10 02:00:57 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 10 Feb 2004 09:00:57 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> Well my friends.... I noticed Ms is using a modified Jet more and more for OS management. I'm guessing here but I think to know why MS would stop with Jet. Because they are not gooing to put the database in to a filesystem, but the filesystem in a database! And thats gonna be jet. Jet has proven to be so fast and performing, that the only option they have to resolve the slowness of NTFS. Think about it! Is this not more logical? How do you manage a giant list of files in a fast way? -Exchange server is proven for years now that Jet can be very fast and good. -DHCP Server -DNS server (not sure) -WINS server -Briefcase All using Jet. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 2:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Tue Feb 10 04:06:20 2004 From: joeget at vgernet.net (John Eget) Date: Tue, 10 Feb 2004 05:06:20 -0500 Subject: [AccessD] XP - access report graph to power point slide process Message-ID: <005901c3efbd$8bf1c180$a4c2f63f@Desktop> Access XP - I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John From gustav at cactus.dk Tue Feb 10 03:04:41 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 10:04:41 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: References: Message-ID: <875288764.20040210100441@cactus.dk> Hi Bruce Did you have a look at Rekall and BlackAdder: http://www.thekompany.com/products/ which will bring Python or Ruby to you as well ... I haven't had the time myself, and I wouldn't expect too much, but for some situations they could prove useful. /gustav > and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do > this work as soon as there is an equivalent IDE to Access. > I've tried Eclipse and Eiffel but dang it I just cant get the hang of > theese new fangled lenguages! Looking at mono - not sure if its the best > or worst of both worlds. Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth) > What!? The old saw is cutting wood just fine? Sharpen it now and then, and > it'll be good for years, you say? From gustav at cactus.dk Tue Feb 10 03:50:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 10:50:52 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> Message-ID: <1018059989.20040210105052@cactus.dk> Hi Erwin > Well my friends.... > I noticed Ms is using a modified Jet more and more for OS management. > I'm guessing here but I think to know why MS would stop with Jet. > Because they are not gooing to put the database in to a filesystem, but > the filesystem in a database! > And thats gonna be jet. > Jet has proven to be so fast and performing, that the only option they > have to resolve the slowness of NTFS. > Think about it! Is this not more logical? > How do you manage a giant list of files in a fast way? > -Exchange server is proven for years now that Jet can be very fast and > good. > -DHCP Server > -DNS server (not sure) > -WINS server > -Briefcase > All using Jet. The idea of using a database engine for file storage is not new - it may even be contradictory as the filesystem itself is a database, though an extremely basic one where the "engine" is an essential part of the OS. Oracle materialized this idea a couple of years ago; the model is roughly to cut down the OS (Linux) to handle one set of files - the database - and add an interface to the engine which mimics a drive. Nice idea - you may call it a bootable database engine - which gives you all the power, security, features, and years of experience of a heavy-duty engine. Allow me to quote myself from Oct. 2002: A part of an operating system is at least one file system. But the file system is nothing more than a specialized database, so storing images and documents as files just means to store them in another database system; you can say that an mdb file is a database in a database. When Drew puts an mdb into a blob field in his Access database, he just goes one step further. This is in line with Oracle which ultimately offer their database system with an extension which allows it to be used as a true file repository with an interface which simulates a file system. The ring is closed. However, this Oracle system runs on a rudimentary file system though, which is optimized for handling the Oracle engine only ... In fact, storing pictures, documents, etc. - or objects if you like - outside an mdb only represents two challenges: to keep the pointers to the file names and these file names in sync, and to handle security. Meeting the first is not difficult. Adding or updating, say, images is nothing more than storing the images in a directory and the paths of the images in the mdb. Deleting an image is done by either removing the file or deleting the path in the mdb or, preferably, both. Deleting paths to images creates orphaned files which can be deleted at the same time by the app or later by a clean-up routine - comparable to compacting the database file. Paths can be stored relatively to the mdb file - in the same directory or one or more subdirectories - or to a preset path which is used as a prefix; this is useful if you wish to store the files somewhere else like on another server. The prefix path must, of course, be available for the user. Never should you store the absolute path to the files, like "g:\images" as this may leave the mdb non-portable without a manual update of the stored paths. The second challenge, security, is more difficult to handle and will be specific to the actual environment as the user must have the same rights to add, update, delete and retrieve files as for the records storing the paths of those in the Access database. One possible way is to store the files on the server in a directory with no rights granted for the users and create groups in Access and for access to the file server directory with equal rights. Then, when the user opens the app, the group is read and a mapping of the restricted directory with the actual rights of the user's group is created by the app. This would also put an end to the discussion of where pictures should be stored: inside the database or as discrete files. In this context a cab file is also a small database. As another example - moving from the cab file to the other extreme - Lotus Notes invented the idea of storing all documents in a way which is logic and searchable for the user leaving the physical storage to the engine and the administrator. Thus, nothing new here. /gustav From roz.clarke at donnslaw.co.uk Tue Feb 10 04:09:03 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 10 Feb 2004 10:09:03 -0000 Subject: [AccessD] XP - access report graph to power point slide proce ss Message-ID: <61F915314798D311A2F800A0C9C83188047C6A91@dibble.observatory.donnslaw.co.uk> There is a section in the ADH on using Access as an automation client with PowerPoint. You need to get a handle on the PowerPoint object model, so I'd start with loading the reference and having a play. Apologies if you've already done this. A chart is a graphical object and from what I can see you might have to save your Access chart as a file and then import it into your presentation. HTH Roz -----Original Message----- From: John Eget [mailto:joeget at vgernet.net] Sent: 10 February 2004 10:06 To: AccessD at databaseadvisors.com Subject: [AccessD] XP - access report graph to power point slide process Access XP - I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [AccessD] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [AccessD] [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Feb 10 06:03:54 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 07:03:54 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: << Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth)>> Watch it, you may be in violation of your license agreement. Recently a big brew ha ha had erupted over the fact that VFP developers were starting to run VFP apps under Linux. Microsoft quickly squashed it. Went as far as to get a speaker to cancel their talk. I think if you read your agreement, you'll find that your only allowed to run Access on Windows OS's. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 09, 2004 8:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Tue Feb 10 06:24:53 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 07:24:53 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <01b701c3ef7d$8b7fe0f0$1e00a8c0@cheqsoft.local> Message-ID: What your probably bumping into is read locks on the LVPs (Long Value Pages). Read locks allow multiple users to read long value data, but prevent others from writing to it while others are reading. Starting with JET 3.0, the persistence of read locks is determined by the currency of a record. So a read lock on a long value page will remain until the user leaves that record. There is an exception though; if the LVP contains multiple rows of data JET should be releasing the lock before that. Some things you might try: 1. Change the Refresh Interval 2. Change the Update Retry Interval 3. Change the Number of Update Retries. 4. Changing the Recycle LVP page setting These above are all JET settings. And of course anything you can do to get the user off the record faster would be better. Switching to Optimistic locking (No Locks) with page locks or Pessimistic (Edited Record) with Record Level locking might also help depending on the design of the app and the typical patterns of usage. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! mmm Seems Shift F9 is not the full answer. It worked once...only.... Is there some way to unlock a memo which is erroneously locked??? Kind Regards David ----- Original Message ----- From: Tortise To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 6:56 AM Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Tue Feb 10 07:30:08 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Tue, 10 Feb 2004 13:30:08 -0000 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) In-Reply-To: Message-ID: <003e01c3efda$003c32c0$bf00a8c0@dabsight> Don't know about VFP, but my Office licence says that I can "install and use one copy of the Software Product on a single computer, device, workstation, terminal, or other digital electronic or analog device". No mention of operating systems. Do you know that VFP has a different kind of licence? John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: 10 February 2004 12:04 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what mighthappen(RANT) > > > << Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth)>> > > Watch it, you may be in violation of your license > agreement. Recently a big brew ha ha had erupted over the > fact that VFP developers were starting to run VFP apps under > Linux. Microsoft quickly squashed it. Went as far as to get > a speaker to cancel their talk. > > I think if you read your agreement, you'll find that your > only allowed to run Access on Windows OS's. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Monday, February 09, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on what might > happen(RANT) > > > > > > > and by golly gosh. I'll be using a Linux housed, KDE > based/mySQL BE to do this work as soon as there is an > equivalent IDE to Access. I've tried Eclipse and Eiffel but > dang it I just cant get the hang of theese new fangled > lenguages! Looking at mono - not sure if its the best or > worst of both worlds. Even got desparate enough to try > running access inside wine (hehehehe dribble dribble froth froth) > > > > > What!? The old saw is cutting wood just fine? Sharpen it now > and then, and it'll be good for years, you say? > > > > Which brings us back to a fundamental choice: keep trudging > on the Microsoft treadmill, or get off. Both options have > their plusses and drawbacks. > > But at least Open Source will never force you to abandon > software you like. > > -Ken > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > From adtp at touchtelindia.net Tue Feb 10 07:45:15 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 10 Feb 2004 19:15:15 +0530 Subject: [AccessD] TEST References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <004001c3efdc$2f380570$fe1865cb@winxp> TEST From James at fcidms.com Tue Feb 10 07:48:27 2004 From: James at fcidms.com (James Barash) Date: Tue, 10 Feb 2004 08:48:27 -0500 Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 In-Reply-To: Message-ID: Yes, SQL 2000 uses 1 for true and 0 for false. In general, 0 is false and anything non 0 is true. I believe, in Access, you can test for True and it will find 1 or -1 or anything but 0 and Null. I usually just test for <> 0 since that seems to work everywhere. Another thing to watch out for is bound forms that have bit fields. Because of the difference in how Access and SQL Server handle bit fields it can cause errors if you have bit fields that are Nullable. You must have a default value or Access will raise an error whenever you edit a record. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Monday, February 09, 2004 5:31 PM To: 'accessd at databaseadvisors.com' Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Feb 10 08:14:36 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 15:14:36 +0100 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> References: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: <11423883793.20040210151436@cactus.dk> Hi Tortise Here's a very creative suggestion (one line link): http://groups.google.com/groups?q=access+memo+field+lock&start=180&hl=xx-elmer&lr=&ie=UTF-8&oe=utf-8&selm=wQWg6.5003%24zl4.108091%40zwoll1.home.nl&rnum=182 /gustav > Thanks John, > That gave me enough to resolve it. > Also Ref http://www.utteraccess.com/forums/access/access605200.html > For anyone else simply doing a refresh unlocks it! > Kind Regards > David > From: John W. Colby > To: Access Developers discussion and problem solving > Sent: Tuesday, February 10, 2004 2:38 AM > Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! > Memo fields are treated differently than the rest of the fields in a record. > They are simply pointers out to a storage area where the actual memo is > stored. Memos still have the "page locking" issue where if another user is > editing another memo that resides in the same physical page as your memo, > yours will be locked. > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise > Sent: Monday, February 09, 2004 5:24 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! > Hi > I have a database which intermittently reports memo fields as being locked. > However they are not! Editing the memo field it refuses to update on > attempted save, however text fields still update fine. (!) It is a database > from A2K, that went to A97, back to A2k and now is running (converted) in > A2k3. (Over time!) Repair and compaction makes no difference, neither does > logging off and back on to the windows session. > The same behaviour is exhibited when editing the table as it is from a form. From gustav at cactus.dk Tue Feb 10 08:16:28 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 15:16:28 +0100 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: References: Message-ID: <15323995533.20040210151628@cactus.dk> Hi Jim Would you have any suggestions for how (up/down?) these settings could be changed? /gustav > What your probably bumping into is read locks on the LVPs (Long Value > Pages). Read locks allow multiple users to read long value data, but prevent > others from writing to it while others are reading. Starting with JET 3.0, > the persistence of read locks is determined by the currency of a record. So > a read lock on a long value page will remain until the user leaves that > record. There is an exception though; if the LVP contains multiple rows of > data JET should be releasing the lock before that. > Some things you might try: > 1. Change the Refresh Interval > 2. Change the Update Retry Interval > 3. Change the Number of Update Retries. > 4. Changing the Recycle LVP page setting > These above are all JET settings. And of course anything you can do to > get the user off the record faster would be better. Switching to Optimistic > locking (No Locks) with page locks or Pessimistic (Edited Record) with > Record Level locking might also help depending on the design of the app and > the typical patterns of usage. From JHewson at karta.com Tue Feb 10 08:27:38 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 10 Feb 2004 08:27:38 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127CA@nt04.karta.com> Kath, Great suggestions! I will remove the VB and all queries except select. Your idea of using Excel or Word as a tool to discuss normalization and relational concepts is superb. I will use that. I had thought of walking them through the creation of a simple database. I like your idea better, discussing databases the students have been asked to design. Or, ideas of a "real world" scenario for a database. Thank you, Jim -----Original Message----- From: Kath Pelletti [mailto:SDSSoftware at optusnet.com.au] Sent: Monday, February 09, 2004 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Jim - I have also given many intro courses for intro, intermed and advanced and I think your suggested content is good - the only changes I would make are to remove VB (other than to explain why the tab for modules is there) and to remove advanced queries for intro. I think that it is really important to discuss how they would create a database in Word or Excel and then show them how that flat file structure could simply create duplicate records and unneccessarily repetitive data. That gives them an idea of the purpose of a relational database and basically gets you into normalization in a concrete way. I think it is good to create a course framework which has a point, ie., not just discussing design for the sake of it which will lose people but make the intro course all about creating a simple database to solve a business scenario - and make all exercises part of that - at the end they will have created a simple system.. Your suggested work on queries is a great idea as that is something they will probably all do straight away - either want to query an existing database or set up a simple one with queries (the and / or and like are really important there). But I think that I would stick to only select queries, and select queries with parameters for intro level. If you want to add another query topic then I would add calculated queries, but maybe not the delete / update / make table queries which could get beginners into a lot of trouble (only my opinion). It's great to be able to leave some time at the end of the 2nd day and ask people to discuss databases they have been asked to design (there are always some who are on the course as they have been asked to set something up). This gives the group the chance to tackle it together, throwing up suggested table structures and primary keys and relationships on the whiteboard - they can list their requried output and see if the design will work for that. If you have time to do 2 of these workups it seems to really help the students. Best of luck. Kath ----- Original Message ----- From: Jim Hewson To: 'AccessD' Sent: Tuesday, February 10, 2004 2:55 AM Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com ---------------------------------------------------------------------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Tue Feb 10 08:29:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 09:29:10 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <15323995533.20040210151628@cactus.dk> Message-ID: Gustav, > 1. Change the Refresh Interval - Down - Shorter refreshes would release any held read locks sooner if the pages where no longer being used. Especially on indexes. Con: more network traffic and possible delays in the user interface. > 2. Change the Update Retry Interval - Up - Longer delay between retries when a lock is encountered. > 3. Change the Number of Update Retries - Up - Try more times before popping an error > 4. Changing the Recycle LVP page setting - This could go either way as it goes to the pattern of usage by the app. In some cases, recycling LVP's could help, in others hurt. I would try it both ways. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, February 10, 2004 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi Jim Would you have any suggestions for how (up/down?) these settings could be changed? /gustav > What your probably bumping into is read locks on the LVPs (Long Value > Pages). Read locks allow multiple users to read long value data, but prevent > others from writing to it while others are reading. Starting with JET 3.0, > the persistence of read locks is determined by the currency of a record. So > a read lock on a long value page will remain until the user leaves that > record. There is an exception though; if the LVP contains multiple rows of > data JET should be releasing the lock before that. > Some things you might try: > 1. Change the Refresh Interval > 2. Change the Update Retry Interval > 3. Change the Number of Update Retries. > 4. Changing the Recycle LVP page setting > These above are all JET settings. And of course anything you can do to > get the user off the record faster would be better. Switching to Optimistic > locking (No Locks) with page locks or Pessimistic (Edited Record) with > Record Level locking might also help depending on the design of the app and > the typical patterns of usage. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Feb 10 08:34:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 09:34:35 -0500 Subject: [AccessD] Next Version of Access 12 Musings on whatmighthappen(RANT) In-Reply-To: <003e01c3efda$003c32c0$bf00a8c0@dabsight> Message-ID: John, <> I didn't have time to check the Office EULA, but I know for sure that the VFP EULA does have a clause in it that apps can only be distributed on Win OS platforms. Note to that I wasn't clear in that when I said "Access", I was thinking more in terms of the runtime and the distribution of apps. If it's not in there already, I wouldn't be surprised to see it in the next one Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) Robinson Sent: Tuesday, February 10, 2004 8:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on whatmighthappen(RANT) Don't know about VFP, but my Office licence says that I can "install and use one copy of the Software Product on a single computer, device, workstation, terminal, or other digital electronic or analog device". No mention of operating systems. Do you know that VFP has a different kind of licence? John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: 10 February 2004 12:04 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what mighthappen(RANT) > > > << Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth)>> > > Watch it, you may be in violation of your license > agreement. Recently a big brew ha ha had erupted over the > fact that VFP developers were starting to run VFP apps under > Linux. Microsoft quickly squashed it. Went as far as to get > a speaker to cancel their talk. > > I think if you read your agreement, you'll find that your > only allowed to run Access on Windows OS's. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Monday, February 09, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on what might > happen(RANT) > > > > > > > and by golly gosh. I'll be using a Linux housed, KDE > based/mySQL BE to do this work as soon as there is an > equivalent IDE to Access. I've tried Eclipse and Eiffel but > dang it I just cant get the hang of theese new fangled > lenguages! Looking at mono - not sure if its the best or > worst of both worlds. Even got desparate enough to try > running access inside wine (hehehehe dribble dribble froth froth) > > > > > What!? The old saw is cutting wood just fine? Sharpen it now > and then, and it'll be good for years, you say? > > > > Which brings us back to a fundamental choice: keep trudging > on the Microsoft treadmill, or get off. Both options have > their plusses and drawbacks. > > But at least Open Source will never force you to abandon > software you like. > > -Ken > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Feb 10 08:59:59 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 10 Feb 2004 08:59:59 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127CB@nt04.karta.com> Stuart, I have some experience designing training for physicians, nurses, and other medical personnel. We usually started with the need for training. Whether it was for infection control, procedural changes, governmental requirements or anything else. We would create one or two sentences for the objective and then determine the length of the needed training. The students, that I have met, for this course have some experience with Access. Their primary job is to evaluate hazardous materials from various sites from a myriad of locations. My syllabus probably didn't show it, but the discussion of the topics were to be basic as you suggested for day 1. I wanted to discuss the topics, but not get them too enthralled with the details. If I whet their appetite to dig deeper into a subject then I have met that goal. I like your titles for the subject areas: The building blocks of Access, How to Navigate around forms, and the others. I will use them or something quite similar. Also, your outline is less threatening to students than mine. I will reformat to get rid of checklist (cold) to your paragraph/discussion format (inviting). Thank you. Jim -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, February 09, 2004 5:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course On 9 Feb 2004 at 9:55, Jim Hewson wrote: > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > Do you have any experience designing training? The basic principle of course design is not to start with "how long", but with "what". What are you trying to produce - Computer Science Graduates, Analyst/Programmers or Competent Users? You need to start by stating a Course Objective and then breaking that down into training needs to achieve that objective. Once you have done that, decide how many of those objectives can be achieved in your "two-day course" My first cut of a syllabus is below. Any suggestions? > That looks like a classic one year syllabus for an "educational" institution, not a two day training course. Forget teaching them concepts, train then to do things - this is workplace oriented training, not academia. I'd say that a reason amount of content for a two day course would be to train them to use a developed Access application and to create their own queries. If they are good enough, you may have time to teach them to create simple reports using Wizards. Day 1: Basic concepts of what a relational database and why it is used ie: data stored in different tables based on context, the *very* basic principles of normalisation (WITHOUT even using the word) and the benefits of it (consistent data, only change in one place etc) The building blocks of Access: In simple terms - what is a table, query, form, report and what are they used for (mention VBA under the hood as the *magic bit* that makes it work, but don't show then how to get into the editor) How to navigate around forms ; how to use Combos (F4 key, autofilling), listboxes, checkboxes/option buttons, hotkeys, use of navigation buttons to move through a recordset, what the record selectors do, what the "dirty" icon means, when dirty records are saved, switching between form and datasheet view Form Filtering/Sorting using the main menu/toolbar items and the right click menu. Basic use of Reports: Printing/Previewing reports including changing printers/printing specific pages, zooming in preview mode. Day 2 Building queries using the QBE grid. Selecting tables/queries to use Basic concepts of keys, datatypes, creating joins Building criteria (use of and/or, <,>, =, Between, Not, Null, Date(), Year(),Month() etc) If sufficient time: Using the Report Wizard. > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 10 09:45:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 07:45:51 -0800 (PST) Subject: [AccessD] Office XP Outlook Security Message-ID: <20040210154551.33210.qmail@web20413.mail.yahoo.com> Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Tue Feb 10 09:53:51 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 16:53:51 +0100 (CET) Subject: [AccessD] Office XP Outlook Security Message-ID: <15572181.1076428431757.JavaMail.www@wwinf3003> Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From cfoust at infostatsystems.com Tue Feb 10 09:55:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Feb 2004 07:55:40 -0800 Subject: [AccessD] Office XP Outlook Security Message-ID: We use Redemption. I'm not sure what you mean by "I've followed the instructions twice", since Redemption is a dll and you have to program to it, not just install it and then use the built in SendObject, etc. in Access. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, February 10, 2004 7:46 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Feb 10 10:00:47 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 10 Feb 2004 17:00:47 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D26C@stekelbes.ithelps.local> Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 10 10:09:57 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 08:09:57 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: Message-ID: <20040210160957.4074.qmail@web20421.mail.yahoo.com> I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Thanks. We may look at Redemption as a last resort. Charlotte Foust wrote: We use Redemption. I'm not sure what you mean by "I've followed the instructions twice", since Redemption is a dll and you have to program to it, not just install it and then use the built in SendObject, etc. in Access. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, February 10, 2004 7:46 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From Patricia.O'Connor at DFA.STATE.NY.US Tue Feb 10 10:46:55 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Tue, 10 Feb 2004 11:46:55 -0500 Subject: [AccessD] Re: Information about Access 2003 Message-ID: Thanks for your reply. >>1. Has anyone successfully installed & used Access2003 on the same machine >>with 97 & 2k >I have 97, 2000, 2002, and 2003 installed and running quite well on a Win >2003 server machine. We have Win2000 Pc/workstations with Access 97 & Access 2000 residing somewhat comfortably on them. We have had considerable trouble with all of Office2000 but I think it is the way the image was built by the installation group. GRRR. From what I have heard THEY are having a problem getting Access2003 to reside with Access 97 on WinXP. The backends are on a winNT server - have not idea at the moment whether this will be updgraded. Thanks Patti > -----Original Message----- > From: Robert L. Stewart [mailto:rl_stewart at highstream.net] > Sent: Monday, February 09, 2004 10:19 AM > To: accessd at databaseadvisors.com > Cc: Patricia.O'Connor at dfa.state.ny.us > Subject: [AccessD] Re: Information about Access 2003 > > > Answers below: > > At 12:00 PM 2/7/2004 -0600, you wrote: > >Date: Fri, 6 Feb 2004 16:55:38 -0500 > >From: "O'Connor, Patricia " > >Subject: [AccessD] Information about Access 2003 > >To: "'Access Developers discussion and problem solving'" > > > >Message-ID: > >Content-Type: text/plain; charset="ISO-8859-1" > > > > > >We are going to be getting Access 2003 in about a month. > > > >1. Has anyone successfully installed & used Access2003 on > the same machine > >with 97 & 2k > > I have 97, 2000, 2002, and 2003 installed and running quite > well on a Win > 2003 server machine. > > > >2. What are the major differences/problems with A2003 > compared to A97 & 2k. > > It is very different from 97, but close (with enhancements) > to 2000 and 2002. > > >Are there any articles, books, etc besides MS.com to read up > on these. > > Don't have an answer for you here. I teach a developer's > workshop and I > have went to 2003 exclusively for teaching it. > > > >3. We have several Access 97 database systems in use. Should > I upgrade them > >to A2k first then A2003. > > Might not be a bad idea. It will give you a chance to get > the references > and anything else straightened out first. > > Robert > > > From rsmethurst at UK.EY.COM Tue Feb 10 10:50:50 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 16:50:50 +0000 Subject: [AccessD] Mde trouble Message-ID: I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From dwaters at usinternet.com Tue Feb 10 10:59:07 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Feb 2004 10:59:07 -0600 Subject: [AccessD] Office XP Outlook Security In-Reply-To: <20461686.1076431134769.JavaMail.root@sniper.marix.com> Message-ID: <000001c3eff7$35936ac0$de1811d8@DanWaters> Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From conny at qad.se Tue Feb 10 11:12:58 2004 From: conny at qad.se (Conny Johansson) Date: Tue, 10 Feb 2004 18:12:58 +0100 Subject: SV: [AccessD] Mde trouble In-Reply-To: Message-ID: <004601c3eff9$21a9d7e0$0400a8c0@QAD> I've had this experience as well, and if I remember correctly, I think the reason was that there was'nt enough free space on the HDD. I moved a couple of Mb, after that it worked fine. Conny J -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r rsmethurst at UK.EY.COM Skickat: den 10 februari 2004 17:51 Till: Access Developers discussion and problem solving ?mne: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-09 Tested on: 2004-02-10 18:12:57 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From cfoust at infostatsystems.com Tue Feb 10 11:13:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Feb 2004 09:13:05 -0800 Subject: [AccessD] Mde trouble Message-ID: You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Tue Feb 10 11:19:42 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 10 Feb 2004 11:19:42 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <004201c3effa$130f0600$2a3ca8c0@TEXASSYSTEMS.COM> I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust From rsmethurst at UK.EY.COM Tue Feb 10 11:22:06 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 17:22:06 +0000 Subject: SV: [AccessD] Mde trouble Message-ID: Conny, 70 Gigs to go, and it fails on the network as well, so it's not a space issue. Thanks RyanS "Conny Johansson" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:12 Please respond to Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" cc: Subject: SV: [AccessD] Mde trouble I've had this experience as well, and if I remember correctly, I think the reason was that there was'nt enough free space on the HDD. I moved a couple of Mb, after that it worked fine. Conny J -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r rsmethurst at UK.EY.COM Skickat: den 10 februari 2004 17:51 Till: Access Developers discussion and problem solving ?mne: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-09 Tested on: 2004-02-10 18:12:57 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members' names is available for inspection at 1 More London Place, London, SE1 2AF, the firm's principal place of business and its registered office. From rsmethurst at UK.EY.COM Tue Feb 10 11:23:53 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 17:23:53 +0000 Subject: [AccessD] Mde trouble Message-ID: Charlotte, I've used 2000 the whole way through. I have taken it home and worked on XP, but in 2000 format. It has never been upgraded to XP though. Could that be the problem? RyanS "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:13 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Mde trouble You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From jimdettman at earthlink.net Tue Feb 10 11:45:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 12:45:06 -0500 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: <> Typically, when you cannot create a MDE, it means something is wrong with the VBA project file. Since you've already said that it compiles fine, then the project itself is probably corrupt in some way. To fix it, you can: 1. Start Access with the /Decompile switch, close, re-open, and then recompile. 2. Create a fresh MDB and import everything into that, then compile. I'd go with the latter as I've never fully trusted the /decompile. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at UK.EY.COM Sent: Tuesday, February 10, 2004 11:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Tue Feb 10 11:35:41 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 10 Feb 2004 11:35:41 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: <004501c3effc$4e79ad60$2a3ca8c0@TEXASSYSTEMS.COM> I keep looking at Rekall, which I was introduced to by others in this forum. It was produced by the Kompany, http://www.thekompany.com/products/rekall/ But has no gone mostly GPL, http://www.totalrekall.co.uk/index.php http://www.rekallrevealed.org/ Have you had any experience with this front end? -Ken -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Monday, February 09, 2004 7:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. From ranthony at wrsystems.com Tue Feb 10 12:11:57 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Tue, 10 Feb 2004 13:11:57 -0500 Subject: [AccessD] Access 2003 Developer's Book Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A52@mail2.wrsystems.com> Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 From prodevmg at yahoo.com Tue Feb 10 13:10:47 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 11:10:47 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D26C@stekelbes.ithelps.local> Message-ID: <20040210191047.63246.qmail@web20422.mail.yahoo.com> Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From martyconnelly at shaw.ca Tue Feb 10 14:52:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 10 Feb 2004 12:52:03 -0800 Subject: [AccessD] Large datasets for testing tables References: Message-ID: <40294473.5050001@shaw.ca> Someone was asking for large tables for testing came across this You can download upto 10MB via csv files UK National Digital Archive of Datasets, http://ndad.ulcc.ac.uk/access/ You have to register but free to download certain datasets example download Primary, middle and secondary schools 1975 http://ndad.ulcc.ac.uk/CRDA/13/DS/1/1975/1/query.html Hmm I went looking for Brewery and duty addresses but that table is archived as closed until 2074 -- Marty Connelly Victoria, B.C. Canada From rl_stewart at highstream.net Tue Feb 10 14:52:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 10 Feb 2004 14:52:43 -0600 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <200402101752.i1AHqHm08775@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> Jim, I think you are trying to cover way too much in too short of a time. I have taught Access, from people who were not sure of the spelling of it to people who thought they knew everything there was to know about it. What are they wanting to accomplish? You should tailor the sessions to the purpose they want to accomplish. For example, I am teaching a 3 hour introduction to queries a week from Saturday to a class of 4 or 5 people. The purpose is for them to be able to query the database for themselves to get information, create mail merge lists, etc. Normalization itself is a two day class. But here is the 10 minute version of it. We are going to build a database to hold recipes. Write down on a sheet of paper the things we need to store about a recipe. Now, look at each item and ask the question, "Can there EVER be more than one of this item?" If the answer is "Yes," then you will need another table to hold the data. If you follow that without wavering, you will get to 5th normal form. ;-) For example "ingredient" Can a recipe ever have more than one ingredient? Yes, then there needs to be a table to hold them. Can an ingredient ever use more than one kind of measure? Yes. Then the measurement method needs to be in a table. Can a recipe fit into more than one category (dessert, main course, bread, etc)? Yes. Then there needs to be a table to hold it. My guess would be that they want to be able to query the database and do reports. Day 1 - Queries Day 2 - Reports ;-) Robert At 11:52 AM 2/10/2004 -0600, you wrote: > From: Jim Hewson > To: 'AccessD' > Sent: Tuesday, February 10, 2004 2:55 AM > Subject: [AccessD] Teaching Access Course > > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com From bruce_bruen at mlc.com.au Tue Feb 10 15:42:06 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:42:06 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: > I think if you read your agreement, you'll find that your only allowed to >run Access on Windows OS's. How, then do the winframe emulations cope? How, then can I deploy an ASP that uses an Access BE? How then can I use DAPs when I dont know what the client O/S is? (These are real questions btw - I cant see how the license could be that restrictive?) Didn't matter anyway I couldn't get it to run under wine. B From bruce_bruen at mlc.com.au Tue Feb 10 15:47:00 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:47:00 +1100 Subject: [AccessD] Office XP Outlook Security Message-ID: >I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that >Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Lonnie, I think (from memory)you will find that these insrtuctions apply to the Outlook Server not the client. IMHO they are not useful. B From Subscriptions at servicexp.com Tue Feb 10 15:54:29 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 10 Feb 2004 16:54:29 -0500 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: RyanS, Did you set any references to an un-compiled object, such as an .mdb in your db? Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at uk.ey.com Sent: Tuesday, February 10, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Mde trouble Charlotte, I've used 2000 the whole way through. I have taken it home and worked on XP, but in 2000 format. It has never been upgraded to XP though. Could that be the problem? RyanS "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:13 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Mde trouble You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 15:58:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:58:21 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: We used Rekall some time ago as an ETL interface for a PostgresQL db. I must admit I did not do the work myself. However the guy that got me the data turned it around in a couple of hours (128Mb flat data formatted as we requested) and I dont think he was a superguru. After we massaged the data (remove dups & inactive accounts, standardise NAD format, restructure into a relationship between client/account) we returned them about 67Mb to reload which he did while we were chatting about operational data quality - about 30 min. So in terms of doing things of that nature quickly it looked good from a short distance. B I keep looking at Rekall, which I was introduced to by others in this forum. It was produced by the Kompany, http://www.thekompany.com/products/rekall/ But has no gone mostly GPL, http://www.totalrekall.co.uk/index.php http://www.rekallrevealed.org/ Have you had any experience with this front end? -Ken From jwcolby at colbyconsulting.com Tue Feb 10 16:01:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 17:01:34 -0500 Subject: [AccessD] forced logout Message-ID: I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) John W. Colby www.ColbyConsulting.com From bruce_bruen at mlc.com.au Tue Feb 10 16:07:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 09:07:52 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: >Hi Bruce > >Did you have a look at Rekall and BlackAdder: > > http://www.thekompany.com/products/ > >which will bring Python or Ruby to you as well ... >I haven't had the time myself, and I wouldn't expect too much, but for >some situations they could prove useful. > >/gustav Hi Gustav, I looked at Ruby some time last year purely to investigate the language for a client as an alternative to C/C++ which was costing him too much for cutters. The feature set looked good, the simplicity looked good, but we discounted it on the availability of local expertise- not that there isn't any it was just that the experts are all quite busy. I did not have the benefit of an IDE to evaluate it as a user. So thanks for the link to Blackadder - I will revisit Ruby again. B From bruce_bruen at mlc.com.au Tue Feb 10 16:10:45 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 09:10:45 +1100 Subject: [AccessD] forced logout Message-ID: That would depend on the reason for forcing the logout surely? If the reason is due to a db corruption discovery or to a maintenance shutdown then the database should be reopened by an administrator manually. If OTOH the logout is forced by some business rule then that rule is incomplete unless it defines the reactivation. B "John W. Colby" com> cc: Sent by: Subject: [AccessD] forced logout accessd-bounces at databasea dvisors.com 11/02/2004 09:01 Please respond to Access Developers discussion and problem solving I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 10 17:06:18 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Feb 2004 17:06:18 -0600 Subject: [AccessD] forced logout In-Reply-To: <4085936.1076450699540.JavaMail.root@sniper.marix.com> Message-ID: <000001c3f02a$80c395a0$de1811d8@DanWaters> John, I've done both, but without a class. In one case, I want users out until I say it's OK to get back in. Perhaps I need to do some updating. In the other case, the company's backup software might need to have Access shut down to do the backup. In that case I set a shutdown time before the scheduled backup and a restart time after the backup. This is also good to do because (in A2K and AXP) the last person forced out triggers a compact and repair. To do this I have one boolean value in a small table, and two date/time fields in the same table. The front end main form has a 1 minute timer event to check to see if the boolean value is false or the shutdown time has arrived. If so, a 'Shutdown in 5 minutes' form appears on the user's screen. If it's time to get kicked out at night, a 'Shutdown in 10 minutes' form appears on the user's screen. This has worked well for a few years now. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 4:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 andrew.haslett at ilc.gov.au Tue Feb 10 17:54:45 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 10:24:45 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: >> How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From bruce_bruen at mlc.com.au Tue Feb 10 18:00:45 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 11:00:45 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: >And you honestly believe that the capabilities (functionality) of DOS would >support todays applications... You've got to be kidding me. Process controllers, life monitors, implant controllers, any real time application. From mastercafe at ctv.es Tue Feb 10 18:32:46 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 11 Feb 2004 01:32:46 +0100 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: <001501c3f036$9290cfd0$0300a8c0@servercafe> We have many experiences over this, spacially if we use Office XP Spanish version. We solve normally using one computer with Office XP English version. 1- Creating a new MDB file and importing all from the last MDB corrupted, 2- then check all forms that have OCX/COM controls and then replace with a new control, 3- check the names of this for code problems of every control in forms (common controls, progress bar, etc...) 4- Check other missing references 5- Debug and Compile We all obtain a new MDB perfect to use. We are decompiling every week our main MDB and makes copies every version, because the stability of MDB when you program and use many external controls is very low. Good luck and hope that this solve your problem Juan Menendez Mastercafe SL =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rsmethurst at UK.EY.COM Sent: martes, 10 de febrero de 2004 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From terry.mace at baesystems.com Tue Feb 10 18:40:30 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 11 Feb 2004 11:10:30 +1030 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com From jwcolby at colbyconsulting.com Tue Feb 10 19:10:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 20:10:02 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: The reason can be anything. I need to ensure all users are out of the database every night so that compact can occur. Also I need to be able to get in and do BE maintenance, modify tables if necessary etc. The users are leaving the FE (bound forms) open. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] forced logout That would depend on the reason for forcing the logout surely? If the reason is due to a db corruption discovery or to a maintenance shutdown then the database should be reopened by an administrator manually. If OTOH the logout is forced by some business rule then that rule is incomplete unless it defines the reactivation. B "John W. Colby" com> cc: Sent by: Subject: [AccessD] forced logout accessd-bounces at databasea dvisors.com 11/02/2004 09:01 Please respond to Access Developers discussion and problem solving I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 stuart at lexacorp.com.pg Tue Feb 10 19:30:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 11 Feb 2004 11:30:45 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: Message-ID: <402A1265.7128.29ED13@localhost> On 11 Feb 2004 at 10:24, Haslett, Andrew wrote: > >> How many companies would still be running DOS if they had a choice? I bet > a lot, because it is the function of the software that really matters in > business, and not so much the underlying technology. > > And you honestly believe that the capabilities (functionality) of DOS would > support todays applications... You've got to be kidding me. > > I know plenty of organisations that are still using DOS accounting packages. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From bruce_bruen at mlc.com.au Tue Feb 10 19:37:31 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 12:37:31 +1100 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Terry, Presuming : 1) that maintenance activity can only occur locally at a site (i.e Site 2 cannot perform Site3 work) 2) the 24hr delay remains acceptable 3) the offshore site is notr going to create timezone problems. I would go with a more traditional approach, giving each site its own local BE and provifing and end of day routine that copied new/changed data back to a separate static analsys db. "MACE, Terry" m> cc: Sent by: Subject: [AccessD] Database Operation from Remote Sites accessd-bounces at databasea dvisors.com 11/02/2004 11:40 Please respond to Access Developers discussion and problem solving Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 10 19:42:45 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Feb 2004 19:42:45 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227864@main2.marlow.com> ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 10 19:46:54 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Feb 2004 19:46:54 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227865@main2.marlow.com> Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at pacific.net.hk Tue Feb 10 19:47:41 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Wed, 11 Feb 2004 09:47:41 +0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: <003101c3f041$09c51fc0$2a00a8c0@BITSNB02> I was thinking over this just recently. The problem I have with a pure time based system is that different computers can have different times. Normally this should only be a matter of minutes, but not always. I saw someone mentioned something like this before and was thinking that one way would be to create a zero length file in the backend directory. You could use different filenames for different purposes: BESD10.txt - Shutdown in 10 minutes. BESD5.txt - shutdown in 5 minutes BESD.txt - immediate shutdown. BENL.txt - no login allowed (.txt isn't needed ... Just an illustration) The reason for this is that most backup programs allow the running of scripts before and after backup occurs. And by simply copying a file into the BE directory and deleting it when done you give the server the ability to centrally control automated jobs that require users to logout without having to guess how long such jobs will take. Just an idea... Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: Wednesday, 11 February, 2004 9:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] forced logout > > > The reason can be anything. I need to ensure all users are out of the > database every night so that compact can occur. Also I need > to be able to > get in and do BE maintenance, modify tables if necessary etc. > The users are > leaving the FE (bound forms) open. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Tuesday, February 10, 2004 5:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] forced logout > > > > > > > That would depend on the reason for forcing the logout surely? > > If the reason is due to a db corruption discovery or to a maintenance > shutdown then the database should be reopened by an > administrator manually. > If OTOH the logout is forced by some business rule then that rule is > incomplete unless it defines the reactivation. > > B > > > > "John W. Colby" > "AccessD" > > com> cc: > Sent by: > Subject: [AccessD] > forced logout > accessd-bounces at databasea > dvisors.com > > > 11/02/2004 09:01 > Please respond to Access > Developers discussion and > problem solving > > > > > > > I am almost finished with a class and a table to allow me to > force a logout > of my users from the db. In fact it is all working now, the only > remaining > question is "when do I let them back in". > > Is anyone else doing this? What is your answer? My tendency is "keep > logged out between ThisTime and ThatTime", i.e. add a second > time field to > the table that is the time to allow back in. > > Anyone? > > My current system uses: > > usysTblShutdown: > > SD_ID - autonumber PK > SD_Name - Shutdown name > SD_Time - Time to shutdown > SD_Enabled - THIS shutdown is enabled > SD_Warnings - The number of warnings to display before > forcing a > shutdown > SD_WarningTime - the number of seconds between warnings > > I have a form that my framework opens that initializes the > framework, and > shuts it back down if the form tries to close. Thus enabling a clean > shutdown regardless of anything other than perhaps a power failure. > > I then use the timer for this form to call a method in my class which > checks > whether to do the shutdown. The class raises an event with > every warning > to > the user in case your app needs warning that a shutdown is > imminent. The > class also raises an event when it is finally time to actually do the > shutdown. > > I will publish the whole in a demo database as soon as I > handle the issue > of > when to allow them back in. All opinions welcomed then summarily > dismissed. > > ;-) > > 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 bruce_bruen at mlc.com.au Tue Feb 10 19:45:13 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 12:45:13 +1100 Subject: [AccessD] forced logout Message-ID: >The reason can be anything. I need to ensure all users are out of the >database every night so that compact can occur. Also I need to be able to >get in and do BE maintenance, modify tables if necessary etc. The users are >leaving the FE (bound forms) open. In that case I'd go with the manual reactivation approach. However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. If the reason for the lockout is anything then even having them reopen the db could affect the actions being taken??? B From jwcolby at colbyconsulting.com Tue Feb 10 20:33:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:33:10 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: >However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. Well you have to start somewhere, you can't just throw up your hands and not do anything. Yes of course once they open the FE things start to happen, including opening tables etc. However I can do an IMMEDIATE shutdown if we are within the time period when the class initializes, not even displaying a warning. And if a compact is happening then they can't get in anyway. I have two specific objectives - getting them out so a compact can occur, and getting them out so I can edit tables. Either of these scenarios is handled beautifully by forcing them out, then doing a brutal shutdown if they try and get back in. My class opens an ADO recordset, reads the values and closes the recordset again, so it's not like a bound form in keeping a table open. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 8:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout >The reason can be anything. I need to ensure all users are out of the >database every night so that compact can occur. Also I need to be able to >get in and do BE maintenance, modify tables if necessary etc. The users are >leaving the FE (bound forms) open. In that case I'd go with the manual reactivation approach. However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. If the reason for the lockout is anything then even having them reopen the db could affect the actions being taken??? B _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 10 20:33:19 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:33:19 -0500 Subject: [AccessD] forced logout In-Reply-To: <003101c3f041$09c51fc0$2a00a8c0@BITSNB02> Message-ID: That is surely an idea. OTOH I want to be able to edit a record in a table dynamically to allow the FE to see that it is time to log out. One problem with "the back end directory" is that it may not even exist, or it may be several different directories. If you are using SQL Server, where is "the back end directory"? If the FE links to 3 different BEs on different machines, where is "the BE directory"? Of course you can then define a directory field in a table that the logout code looks in to see this file. And of course, what about web pages hitting the be? How do you tell them to stay out for a time period? With a table they could essentially use the same logic the FE uses. this brings up the issue of time zones of course. The record needs to include the time zone that the database server resides in since And sure, different computers could have different times. If that is an issue there are programs that can be run on each workstation that sync the workstations to the server's clock. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders Sent: Tuesday, February 10, 2004 8:48 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] forced logout I was thinking over this just recently. The problem I have with a pure time based system is that different computers can have different times. Normally this should only be a matter of minutes, but not always. I saw someone mentioned something like this before and was thinking that one way would be to create a zero length file in the backend directory. You could use different filenames for different purposes: BESD10.txt - Shutdown in 10 minutes. BESD5.txt - shutdown in 5 minutes BESD.txt - immediate shutdown. BENL.txt - no login allowed (.txt isn't needed ... Just an illustration) The reason for this is that most backup programs allow the running of scripts before and after backup occurs. And by simply copying a file into the BE directory and deleting it when done you give the server the ability to centrally control automated jobs that require users to logout without having to guess how long such jobs will take. Just an idea... Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: Wednesday, 11 February, 2004 9:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] forced logout > > > The reason can be anything. I need to ensure all users are out of the > database every night so that compact can occur. Also I need > to be able to > get in and do BE maintenance, modify tables if necessary etc. > The users are > leaving the FE (bound forms) open. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Tuesday, February 10, 2004 5:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] forced logout > > > > > > > That would depend on the reason for forcing the logout surely? > > If the reason is due to a db corruption discovery or to a maintenance > shutdown then the database should be reopened by an > administrator manually. > If OTOH the logout is forced by some business rule then that rule is > incomplete unless it defines the reactivation. > > B > > > > "John W. Colby" > "AccessD" > > com> cc: > Sent by: > Subject: [AccessD] > forced logout > accessd-bounces at databasea > dvisors.com > > > 11/02/2004 09:01 > Please respond to Access > Developers discussion and > problem solving > > > > > > > I am almost finished with a class and a table to allow me to > force a logout > of my users from the db. In fact it is all working now, the only > remaining > question is "when do I let them back in". > > Is anyone else doing this? What is your answer? My tendency is "keep > logged out between ThisTime and ThatTime", i.e. add a second > time field to > the table that is the time to allow back in. > > Anyone? > > My current system uses: > > usysTblShutdown: > > SD_ID - autonumber PK > SD_Name - Shutdown name > SD_Time - Time to shutdown > SD_Enabled - THIS shutdown is enabled > SD_Warnings - The number of warnings to display before > forcing a > shutdown > SD_WarningTime - the number of seconds between warnings > > I have a form that my framework opens that initializes the > framework, and > shuts it back down if the form tries to close. Thus enabling a clean > shutdown regardless of anything other than perhaps a power failure. > > I then use the timer for this form to call a method in my class which > checks > whether to do the shutdown. The class raises an event with > every warning > to > the user in case your app needs warning that a shutdown is > imminent. The > class also raises an event when it is finally time to actually do the > shutdown. > > I will publish the whole in a demo database as soon as I > handle the issue > of > when to allow them back in. All opinions welcomed then summarily > dismissed. > > ;-) > > 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 bruce_bruen at mlc.com.au Tue Feb 10 20:40:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 13:40:52 +1100 Subject: [AccessD] forced logout Message-ID: >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? From bruce_bruen at mlc.com.au Tue Feb 10 20:43:47 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 13:43:47 +1100 Subject: [AccessD] forced logout Message-ID: Cancel that - I just subtracted 15 hours instead of adding it. ----- Forwarded by Bruce Bruen/AU1/WealthMgmt on 11/02/2004 13:41 ----- Bruce Bruen To: Access Developers discussion and problem solving 11/02/2004 13:40 cc: Subject: RE: [AccessD] forced logout(Document link: Bruce Bruen) >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? The information contained in this e-mail communication may be confidential. You should only read, disclose, re-transmit,copy,distribute, act in reliance on or commercialise the information if you are authorised to do so. If you are not the intended recipient of this e-mail communication, please immediately notify us by e-mail to postmaster at mlc.com.au, or reply by e-mail direct to the sender and then destroy any electronic and paper copy of this message. Any views expressed in this e-mail communication are those of the individual sender, except where the sender specifically states them to be the views of a member of the National Australia Bank Group of companies. Any advice contained in this e-mail has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this e-mail, National Australia Bank Limited recommends that you consider whether it is appropriate for your circumstances. If this e-mail contains reference to any financial products, the National recommends you consider the Product Disclosure statement (PDS) or other disclosure document before making any decisions regarding any products. The National Australia Bank Group of companies does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. From jwcolby at colbyconsulting.com Tue Feb 10 20:49:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:49:39 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: It's only 9:49 pm here in Connecticut. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 9:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 10 20:54:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:54:26 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: I take it you're roughly the other side of the world from me? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout Cancel that - I just subtracted 15 hours instead of adding it. ----- Forwarded by Bruce Bruen/AU1/WealthMgmt on 11/02/2004 13:41 ----- Bruce Bruen To: Access Developers discussion and problem solving 11/02/2004 13:40 cc: Subject: RE: [AccessD] forced logout(Document link: Bruce Bruen) >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? The information contained in this e-mail communication may be confidential. You should only read, disclose, re-transmit,copy,distribute, act in reliance on or commercialise the information if you are authorised to do so. If you are not the intended recipient of this e-mail communication, please immediately notify us by e-mail to postmaster at mlc.com.au, or reply by e-mail direct to the sender and then destroy any electronic and paper copy of this message. Any views expressed in this e-mail communication are those of the individual sender, except where the sender specifically states them to be the views of a member of the National Australia Bank Group of companies. Any advice contained in this e-mail has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this e-mail, National Australia Bank Limited recommends that you consider whether it is appropriate for your circumstances. If this e-mail contains reference to any financial products, the National recommends you consider the Product Disclosure statement (PDS) or other disclosure document before making any decisions regarding any products. The National Australia Bank Group of companies does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 21:02:05 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 14:02:05 +1100 Subject: [AccessD] forced logout Message-ID: About 225 degrees. (Syd AU) From stuart at pacific.net.hk Tue Feb 10 21:16:21 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Wed, 11 Feb 2004 11:16:21 +0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: <003201c3f04d$6c333870$2a00a8c0@BITSNB02> > -----Original Message----- > That is surely an idea. OTOH I want to be able to edit a > record in a table > dynamically to allow the FE to see that it is time to log > out. One problem > with "the back end directory" is that it may not even exist, > or it may be > several different directories. If you are using SQL Server, > where is "the > back end directory"? If the FE links to 3 different BEs on different > machines, where is "the BE directory"? Of course you can > then define a > directory field in a table that the logout code looks in to > see this file. Store the location in a table :) (like you say) > And of course, what about web pages hitting the be? How do > you tell them to > stay out for a time period? With a table they could > essentially use the > same logic the FE uses. this brings up the issue of time > zones of course. > The record needs to include the time zone that the database > server resides > in since Actually time zones is probably a bigger issue than individual pc time. If you go for the defined time approach, then the app needs to be aware of the time difference between it and the server. How does an ASP determine that it shouldn't contact the DB... To be perfectly honest I'm not sure. But then you'd have pretty much the same issue even if it was table based. In order for it to determine it is not supposed to be in the database it would need to already be there. One of the reasons I was favouring the file based approach (and I haven't done anything other than think about it ... Not implemented) is that it can be checked prior to trying to get into the database. So if maintenance/backup/compact is about to occur someone doesn't inadvertently log in just when the specific action is about to begin. And thus throwing the system out for 24 houus or when ever the next automated backup (for example) is scheduled. > And sure, different computers could have different times. If > that is an > issue there are programs that can be run on each workstation > that sync the > workstations to the server's clock. Yes ... But many small businesses don't, and the last thing I personally would want is that you find out this after they can't get their backup working because someone was in the db at the time. Maybe I'm just being overally paranoid though. Stuart From jwcolby at colbyconsulting.com Tue Feb 10 21:28:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 22:28:26 -0500 Subject: [AccessD] forced logout In-Reply-To: <003201c3f04d$6c333870$2a00a8c0@BITSNB02> Message-ID: >Maybe I'm just being overly paranoid though. Uhh... probably. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders Sent: Tuesday, February 10, 2004 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] forced logout > -----Original Message----- > That is surely an idea. OTOH I want to be able to edit a > record in a table > dynamically to allow the FE to see that it is time to log > out. One problem > with "the back end directory" is that it may not even exist, > or it may be > several different directories. If you are using SQL Server, > where is "the > back end directory"? If the FE links to 3 different BEs on different > machines, where is "the BE directory"? Of course you can > then define a > directory field in a table that the logout code looks in to > see this file. Store the location in a table :) (like you say) > And of course, what about web pages hitting the be? How do > you tell them to > stay out for a time period? With a table they could > essentially use the > same logic the FE uses. this brings up the issue of time > zones of course. > The record needs to include the time zone that the database > server resides > in since Actually time zones is probably a bigger issue than individual pc time. If you go for the defined time approach, then the app needs to be aware of the time difference between it and the server. How does an ASP determine that it shouldn't contact the DB... To be perfectly honest I'm not sure. But then you'd have pretty much the same issue even if it was table based. In order for it to determine it is not supposed to be in the database it would need to already be there. One of the reasons I was favouring the file based approach (and I haven't done anything other than think about it ... Not implemented) is that it can be checked prior to trying to get into the database. So if maintenance/backup/compact is about to occur someone doesn't inadvertently log in just when the specific action is about to begin. And thus throwing the system out for 24 houus or when ever the next automated backup (for example) is scheduled. > And sure, different computers could have different times. If > that is an > issue there are programs that can be run on each workstation > that sync the > workstations to the server's clock. Yes ... But many small businesses don't, and the last thing I personally would want is that you find out this after they can't get their backup working because someone was in the db at the time. Maybe I'm just being overally paranoid though. Stuart _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Tue Feb 10 21:36:12 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 14:06:12 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Tue Feb 10 21:49:16 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 22:49:16 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: Message-ID: OTOH it would be nice if they would BOTHER to fix the outstanding bugs that just seem to propagate down from version to version. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 10:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 22:00:01 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 15:00:01 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew From andrew.haslett at ilc.gov.au Tue Feb 10 22:02:18 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 14:32:18 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: I'll give you that John ;=) -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, 11 February 2004 2:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) OTOH it would be nice if they would BOTHER to fix the outstanding bugs that just seem to propagate down from version to version. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 10:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Tue Feb 10 22:44:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 23:44:24 -0500 Subject: [AccessD] Forced logout Message-ID: Well, I have a general shutdown system working that raises events for shutdown warnings as well as the shutdown itself. I thought you folks who are into RaiseEvents and WithEvents might be interested in this.. I am testing with THREE shutdown records, i.e. two at specific times, and one that is just a forced shutdown. In order to do this I use a clsShutDown that process a single shutdown record and handles all aspects of that specific shutdown, calculating when to issue warnings, opening a cancelable form, raising a warning or shutdown event and so forth. I also have a supervisor class which has a collection. The supervisor has a class factory that creates a clsShutdown instance for each record in the table, and then stores a pointer to that shutdown class instance in this collection. Remember that the clsShutdown can raise two different events, one a "warning" event when the warning is issued to the user, the other a "Shutdown" event when it is actually time to shut down. Since the Supervisor class contains the clsShutdown instances in it's collection, how do we sink the events that the clsShutdown instances raise? The answer is to have a class global variable of a clsShutdown in the supervisor class' header. The timer tick of the controlling form calls a TimerTick method of the supervisor class. That method then iterates the collection of clsShutdown instances SETTING THE SUPERVISOR CLASS GLOBAL TO EACH SHUTDOWN INSTANCE POINTER IN TURN. Since that supervisor class global variable was dimensioned WithEvents it can sink an event from whatever class is currently being pointed to. Thus we "switch in/out" an instance of clsShutdown, call a method of that specific instance telling it that it is time to see if we should issue a warning or perform a shutdown. THAT INSTANCE then MAY (if it is time) RAISE one of it's two events which is sunk in the supervisor class. The clsShutdown event passes a parameter in it's RaiseEvent with it's name, so now the classSupervisor knows what class instance raised the event. In fact the supervisor simply RAISES IT'S OWN EVENT by the same name and passes the parameter along to whoever is sinking the supervisor's events. What this means is that the supervisor can sink it's child class' events, one class at a time as it iterates it's child class collection. As the child class' events fire, the supervisor class sinks it and turns right around and raises it's own event passing along the parameters from the child class that originally raised the event. The object sinking the supervisor class' events can do what it wants (or nothing) with the events, but it has been notified. I've been wondering for awhile whether I could manage to sink events for classes held in a collection and this seems to work very nicely. The code of interest is dead simple: In the supervisor class header: ******* Private mcolClsShutdown As Collection Private WithEvents mCurrentClsShutdown As clsShutdown Public Event ShutdownWarning(strShutdownName As String, lngSecondsTillShutdown As Long) Public Event Shutdown(strShutdownName As String) Public Function TimerTick() Dim lclsShutdown As clsShutdown 'Cycle through all the classes in the collection, setting each to the 'module level global variable in turn. ' 'This SHOULD allow me to sink each classes' events here in this class 'and propagate it on to the user of this supervisor class ' For Each lclsShutdown In mcolClsShutdown Set mCurrentClsShutdown = lclsShutdown mCurrentClsShutdown.CheckShutdown Next lclsShutdown End Function Private Sub mCurrentClsShutdown_Shutdown(strShutdownName As String) RaiseEvent Shutdown(strShutdownName) MsgBox "Shutdown: " & strShutdownName End Sub Private Sub mCurrentClsShutdown_ShutdownWarning(strShutdownName As String, lngSecondsTillShutdown As Long) RaiseEvent ShutdownWarning(strShutdownName, lngSecondsTillShutdown) MsgBox "ShutdownWarning: " & strShutdownName End Sub ******* Of course there is initialize / terminate code etc. This is JUST the code that iterates the child class collection, tickles each child class to see if it is time to raise it's event, then sinks these events and propagates them along. I thought this was a pretty cool (and simple) way to handle this situation. I am not finished debugging the particulars of "forced shutdown" and "time back in", but I will post the demo to my web site when I get that finished. This stuff is working though, using a single "control form" to raise the timer ticks and sink the supervisor class events. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Tue Feb 10 22:56:22 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 10 Feb 2004 20:56:22 -0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: Hi John: The typical government login gives the users three tries and then will not allow the same username to be used for about twenty minutes...it use to be an hour but there were too many complains from legitimate users. (Some users have been known to attempt login before their first cup of coffee!) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 2:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 Helmut.E.Kotsch at t-online.de Wed Feb 11 00:44:59 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Wed, 11 Feb 2004 07:44:59 +0100 Subject: AW: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227864@main2.marlow.com> Message-ID: Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From caa at highway.com.br Wed Feb 11 02:44:34 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Wed, 11 Feb 2004 05:44:34 -0300 Subject: [AccessD] Checking if a file is open In-Reply-To: References: Message-ID: On Mon, 9 Feb 2004 15:28:26 +0000, wrote: > Thanks for the reply Oleg. > > That is what I have at the moment, but if at all possible I would like to > work around the file being open, (like I said though - if at all > possible) > > Cheers > Ryan > > > > Sent by: accessd-bounces at databaseadvisors.com > 09/02/2004 15:26 > Please respond to Access Developers discussion and problem solving > > > To: > cc: > Subject: Re: [AccessD] Checking if a file is open > > > the easiest (aaltough not the best) way would be to see what is the > number of the error you are getting, and write code for that error > prompting the user to close excel appl, and exiting the sub > >> Hi All, >> >> I am importing data from Excel into Access. The initial step in this >> process involves copying the data from the excel spreadsheet into a >> temporary copy of itself. This step fails if the file is open. Does >> anyone recommend a method that I could use to see if the file is already >> open (and then notify the user to shut it down?) >> >> TIA >> RyanS >> Take a llok at FileAttr function. It might help you. ;-) -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From accessd667 at yahoo.com Wed Feb 11 02:01:25 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 00:01:25 -0800 (PST) Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <20040211080125.22744.qmail@web61105.mail.yahoo.com> Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rsmethurst at UK.EY.COM Wed Feb 11 03:58:08 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 09:58:08 +0000 Subject: [AccessD] Mde trouble Message-ID: Hi All, Thanks to those of you who sent suggestions for my mde problem. It seems to be working now, and the problem appears to have been that there were circular references in the class modules. This wasn't caught in the compile, but seems to have stopped the mde from being created. Thanks again, RyanS rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 16:50 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Wed Feb 11 04:02:00 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 10:02:00 +0000 Subject: [AccessD] Calling objects Message-ID: Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Erwin.Craps at ithelps.be Wed Feb 11 04:07:07 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:07:07 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D275@stekelbes.ithelps.local> Is this on the fileserver or on a local disk? I would think this is somekind of cache problem. Did you verify the datetime of the file in Windows Explorer? Or tried to use the FileDateTime vb function, just to see what those are reporting. Do you set the fso to nothing after using it? Just a few toughts... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Wednesday, February 11, 2004 9:01 AM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 11 04:05:44 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 10:05:44 +0000 Subject: [AccessD] Embedded Objects Message-ID: Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From andrew.haslett at ilc.gov.au Wed Feb 11 04:24:13 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 20:54:13 +1030 Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fi elds From SQL Server 7.0 to SQL Server 2000 Message-ID: ** also posted to SQL Server list ** There was an Access 2000 SQL Server 'Readiness Update' in early version of Office 2k. I believe it was included in a later service pack. This may or may not fix the issue, however it definitely fixed issues we had when upgrading an Access MDB to SQL Server. Check out Office Update for more info. Cheers, Andrew -----Original Message----- From: James Barash [mailto:James at fcidms.com] Sent: Wednesday, 11 February 2004 12:18 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 Yes, SQL 2000 uses 1 for true and 0 for false. In general, 0 is false and anything non 0 is true. I believe, in Access, you can test for True and it will find 1 or -1 or anything but 0 and Null. I usually just test for <> 0 since that seems to work everywhere. Another thing to watch out for is bound forms that have bit fields. Because of the difference in how Access and SQL Server handle bit fields it can cause errors if you have bit fields that are Nullable. You must have a default value or Access will raise an error whenever you edit a record. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Monday, February 09, 2004 5:31 PM To: 'accessd at databaseadvisors.com' Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields >From SQL Server 7.0 to SQL Server 2000 We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From Erwin.Craps at ithelps.be Wed Feb 11 04:33:47 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:33:47 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D277@stekelbes.ithelps.local> Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Feb 11 04:40:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:40:17 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D279@stekelbes.ithelps.local> It's easyier to do than it looks. BUT, read the manual 3 times before you do it.... The manual is not so well written. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, February 11, 2004 11:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 11 04:54:16 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Feb 2004 10:54:16 -0000 Subject: [AccessD] Test Data References: Message-ID: <000c01c3f08d$64cd7fb0$9111758f@aine> http://www.majorsoftware.com.au/SmplDataGen.htm The above link takes you to a download which creates large amounts of test data. Been a few emails about test data recently. No idea how good/bad this is. Martin From gustav at cactus.dk Wed Feb 11 03:10:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:10:09 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: References: Message-ID: <233987623.20040211101009@cactus.dk> Hi Bruce > We used Rekall some time ago as an ETL interface for a PostgresQL db. I > must admit I did not do the work myself. However the guy that got me the > data turned it around in a couple of hours (128Mb flat data formatted as we > requested) and I dont think he was a superguru. After we massaged the data > (remove dups & inactive accounts, standardise NAD format, restructure into > a relationship between client/account) we returned them about 67Mb to > reload which he did while we were chatting about operational data quality - > about 30 min. So in terms of doing things of that nature quickly it looked > good from a short distance. OK. I had no idea what ETL is but found an explanation here: http://www.orafaq.com/glossary/faqglose.htm /gustav From gustav at cactus.dk Wed Feb 11 02:55:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 09:55:04 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: References: Message-ID: <1873082592.20040211095504@cactus.dk> Hi Bruce > I did not have the benefit of an IDE to evaluate it as a user. So thanks > for the link to Blackadder - I will revisit Ruby again. OK. If possible, please share your experiences. /gustav From gustav at cactus.dk Wed Feb 11 03:24:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:24:23 +0100 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> References: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> Message-ID: <1704840960.20040211102423@cactus.dk> Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert From gustav at cactus.dk Wed Feb 11 03:52:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:52:55 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: References: Message-ID: <626552782.20040211105255@cactus.dk> Hi Bruce > I agree that Access does, and always has, run like a dog across a network. Given a high-quality network and server, this is indeed not our experience. > It is also sensitive to unstable networks. I repeat - has and always has. > Now has M$ ever adequately addressed that? Not within the Access model. We have only seen problems in the days of Win3.11 peer-to-peer networks, malfunctioning NICs and old RealTek drivers, low-cost dubious whitebox machines, and coax cables. Still peer-to-peer networks may cause troubles; using a true server and a fast and reliable network and brand name worksstations with WinNT+ causes close to zero issues. /gustav From gustav at cactus.dk Wed Feb 11 03:56:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:56:13 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: References: Message-ID: <1806751598.20040211105613@cactus.dk> Hi Andrew There is even a free DOS project: http://www.freedos.org/ /gustav >>And you honestly believe that the capabilities (functionality) of >>DOS would support todays applications... You've got to be kidding >>me. > Process controllers, life monitors, implant controllers, any real > time application. From gustav at cactus.dk Wed Feb 11 04:52:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 11:52:34 +0100 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: References: Message-ID: <12610131718.20040211115234@cactus.dk> Hi Terry A possible solution would be the NeTraverse Terminal Server: http://www.netraverse.com/products/wts/ Of course, the remote office will need some kind of Internet connection. It will offer your app a Win98 environment for each user. License cost for WTS and Win98 will roughly be USD 250 per user. /gustav > I'm after some information on the best way to proceed with the expansion of > an existing Access97 database application which is used for maintenance > activity recording. > My company currently runs this database at two sites, call them Site1 and > Site2. The BE is changed at Site2 as a function of its operations, each > night the BE is copied to Site1 where it is used for admin and data mining > purposes with the data acknowledged as being up to 24hrs out of date. This > has served the company well up to now as only one site can change the data. > The company now want to expand the number of sites that use and i/p data. > The new layout will have at least 4 sites. Site1 will be the admin and data > mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 > are on a WAN with Site3 being the companies main site and hosting the > companies Internet gateway. Site4 is overseas and not on the WAN. > What I would like is some idea of the best approach - I have read a bit > about replication and ASP but have no practical experience with either. > Thanks for any assistance. > Terry Mace > Logistic Support Officer & Maintenance Supervisor > BAE SYSTEMS > 677 Victoria Street, > Abbotsford, VIC 3067 > Ph: +61 3 9208 0924 > Fax: +61 3 9208 0588 > Mailto: terry.mace at baesystems.com From gustav at cactus.dk Wed Feb 11 05:18:48 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 12:18:48 +0100 Subject: [AccessD] Calling objects In-Reply-To: References: Message-ID: <9711706172.20040211121848@cactus.dk> Hi Ryan You didn't tell which format. You should use bmp files with lowest possible size and colour count. /gustav > Can anyone suggest any 'good practise' ideas for embedding image files > into a database. (I'm thinking specifically here about keeping the size of > the .mdb down) > I'm using about 20 images on a menu and they appear to be bloating the > database quite considerably and being a major hinderance when I try to > compact. From gustav at cactus.dk Wed Feb 11 05:16:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 12:16:07 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? In-Reply-To: <20040211080125.22744.qmail@web61105.mail.yahoo.com> References: <20040211080125.22744.qmail@web61105.mail.yahoo.com> Message-ID: <7711545131.20040211121607@cactus.dk> Hi Sander You could try to rename the old mdb, create the new, delete the old. /gustav > I'm using FileSystemObject to delete a MDB file. > After that I'm creating a new MDB. > Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. > Read-only." > However the time it returns is the date\time combination of when I created the DB for the first time. From rsmethurst at UK.EY.COM Wed Feb 11 05:38:39 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 11:38:39 +0000 Subject: [AccessD] Calling objects Message-ID: Thanks Gustav, I think most of them are jpgs at the moment, though will have to check that out. Will change a few to bmp and see if it makes a difference. Cheers RyanS Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 11:18 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Calling objects Hi Ryan You didn't tell which format. You should use bmp files with lowest possible size and colour count. /gustav > Can anyone suggest any 'good practise' ideas for embedding image files > into a database. (I'm thinking specifically here about keeping the size of > the .mdb down) > I'm using about 20 images on a menu and they appear to be bloating the > database quite considerably and being a major hinderance when I try to > compact. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Wed Feb 11 05:40:35 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 11:40:35 +0000 Subject: [AccessD] Object Sizes Message-ID: Hi All, Is there any mechanism in Access where you can see what the actual/approximate size of an object is. A form for example...how much actual space (bytes) it takes up...maybe a field on one of the sys tables? TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Wed Feb 11 06:02:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 13:02:22 +0100 Subject: [AccessD] Object Sizes In-Reply-To: References: Message-ID: <9814319981.20040211130222@cactus.dk> Hi Ryan > Is there any mechanism in Access where you can see what the > actual/approximate size of an object is. > A form for example...how much actual space (bytes) it takes up...maybe a > field on one of the sys tables? No. You can create a new db, record the "empty" size of that, export the form to that db, compact the new db, record the size of the new db. Size of the form is roughly the growth in size. /gustav From markamatte at hotmail.com Wed Feb 11 08:46:31 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 11 Feb 2004 14:46:31 +0000 Subject: [AccessD] forced logout Message-ID: Hello All, In following this thread...I was awaiting the answer...because I've had the same question...How to inform them its ok to go back in...If they have the FE open...doesn't it 'open' then BE? I don't know if my idea is feasible...but it was inspired by John's statement: "If the FE links to 3 different BEs on different machines, where is "the BE directory"? " Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to this table...When your criteria is met...delete/disable your linked tables in the FE...minus the SHUTDOWN table...Your FE continues to check the SHUTDOWN table...when it is time...recreate/enable your links in the FE. I'm pretty sure this can all be done in VBA. Just a shot in the dark...but almost makes sense to me...please let me know if it does to anyone else. Thanks, Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Tue, 10 Feb 2004 21:33:19 -0500 > >That is surely an idea. OTOH I want to be able to edit a record in a table >dynamically to allow the FE to see that it is time to log out. One problem >with "the back end directory" is that it may not even exist, or it may be >several different directories. If you are using SQL Server, where is "the >back end directory"? If the FE links to 3 different BEs on different >machines, where is "the BE directory"? Of course you can then define a >directory field in a table that the logout code looks in to see this file. > >And of course, what about web pages hitting the be? How do you tell them >to >stay out for a time period? With a table they could essentially use the >same logic the FE uses. this brings up the issue of time zones of course. >The record needs to include the time zone that the database server resides >in since > >And sure, different computers could have different times. If that is an >issue there are programs that can be run on each workstation that sync the >workstations to the server's clock. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders >Sent: Tuesday, February 10, 2004 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] forced logout > > >I was thinking over this just recently. The problem I have with a pure >time >based system is that different computers can have different times. >Normally >this should only be a matter of minutes, but not always. > >I saw someone mentioned something like this before and was thinking that >one >way >would be to create a zero length file in the backend directory. You could >use >different filenames for different purposes: >BESD10.txt - Shutdown in 10 minutes. >BESD5.txt - shutdown in 5 minutes >BESD.txt - immediate shutdown. >BENL.txt - no login allowed > >(.txt isn't needed ... Just an illustration) > >The reason for this is that most backup programs allow the running of >scripts >before and after backup occurs. And by simply copying a file into the BE >directory and deleting it when done you give the server the ability to >centrally >control automated jobs that require users to logout without having to guess >how >long such jobs will take. > >Just an idea... > >Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > John W. Colby > > Sent: Wednesday, 11 February, 2004 9:10 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] forced logout > > > > > > The reason can be anything. I need to ensure all users are out of the > > database every night so that compact can occur. Also I need > > to be able to > > get in and do BE maintenance, modify tables if necessary etc. > > The users are > > leaving the FE (bound forms) open. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > bruce_bruen at mlc.com.au > > Sent: Tuesday, February 10, 2004 5:11 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > If the reason is due to a db corruption discovery or to a maintenance > > shutdown then the database should be reopened by an > > administrator manually. > > If OTOH the logout is forced by some business rule then that rule is > > incomplete unless it defines the reactivation. > > > > B > > > > > > > > "John W. Colby" > > > "AccessD" > > > > com> cc: > > Sent by: > > Subject: [AccessD] > > forced logout > > accessd-bounces at databasea > > dvisors.com > > > > > > 11/02/2004 09:01 > > Please respond to Access > > Developers discussion and > > problem solving > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > force a logout > > of my users from the db. In fact it is all working now, the only > > remaining > > question is "when do I let them back in". > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > logged out between ThisTime and ThatTime", i.e. add a second > > time field to > > the table that is the time to allow back in. > > > > Anyone? > > > > My current system uses: > > > > usysTblShutdown: > > > > SD_ID - autonumber PK > > SD_Name - Shutdown name > > SD_Time - Time to shutdown > > SD_Enabled - THIS shutdown is enabled > > SD_Warnings - The number of warnings to display before > > forcing a > > shutdown > > SD_WarningTime - the number of seconds between warnings > > > > I have a form that my framework opens that initializes the > > framework, and > > shuts it back down if the form tries to close. Thus enabling a clean > > shutdown regardless of anything other than perhaps a power failure. > > > > I then use the timer for this form to call a method in my class which > > checks > > whether to do the shutdown. The class raises an event with > > every warning > > to > > the user in case your app needs warning that a shutdown is > > imminent. The > > class also raises an event when it is finally time to actually do the > > shutdown. > > > > I will publish the whole in a demo database as soon as I > > handle the issue > > of > > when to allow them back in. All opinions welcomed then summarily > > dismissed. > > > > ;-) > > > > 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 _________________________________________________________________ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx From JHewson at karta.com Wed Feb 11 08:59:03 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 11 Feb 2004 08:59:03 -0600 Subject: [AccessD] Re: Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127DC@nt04.karta.com> Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 09:55:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 07:55:12 -0800 Subject: [AccessD] Embedded Objects Message-ID: What kind of images are these and why would you need 20 on a menu? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 2:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] Embedded Objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 10:04:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 08:04:50 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 11 10:23:13 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 11 Feb 2004 10:23:13 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE34B@TAPPEEXCH01> Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From adtp at touchtelindia.net Wed Feb 11 08:25:40 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 11 Feb 2004 19:55:40 +0530 Subject: [AccessD] Calling objects References: Message-ID: <002a01c3f0bb$80a6c6f0$c81865cb@winxp> RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS From jimdettman at earthlink.net Wed Feb 11 10:29:01 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 11 Feb 2004 11:29:01 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: Charlotte, <> That's not quite true as it depends on the language. Most languages today do depend on a runtime as their not fully compiled, but incrementally compiled. But there are languages that produce true standalone EXE's. << what would be the point of an executable?>> Avoiding the PITA of references for one. Better performance is a second. Easier distribution is a third. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 11, 2004 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Feb 11 10:55:43 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 11 Feb 2004 10:55:43 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <009901c3f0bf$e34ba0b0$2a3ca8c0@TEXASSYSTEMS.COM> I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From rsmethurst at UK.EY.COM Wed Feb 11 11:11:14 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 17:11:14 +0000 Subject: [AccessD] Calling objects Message-ID: No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From mastercafe at ctv.es Wed Feb 11 11:21:03 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 11 Feb 2004 18:21:03 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: <009901c3f0bf$e34ba0b0$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <003501c3f0c3$6d72b9b0$0300a8c0@servercafe> Many people like us initiate his projects with Basic, Pascal or similar languajes. I remmeber with a smile Dbase III and Clipper for develope incredible database on networks. And 15 years then... All run perfectly under msdos 3.3 , but some end users want graphical enviroment, want news, want more capabilities (internet connectivity, excel capability, etc...) is in that moment when we found the problems.... Less stability, more maintenance, backups continous, more than 100 calls to our help desk, etc... I hope that LINDOWS, LINUX or any other software demonstrate that a computer programming in a stable platform. Or a law to forbbiden to companies like microsoft introduce programs with terrible mistakes and holes. We are the debugger for microsoft... But the time that we spent is totally free of charge for they, i think so Microsoft must be down his prices more than 50% to excuse the initial problems for the new releases. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: mi?rcoles, 11 de febrero de 2004 17:56 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Feb 11 11:35:29 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 18:35:29 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D290@stekelbes.ithelps.local> In Quick Basic you had both choices. Include runtime in Exe or not... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, February 11, 2004 5:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Charlotte, <> That's not quite true as it depends on the language. Most languages today do depend on a runtime as their not fully compiled, but incrementally compiled. But there are languages that produce true standalone EXE's. << what would be the point of an executable?>> Avoiding the PITA of references for one. Better performance is a second. Easier distribution is a third. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 11, 2004 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 11:36:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 09:36:13 -0800 Subject: [AccessD] Calling objects Message-ID: In that case, there isn't any way to avoid the bloat. There really isn't an efficient way to embed graphics in Access. Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 9:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling objects No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 11:38:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 09:38:39 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Message-ID: Maybe they were stable after being built (which depended entirely on the skills of the developer, BTW), but I can remember the nightmare of designing effective entry screens in dBase III and the limits I was *always* pushing. Give me graphical any day, thanks! Charlotte Foust -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Wednesday, February 11, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Many people like us initiate his projects with Basic, Pascal or similar languajes. I remmeber with a smile Dbase III and Clipper for develope incredible database on networks. And 15 years then... All run perfectly under msdos 3.3 , but some end users want graphical enviroment, want news, want more capabilities (internet connectivity, excel capability, etc...) is in that moment when we found the problems.... Less stability, more maintenance, backups continous, more than 100 calls to our help desk, etc... I hope that LINDOWS, LINUX or any other software demonstrate that a computer programming in a stable platform. Or a law to forbbiden to companies like microsoft introduce programs with terrible mistakes and holes. We are the debugger for microsoft... But the time that we spent is totally free of charge for they, i think so Microsoft must be down his prices more than 50% to excuse the initial problems for the new releases. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: mi?rcoles, 11 de febrero de 2004 17:56 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 11 11:55:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 18:55:57 +0100 Subject: [AccessD] Calling objects In-Reply-To: References: Message-ID: <2735535537.20040211185557@cactus.dk> Hi Ryan What Charlotte tries to tell you is that Access doesn't compress embedded pictures neither are they stored as is; prior to storage they are converted to bitmaps. That is why it is not efficient to store, say, jpegs with 24 mio. colours in oversize which you later zoom down to fit. Scale them down outside Access and save as bitmaps, if possible at 256 colours or less. Same goes for reports - pick a wrong picture format and your app will belly up. /gustav > In that case, there isn't any way to avoid the bloat. There really > isn't an efficient way to embed graphics in Access. > Charlotte Foust > No, the database is shipped all over the place, so they really need to > be embedded. > In answer to Charlotte...they're icons for the main menu. Why etc. is > not really what's up for debate at the moment, I'm just looking to make sure > it is done the most resource efficient way. From rl_stewart at highstream.net Wed Feb 11 12:15:03 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:15:03 -0600 Subject: [AccessD] Re: Embedded Objects In-Reply-To: <200402111622.i1BGMmm10585@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211121311.029c5908@pop3.highstream.net> Ryan, Yes, two words...DON'T EMBED. Do you want fluff or functional? You can use a linked object instead. Robert At 10:22 AM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 10:05:44 +0000 >From: rsmethurst at UK.EY.COM >Subject: [AccessD] Embedded Objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi All, > >Can anyone suggest any 'good practise' ideas for embedding image files >into a database. (I'm thinking specifically here about keeping the size of > >the .mdb down) > >I'm using about 20 images on a menu and they appear to be bloating the >database quite considerably and being a major hinderance when I try to >compact. > >TIA >RyanS From prodevmg at yahoo.com Wed Feb 11 12:25:35 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:25:35 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: Message-ID: <20040211182535.56349.qmail@web20413.mail.yahoo.com> Yes, I am finding that out. bruce_bruen at mlc.com.au wrote: >I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that >Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Lonnie, I think (from memory)you will find that these insrtuctions apply to the Outlook Server not the client. IMHO they are not useful. B _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From prodevmg at yahoo.com Wed Feb 11 12:28:17 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:28:17 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D279@stekelbes.ithelps.local> Message-ID: <20040211182817.65700.qmail@web20405.mail.yahoo.com> Thanks Erwin, I will talk with our NetAdmin about it when he gets in. He spent the night here restoring our Exchange Server after some serious damage was done with respect to another issue. Thanks again. Erwin Craps - IT Helps wrote: It's easyier to do than it looks. BUT, read the manual 3 times before you do it.... The manual is not so well written. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, February 11, 2004 11:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Wed Feb 11 12:28:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:28:51 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: <200402111800.i1BI0Tm29753@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211122507.029c5e80@pop3.highstream.net> Ryan, You did ask for "best practice." The best practice is not to do it. Shipping it all over the place is not an excuse. The install program could place them in the same directory as the Access FE then linking them is a no-brainer. The most resource efficient way is not to do it. Why you feel you have to have them is a matter for debate if you insist on the inefficient practice. Robert At 12:00 PM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 17:11:14 +0000 >From: rsmethurst at UK.EY.COM >Subject: Re: [AccessD] Calling objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >No, the database is shipped all over the place, so they really need to be >embedded. > >In answer to Charlotte...they're icons for the main menu. Why etc. is not >really what's up for debate at the moment, I'm just looking to make sure >it is done the most resource efficient way. > >Thanks >RyanS From prodevmg at yahoo.com Wed Feb 11 12:29:30 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:29:30 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <15572181.1076428431757.JavaMail.www@wwinf3003> Message-ID: <20040211182930.32779.qmail@web20413.mail.yahoo.com> Paul, I am also looking at this option. I have downloaded it and tweeked the code on the home page and it seems to be doing what I need. Now I need to package it to install on the user machines. Thanks. paul.hartland at fsmail.net wrote: Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Wed Feb 11 12:37:21 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:37:21 -0600 Subject: [AccessD] Re: Next Version of Access 12 Musings on what mighthappen(RANT) In-Reply-To: <200402111800.i1BI0Tm29753@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211123059.02982430@pop3.highstream.net> Personally, I was a "Clipper Head." I had an extensive library of code and I also used a design tool called Zachary (I was also a beta tester of Zachary). Zachary was also written in Clipper using Zachary. I had events like After Update 3 years before Access. I also had a mouse aware GUI that ran in DOS under Windows 3.1/3.11. I had a GUI type form design tool in Zachary. Clipper was bought by Computer Associates and killed because of a lack of commitment to go forward with the development in a true Windows environment. Zachary died with Clipper. Am I sorry? Well, a little. But, I cannot remember now how to open a table in Clipper, so I will stick with the GUI environment and not bang my head against the "I hate Microsoft" wall and just walk around it to the bank. ;-) Robert At 12:00 PM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 09:38:39 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Next Version of Access 12 Musings on what > mighthappen(RANT) >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > >Maybe they were stable after being built (which depended entirely on the >skills of the developer, BTW), but I can remember the nightmare of >designing effective entry screens in dBase III and the limits I was >*always* pushing. Give me graphical any day, thanks! > >Charlotte Foust > >-----Original Message----- >From: MastercafeCTV [mailto:mastercafe at ctv.es] >Sent: Wednesday, February 11, 2004 9:21 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Next Version of Access 12 Musings on what >mighthappen(RANT) > > >Many people like us initiate his projects with Basic, Pascal or similar >languajes. I remmeber with a smile Dbase III and Clipper for develope >incredible database on networks. From stuart at lexacorp.com.pg Wed Feb 11 15:34:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Feb 2004 07:34:28 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <402B2C84.3551.12360C@localhost> On 11 Feb 2004 at 8:04, Charlotte Foust wrote: > A compiled executable only runs when the runtime is in place. That's > just as true of VB executables as it is of anything that might be done > in Access. Since you would still need to install the Access runtime on > a machine, what would be the point of an executable? > Only true if you are using a half baked "P-Code" compiler like VB. Any "true compiler" which compiles to machine code doesn't require any form of runtime. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Wed Feb 11 16:09:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 14:09:13 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: True. But since Access is based on VB, it isn't likely that a compiler would be created separately for Access, don't you think? Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, February 11, 2004 1:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) On 11 Feb 2004 at 8:04, Charlotte Foust wrote: > A compiled executable only runs when the runtime is in place. That's > just as true of VB executables as it is of anything that might be done > in Access. Since you would still need to install the Access runtime > on a machine, what would be the point of an executable? > Only true if you are using a half baked "P-Code" compiler like VB. Any "true compiler" which compiles to machine code doesn't require any form of runtime. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 16:49:24 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:49:24 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227873@main2.marlow.com> >We work in a dynamic industry that is constantly changing. Some of us seem >to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew From DWUTKA at marlow.com Wed Feb 11 16:52:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:52:38 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227874@main2.marlow.com> By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 16:55:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:55:04 -0600 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> What's the OS? Windows 2000 has indexing, which indexes your files. It is VERY possible that indexing is causing this issue. A workaround, would be to create the new db under a different name, then rename it. That should force the new Created time. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Wednesday, February 11, 2004 2:01 AM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 17:08:50 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 17:08:50 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227877@main2.marlow.com> Very interesting article. One of the many advantages of Access, you are giving it to people who have the tools already (unless you are using runtime versions). VB 6.0 only has a 1.4 meg runtime installation too, small enough to add to a downloadable .zip. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 11, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Wed Feb 11 17:14:38 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 12 Feb 2004 09:44:38 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From terry.mace at baesystems.com Wed Feb 11 17:48:53 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 12 Feb 2004 10:18:53 +1030 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Helmut.E.Kotsch at t-online.de Wed Feb 11 17:51:48 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Thu, 12 Feb 2004 00:51:48 +0100 Subject: AW: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227874@main2.marlow.com> Message-ID: Drew, I would appreciate a complete setup from which I could understand how it is done in order to than translate it somehow to my application. Helmut -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 23:53 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 11 20:02:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 11 Feb 2004 21:02:25 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: Mark, It is not necessary to delete the other tables. As long as no bound form is open, and no recordsets in code are open, then the FE will not be "IN" the BE. And yes, this "bound to the shutdown BE concept would certainly work. The shutdown widget I'm designing has a shutdown table with all information in it. The purpose was mostly to have a "template" table with a few example records in it, as well as a test table during design. There's no reason it couldn't just use this table. My widget is an MDA of course with the code and table all in one. If you wanted to control shutdowns in more than one FE you would need to move the table out into a "BE" or use a COPY of this MDA for each FE being controlled. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 11, 2004 9:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] forced logout Hello All, In following this thread...I was awaiting the answer...because I've had the same question...How to inform them its ok to go back in...If they have the FE open...doesn't it 'open' then BE? I don't know if my idea is feasible...but it was inspired by John's statement: "If the FE links to 3 different BEs on different machines, where is "the BE directory"? " Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to this table...When your criteria is met...delete/disable your linked tables in the FE...minus the SHUTDOWN table...Your FE continues to check the SHUTDOWN table...when it is time...recreate/enable your links in the FE. I'm pretty sure this can all be done in VBA. Just a shot in the dark...but almost makes sense to me...please let me know if it does to anyone else. Thanks, Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Tue, 10 Feb 2004 21:33:19 -0500 > >That is surely an idea. OTOH I want to be able to edit a record in a table >dynamically to allow the FE to see that it is time to log out. One problem >with "the back end directory" is that it may not even exist, or it may be >several different directories. If you are using SQL Server, where is "the >back end directory"? If the FE links to 3 different BEs on different >machines, where is "the BE directory"? Of course you can then define a >directory field in a table that the logout code looks in to see this file. > >And of course, what about web pages hitting the be? How do you tell them >to >stay out for a time period? With a table they could essentially use the >same logic the FE uses. this brings up the issue of time zones of course. >The record needs to include the time zone that the database server resides >in since > >And sure, different computers could have different times. If that is an >issue there are programs that can be run on each workstation that sync the >workstations to the server's clock. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders >Sent: Tuesday, February 10, 2004 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] forced logout > > >I was thinking over this just recently. The problem I have with a pure >time >based system is that different computers can have different times. >Normally >this should only be a matter of minutes, but not always. > >I saw someone mentioned something like this before and was thinking that >one >way >would be to create a zero length file in the backend directory. You could >use >different filenames for different purposes: >BESD10.txt - Shutdown in 10 minutes. >BESD5.txt - shutdown in 5 minutes >BESD.txt - immediate shutdown. >BENL.txt - no login allowed > >(.txt isn't needed ... Just an illustration) > >The reason for this is that most backup programs allow the running of >scripts >before and after backup occurs. And by simply copying a file into the BE >directory and deleting it when done you give the server the ability to >centrally >control automated jobs that require users to logout without having to guess >how >long such jobs will take. > >Just an idea... > >Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > John W. Colby > > Sent: Wednesday, 11 February, 2004 9:10 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] forced logout > > > > > > The reason can be anything. I need to ensure all users are out of the > > database every night so that compact can occur. Also I need > > to be able to > > get in and do BE maintenance, modify tables if necessary etc. > > The users are > > leaving the FE (bound forms) open. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > bruce_bruen at mlc.com.au > > Sent: Tuesday, February 10, 2004 5:11 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > If the reason is due to a db corruption discovery or to a maintenance > > shutdown then the database should be reopened by an > > administrator manually. > > If OTOH the logout is forced by some business rule then that rule is > > incomplete unless it defines the reactivation. > > > > B > > > > > > > > "John W. Colby" > > > "AccessD" > > > > com> cc: > > Sent by: > > Subject: [AccessD] > > forced logout > > accessd-bounces at databasea > > dvisors.com > > > > > > 11/02/2004 09:01 > > Please respond to Access > > Developers discussion and > > problem solving > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > force a logout > > of my users from the db. In fact it is all working now, the only > > remaining > > question is "when do I let them back in". > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > logged out between ThisTime and ThatTime", i.e. add a second > > time field to > > the table that is the time to allow back in. > > > > Anyone? > > > > My current system uses: > > > > usysTblShutdown: > > > > SD_ID - autonumber PK > > SD_Name - Shutdown name > > SD_Time - Time to shutdown > > SD_Enabled - THIS shutdown is enabled > > SD_Warnings - The number of warnings to display before > > forcing a > > shutdown > > SD_WarningTime - the number of seconds between warnings > > > > I have a form that my framework opens that initializes the > > framework, and > > shuts it back down if the form tries to close. Thus enabling a clean > > shutdown regardless of anything other than perhaps a power failure. > > > > I then use the timer for this form to call a method in my class which > > checks > > whether to do the shutdown. The class raises an event with > > every warning > > to > > the user in case your app needs warning that a shutdown is > > imminent. The > > class also raises an event when it is finally time to actually do the > > shutdown. > > > > I will publish the whole in a demo database as soon as I > > handle the issue > > of > > when to allow them back in. All opinions welcomed then summarily > > dismissed. > > > > ;-) > > > > 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 _________________________________________________________________ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.curtis at wapl.com.au Wed Feb 11 19:55:23 2004 From: andrew.curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Thu, 12 Feb 2004 09:55:23 +0800 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. From andrew.curtis at wapl.com.au Wed Feb 11 20:44:49 2004 From: andrew.curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Thu, 12 Feb 2004 10:44:49 +0800 Subject: [AccessD] Re: Teaching Access Course Message-ID: Some excellent free tutorials and cheap online courses for access are here: http://tutorials.freeskills.com/index/category/104 Andrew -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Wednesday, 11 February 2004 10:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Teaching Access Course Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. From jmhla at earthlink.net Wed Feb 11 22:46:34 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 11 Feb 2004 20:46:34 -0800 Subject: [AccessD] Access 2003 Developer's Book In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128A52@mail2.wrsystems.com> Message-ID: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Feb 11 22:47:38 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 11 Feb 2004 20:47:38 -0800 Subject: [AccessD] Access as Service (What is a service?)Thanks Drew In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222784F@main2.marlow.com> Message-ID: <000701c3f123$5a0b5f70$6501a8c0@delllaptop> Thanks Dew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, February 09, 2004 6:21 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access as Service (What is a service?) A service is a program that runs in the background of the OS. In Windows 9x machines, services are setup in the registry, and there is little you can do with them, other then put them in the registry, and reboot. The real key of a 'service', is that it runs no matter who is logged on, or even if anyone is logged on at all. Why would that be important? Simple. Take for example a Firewall program. You would want your firewall to be running whenever your computer is on, not just when you are logged in. In Windows NT (NT 4.0, 2k, XP), there is a 'services' panel in the control panel. This lists all of the programs that are setup as services on your machine. Each program can be set to Automatic, Manual, or Disabled. (which determines how the service is started when your OS boots). You can also stop/start the various services. There are other options available, depending on what OS you are using. I hope this answers your question. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Sunday, February 08, 2004 10:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access as Service (What is a service?) What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 12 01:17:56 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 12 Feb 2004 07:17:56 +0000 Subject: [AccessD] forced logout Message-ID: John, But by using a table in a seperate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Just Curious... Mark >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Wed, 11 Feb 2004 21:02:25 -0500 > >Mark, > >It is not necessary to delete the other tables. As long as no bound form >is >open, and no recordsets in code are open, then the FE will not be "IN" the >BE. And yes, this "bound to the shutdown BE concept would certainly work. > >The shutdown widget I'm designing has a shutdown table with all information >in it. The purpose was mostly to have a "template" table with a few >example >records in it, as well as a test table during design. There's no reason it >couldn't just use this table. My widget is an MDA of course with the code >and table all in one. If you wanted to control shutdowns in more than one >FE you would need to move the table out into a "BE" or use a COPY of this >MDA for each FE being controlled. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 11, 2004 9:47 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] forced logout > > >Hello All, > >In following this thread...I was awaiting the answer...because I've had the >same question...How to inform them its ok to go back in...If they have the >FE open...doesn't it 'open' then BE? I don't know if my idea is >feasible...but it was inspired by John's statement: > >"If the FE links to 3 different BEs on different machines, where is "the BE >directory"? " > >Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to >this table...When your criteria is met...delete/disable your linked tables >in the FE...minus the SHUTDOWN table...Your FE continues to check the >SHUTDOWN table...when it is time...recreate/enable your links in the FE. >I'm pretty sure this can all be done in VBA. > >Just a shot in the dark...but almost makes sense to me...please let me know >if it does to anyone else. > >Thanks, > >Mark A. Matte > > > > > >From: "John W. Colby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] forced logout > >Date: Tue, 10 Feb 2004 21:33:19 -0500 > > > >That is surely an idea. OTOH I want to be able to edit a record in a >table > >dynamically to allow the FE to see that it is time to log out. One >problem > >with "the back end directory" is that it may not even exist, or it may be > >several different directories. If you are using SQL Server, where is >"the > >back end directory"? If the FE links to 3 different BEs on different > >machines, where is "the BE directory"? Of course you can then define a > >directory field in a table that the logout code looks in to see this >file. > > > >And of course, what about web pages hitting the be? How do you tell them > >to > >stay out for a time period? With a table they could essentially use the > >same logic the FE uses. this brings up the issue of time zones of >course. > >The record needs to include the time zone that the database server >resides > >in since > > > >And sure, different computers could have different times. If that is an > >issue there are programs that can be run on each workstation that sync >the > >workstations to the server's clock. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders > >Sent: Tuesday, February 10, 2004 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] forced logout > > > > > >I was thinking over this just recently. The problem I have with a pure > >time > >based system is that different computers can have different times. > >Normally > >this should only be a matter of minutes, but not always. > > > >I saw someone mentioned something like this before and was thinking that > >one > >way > >would be to create a zero length file in the backend directory. You >could > >use > >different filenames for different purposes: > >BESD10.txt - Shutdown in 10 minutes. > >BESD5.txt - shutdown in 5 minutes > >BESD.txt - immediate shutdown. > >BENL.txt - no login allowed > > > >(.txt isn't needed ... Just an illustration) > > > >The reason for this is that most backup programs allow the running of > >scripts > >before and after backup occurs. And by simply copying a file into the BE > >directory and deleting it when done you give the server the ability to > >centrally > >control automated jobs that require users to logout without having to >guess > >how > >long such jobs will take. > > > >Just an idea... > > > >Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > John W. Colby > > > Sent: Wednesday, 11 February, 2004 9:10 AM > > > To: Access Developers discussion and problem solving > > > Subject: RE: [AccessD] forced logout > > > > > > > > > The reason can be anything. I need to ensure all users are out of the > > > database every night so that compact can occur. Also I need > > > to be able to > > > get in and do BE maintenance, modify tables if necessary etc. > > > The users are > > > leaving the FE (bound forms) open. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > bruce_bruen at mlc.com.au > > > Sent: Tuesday, February 10, 2004 5:11 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > > > If the reason is due to a db corruption discovery or to a maintenance > > > shutdown then the database should be reopened by an > > > administrator manually. > > > If OTOH the logout is forced by some business rule then that rule is > > > incomplete unless it defines the reactivation. > > > > > > B > > > > > > > > > > > > "John W. Colby" > > > > > "AccessD" > > > > > > com> cc: > > > Sent by: > > > Subject: [AccessD] > > > forced logout > > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 11/02/2004 09:01 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > > force a logout > > > of my users from the db. In fact it is all working now, the only > > > remaining > > > question is "when do I let them back in". > > > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > > logged out between ThisTime and ThatTime", i.e. add a second > > > time field to > > > the table that is the time to allow back in. > > > > > > Anyone? > > > > > > My current system uses: > > > > > > usysTblShutdown: > > > > > > SD_ID - autonumber PK > > > SD_Name - Shutdown name > > > SD_Time - Time to shutdown > > > SD_Enabled - THIS shutdown is enabled > > > SD_Warnings - The number of warnings to display before > > > forcing a > > > shutdown > > > SD_WarningTime - the number of seconds between warnings > > > > > > I have a form that my framework opens that initializes the > > > framework, and > > > shuts it back down if the form tries to close. Thus enabling a clean > > > shutdown regardless of anything other than perhaps a power failure. > > > > > > I then use the timer for this form to call a method in my class which > > > checks > > > whether to do the shutdown. The class raises an event with > > > every warning > > > to > > > the user in case your app needs warning that a shutdown is > > > imminent. The > > > class also raises an event when it is finally time to actually do the > > > shutdown. > > > > > > I will publish the whole in a demo database as soon as I > > > handle the issue > > > of > > > when to allow them back in. All opinions welcomed then summarily > > > dismissed. > > > > > > ;-) > > > > > > 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 > >_________________________________________________________________ >Get some great ideas here for your sweetheart on Valentine's Day - and >beyond. http://special.msn.com/network/celebrateromance.armx > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ From accessd667 at yahoo.com Thu Feb 12 01:36:54 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 23:36:54 -0800 (PST) Subject: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... In-Reply-To: Message-ID: <20040212073654.33655.qmail@web61107.mail.yahoo.com> Hi group, I'm now using the LastModified thingy to get the correct date. I'm not too proud of it but it works. SD "Curtis, Andrew (WAPL)" wrote: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd667 at yahoo.com Thu Feb 12 01:45:55 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 23:45:55 -0800 (PST) Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? In-Reply-To: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Message-ID: <20040212074555.38963.qmail@web61102.mail.yahoo.com> Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From Erwin.Craps at ithelps.be Thu Feb 12 02:03:22 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:03:22 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D293@stekelbes.ithelps.local> SD If that is the only thing your're not proud of, then you must be an angel... :-) Erwn -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, February 12, 2004 8:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... Hi group, I'm now using the LastModified thingy to get the correct date. I'm not too proud of it but it works. SD "Curtis, Andrew (WAPL)" wrote: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 02:06:31 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:06:31 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D294@stekelbes.ithelps.local> Do we have a .NET list over here? I already purchased two version of .Net without really dooing something. Each time I convince myself to do something with .Net I'm seem to loose myself in the interface.. Maybe we could create some ".NET for Access dummies" list? I would be the first member! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 12:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Very interesting article. One of the many advantages of Access, you are giving it to people who have the tools already (unless you are using runtime versions). VB 6.0 only has a 1.4 meg runtime installation too, small enough to add to a downloadable .zip. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 11, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ---- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 02:40:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:40:10 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D295@stekelbes.ithelps.local> Huummm.... In big lines you are right here my big changes list... DOS 1.x > wow, I can copy files and floppies with this thing... But for copying floppies you rather use copy2pc. You could even copy unix and tbos and other os disks, even copy protected ones... DOS 2.x > introduction of expanded memory (LIM/EMS)? Dos 3.11 > WOW, share.exe is introduced, now we can access files simulteanioulsy. Support of expanded (LIM/EMS) AND extended memory (XMS). Yes the 1024 frontier finaly broken WOW. DOS 4.21 > huumm, nothing new? Or was support of bigger disks introduced? Yes something changed with FDISK.EXE. Aha DOS 5 > yipie, I can use UMB memory, I can put my keyb.com be back in my autoexec and type in AZERTY when using an big memory consuming app. DOS 6 > sniff, not much new, aha I can defrag my disk W 3.x, THANK GOD, finaly, one printer driver for ALL applications.... (I use to sell printers in those days) W95 > wow, some kind of multitasking thanks to 32 bit, I'm no longer falling asleep when switching tasks. W98 > O MY GOD, USB interface, finaly get rid of those RS-232 connections for which I never seem to have the right cable. WNT4 > O MY GOD, I havent pressed RESET for 30 days now and this multitasking is so fast!!! W2K > FINALY, USB Support in a real OS (NT) and don't have to reboot each time I make an OS change. WXP > Oh no, I have to review my morning schedule. It boots so fast I can no longer make cofee and drink two cups before I'm able to work. And no, I did not forget about OS2 Lan manager 1.X, 2.0, NT 3.51 Windows Me, Banyan Vines, SCO unix, Thoroughbread OS, Corvus PC-LAN, Netware, PC-MOS, and ohter PC OS's. PS: "My god" can be any god of your choice (for me thats my wife and son). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 11, 2004 11:49 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Feb 12 02:49:53 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 12 Feb 2004 08:49:53 -0000 Subject: [AccessD] Access 2003 Developer's Book References: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Message-ID: <003201c3f145$2e8ebe10$9111758f@aine> Not yet AFAIK Will ask Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 12, 2004 4:46 AM Subject: RE: [AccessD] Access 2003 Developer's Book > Has Ken Getz and his crew put out the 2 new door stops. They write the > developers handbook we always recommended here. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall > Anthony > Sent: Tuesday, February 10, 2004 10:12 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Access 2003 Developer's Book > > Hi group, > Anybody using, know of A2k3 Developer's book? Thanks. > > Randy @ ext. 473 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Thu Feb 12 03:06:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 10:06:10 +0100 Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D296@stekelbes.ithelps.local> Well, I tought I was the only one but since I installed Office 2003 I have a lot of crashes in any version of access while I'm developing in the VBA editor. In several occasions I lost the code, since the last change. I even had to restore a backup in a couple of situations because the MDB file i was working on was compleetly corrupt. There something very weird with the references to, more weird then normaly.... It's my impression, but not sure, that the problems in an MDB (any version) start after you once opened it in A2003 (usealy I open it in A2003 by mistake). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, February 12, 2004 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2003 Developer's Book + VBA Buggy? Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Feb 12 04:06:38 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 12 Feb 2004 10:06:38 -0000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: <402A1265.7128.29ED13@localhost> Message-ID: <01db01c3f14f$e78947f0$b274d0d5@minster33c3r25> My biggest client for one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 11 February 2004 01:31 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what might happen (RANT) > > > On 11 Feb 2004 at 10:24, Haslett, Andrew wrote: > > > >> How many companies would still be running DOS if they > had a choice? > > >> I bet > > a lot, because it is the function of the software that > really matters > > in business, and not so much the underlying technology. > > > > And you honestly believe that the capabilities > (functionality) of DOS > > would support todays applications... You've got to be kidding me. > > > > > > I know plenty of organisations that are still using DOS accounting > packages. > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy http://www.lexacorp.com.pg > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From rsmethurst at UK.EY.COM Thu Feb 12 04:20:17 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 10:20:17 +0000 Subject: [AccessD] Calling objects Message-ID: Hmm...the answer I was fearing Charlotte. So it's really just a matter of trying to get them in a format that is best. I'll play around. Thanks again. Ryan "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 17:36 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Calling objects In that case, there isn't any way to avoid the bloat. There really isn't an efficient way to embed graphics in Access. Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 9:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling objects No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Feb 12 04:20:58 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 10:20:58 +0000 Subject: [AccessD] Calling objects Message-ID: Thanks Gustav, will try that. Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 17:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Calling objects Hi Ryan What Charlotte tries to tell you is that Access doesn't compress embedded pictures neither are they stored as is; prior to storage they are converted to bitmaps. That is why it is not efficient to store, say, jpegs with 24 mio. colours in oversize which you later zoom down to fit. Scale them down outside Access and save as bitmaps, if possible at 256 colours or less. Same goes for reports - pick a wrong picture format and your app will belly up. /gustav > In that case, there isn't any way to avoid the bloat. There really > isn't an efficient way to embed graphics in Access. > Charlotte Foust > No, the database is shipped all over the place, so they really need to > be embedded. > In answer to Charlotte...they're icons for the main menu. Why etc. is > not really what's up for debate at the moment, I'm just looking to make sure > it is done the most resource efficient way. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From roz.clarke at donnslaw.co.uk Thu Feb 12 04:33:45 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 10:33:45 -0000 Subject: [AccessD] Charts Message-ID: <61F915314798D311A2F800A0C9C83188047C6AA9@dibble.observatory.donnslaw.co.uk> Stephen A belated thank you. It eventually transpired that our email filtering software ate your mail. I have decided that these reports are not a high enough priority to justify the effort required to make them work so I've moved on. thanks again anyway Roz -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: 03 February 2004 19:30 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Charts Roz, I have sent you something off line. Stephen > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Tuesday, 3 February 2004 10:48 p.m. > To: AccessD (AccessD at databaseadvisors.com) > Subject: FW: [AccessD] Charts > > > Stephen > > I have finally had a go at this and I can't really see how > you're making it > work - yes I am sleepy and slow today. > > I can get my select query showing a row for each month; the > trouble is, the > row is blank apart from the month. To get the correct > interpretation for the > chart (i.e. for months where there is no data the value for > each category > axis should = 0) I am somehow going to have to create a row > that contains > the category and a value of 0 for each category for each month. > > I think I might go back to working out why getting data into > Excel is so > difficult :/ > > Roz > > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: 30 January 2004 09:18 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > I don't know about sledgehammer but it sounds like it could > do the job... :) > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 19:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > I see what you're up against - I've never been a fan of > Access charts ..... > Excel always excels .... > > I had a bit of a play, I'm afraid my approach has overtones > of sledgehammer, > but tell me what you think: > > I created a new local table called tblMasterMonths, one field > called MM, > type number (byte). Filled the table with 12 records, values > 1, 2, 3, ... > 12. > > To build the query underlying the Chart, I took the select > query I had (the > one that only shows me January) and altered it to include > tblMasterMonths, > with a Left Join from tblmasterMonths to the query that > contains the raw > data. This forces months with no data to still have an entry > in the output. > > Use the output from this into the Chart. > > Stephen Bond > > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 7:04 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Charts > > > > > > Sorry Stephen, I guess I wasn't clear enough > > > > I have the column headings set in my cross-tab query and that works > > just fine. The problem is when I try to base a line graph on that > > data... I just > > can't see a way to do it. > > > > -----Original Message----- > > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > > Sent: 29 January 2004 17:34 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Charts > > > > > > Making an assumption here that you have a Cross-tab Q with > the month > > column header formatted MM ... > > > > * go to Query Properties, and put something like this in the 'Column > > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > > > This will force a column heading for each month. > > > > Stephen Bond > > > > > -----Original Message----- > > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > > Sent: Friday, 30 January 2004 5:54 a.m. > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Charts > > > > > > > > > Hi all. Hope everyone is well. > > > > > > I have a problem with a chart I need to display in > Access. I used to > > > do this by exporting data to Excel but the connection to Excel has > > > been so slow and unstable that I am now trying to bring it within > > > Access. > > > > > > The data I need to display is in a cross-tab query, where I have > > > categories as the row header and months of the year as the column > > > header. I need to show all the months even though we currently > > > have data only for January. > > > > > > If I base the chart on the cross-tab, I cannot see a way > to tell it > > > that each column should be an axis entry. If I base the chart on a > > > select query, it correctly allows me to set 'month' as an axis, > > > but only shows me January. > > > > > > Can anyone help? > > > > > > TIA > > > > > > Roz > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Feb 12 04:40:24 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 10:40:24 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Hiya Does anyone have any code for recursively populating a treeview control? I have a table like this: TaskID ParentID Description 1 0 fleg 2 1 subfleg a 3 1 subfleg b 4 2 sub-subfleg a and so on. I don't want to limit the number of levels. I can see that I need to run through the dataset and populate the treeview with the first level, then do it again n times until all the children are added at the appropriate level, skipping any record already added as a node. I'm in a hurry - I have 2 hours to nail this (working hours not real-time) so although it feels lazy and I would love to crack this on my own, if anyone has done it before I would appreciate any help you can give. TIA Roz From jwcolby at colbyconsulting.com Thu Feb 12 04:49:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 05:49:37 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: >But by using a table in a separate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Yes, it would. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, February 12, 2004 2:18 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] forced logout John, But by using a table in a seperate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Just Curious... Mark >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Wed, 11 Feb 2004 21:02:25 -0500 > >Mark, > >It is not necessary to delete the other tables. As long as no bound form >is >open, and no recordsets in code are open, then the FE will not be "IN" the >BE. And yes, this "bound to the shutdown BE concept would certainly work. > >The shutdown widget I'm designing has a shutdown table with all information >in it. The purpose was mostly to have a "template" table with a few >example >records in it, as well as a test table during design. There's no reason it >couldn't just use this table. My widget is an MDA of course with the code >and table all in one. If you wanted to control shutdowns in more than one >FE you would need to move the table out into a "BE" or use a COPY of this >MDA for each FE being controlled. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 11, 2004 9:47 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] forced logout > > >Hello All, > >In following this thread...I was awaiting the answer...because I've had the >same question...How to inform them its ok to go back in...If they have the >FE open...doesn't it 'open' then BE? I don't know if my idea is >feasible...but it was inspired by John's statement: > >"If the FE links to 3 different BEs on different machines, where is "the BE >directory"? " > >Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to >this table...When your criteria is met...delete/disable your linked tables >in the FE...minus the SHUTDOWN table...Your FE continues to check the >SHUTDOWN table...when it is time...recreate/enable your links in the FE. >I'm pretty sure this can all be done in VBA. > >Just a shot in the dark...but almost makes sense to me...please let me know >if it does to anyone else. > >Thanks, > >Mark A. Matte > > > > > >From: "John W. Colby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] forced logout > >Date: Tue, 10 Feb 2004 21:33:19 -0500 > > > >That is surely an idea. OTOH I want to be able to edit a record in a >table > >dynamically to allow the FE to see that it is time to log out. One >problem > >with "the back end directory" is that it may not even exist, or it may be > >several different directories. If you are using SQL Server, where is >"the > >back end directory"? If the FE links to 3 different BEs on different > >machines, where is "the BE directory"? Of course you can then define a > >directory field in a table that the logout code looks in to see this >file. > > > >And of course, what about web pages hitting the be? How do you tell them > >to > >stay out for a time period? With a table they could essentially use the > >same logic the FE uses. this brings up the issue of time zones of >course. > >The record needs to include the time zone that the database server >resides > >in since > > > >And sure, different computers could have different times. If that is an > >issue there are programs that can be run on each workstation that sync >the > >workstations to the server's clock. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders > >Sent: Tuesday, February 10, 2004 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] forced logout > > > > > >I was thinking over this just recently. The problem I have with a pure > >time > >based system is that different computers can have different times. > >Normally > >this should only be a matter of minutes, but not always. > > > >I saw someone mentioned something like this before and was thinking that > >one > >way > >would be to create a zero length file in the backend directory. You >could > >use > >different filenames for different purposes: > >BESD10.txt - Shutdown in 10 minutes. > >BESD5.txt - shutdown in 5 minutes > >BESD.txt - immediate shutdown. > >BENL.txt - no login allowed > > > >(.txt isn't needed ... Just an illustration) > > > >The reason for this is that most backup programs allow the running of > >scripts > >before and after backup occurs. And by simply copying a file into the BE > >directory and deleting it when done you give the server the ability to > >centrally > >control automated jobs that require users to logout without having to >guess > >how > >long such jobs will take. > > > >Just an idea... > > > >Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > John W. Colby > > > Sent: Wednesday, 11 February, 2004 9:10 AM > > > To: Access Developers discussion and problem solving > > > Subject: RE: [AccessD] forced logout > > > > > > > > > The reason can be anything. I need to ensure all users are out of the > > > database every night so that compact can occur. Also I need > > > to be able to > > > get in and do BE maintenance, modify tables if necessary etc. > > > The users are > > > leaving the FE (bound forms) open. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > bruce_bruen at mlc.com.au > > > Sent: Tuesday, February 10, 2004 5:11 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > > > If the reason is due to a db corruption discovery or to a maintenance > > > shutdown then the database should be reopened by an > > > administrator manually. > > > If OTOH the logout is forced by some business rule then that rule is > > > incomplete unless it defines the reactivation. > > > > > > B > > > > > > > > > > > > "John W. Colby" > > > > > "AccessD" > > > > > > com> cc: > > > Sent by: > > > Subject: [AccessD] > > > forced logout > > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 11/02/2004 09:01 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > > force a logout > > > of my users from the db. In fact it is all working now, the only > > > remaining > > > question is "when do I let them back in". > > > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > > logged out between ThisTime and ThatTime", i.e. add a second > > > time field to > > > the table that is the time to allow back in. > > > > > > Anyone? > > > > > > My current system uses: > > > > > > usysTblShutdown: > > > > > > SD_ID - autonumber PK > > > SD_Name - Shutdown name > > > SD_Time - Time to shutdown > > > SD_Enabled - THIS shutdown is enabled > > > SD_Warnings - The number of warnings to display before > > > forcing a > > > shutdown > > > SD_WarningTime - the number of seconds between warnings > > > > > > I have a form that my framework opens that initializes the > > > framework, and > > > shuts it back down if the form tries to close. Thus enabling a clean > > > shutdown regardless of anything other than perhaps a power failure. > > > > > > I then use the timer for this form to call a method in my class which > > > checks > > > whether to do the shutdown. The class raises an event with > > > every warning > > > to > > > the user in case your app needs warning that a shutdown is > > > imminent. The > > > class also raises an event when it is finally time to actually do the > > > shutdown. > > > > > > I will publish the whole in a demo database as soon as I > > > handle the issue > > > of > > > when to allow them back in. All opinions welcomed then summarily > > > dismissed. > > > > > > ;-) > > > > > > 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 > >_________________________________________________________________ >Get some great ideas here for your sweetheart on Valentine's Day - and >beyond. http://special.msn.com/network/celebrateromance.armx > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 12 04:57:53 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Feb 2004 11:57:53 +0100 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Message-ID: <5712491421.20040212115753@cactus.dk> Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview control? I > have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the treeview > with the first level, then do it again n times until all the children are > added at the appropriate level, skipping any record already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not real-time) > so although it feels lazy and I would love to crack this on my own, if > anyone has done it before I would appreciate any help you can give. From actebs at actebs.com.au Thu Feb 12 05:02:56 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 12 Feb 2004 22:02:56 +1100 Subject: [AccessD] .NET Email Group? Message-ID: <000201c3f157$c83dfbe0$0b08a8c0@carltonone.local> Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad From carbonnb at sympatico.ca Thu Feb 12 05:12:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 12 Feb 2004 06:12:35 -0500 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Message-ID: <402B1953.7839.30375F@localhost> On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html -=-=-=-=Private Sub fFillTreeView() '--------------------------------------------------------------------- ----- '.Purpose : To (re)Fill the treeview with top level nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : Form_Open, tvw_NodeClick '.Calls : fFillChildren '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "fFillTreeView" Dim strSQL As String Dim rst As DAO.Recordset Dim nd As Node 'Clear Treeview nodes tvw.Nodes.Clear 'Build SQL to get Enabled Root Level Items strSQL = "Select * FROM " & mstrTableName & _ " WHERE SwitchboardID=1" & _ " AND ItemNumber<>0" & _ " AND Enabled=True" & _ " ORDER BY ItemNumber" 'Open the Recordset Set rst = CurrentDb().OpenRecordset(strSQL) 'Loop Through and build the nodes Do While Not (rst.EOF) 'Create the Node Set nd = tvw.Nodes.Add(, , , rst!ItemText) 'Build Node Tag nd.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'nd.Tag = fBuildTag(rst) 'Check to see if we have an Open Switchboard Item If rst!Command = sbeOpenSwitchboard Then 'This is an Open SB so we need to fill the children sFillChildren nd End If 'Move to next record rst.MoveNext Loop 'Close and release rst.Close Set rst = Nothing End Sub Private Sub sFillChildren(nd As Node) '--------------------------------------------------------------------- ----- '.Purpose : To Fill any children nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : fFillTreeView, fFillChildren (recursive) '.Calls : '.Inputs : nd - Node - Parent node of these children '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "sFillChildren" Dim aryPairs() As String Dim arySplit() As String Dim strSQL As String Dim lngArgument As Integer Dim lngLoop As Long Dim rst As DAO.Recordset Dim ndNew As Node 'Split tag into pairs aryPairs = Split(nd.Tag, ";") 'Loop through split to get SwitchboardID that this node ' opens, which is the Argument For lngLoop = LBound(aryPairs) To UBound(aryPairs) 'Now split each arySplit = Split(aryPairs(lngLoop), "=") If arySplit(0) = "Argument" Then 'Get the Argument Value, which is the SB to Open lngArgument = Val(arySplit(1)) Exit For End If Next 'Build SQL to select all the items in the Switchboard ' but not the 0 record, which is just info about the ' switchboard strSQL = "SELECT * FROM " & mstrTableName & _ " WHERE SwitchboardID=" & lngArgument & _ " AND ItemNumber<>0" & _ " AND Enabled=True" Set rst = CurrentDb.OpenRecordset(strSQL) 'Loop through reordset to add new tags Do While Not (rst.EOF) 'Add New Node Set ndNew = tvw.Nodes.Add(nd, tvwChild, , rst!ItemText) 'Build Node Tag ndNew.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'Check and see if we just added an Open Switchboard If rst!Command = sbeOpenSwitchboard Then 'We did, so add children sFillChildren ndNew End If 'Move to next record rst.MoveNext Loop End Sub This is probably one of the better commented chunck of code I have written :-)) -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. From roz.clarke at donnslaw.co.uk Thu Feb 12 05:12:45 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 11:12:45 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Thanks Gustav I was determined to get this functionality into a rewrite of our task management system. There is NO time for making enhancements. The boss gave me two hours, or forget it. :/ I'm going to have to cheat, aren't I? :) Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 10:58 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 12 05:29:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 06:29:08 -0500 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Message-ID: >There is NO time for making enhancements. That's ONE way to control project creep! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Roz Clarke Sent: Thursday, February 12, 2004 6:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Recursive data in treeview control Thanks Gustav I was determined to get this functionality into a rewrite of our task management system. There is NO time for making enhancements. The boss gave me two hours, or forget it. :/ I'm going to have to cheat, aren't I? :) Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 10:58 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Feb 12 05:34:15 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 11:34:15 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAC@dibble.observatory.donnslaw.co.uk> thanks Bryan. you're a star. -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: 12 February 2004 11:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html -=-=-=-=Private Sub fFillTreeView() '--------------------------------------------------------------------- ----- '.Purpose : To (re)Fill the treeview with top level nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : Form_Open, tvw_NodeClick '.Calls : fFillChildren '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "fFillTreeView" Dim strSQL As String Dim rst As DAO.Recordset Dim nd As Node 'Clear Treeview nodes tvw.Nodes.Clear 'Build SQL to get Enabled Root Level Items strSQL = "Select * FROM " & mstrTableName & _ " WHERE SwitchboardID=1" & _ " AND ItemNumber<>0" & _ " AND Enabled=True" & _ " ORDER BY ItemNumber" 'Open the Recordset Set rst = CurrentDb().OpenRecordset(strSQL) 'Loop Through and build the nodes Do While Not (rst.EOF) 'Create the Node Set nd = tvw.Nodes.Add(, , , rst!ItemText) 'Build Node Tag nd.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'nd.Tag = fBuildTag(rst) 'Check to see if we have an Open Switchboard Item If rst!Command = sbeOpenSwitchboard Then 'This is an Open SB so we need to fill the children sFillChildren nd End If 'Move to next record rst.MoveNext Loop 'Close and release rst.Close Set rst = Nothing End Sub Private Sub sFillChildren(nd As Node) '--------------------------------------------------------------------- ----- '.Purpose : To Fill any children nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : fFillTreeView, fFillChildren (recursive) '.Calls : '.Inputs : nd - Node - Parent node of these children '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "sFillChildren" Dim aryPairs() As String Dim arySplit() As String Dim strSQL As String Dim lngArgument As Integer Dim lngLoop As Long Dim rst As DAO.Recordset Dim ndNew As Node 'Split tag into pairs aryPairs = Split(nd.Tag, ";") 'Loop through split to get SwitchboardID that this node ' opens, which is the Argument For lngLoop = LBound(aryPairs) To UBound(aryPairs) 'Now split each arySplit = Split(aryPairs(lngLoop), "=") If arySplit(0) = "Argument" Then 'Get the Argument Value, which is the SB to Open lngArgument = Val(arySplit(1)) Exit For End If Next 'Build SQL to select all the items in the Switchboard ' but not the 0 record, which is just info about the ' switchboard strSQL = "SELECT * FROM " & mstrTableName & _ " WHERE SwitchboardID=" & lngArgument & _ " AND ItemNumber<>0" & _ " AND Enabled=True" Set rst = CurrentDb.OpenRecordset(strSQL) 'Loop through reordset to add new tags Do While Not (rst.EOF) 'Add New Node Set ndNew = tvw.Nodes.Add(nd, tvwChild, , rst!ItemText) 'Build Node Tag ndNew.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'Check and see if we just added an Open Switchboard If rst!Command = sbeOpenSwitchboard Then 'We did, so add children sFillChildren ndNew End If 'Move to next record rst.MoveNext Loop End Sub This is probably one of the better commented chunck of code I have written :-)) -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 12 05:40:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Feb 2004 12:40:00 +0100 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Message-ID: <18015018044.20040212124000@cactus.dk> Hi Roz > I'm going to have to cheat, aren't I? :) Or supply non-debugged code - the choice is yours! /gustav From andrew.haslett at ilc.gov.au Thu Feb 12 05:43:05 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 12 Feb 2004 22:13:05 +1030 Subject: [AccessD] .NET Email Group? Message-ID: www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From Erwin.Craps at ithelps.be Thu Feb 12 05:48:21 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 12:48:21 +0100 Subject: [AccessD] .NET Email Group? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D29F@stekelbes.ithelps.local> As I mailed earlier... I would like a ".NET for 'Access Developers' Dummies" list.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 12:03 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 06:05:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 13:05:17 +0100 Subject: [AccessD] .NET Email Group? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2A0@stekelbes.ithelps.local> This is great thx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Haslett, Andrew Sent: Thursday, February 12, 2004 12:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dkalsow at yahoo.com Thu Feb 12 06:11:16 2004 From: dkalsow at yahoo.com (Dale Kalsow) Date: Thu, 12 Feb 2004 04:11:16 -0800 (PST) Subject: [AccessD] digital signatures Message-ID: <20040212121116.54927.qmail@web9803.mail.yahoo.com> Good Morning, Does any know how I can make a digital signature for my access 2002 & 2003 databases so the uses do not always get those naging warnings. I know I can set the macro security to low and that will do it but I was wondering if it wouldn't be easier to digitaly sign them. Thanks in advance. Dale --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Thu Feb 12 07:16:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 07:16:48 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: Message-ID: <5.1.0.14.2.20040212070650.0297eba8@pop3.highstream.net> Ryan, I use a program called WinBatch. I have the compiler version of it which allows me to create a stand alone executable for the installation. I also use a program called WinRAR which is a compression program like WinZip. The advantage is that I can create self-extracting files that can also run a specific program after extracting its contents to a specific directory. So for your installation, I would simply use WinRAR to extract to a specific directory structure. Personally, I use MSA_Prod\ProgName and place all of the production application in the same directory structure. I would not need to use WinBatch in your case unless you were using a third-party active-X control or something like that. By using an installation method like this, the images would be placed in the same directory on every machine and the linking would work properly and allow you to get away from embedding. Another alternative, if everyone is on the same network, would be to put the images in a central location with the backend database and link to them there. I would still keep the local structure for ease of maintenance. Robert At 10:31 AM 2/12/2004 +0000, you wrote: >Robert, > >I am interested in the second part of your mail. At the moment, this >database will not be shipped with an install program (as far as I am aware >it is just going to be emailed to strategic staff and they will then make >it downloadable). Could you elaborate on how you ship Access databases >with an install program? Sounds like a good suggestion. > >RyanS > > >"Robert L. Stewart" > >11/02/2004 18:28 > > To: accessd at databaseadvisors.com > cc: rsmethurst at UK.EY.COM > Subject: Re: Calling objects > > >Ryan, > >You did ask for "best practice." The best practice >is not to do it. Shipping it all over the place is >not an excuse. The install program could place them >in the same directory as the Access FE then linking >them is a no-brainer. The most resource efficient >way is not to do it. Why you feel you have to have >them is a matter for debate if you insist on the >inefficient practice. > >Robert > >At 12:00 PM 2/11/2004 -0600, you wrote: > >Date: Wed, 11 Feb 2004 17:11:14 +0000 > >From: rsmethurst at UK.EY.COM > >Subject: Re: [AccessD] Calling objects > >To: Access Developers discussion and problem solving > > > >Message-ID: > > > >Content-Type: text/plain; charset="us-ascii" > > > >No, the database is shipped all over the place, so they really need to be > >embedded. > > > >In answer to Charlotte...they're icons for the main menu. Why etc. is not > >really what's up for debate at the moment, I'm just looking to make sure > >it is done the most resource efficient way. > > > >Thanks > >RyanS From mwp.reid at qub.ac.uk Thu Feb 12 07:25:47 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 12 Feb 2004 13:25:47 -0000 Subject: [AccessD] digital signatures References: <20040212121116.54927.qmail@web9803.mail.yahoo.com> Message-ID: <001901c3f16b$b9dfc330$9111758f@aine> I think you need to purchase a certificate. I remember this was a real moaning point during the beta test of 2003. Lot of us complained to MS about this. the advice then was to simply set security to low and forget about the certificate. I remember at the time someone said there was a cheap certificate available to developers. Martin ----- Original Message ----- From: "Dale Kalsow" To: Sent: Thursday, February 12, 2004 12:11 PM Subject: [AccessD] digital signatures > Good Morning, > > Does any know how I can make a digital signature for my access 2002 & 2003 databases so the uses do not always get those naging warnings. I know I can set the macro security to low and that will do it but I was wondering if it wouldn't be easier to digitaly sign them. > > Thanks in advance. > > Dale > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Thu Feb 12 07:32:50 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 13:32:50 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAE@dibble.observatory.donnslaw.co.uk> Got it - not fully tested & debugged & not doing *exactly* what I need, but damn close for 2.5 hours work! Thanks to you guys and to MSKB article 167309 Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 11:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz > I'm going to have to cheat, aren't I? :) Or supply non-debugged code - the choice is yours! /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 12 07:33:56 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 13:33:56 +0000 Subject: [AccessD] Re: Calling objects Message-ID: Robert, (FYI The apps users are not all on the same Network.) I assume that method would work fine with mde's? Ryan "Robert L. Stewart" Sent by: accessd-bounces at databaseadvisors.com 12/02/2004 13:16 Please respond to Access Developers discussion and problem solving To: rsmethurst at uk.ey.com cc: accessd at databaseadvisors.com Subject: [AccessD] Re: Calling objects Ryan, I use a program called WinBatch. I have the compiler version of it which allows me to create a stand alone executable for the installation. I also use a program called WinRAR which is a compression program like WinZip. The advantage is that I can create self-extracting files that can also run a specific program after extracting its contents to a specific directory. So for your installation, I would simply use WinRAR to extract to a specific directory structure. Personally, I use MSA_Prod\ProgName and place all of the production application in the same directory structure. I would not need to use WinBatch in your case unless you were using a third-party active-X control or something like that. By using an installation method like this, the images would be placed in the same directory on every machine and the linking would work properly and allow you to get away from embedding. Another alternative, if everyone is on the same network, would be to put the images in a central location with the backend database and link to them there. I would still keep the local structure for ease of maintenance. Robert At 10:31 AM 2/12/2004 +0000, you wrote: >Robert, > >I am interested in the second part of your mail. At the moment, this >database will not be shipped with an install program (as far as I am aware >it is just going to be emailed to strategic staff and they will then make >it downloadable). Could you elaborate on how you ship Access databases >with an install program? Sounds like a good suggestion. > >RyanS > > >"Robert L. Stewart" > >11/02/2004 18:28 > > To: accessd at databaseadvisors.com > cc: rsmethurst at UK.EY.COM > Subject: Re: Calling objects > > >Ryan, > >You did ask for "best practice." The best practice >is not to do it. Shipping it all over the place is >not an excuse. The install program could place them >in the same directory as the Access FE then linking >them is a no-brainer. The most resource efficient >way is not to do it. Why you feel you have to have >them is a matter for debate if you insist on the >inefficient practice. > >Robert > >At 12:00 PM 2/11/2004 -0600, you wrote: > >Date: Wed, 11 Feb 2004 17:11:14 +0000 > >From: rsmethurst at UK.EY.COM > >Subject: Re: [AccessD] Calling objects > >To: Access Developers discussion and problem solving > > > >Message-ID: > > > >Content-Type: text/plain; charset="us-ascii" > > > >No, the database is shipped all over the place, so they really need to be > >embedded. > > > >In answer to Charlotte...they're icons for the main menu. Why etc. is not > >really what's up for debate at the moment, I'm just looking to make sure > >it is done the most resource efficient way. > > > >Thanks > >RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From bheid at appdevgrp.com Thu Feb 12 07:43:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 12 Feb 2004 08:43:38 -0500 Subject: [AccessD] .NET Email Group? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30786175@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB245@ADGSERVER> Several .Net lists here: http://discuss.develop.com/ Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 6:03 AM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 12 08:18:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 12 Feb 2004 09:18:04 -0500 Subject: [AccessD] Recursive data in treeview control Message-ID: Hope it works for you. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> roz.clarke at donnslaw.co.uk 12-Feb-04 6:34:15 AM >>> thanks Bryan. you're a star. -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html From cfoust at infostatsystems.com Thu Feb 12 10:21:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 08:21:51 -0800 Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? Message-ID: MS is trying to push the .Net framework and managed code. Since VBA isn't part of managed code, they tend not to talk about it. However, at least one MS dude has said that if you're writing application specific code, then VBA is what you *have* to use. I suspect any "bugginess" is the result of yet another modification of the vbe6.dll. Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, February 11, 2004 11:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2003 Developer's Book + VBA Buggy? Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 12 10:23:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 08:23:21 -0800 Subject: [AccessD] Access 2003 Developer's Book Message-ID: There may not be one for 2003, since Getz at least is focussing on .Net and there isn't much change between 2002 and 2003 for Access. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, February 11, 2004 8:47 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 Developer's Book Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Feb 12 10:38:47 2004 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 13 Feb 2004 03:38:47 +1100 Subject: [AccessD] .NET Email Group? In-Reply-To: Message-ID: <000001c3f186$afef8ed0$0b08a8c0@carltonone.local> Andrew, That's great ....Thanx! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Haslett, Andrew Sent: Thursday, 12 February 2004 10:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Feb 12 10:42:25 2004 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 13 Feb 2004 03:42:25 +1100 Subject: [AccessD] .NET Email Group? In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB245@ADGSERVER> Message-ID: <000101c3f187$34f0c860$0b08a8c0@carltonone.local> Too cool...Thanx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Friday, 13 February 2004 12:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? Several .Net lists here: http://discuss.develop.com/ Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 6:03 AM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:19:08 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:19:08 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227878@main2.marlow.com> I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A From cfoust at infostatsystems.com Thu Feb 12 11:34:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 09:34:44 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: Personally, Drew, I've had problems with the printer object in 2002, so I still use the API calls, which are totally reliable in any of the versions. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 12, 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:45:22 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:45:22 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227879@main2.marlow.com> I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:46:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:46:25 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787A@main2.marlow.com> Just posted to Terry. Read that post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 5:52 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Drew, I would appreciate a complete setup from which I could understand how it is done in order to than translate it somehow to my application. Helmut From rl_stewart at highstream.net Thu Feb 12 11:53:12 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 11:53:12 -0600 Subject: [AccessD] Re: .NET Email Group? In-Reply-To: <200402121745.i1CHjQm25418@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212115244.029ad550@pop3.highstream.net> Go to aspadvice.com At 11:45 AM 2/12/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 22:02:56 +1100 >From: "ACTEBS" >Subject: [AccessD] .NET Email Group? >To: "access group" >Message-ID: <000201c3f157$c83dfbe0$0b08a8c0 at carltonone.local> >Content-Type: text/plain; charset="us-ascii" > >Guys, > >Does anyone know of an email group similar to the one we have here in >AccessD but for .NET? There are thousands upon thousands of forums, but >for the life of me I can't find an email type group... > >Any guidance will be appreciated. If there isn't one, maybe we should >start one perhaps? > >Regards >Vlad From DWUTKA at marlow.com Thu Feb 12 11:53:39 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:53:39 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787C@main2.marlow.com> LOL!!!!!! I completely forget that share.exe came out with 3.11. And copy2pc sure does bring back memories! Just out of curiousity, do you have a gl-viewer? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, February 12, 2004 2:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Huummm.... In big lines you are right here my big changes list... DOS 1.x > wow, I can copy files and floppies with this thing... But for copying floppies you rather use copy2pc. You could even copy unix and tbos and other os disks, even copy protected ones... DOS 2.x > introduction of expanded memory (LIM/EMS)? Dos 3.11 > WOW, share.exe is introduced, now we can access files simulteanioulsy. Support of expanded (LIM/EMS) AND extended memory (XMS). Yes the 1024 frontier finaly broken WOW. DOS 4.21 > huumm, nothing new? Or was support of bigger disks introduced? Yes something changed with FDISK.EXE. Aha DOS 5 > yipie, I can use UMB memory, I can put my keyb.com be back in my autoexec and type in AZERTY when using an big memory consuming app. DOS 6 > sniff, not much new, aha I can defrag my disk W 3.x, THANK GOD, finaly, one printer driver for ALL applications.... (I use to sell printers in those days) W95 > wow, some kind of multitasking thanks to 32 bit, I'm no longer falling asleep when switching tasks. W98 > O MY GOD, USB interface, finaly get rid of those RS-232 connections for which I never seem to have the right cable. WNT4 > O MY GOD, I havent pressed RESET for 30 days now and this multitasking is so fast!!! W2K > FINALY, USB Support in a real OS (NT) and don't have to reboot each time I make an OS change. WXP > Oh no, I have to review my morning schedule. It boots so fast I can no longer make cofee and drink two cups before I'm able to work. And no, I did not forget about OS2 Lan manager 1.X, 2.0, NT 3.51 Windows Me, Banyan Vines, SCO unix, Thoroughbread OS, Corvus PC-LAN, Netware, PC-MOS, and ohter PC OS's. PS: "My god" can be any god of your choice (for me thats my wife and son). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 11, 2004 11:49 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 12 11:59:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 11:59:20 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: <200402121745.i1CHjQm25418@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212115803.02a8f810@pop3.highstream.net> Yes it will work with all the different Access project types. And, I figured they were not, but wanted to show that as an option to others on the list that might want to know. At 11:45 AM 2/12/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 13:33:56 +0000 >From: rsmethurst at UK.EY.COM >Subject: Re: [AccessD] Re: Calling objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >(FYI The apps users are not all on the same Network.) > >I assume that method would work fine with mde's? > >Ryan From ssharkins at bellsouth.net Thu Feb 12 12:12:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 12 Feb 2004 13:12:25 -0500 Subject: [AccessD] Access 2003 Developer's Book In-Reply-To: Message-ID: <20040212181235.VBDE1703.imf19aec.mail.bellsouth.net@SUSANONE> I asked about it yesterday -- not going to be one. Susan H. There may not be one for 2003, since Getz at least is focussing on .Net and there isn't much change between 2002 and 2003 for Access. Charlotte Foust From John.Clark at niagaracounty.com Thu Feb 12 12:12:57 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 12 Feb 2004 13:12:57 -0500 Subject: [AccessD] forced logout Message-ID: Our Novell network login, for the county I work for, considers itself "breeched", if a user enters an invalid password five times within a 30 minute time span. It is then turned off, until they call me and I unlock it--I go into their account and uncheck the "Account Locked" option, in the "Intruder Lockout" section. I probably get an average of two or three calls each day to do this--and this number spikes during certain periods. Most of it--I would say 99 of 100 calls--is simply forgotten passwords of similar. And, a great deal of this is police officers, which I find pretty amusing because they are suppose to have keen observational skills, and you would think this would carry over to remembering their passwords--what good is it to notice things, if you cannot remember what you've noticed? John "just chimin' in" Clark >>> accessd at shaw.ca 2/10/2004 11:56:22 PM >>> Hi John: The typical government login gives the users three tries and then will not allow the same username to be used for about twenty minutes...it use to be an hour but there were too many complains from legitimate users. (Some users have been known to attempt login before their first cup of coffee!) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 2:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 slee at asu.edu Thu Feb 12 12:20:47 2004 From: slee at asu.edu (S Lee) Date: Thu, 12 Feb 2004 11:20:47 -0700 Subject: [AccessD] Database Operation from Remote Sites Message-ID: I do a lot of this. Here is a sample that will load a long listing fairly quickly: <%response.buffer=true%> XXXXXX <% Dim PlayerPoints Dim oConn Dim oRS Dim strQry strQry= "SELECT TOP 100 player, Sum(points) AS SumOfpoints FROM Points WHERE (TYear='2004') GROUP BY player ORDER BY Sum(points) DESC, player ASC" Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "DSN=XXXXXXXXXXX_Points" Set oRS = Server.CreateObject("ADODB.Recordset") oRS.Open strQry, oConn PlayerPoints = oRS.GetRows() CALL CloseALL NumColsPP = UBound(PlayerPoints,1) NumRecsPP = UBound(PlayerPoints,2) %>

XXXXXXXXX

 
<% For i = 0 TO NumRecsPP Response.Write "" Next %>

Rank

Player Name

Points

" Response.Write (i + 1) Response.Write "

" Response.Write PlayerPoints(0,i) Response.Write "

" Response.Write PlayerPoints(1,i) Response.Write "

 

 

 

  <% SUB CloseAll oRS.Close Set oRS = Nothing oConn.Close Set oConn = Nothing END SUB %> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 13:48:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 13:48:16 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787D@main2.marlow.com> Actually never used them, just knew they were there. Have only ever used AXP once. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, February 12, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Personally, Drew, I've had problems with the printer object in 2002, so I still use the API calls, which are totally reliable in any of the versions. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 12, 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 13:52:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 13:52:06 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787E@main2.marlow.com> I was just pointing out that you don't need to use response.write for your loops. You can just put in plain HTML (that would show up in a normal HTML editor), and just 'wrap' it with an ASP loop. (Of course, you'd insert your dynamic content with <%=whatever%> Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S Lee Sent: Thursday, February 12, 2004 12:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites I do a lot of this. Here is a sample that will load a long listing fairly quickly: From prodevmg at yahoo.com Thu Feb 12 14:40:09 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 12 Feb 2004 12:40:09 -0800 (PST) Subject: [AccessD] RE:Office XP Outlook Security In-Reply-To: <000001c3eff7$35936ac0$de1811d8@DanWaters> Message-ID: <20040212204009.9246.qmail@web20422.mail.yahoo.com> vbSendMail did the trick for me. It's free, only has about 10 lines of code to deal with and toally ignores Outlook. Thanks Dan. Dan Waters wrote: Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From stuart at lexacorp.com.pg Thu Feb 12 14:52:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 06:52:42 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222787C@main2.marlow.com> Message-ID: <402C743A.14274.3B5D92@localhost> On 12 Feb 2004 at 11:53, DWUTKA at marlow.com wrote: > LOL!!!!!! > > I completely forget that share.exe came out with 3.11. And copy2pc sure > does bring back memories! Just out of curiousity, do you have a gl-viewer? > > You dirty old man, you! Want a copy of GRASPRT ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DWUTKA at marlow.com Thu Feb 12 15:12:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 15:12:31 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787F@main2.marlow.com> I think I have CSHOW laying around somewhere...... (Dirty old man...hey, I was a teenager back then......) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 2:53 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) On 12 Feb 2004 at 11:53, DWUTKA at marlow.com wrote: > LOL!!!!!! > > I completely forget that share.exe came out with 3.11. And copy2pc sure > does bring back memories! Just out of curiousity, do you have a gl-viewer? > > You dirty old man, you! Want a copy of GRASPRT ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Thu Feb 12 15:33:17 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 08:33:17 +1100 Subject: .Net freeby (was RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT)) Message-ID: Drew, Not exactly stable yet but the price is good! Its where I'm learning C#. http://www.icsharpcode.net/OpenSource/SD/Default.aspx Bruce >As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just >frankly don't have the money to purchase it, and VB does what I have needed >it to do, to date. >Drew From rl_stewart at highstream.net Thu Feb 12 16:00:27 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 16:00:27 -0600 Subject: [AccessD] Re: Database Operation from Remote Sites In-Reply-To: <200402120246.i1C2k8m04582@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212155932.0364e8c0@pop3.highstream.net> Microsoft has a number of free downloads that are actually very good at showing you a complete setup and working application. At 08:46 PM 2/11/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 00:51:48 +0100 >From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) >Subject: AW: [AccessD] Database Operation from Remote Sites >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Drew, >I would appreciate a complete setup from which I could understand how it is >done in order to than translate it somehow to my application. > >Helmut From dwaters at usinternet.com Thu Feb 12 16:42:35 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 12 Feb 2004 16:42:35 -0600 Subject: [AccessD] RE:Office XP Outlook Security In-Reply-To: <24430850.1076618778750.JavaMail.root@localhost.localdomain> Message-ID: <000001c3f1b9$855d16a0$de1811d8@DanWaters> Lonnie, You are very welcome! It's easy enough that I'll probably recommend to clients that this be their first choice when it comes to methods to avoid the security dialog. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, February 12, 2004 2:40 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] RE:Office XP Outlook Security vbSendMail did the trick for me. It's free, only has about 10 lines of code to deal with and toally ignores Outlook. Thanks Dan. Dan Waters wrote: Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Feb 12 17:03:06 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 12 Feb 2004 15:03:06 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <5.1.0.14.2.20040212155932.0364e8c0@pop3.highstream.net> Message-ID: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug From DWUTKA at marlow.com Thu Feb 12 17:21:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 17:21:14 -0600 Subject: [AccessD] Access 97 Report problems Message-ID: <2F8793082E00D4119A1700B0D0216BF802227880@main2.marlow.com> Any loops where you are depending on an Autonumber being positive? You may have had an autonumber roll over (pretty unfeasible, but not impossible.). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 5:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Feb 12 17:35:14 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 12 Feb 2004 18:35:14 -0500 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Message-ID: It may not be you but an OS level problem. Windows itself can run out of stack space. Things like a bad device driver can also cause stack overflows. What OS is the client? If Win9x, have a look at this: http://support.microsoft.com/default.aspx?scid=kb;en-us;149083 Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 6:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 12 17:58:21 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Feb 2004 15:58:21 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: Message-ID: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> Hi Jim, Thank you for the info. The desktops running the front end are using Win2K. The just recently moved their server to Windows2k Server as I understand. The interesting thing here is that we get the out of stack space message when trying to print the report but Access completely shuts down when trying to preview the report. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 12, 2004 3:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 97 Report problems It may not be you but an OS level problem. Windows itself can run out of stack space. Things like a bad device driver can also cause stack overflows. What OS is the client? If Win9x, have a look at this: http://support.microsoft.com/default.aspx?scid=kb;en-us;149083 Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 6:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 12 17:59:19 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Feb 2004 15:59:19 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227880@main2.marlow.com> Message-ID: <000f01c3f1c4$3a5a8240$8500a8c0@CX615377a> Hi Drew, I'll have to take a look but it seems unlikely. The db is relatively small, approx 15 Meg. of data. Not anywhere near that many records. I'll look though. For lack of other things to try I am going to rebuild the report from scratch on my development machine, and decompile the thing again and then see if it works on their system. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 3:21 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 97 Report problems Any loops where you are depending on an Autonumber being positive? You may have had an autonumber roll over (pretty unfeasible, but not impossible.). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 5:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 12 19:22:35 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 12 Feb 2004 17:22:35 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227879@main2.marlow.com> Message-ID: Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 12 20:09:20 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:09:20 -0500 Subject: [AccessD] time window Message-ID: I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? John W. Colby www.ColbyConsulting.com From bruce_bruen at mlc.com.au Thu Feb 12 20:21:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 13:21:25 +1100 Subject: [AccessD] time window Message-ID: I have ususally converted them to dates and let the system worry about the logic. i.e. cd1=int(now())+time1 'use today if time2<= time 1 then cd2=int(now())+1+time2 'use tomorrow else cd2=int(now())+time2 endif cd3=Int(now())+time3 if cd3>=cd1 and cd3 com> cc: Sent by: Subject: [AccessD] time window accessd-bounces at databasea dvisors.com 13/02/2004 13:09 Please respond to Access Developers discussion and problem solving I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? 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 stuart at lexacorp.com.pg Thu Feb 12 20:20:30 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 12:20:30 +1000 Subject: [AccessD] time window In-Reply-To: Message-ID: <402CC10E.28079.93EBCC@localhost> On 12 Feb 2004 at 21:09, John W. Colby wrote: > I need to be able to express a pure time window (not date related) from / to > and test time() as being between (inside) this time window. This process > doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. > However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not > <= 1:00 am. > > It looks like a "if time 2 > time 1 then use simple test for time()" "If > Time 2 < time 1 then invert the second time comparison" > > Has anyone done this already? > Since times are actually stored as date/times with an integer part of 0, you can just use: If time2 < time1 then time2 = time2 + 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bruce_bruen at mlc.com.au Thu Feb 12 20:22:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 13:22:25 +1100 Subject: [AccessD] Re: Database Operation from Remote Sites Message-ID: I dont know whether I'm being a bit basic here, but there are a few considerations regarding ASP deployment that are relevant to persuing it as an answer to the original business problem. 1) ASP is a server side technology. The ASP engine must be present and available on the corporate web server in order for the technology to work. While this is fine if you are using an in-house web presence to deploy on, if you are relying on external providers you need to consider the availability of ASP support on that environment. 2) ASP is proprietry technology, it requires the use of a Microsoft web server, IIS (or PWS!) to supply the generated pages. There are some alternatives available, notably Sun JaveServer ASP or Apache:ASP (supporting PERL script only). I understand that the Apache solution is still very much a work in process. So before deciding on ASP at the application level one must enquire as to constraints imposed by the corporate web server technology currently in place or planned. 3) There are two flavours of ASP, ASP traditional and ASP.Net - these are very different execution environments. Consider what constraints exist on which is possible in your environment. Secondly, consider the future of the technology - enough has been written here recently on just that topic. Where is the deployment environment headed within your economic window. 4) Security for web deployed applications is a huge issue - and not an issue to be dismissed at the application software level. Deployement of your application will require you to understand the security architecture required by your corporate policies and an understanding of the implications of that architecture on your ASP pages. 5) Deployment will also require you to fully understand the performance expectations and requirements at the business user level and whether a web deployed application will "fail" in the field if it cannot meet those expectations. Not only pure performance, but other "human interface" aspects can degrade the user percieved value of the system if you are not very careful. Understand the target user, their needs and constraints. The goal of collecting the data for corporate information analysis will only be met if the information in is good! (This is ovbviously not related directly to using ASP as a solution but a consideration nonetheless). Bruce >Drew, >I would appreciate a complete setup from which I could understand how it is >done in order to than translate it somehow to my application. > >Helmut From jwcolby at colbyconsulting.com Thu Feb 12 20:31:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:31:29 -0500 Subject: [AccessD] time window In-Reply-To: <402CC10E.28079.93EBCC@localhost> Message-ID: This appears to work: ' 'Checks whether a time is "between" two other times ' Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, dteTimeToCompare As Date) As Boolean Select Case dteTimeFrom Case Is < dteTimeTo 'Normal window, i.e. 6:00 pm to 11:00 pm If (dteTimeToCompare >= dteTimeFrom) _ And (dteTimeToCompare <= dteTimeTo) Then TimeIsBetween = True End If Case Is > dteTimeTo 'midnight crossing window, i.e. 6:00 pm to 1:00 am If (dteTimeToCompare >= dteTimeFrom) _ Or (dteTimeToCompare <= dteTimeTo) Then TimeIsBetween = True End If Case Else 'times are the same so now() must equal both If (dteTimeToCompare = dteTimeFrom) _ And (dteTimeToCompare = dteTimeTo) Then TimeIsBetween = True End If End Select End Function John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 9:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] time window On 12 Feb 2004 at 21:09, John W. Colby wrote: > I need to be able to express a pure time window (not date related) from / to > and test time() as being between (inside) this time window. This process > doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. > However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not > <= 1:00 am. > > It looks like a "if time 2 > time 1 then use simple test for time()" "If > Time 2 < time 1 then invert the second time comparison" > > Has anyone done this already? > Since times are actually stored as date/times with an integer part of 0, you can just use: If time2 < time1 then time2 = time2 + 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 12 20:32:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:32:29 -0500 Subject: [AccessD] Expressing seconds in hours / minutes / seconds Message-ID: Does anyone have a "second count to time in words" function? NNN seconds = A minutes and b seconds. John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Thu Feb 12 21:01:56 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:01:56 +1000 Subject: [AccessD] time window In-Reply-To: References: <402CC10E.28079.93EBCC@localhost> Message-ID: <402CCAC4.12433.B9DA6E@localhost> On 12 Feb 2004 at 21:31, John W. Colby wrote: > This appears to work: > This seems easier to follow to me. Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, _ dteTimeToCompare As Date) As Boolean If dteTimeTo < dteTimeFrom Then dteTimeTo = dteTimeTo + 1 TimeIsBetween = (dteTimeToCompare >= dteTimeFrom) _ And (dteTimeToCompare <= dteTimeTo) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Feb 12 21:05:30 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:05:30 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: Message-ID: <402CCB9A.21096.BD1C6A@localhost> On 12 Feb 2004 at 21:32, John W. Colby wrote: > Does anyone have a "second count to time in words" function? NNN seconds = > A minutes and b seconds. INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Thu Feb 12 21:47:42 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 22:47:42 -0500 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: <402CCB9A.21096.BD1C6A@localhost> Message-ID: Well... I was really hoping for a "check writer" kind of interpretation, Three minutes and fifty one seconds. However I can always revisit this later if necessary so I'll go with yours. Thanks, John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 10:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Expressing seconds in hours / minutes / seconds On 12 Feb 2004 at 21:32, John W. Colby wrote: > Does anyone have a "second count to time in words" function? NNN seconds = > A minutes and b seconds. INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 12 21:57:48 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:57:48 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: References: <402CCB9A.21096.BD1C6A@localhost> Message-ID: <402CD7DC.9803.176216@localhost> On 12 Feb 2004 at 22:47, John W. Colby wrote: > Well... I was really hoping for a "check writer" kind of interpretation, > Three minutes and fifty one seconds. > > However I can always revisit this later if necessary so I'll go with yours. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Thursday, February 12, 2004 10:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Expressing seconds in hours / minutes / seconds > > > On 12 Feb 2004 at 21:32, John W. Colby wrote: > > > Does anyone have a "second count to time in words" function? NNN seconds > = > > A minutes and b seconds. > > INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com I've actually got a "cheque writer" function stored away but it works in 100s. Give me a while to dig it out and do a quick mod. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From lists at jbsolutions.com.au Thu Feb 12 22:06:32 2004 From: lists at jbsolutions.com.au (Joshua B) Date: Fri, 13 Feb 2004 14:06:32 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds Message-ID: <200402130405.i1D45Im10451@databaseadvisors.com> Hi John, I have no idea where I got this from, but it's been sitting in my code snippets for ages and works like a dream converting numbers to strings... Function ConvertNumberToEnglishString(ByVal N As Long) As String Const Thousand = 1000& Const Million = Thousand * Thousand Const Billion = Thousand * Million 'Const Trillion = Thousand * Billion Dim Buf As String: Buf = "" If (N = 0) Then ConvertNumberToEnglishString = "zero": Exit Function If (N < 0) Then Buf = "negative ": N = -N If (N >= Billion) Then Buf = Buf & EnglishDigitGroup(N \ Billion) & " billion" N = N Mod Billion If (N) Then Buf = Buf & " " End If If (N >= Million) Then Buf = Buf & EnglishDigitGroup(N \ Million) & " million" N = N Mod Million If (N) Then Buf = Buf & " " End If If (N >= Thousand) Then Buf = Buf & EnglishDigitGroup(N \ Thousand) & " thousand" N = N Mod Thousand If (N) Then Buf = Buf & " " End If If (N > 0) Then Buf = Buf & EnglishDigitGroup(N) End If ConvertNumberToEnglishString = Buf End Function Private Function EnglishDigitGroup(ByVal N As Integer) As String Const Hundred = " hundred" Const One = "one" Const Two = "two" Const Three = "three" Const Four = "four" Const Five = "five" Const Six = "six" Const Seven = "seven" Const Eight = "eight" Const Nine = "nine" Dim Buf As String: Buf = "" Dim Flag As Integer: Flag = False 'Do hundreds Select Case (N \ 100) Case 0: Buf = "": Flag = False Case 1: Buf = One & Hundred: Flag = True Case 2: Buf = Two & Hundred: Flag = True Case 3: Buf = Three & Hundred: Flag = True Case 4: Buf = Four & Hundred: Flag = True Case 5: Buf = Five & Hundred: Flag = True Case 6: Buf = Six & Hundred: Flag = True Case 7: Buf = Seven & Hundred: Flag = True Case 8: Buf = Eight & Hundred: Flag = True Case 9: Buf = Nine & Hundred: Flag = True End Select If (Flag) Then N = N Mod 100 If (N) Then If (Flag) Then Buf = Buf & " " Else EnglishDigitGroup = Buf Exit Function End If 'Do tens (except teens) Select Case (N \ 10) Case 0, 1: Flag = False Case 2: Buf = Buf & "twenty": Flag = True Case 3: Buf = Buf & "thirty": Flag = True Case 4: Buf = Buf & "forty": Flag = True Case 5: Buf = Buf & "fifty": Flag = True Case 6: Buf = Buf & "sixty": Flag = True Case 7: Buf = Buf & "seventy": Flag = True Case 8: Buf = Buf & "eighty": Flag = True Case 9: Buf = Buf & "ninety": Flag = True End Select If (Flag) Then N = N Mod 10 If (N) Then If (Flag) Then Buf = Buf & "-" Else EnglishDigitGroup = Buf Exit Function End If 'Do ones and teens Select Case (N) Case 0: ' do nothing Case 1: Buf = Buf & One Case 2: Buf = Buf & Two Case 3: Buf = Buf & Three Case 4: Buf = Buf & Four Case 5: Buf = Buf & Five Case 6: Buf = Buf & Six Case 7: Buf = Buf & Seven Case 8: Buf = Buf & Eight Case 9: Buf = Buf & Nine Case 10: Buf = Buf & "ten" Case 11: Buf = Buf & "eleven" Case 12: Buf = Buf & "twelve" Case 13: Buf = Buf & "thirteen" Case 14: Buf = Buf & "fourteen" Case 15: Buf = Buf & "fifteen" Case 16: Buf = Buf & "sixteen" Case 17: Buf = Buf & "seventeen" Case 18: Buf = Buf & "eighteen" Case 19: Buf = Buf & "nineteen" End Select EnglishDigitGroup = Buf End Function ======= At 2004-02-12, 22:47:00 you wrote: ======= >Well... I was really hoping for a "check writer" kind of interpretation, >Three minutes and fifty one seconds. > >However I can always revisit this later if necessary so I'll go with yours. > >Thanks, > >John W. Colby >www.ColbyConsulting.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-13 From stuart at lexacorp.com.pg Thu Feb 12 22:43:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 14:43:11 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: <402CD7DC.9803.176216@localhost> References: Message-ID: <402CE27F.31187.18BCCA@localhost> On 13 Feb 2004 at 13:57, Stuart McLachlan wrote: > On 12 Feb 2004 at 22:47, John W. Colby wrote: > > > Well... I was really hoping for a "check writer" kind of interpretation, > > Three minutes and fifty one seconds. > > OK, I dug up my cheque writer code and did a quick and dirty modification of it. Note that it won't like it if you try to feed it more than about 190 years worth of seconds (99,999,999 minutes worth actually ) Here it is (watch for wordwraps): Function teenword(amount As Long) As String Dim unitname(9) As String unitname(2) = "Twenty" unitname(3) = "Thirty" unitname(4) = "Forty" unitname(5) = "Fifty" unitname(6) = "Sixty" unitname(7) = "Seventy" unitname(8) = "Eighty" unitname(9) = "Ninety" teenword = unitname(amount) End Function Function unitword(amount As Long) As String Dim unitname(19) As String unitname(1) = "One" unitname(2) = "Two" unitname(3) = "Three" unitname(4) = "Four" unitname(5) = "Five" unitname(6) = "Six" unitname(7) = "Seven" unitname(8) = "Eight" unitname(9) = "Nine" unitname(10) = "Ten" unitname(11) = "Eleven" unitname(12) = "Twelve" unitname(13) = "Thirteen" unitname(14) = "Fourteen" unitname(15) = "Fifteen" unitname(16) = "Sixteen" unitname(17) = "Seventeen" unitname(18) = "Eighteen" unitname(19) = "Nineteen" unitword = unitname(amount) End Function Function TimeWords(Seconds As Long) As String f Seconds = 0 Then TimeWords = "Nothing": Exit Function Dim Minutes As Long Dim millions As Long Dim hundredthousands As Long Dim thousands As Long Dim hundreds As Long Dim tens As Long Dim unit As Long Dim strTime As String Minutes = Seconds \ 60 Seconds = Seconds - (Minutes * 60) thousands = Int(Minutes / 1000) millions = Int(Minutes / 1000000) hundredthousands = Int((Minutes - (millions * 1000000)) / 100000) thousands = Int((Minutes - (millions * 1000000) - (hundredthousands * 100000)) / 1000) hundreds = Int((Minutes - (millions * 1000000) - (hundredthousands * 100000) - (thousands * 1000)) / 100) unit = Minutes - (millions * 1000000) - (hundredthousands * 100000) - thousands * 1000 - hundreds * 100 If Minutes = 0 Then strTime = "Zero" Select Case millions Case 1 To 19 strTime = unitword(millions) & " Million" Case 20 To 99 strTime = Trim$(teenword(Int(millions / 10)) & " " & unitword(millions - Int(millions / 10) * 10)) & " Million" Case Is > 99 TimeWords = "100 million minutes or more" Exit Function End Select Select Case hundredthousands Case 1 To 9 strTime = strTime & " " & unitword(hundredthousands) & " Hundred" End Select Select Case thousands Case 0 If hundredthousands > 0 Then strTime = strTime & " Thousand" Case 1 To 19 strTime = strTime & " " & unitword(thousands) & " Thousand" Case 20 To 99 strTime = strTime & " " & Trim$(teenword(Int(thousands / 10)) & " " & unitword(thousands - Int(thousands / 10) * 10)) & " Thousand" End Select Select Case hundreds Case 1 To 9 strTime = strTime & " " & unitword(hundreds) & " Hundred" End Select If (millions + hundredthousands + thousands + hundreds) > 0 Then strTime = strTime & " and" Select Case unit Case 1 To 19 strTime = strTime & " " & unitword(unit) Case 20 To 99 strTime = strTime & " " & Trim$(teenword(Int(unit / 10)) & " " & unitword(unit - Int(unit / 10) * 10)) End Select strTime = strTime & " Minute" If Minutes <> 1 Then strTime = strTime & "s" Select Case Seconds Case 0 strTime = strTime & " Exactly" Case 1 strTime = strTime & " and " & unitword(Seconds) & " Second" Case 2 To 19 strTime = strTime & " and " & unitword(Seconds) & " Seconds" Case 20 To 59 strTime = strTime & " and " & Trim$(teenword(Int(Seconds / 10)) & " " & unitword(Seconds - Int(Seconds / 10) * 10)) & " Seconds" End Select TimeWords = strTime End Function -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From caa at highway.com.br Fri Feb 13 02:14:40 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Fri, 13 Feb 2004 05:14:40 -0300 Subject: [AccessD] fso.DeleteFile Strange behaviour!? In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> Message-ID: On Wed, 11 Feb 2004 16:55:04 -0600, wrote: > What's the OS? Windows 2000 has indexing, which indexes your files. It > is > VERY possible that indexing is causing this issue. > > A workaround, would be to create the new db under a different name, then > rename it. That should force the new Created time. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D > Sent: Wednesday, February 11, 2004 2:01 AM > To: accessd > Subject: [AccessD] fso.DeleteFile Strange behaviour!? > > > Hi group, > > I'm using FileSystemObject to delete a MDB file. > After that I'm creating a new MDB. > Then i'm using the .DateCreated method to get the the info about when the > file was created. I checked this in the help: "Returns the date and time > that the specified file or folder was created. Read-only." > > However the time it returns is the date\time combination of when I > created > the DB for the first time. > > EG: I'm starting the application at 8:00. I then show on screen the > date\time the temp (analyses) db was created, let's say that it was > created > on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press > the > button and it deletes the file, creates a new one and adds tables to it. > Then I show the user the .DateCreated wich shows 8:00. > When I stay in the program and do the above at 8:15 the .DateCreated > method > returns again 8:00!!! When I look in Explorer the DateCreated column > shows > 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date > created > 8:00? I've checked in Explorer that the file is gone after the deletefile > statement. > > Any ideas? I have just written a Sub to make a backup copy of a backend and rename in order to have 30 copies as follows: 01_file.mdb, 02_file.mdb and so on. I have chosen FileCopy and Kill statements. I checked file attributes and have had no problems so far. You may also opt for Name statement if you need to move instead copying a file. HTH, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From rsmethurst at UK.EY.COM Fri Feb 13 04:01:46 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 13 Feb 2004 10:01:46 +0000 Subject: [AccessD] Datasheet field Message-ID: Hi All, I'm looking to populate a subform based on the selection a user makes in a form above it. But not by the row, by the actual field. (This was previously donw with labels and hyperlinks, but now the no of records can vary) Is there an easy/(ish) way to capture what 'cell' has been clicked in the datasheet, or would a continuous form be better suited to this? (I'm dealing with unbound forms here) TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Fri Feb 13 05:41:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 12:41:52 +0100 Subject: [AccessD] Speeding up the database In-Reply-To: References: Message-ID: <13513530085.20040213124152@cactus.dk> Hi Jim et all The issue with Opportunistic Locking on Windows servers has been touched several times. I located this tool which does the "dirty" work: http://www.resumate.com/windows_xp2000nt.htm To simplify the process of disabling Opportunistic Locking, you can download and run the following utility: set_oplocks.exe Please note that this only needs to be done on a Windows XP/2000/NT machine acting as the file server. This includes peer-to-peer network environments as well as dedicated server environments. /gustav > A couple of other performance points: > 1. Make sure that the MDB's are nto being virus scanned when opened. > 2. Turn off opportunistic locking on the server. > 3. Make sure that all clients and server(s) are running the same default > network protocol. > 4. Hold open a reference to the BE's as soon as the app starts and don't > close it until the app closes. This is the #1 item that you need to do. > 5. Over indexing can be just as bad as under indexing. Use the SHOWPLAN > function to see what JET is actually doing when it runs a query. It's > possible that it's not even using indexes that you setup. > 6. Use ISAMSTATS() to determine if any JET engine setting changes would > help. > The last two can take some time, but often pay off. > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net From gustav at cactus.dk Fri Feb 13 07:39:28 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 14:39:28 +0100 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000901c3f1bc$603704f0$8500a8c0@CX615377a> References: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Message-ID: <13220585280.20040213143928@cactus.dk> Hi Doug > This week all three computers using the system started giving an "Out of > stack space" message when the Core Return slip report was supposed to be > printed. .. > The one change at the client is they moved from a novel server to Win2k. > All other databases and this one except for this report seem to be > working fine so I don't' see that the conversion is the problem, but as > I have said before, I am not a network person. Oh gosh, keep this off William's eyes ...! /gustav From gustav at cactus.dk Fri Feb 13 07:50:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 14:50:46 +0100 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> References: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> Message-ID: <11821263785.20040213145046@cactus.dk> Seriously, Doug, this sounds like a printer driver or graphics card driver problem. Check for updates for the graphics card driver at the client. Check carefully which printer and driver and version you are using and compare to those of the client. At the client, watch for HP PCL 5 drivers which can be buggy and choose PCL 4 or lower or Postscript. If anything else fails, try with the old Windows driver for LaserJet II - it should work if anything else fails. /gustav > Thank you for the info. The desktops running the front end are using > Win2K. The just recently moved their server to Windows2k Server as I > understand. The interesting thing here is that we get the out of stack > space message when trying to print the report but Access completely > shuts down when trying to preview the report. From prodevmg at yahoo.com Fri Feb 13 08:43:36 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 13 Feb 2004 06:43:36 -0800 (PST) Subject: [AccessD] Datasheet field In-Reply-To: Message-ID: <20040213144336.26381.qmail@web20420.mail.yahoo.com> If you have a knowledge of vba you could store the name of the subform field in a global variable in the field's On Click event and pass that back to the main form to do what ever processing you need to do. rsmethurst at uk.ey.com wrote: Hi All, I'm looking to populate a subform based on the selection a user makes in a form above it. But not by the row, by the actual field. (This was previously donw with labels and hyperlinks, but now the no of records can vary) Is there an easy/(ish) way to capture what 'cell' has been clicked in the datasheet, or would a continuous form be better suited to this? (I'm dealing with unbound forms here) TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From dw-murphy at cox.net Fri Feb 13 08:52:54 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 13 Feb 2004 06:52:54 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <11821263785.20040213145046@cactus.dk> Message-ID: <000801c3f241$0ffef8f0$8500a8c0@CX615377a> Gustav, Thank you for your thoughtful suggestions. I'll check into the drivers today. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 13, 2004 5:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 97 Report problems Seriously, Doug, this sounds like a printer driver or graphics card driver problem. Check for updates for the graphics card driver at the client. Check carefully which printer and driver and version you are using and compare to those of the client. At the client, watch for HP PCL 5 drivers which can be buggy and choose PCL 4 or lower or Postscript. If anything else fails, try with the old Windows driver for LaserJet II - it should work if anything else fails. /gustav > Thank you for the info. The desktops running the front end are using > Win2K. The just recently moved their server to Windows2k Server as I > understand. The interesting thing here is that we get the out of > stack space message when trying to print the report but Access > completely shuts down when trying to preview the report. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Fri Feb 13 08:50:40 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 13 Feb 2004 14:50:40 +0000 Subject: [AccessD] Datasheet field Message-ID: Thanks Lonnie, Got it figured out. I didn't realise that the datasheet view would have the same options as the continous form - all fine! Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From my.lists at verizon.net Fri Feb 13 10:29:07 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 13 Feb 2004 08:29:07 -0800 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> References: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> Message-ID: <402CFB53.4050008@verizon.net> Are there any special steps adding Access 2003 to a system that has A97 and Access 2000 on it? -- -Francisco Robert L. Stewart wrote: > Answers below: > > At 12:00 PM 2/7/2004 -0600, you wrote: > >> Date: Fri, 6 Feb 2004 16:55:38 -0500 >> From: "O'Connor, Patricia " >> Subject: [AccessD] Information about Access 2003 >> To: "'Access Developers discussion and problem solving'" >> >> Message-ID: >> Content-Type: text/plain; charset="ISO-8859-1" >> >> >> We are going to be getting Access 2003 in about a month. >> >> 1. Has anyone successfully installed & used Access2003 on the same >> machine >> with 97 & 2k > > > I have 97, 2000, 2002, and 2003 installed and running quite well on a > Win 2003 server machine. > > >> 2. What are the major differences/problems with A2003 compared to A97 >> & 2k. > > > It is very different from 97, but close (with enhancements) to 2000 and > 2002. > >> Are there any articles, books, etc besides MS.com to read up on these. > > > Don't have an answer for you here. I teach a developer's workshop and I > have went to 2003 exclusively for teaching it. > > >> 3. We have several Access 97 database systems in use. Should I upgrade >> them >> to A2k first then A2003. > > > Might not be a bad idea. It will give you a chance to get the > references and anything else straightened out first. > > Robert From gustav at cactus.dk Fri Feb 13 11:12:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 18:12:46 +0100 Subject: [AccessD] time window In-Reply-To: <402CCAC4.12433.B9DA6E@localhost> References: <402CC10E.28079.93EBCC@localhost> <402CCAC4.12433.B9DA6E@localhost> Message-ID: <14333383422.20040213181246@cactus.dk> Hi Stuart and John > Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, _ > dteTimeToCompare As Date) As Boolean > > If dteTimeTo < dteTimeFrom Then dteTimeTo = dteTimeTo + 1 > > TimeIsBetween = (dteTimeToCompare >= dteTimeFrom) _ > And (dteTimeToCompare <= dteTimeTo) > > End Function You should be careful when comparing time. Remember, time is the decimal part of a date/time value and many "common" times don't have exact representations, for example is #08:00:00# equal to 1/3. Thus, you should always use DateDiff() and the resolution you need, say one second, to determine if one date/time value is larger than another: Public Function TimeIsBetween( _ dteTimeFrom As Date, _ dteTimeTo As Date, _ dteTimeToCompare As Date) _ As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If TimeIsBetween = DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 _ And DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 End Function The usual objection to this is speed but contrary to Format(), the Date..() functions are fast. However, the above function will fail if both time-to and time-compare fall after midnight: ? TimeIsBetween(#23:00:00#,#02:00:00#,#01:23:00#) John's function returns True for this - which, on the other hand, may be wrong if 01:23 is considered to fall before time-from! Thus you will need a flag to indicate if time-compare falls next day compared to time-from. Also, don't forget ByVal as you are manipulating some of the parameters: Public Function TimeIsBetween( _ ByVal dteTimeFrom As Date, _ ByVal dteTimeTo As Date, _ ByVal dteTimeToCompare As Date, _ Optional ByVal booTimeToCompareIsNextDay As Boolean) _ As Boolean Dim booTimeIsBetween As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If If booTimeToCompareIsNextDay = True Then dteTimeToCompare = DateAdd("d", 1, dteTimeToCompare) End If If DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 And _ DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 Then booTimeIsBetween = True End If TimeIsBetween = booTimeIsBetween End Function Have fun! /gustav From Mark.Mitsules at ngc.com Fri Feb 13 11:24:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 13 Feb 2004 12:24:19 -0500 Subject: [AccessD] time window Message-ID: John, Would a conversion to 24Hour format make things any easier? Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 12, 2004 9:09 PM To: AccessD Subject: [AccessD] time window I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? 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 DWUTKA at marlow.com Fri Feb 13 11:32:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 13 Feb 2004 11:32:38 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227882@main2.marlow.com> What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 11:32:38 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 12:32:38 -0500 Subject: [AccessD] OT - file search results save Message-ID: I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti From Jdemarco at hudsonhealthplan.org Fri Feb 13 11:48:50 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 13 Feb 2004 12:48:50 -0500 Subject: [AccessD] OT - file search results save Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FCDB@TTNEXCHSRV1.hshhp.com> Patricia, I don't have it handy but I put together an utility app that loops through our network and adds this information to an Access table (A97). Put simply use the Dir command in VBA and then use ADO or DAO to save any found item to the table. If you like I can look for it but it's been quite a while since we've run it and may take some time to find. Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 11:54:51 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 12:54:51 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks Jim I would greatly appreciate it. Whenever you get to it. Thanks > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, February 13, 2004 12:49 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT - file search results save > > > Patricia, > > I don't have it handy but I put together an utility app that > loops through our network and adds this information to an > Access table (A97). Put simply use the Dir command in VBA > and then use ADO or DAO to save any found item to the table. > If you like I can look for it but it's been quite a while > since we've run it and may take some time to find. > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB > using the Windows > 2000 search. Give name of file, directory, size, modify > date. Great just > what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something > simple but I am > just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Developer at UltraDNT.com Fri Feb 13 12:00:26 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 13 Feb 2004 13:00:26 -0500 Subject: [AccessD] OT - file search results save In-Reply-To: Message-ID: <000401c3f25b$48308170$7001a8c0@COA3> I'm still looking for a Windows way to do this, but gool old DOS does this easily ... At the root of the drive, use this at the command line: DIR *.mdb /s /b >c:\temp\mdblist.txt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Feb 13 11:59:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 13 Feb 2004 12:59:29 -0500 Subject: [AccessD] OT - file search results save Message-ID: You can do it from a command prompt: dir "\\server\path\*.mdb" /s > "c:\path\to\your\outputfile.txt" Or use Karen Kenworthy's Directory Printer, available from: http://www.karenware.com/powertools/ptdirprn.asp Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Patricia.O'Connor at dfa.state.ny.us 13-Feb-04 12:32:38 PM >>> I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. From Developer at UltraDNT.com Fri Feb 13 12:06:50 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 13 Feb 2004 13:06:50 -0500 Subject: [AccessD] OT - file search results save In-Reply-To: Message-ID: <000501c3f25c$2a129600$7001a8c0@COA3> PS: the "/b" switch (for bare, is what I use to generate mp3 playlists) will only give path/file. Type DIR /? to get info on all the switches. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 13 12:09:12 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 13 Feb 2004 12:09:12 -0600 Subject: [AccessD] OT - file search results save Message-ID: <2F8793082E00D4119A1700B0D0216BF802227884@main2.marlow.com> I just sent you my 'Drive Mapper' utility (mind you, I wrote it a while back....), which 'records' the files and folders in a drive, into a normalized structure. drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 11:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save Thanks Jim I would greatly appreciate it. Whenever you get to it. Thanks > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, February 13, 2004 12:49 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT - file search results save > > > Patricia, > > I don't have it handy but I put together an utility app that > loops through our network and adds this information to an > Access table (A97). Put simply use the Dir command in VBA > and then use ADO or DAO to save any found item to the table. > If you like I can look for it but it's been quite a while > since we've run it and may take some time to find. > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB > using the Windows > 2000 search. Give name of file, directory, size, modify > date. Great just > what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something > simple but I am > just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 12:14:08 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 13:14:08 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks ALL We did the dos thing - clunky and have to do alot of editing for readability. Downloaded Karen's thing will try that and let you know Thanks Patti > -----Original Message----- > From: Developer [mailto:Developer at UltraDNT.com] > Sent: Friday, February 13, 2004 01:07 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save > > > PS: the "/b" switch (for bare, is what I use to generate mp3 > playlists) > will only give path/file. Type DIR /? to get info on all the > switches. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB using the > Windows 2000 search. Give name of file, directory, size, modify date. > Great just what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something simple but I > am just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Fri Feb 13 12:39:18 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 13 Feb 2004 12:39:18 -0600 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <200402131800.i1DI0PH10362@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040213123757.02ab8410@pop3.highstream.net> No, just install all of them in their own directory and do a custom install, and do not replace the previous version when prompted. At 12:00 PM 2/13/2004 -0600, you wrote: >Date: Fri, 13 Feb 2004 08:29:07 -0800 >From: Francisco H Tapia >User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) >X-Accept-Language: en-us, en >MIME-Version: 1.0 >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Re: Information about Access 2003 > >Are there any special steps adding Access 2003 to a system that has A97 >and Access 2000 on it? > > >-- >-Francisco From rmoore at comtechpst.com Fri Feb 13 12:43:51 2004 From: rmoore at comtechpst.com (Ron Moore) Date: Fri, 13 Feb 2004 13:43:51 -0500 Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD] OT - file search results save}: In-Reply-To: Message-ID: <002101c3f261$5367b1c0$6b14a8c0@Comtech.Comtechpst.com> Since this is being discussed... I need a way to return the folder and possibly the file permissions for Active Directories on a W2KServer Shared Drive i.e., need to know who has been granted permissions and what type. TIA Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Friday, February 13, 2004 12:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - file search results save You can do it from a command prompt: dir "\\server\path\*.mdb" /s > "c:\path\to\your\outputfile.txt" Or use Karen Kenworthy's Directory Printer, available from: http://www.karenware.com/powertools/ptdirprn.asp Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Patricia.O'Connor at dfa.state.ny.us 13-Feb-04 12:32:38 PM >>> I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 13 13:11:13 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:11:13 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 13:15:51 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 14:15:51 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks Drew Will give it a try this afternoon Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Friday, February 13, 2004 01:09 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save > > > I just sent you my 'Drive Mapper' utility (mind you, I wrote > it a while > back....), which 'records' the files and folders in a drive, into a > normalized structure. > > drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Friday, February 13, 2004 11:55 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save > > > Thanks Jim > > I would greatly appreciate it. Whenever you get to it. > > Thanks > > > > > -----Original Message----- > > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > > Sent: Friday, February 13, 2004 12:49 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] OT - file search results save > > > > > > Patricia, > > > > I don't have it handy but I put together an utility app that > > loops through our network and adds this information to an > > Access table (A97). Put simply use the Dir command in VBA > > and then use ADO or DAO to save any found item to the table. > > If you like I can look for it but it's been quite a while > > since we've run it and may take some time to find. > > > > Jim DeMarco > > Director Product Development > > Hudson Health Plan > > > > > > -----Original Message----- > > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > > Sent: Friday, February 13, 2004 12:33 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] OT - file search results save > > > > > > I did a search of one of our server drives for all *.MDB > > using the Windows > > 2000 search. Give name of file, directory, size, modify > > date. Great just > > what I want, except I can not figure out how to get the > > results into a file > > - word, text, excel > > > > If I do save results, it puts it into a file but all that > > seems to do is > > save the search string. > > > > > > Does anyone know how I can save the listing or have a utility > > that will > > allow me to save this in a file. It is probably something > > simple but I am > > just getting no where. > > > > Thanks > > Patti > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Fri Feb 13 13:18:30 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 13 Feb 2004 11:18:30 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: HUGE difference in load time!!! Almost instantaneous. Congrats to the developers. Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: 13 Feb 2004 11:11:AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated > manufacturing system for small manufacturers. Well, relaunch, actually, since it was > first brought out in 1985 under the DOS operating system. This time it is written in > Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous with their time and > knowledge over the years. Without them, this product would not have been created > (as it is, there are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the product will be greatly > appreciated. > > And thanks in advance for any referrals. We are going to try to make a living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. > Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated > manufacturing system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and achieved > great success and widespread use with hundreds of customers around the world. > > The system has been successfully implemented in a wide variety of small manufacturing > companies such as medical instrumentation, appliances, automotive, pharmaceutical, > furniture, spraying systems, orthodontics, firearms, as well as finding use as an > instructional aid in universities. It works just as well in job shop or > build-to-order environments as in build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages and distributed in > countries throughout the world. > > The system has now been completely rewritten using Microsoft's Access Database > Management System - a component of the popular Microsoft Office Suite - making it > compatible with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who > had neither the time, the money, nor the expertise to implement a conventional > manufacturing system," says Rocky Smolin, President of Beach Access Software. > "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the > easiest to implement of any MRP system in software history. " > > "It was designed to be used by people who do not have degrees or certification in > manufacturing systems. It requires no on-site training or consultation. And it has > cut the standard 18-month MRP implementation cycle to as little as 18 days." > > The package includes a full-featured Bill of Materials processor, a material planning > and tracking module that tracks all sales orders, forecasts, work orders (planned, > firm, and released), purchase orders, shortages, and raw materials and finished goods > inventories, with a complete audit trail on all inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function and a purchase order > module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to > do simulations or answer "what-if" questions without disrupting the production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar > power and capabilities. It will run on any Windows-based PC or network, and > requires only Access 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive user manual with > tutorials provides all the required instruction. > > For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 13 13:23:59 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:23:59 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <019801c3f266$f16044f0$6601a8c0@HAL9002> Just so's you know E-Z-MRPT in the press release is how E-Z-MRP with the little superscript tm comes across in plain text. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Friday, February 13, 2004 11:11 AM Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Fri Feb 13 13:27:17 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Fri, 13 Feb 2004 14:27:17 -0500 Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD]OT - file search results save}: In-Reply-To: <002101c3f261$5367b1c0$6b14a8c0@Comtech.Comtechpst.com> Message-ID: <000001c3f267$6461f340$fde44344@hargrove.internal> This example uses VB.NET but it should get you started... http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q818362 Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ron Moore Sent: Friday, February 13, 2004 1:44 PM To: accessd at databaseadvisors.com Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD]OT - file search results save}: Since this is being discussed... I need a way to return the folder and possibly the file permissions for Active Directories on a W2KServer Shared Drive i.e., need to know who has been granted permissions and what type. TIA Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com From bchacc at san.rr.com Fri Feb 13 13:31:06 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:31:06 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: Message-ID: <019e01c3f267$ed1f4a70$6601a8c0@HAL9002> Thanks. I'll forward to the developer. Rocky ----- Original Message ----- From: "Kathryn Bassett" To: "Access Developers discussion and problem solving" Sent: Friday, February 13, 2004 11:18 AM Subject: RE: [AccessD] Product Launched - Thanks to AccessD > HUGE difference in load time!!! Almost instantaneous. Congrats to the developers. > Kathryn > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: 13 Feb 2004 11:11:AM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Product Launched - Thanks to AccessD > > > > > > Dear List: > > > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated > > manufacturing system for small manufacturers. Well, relaunch, actually, since it was > > first brought out in 1985 under the DOS operating system. This time it is written in > > Microsoft's Access. > > > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > > > I owe a great debt to all those who have been so generous with their time and > > knowledge over the years. Without them, this product would not have been created > > (as it is, there are still a few unbound forms in it :). > > > > As usual, thanks in advance any feedback on the site or the product will be greatly > > appreciated. > > > > And thanks in advance for any referrals. We are going to try to make a living this year. :) > > > > > > With best regards, > > > > Rocky Smolin > > Beach Access Software > > > > News Release > > For Immediate Release > > Contact: Rocky Smolin > > Beach Access Software > > 13614 Boquita Drive > > Del Mar, CA 92014 USA > > 1-858-259-4334 > > http:\\www.e-z-mrp.com > > > > > > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. > > Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated > > manufacturing system for small- and medium-sized manufacturers. > > > > > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and achieved > > great success and widespread use with hundreds of customers around the world. > > > > The system has been successfully implemented in a wide variety of small manufacturing > > companies such as medical instrumentation, appliances, automotive, pharmaceutical, > > furniture, spraying systems, orthodontics, firearms, as well as finding use as an > > instructional aid in universities. It works just as well in job shop or > > build-to-order environments as in build-to-stock or build-to-forecast operations. > > > > In previous versions, it was translated into five languages and distributed in > > countries throughout the world. > > > > The system has now been completely rewritten using Microsoft's Access Database > > Management System - a component of the popular Microsoft Office Suite - making it > > compatible with a wide variety of third-party products. > > > > "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who > > had neither the time, the money, nor the expertise to implement a conventional > > manufacturing system," says Rocky Smolin, President of Beach Access Software. > > "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the > > easiest to implement of any MRP system in software history. " > > > > "It was designed to be used by people who do not have degrees or certification in > > manufacturing systems. It requires no on-site training or consultation. And it has > > cut the standard 18-month MRP implementation cycle to as little as 18 days." > > > > The package includes a full-featured Bill of Materials processor, a material planning > > and tracking module that tracks all sales orders, forecasts, work orders (planned, > > firm, and released), purchase orders, shortages, and raw materials and finished goods > > inventories, with a complete audit trail on all inventory transactions. > > > > Also included in E-Z-MRPT is a physical inventory function and a purchase order > > module for printing purchase orders. > > > > And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to > > do simulations or answer "what-if" questions without disrupting the production database. > > > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar > > power and capabilities. It will run on any Windows-based PC or network, and > > requires only Access 2000 or Access XP to run. > > > > No on-site or remote training is required. A comprehensive user manual with > > tutorials provides all the required instruction. > > > > For more information, and user testimonials, visit the company's web site: > http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Fri Feb 13 15:40:00 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 13 Feb 2004 21:40:00 -0000 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <033901c3f279$ef50cb40$b274d0d5@minster33c3r25> Congratulations Rocky. Great job. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: 13 February 2004 19:11 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of > E-Z-MRP, an integrated manufacturing system for small > manufacturers. Well, relaunch, actually, since it was first > brought out in 1985 under the DOS operating system. This > time it is written in Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous > with their time and knowledge over the years. Without them, > this product would not have been created (as it is, there > are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the > product will be greatly appreciated. > > And thanks in advance for any referrals. We are going to try > to make a living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access > Software, formerly C. R. Smolin, Inc., announces the release > of Version 20 of E-Z-MRPT, an integrated manufacturing > system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in > 1985, and achieved great success and widespread use with > hundreds of customers around the world. > > The system has been successfully implemented in a wide > variety of small manufacturing companies such as medical > instrumentation, appliances, automotive, pharmaceutical, > furniture, spraying systems, orthodontics, firearms, as well > as finding use as an instructional aid in universities. It > works just as well in job shop or build-to-order environments > as in build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages > and distributed in countries throughout the world. > > The system has now been completely rewritten using > Microsoft's Access Database Management System - a component > of the popular Microsoft Office Suite - making it compatible > with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of > small manufacturers who had neither the time, the money, nor > the expertise to implement a conventional manufacturing > system," says Rocky Smolin, President of Beach Access > Software. "E-Z-MRPT in this new release is still arguably > the simplest approach to MRP and the easiest to implement of > any MRP system in software history. " > > "It was designed to be used by people who do not have degrees > or certification in manufacturing systems. It requires no > on-site training or consultation. And it has cut the > standard 18-month MRP implementation cycle to as little as 18 days." > > The package includes a full-featured Bill of Materials > processor, a material planning and tracking module that > tracks all sales orders, forecasts, work orders (planned, > firm, and released), purchase orders, shortages, and raw > materials and finished goods inventories, with a complete > audit trail on all inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function > and a purchase order module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple > databases, making it easy to do simulations or answer > "what-if" questions without disrupting the production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost > of systems with similar power and capabilities. It will run > on any Windows-based PC or network, and requires only Access > 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive > user manual with tutorials provides all the required instruction. > > For more information, and user testimonials, visit the > company's web site: http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From accessd at shaw.ca Fri Feb 13 23:06:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 13 Feb 2004 21:06:38 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227882@main2.marlow.com> Message-ID: Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 13 23:11:29 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 13 Feb 2004 21:11:29 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: Hi Rocky: Looks like a great package. If I hear of anyone requiring such a system I will definitely pass them on. Again a good job. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, February 13, 2004 11:11 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sat Feb 14 06:45:43 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 14 Feb 2004 13:45:43 +0100 Subject: [AccessD] increasing database size Message-ID: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> Hello group, how is it possible that a database increases its size by 1/3 when opening a complex form? Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. How is this possible and can i decrease the time? Pedro Janssen From gustav at cactus.dk Sat Feb 14 07:15:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 14 Feb 2004 14:15:15 +0100 Subject: [AccessD] increasing database size In-Reply-To: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> Message-ID: <13715293220.20040214141515@cactus.dk> Hi Pedro If your frontend is not supposed to write data to itself, you may write protect the file when you have finished design changes and compacting. /gustav > how is it possible that a database increases its size by 1/3 when opening a complex form? > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > How is this possible and can i decrease the time? From bchacc at san.rr.com Sat Feb 14 07:46:50 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 05:46:50 -0800 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> <13715293220.20040214141515@cactus.dk> Message-ID: <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> Pedro: Does your form have sub-forms? Does it have a tab form? Does it have combo boxes with large numbers of records to load? Rocky ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 5:15 AM Subject: Re: [AccessD] increasing database size > Hi Pedro > > If your frontend is not supposed to write data to itself, you may write > protect the file when you have finished design changes and compacting. > > /gustav > > > how is it possible that a database increases its size by 1/3 when opening a complex form? > > > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > > How is this possible and can i decrease the time? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Sat Feb 14 08:11:24 2004 From: listmaster at databaseadvisors.com (listmaster) Date: Sat, 14 Feb 2004 08:11:24 -0600 (CST) Subject: [AccessD] ADMINISTRIVIA - List upgrade Reminder Message-ID: This is just a short reminder that starting at 1000 EST (1500 UTC/GMT) we will begin upgrading the software that runs the lists hosted at databaseadvisors.com. This will result in the lists being unavailable for periods of time. Thanks for your patience and understanding. Bryan Carbonnell - listmaster at databaseadvisors.com Your Listmaster From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From pedro at plex.nl Sat Feb 14 15:01:12 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 14 Feb 2004 22:01:12 +0100 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> Message-ID: <002801c3f347$79968100$f2c581d5@pedro> Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may write > > protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 bellsouth.net Sat Feb 14 16:20:16 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 17:20:16 -0500 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <20040214222017.RZQR23866.imf25aec.mail.bellsouth.net@SUSANONE> For starters -- check out Arthur's context-sensitive combo box -- we wrote about it for... TechRepublic.com or Builder.com -- one, you could probably just do a search on Arthur (or my name) -- wait... Arthur, maybe it was devx.com? I don't remember -- Arthur will. Anyway -- great way to speed up a combo with a really big list. If I can find it -- I'll post a link. Susan H. Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 bellsouth.net Sat Feb 14 16:29:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 17:29:09 -0500 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <20040214222909.SCYJ23866.imf25aec.mail.bellsouth.net@SUSANONE> http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Sat Feb 14 16:56:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sat, 14 Feb 2004 23:56:48 +0100 Subject: [AccessD] increasing database size Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> Gustav... Is'nt that a bad idea? The size of a database get bigger (but not only reason) due to compilations. Code get compiled when it gets used, but also queries. So if you would make the file readonly you coder and queries never get compiled and your app is slower. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 14, 2004 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hi Pedro If your frontend is not supposed to write data to itself, you may write protect the file when you have finished design changes and compacting. /gustav > how is it possible that a database increases its size by 1/3 when opening a complex form? > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > How is this possible and can i decrease the time? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Sat Feb 14 17:10:48 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Sat, 14 Feb 2004 17:10:48 -0600 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: Thank you Bryan! I'll say once that here and on each of the dba lists which I got the good news on ;-) Great job. Can't thank you enough. Happy Valentines day too. Gary Kjos garykjos at hotmail.com >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: administrivia at databaseadvisors.com >Subject: [AccessD] Administrivia - Software Updates Done >Date: Sat, 14 Feb 2004 12:11:24 -0500 > >Well folks, the stars and planets were all in alignment this morning >and the list software upgrades went smoothly. > >Everything is back up and running. I will be tweaking as the day goes >by, but you shouldn't notice anything. > >If you have any problems as a result of this upgrade, PLEASE let me >know, listmaster at databaseadvisors.com. > >So why did we upgrade? Here are the highlights for those that are >interested: > >- Several Security vulnerabilities >- Bouncing rules have been updated >- Hard Drive Usage improvements >- Bounce Disable e-mail confirmation string expiry always out of date >bug was fixed (This affected several members) >- Archives takes time zome information into account when threading >messages. > >These are the main reasons we upgraded. > >Thanks for your patience during the upgrade and if you encounter any >problems, please let me know. > > >-- >Bryan Carbonnell - listmaster at databaseadvisors.com >I've learned.... >That one should keep his words both soft and tender, because tomorrow >he may have to eat them. > > >_______________________________________________ >Administrivia mailing list >Administrivia at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/administrivia >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Create your own personal Web page with the info you use most, at My MSN. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/ From bchacc at san.rr.com Sat Feb 14 17:15:49 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 15:15:49 -0800 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> <13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <017001c3f350$7c006600$6601a8c0@HAL9002> Pedro: Before going any further I would remove all of the row sources from the combo boxes and load the form. If it loads real fast then the slowdown is in the combo boxes. If not it's somewhere else so you won't have to go through a lot of gyrations with them for no good purpose. If it is the combo boxes then you can use Colby's (I think?) trick of loading the row source of the combo box the first time it is clicked. In the GotFocus event of the combo box if there's no row source, then you load it at that point. You can store the Row Source in the Tag and then: Private Sub cboBuilding_GotFocus() If cboBuilding.RowSource = "" Then cboBuilding.RowSource = cboBuilding.Tag cboBuilding.Requery End If End Sub HTH Rocky ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 1:01 PM Subject: Re: [AccessD] increasing database size > Hello Gustav and Rocky, > > all of the databases that i have designed at work or at home don't have > backend and frontend. A maximum of 6 users are working with them. In this > group i heard a lot about front- and backend. Could you give me the > advantage and disadvantage of this method. > > The form indeed loads about 12 comboboxes with each 1500 records. Further it > has about 150 textboxes where the control source is one of the columns of > these comboboxes. > > Anyway could i speed up things and is this the problem for the increasing > database. > > Pedro Janssen > > > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 2:46 PM > Subject: Re: [AccessD] increasing database size > > > > Pedro: > > > > Does your form have sub-forms? Does it have a tab form? Does it have > combo > > boxes with large numbers of records to load? > > > > Rocky > > > > ----- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 14, 2004 5:15 AM > > Subject: Re: [AccessD] increasing database size > > > > > > > Hi Pedro > > > > > > If your frontend is not supposed to write data to itself, you may write > > > protect the file when you have finished design changes and compacting. > > > > > > /gustav > > > > > > > how is it possible that a database increases its size by 1/3 when > > opening a complex form? > > > > > > > Opening this form in formview or designview also costs (pentium4 > 2600Mhz > > 256MB-ram) about 25 sec. > > > > How is this possible and can i decrease the time? > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 bellsouth.net Sat Feb 14 17:32:15 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 18:32:15 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: Message-ID: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> And at the risk of being flamed for a me too -- I'll brave it -- thank you for all you do for us. :) Susan H. Thank you Bryan! I'll say once that here and on each of the dba lists which I got the good news on ;-) Great job. Can't thank you enough. Happy Valentines day too. Gary Kjos garykjos at hotmail.com From wdhindman at bellsouth.net Sat Feb 14 18:55:45 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 14 Feb 2004 19:55:45 -0500 Subject: [AccessD] Administrivia - Software Updates Done References: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <00f901c3f35e$71d6be00$6101a8c0@dejpolsys> ...me too! :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 14, 2004 6:32 PM Subject: RE: [AccessD] Administrivia - Software Updates Done > And at the risk of being flamed for a me too -- I'll brave it -- thank you > for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I got the good > news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Feb 14 21:46:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 15 Feb 2004 13:46:13 +1000 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <00f901c3f35e$71d6be00$6101a8c0@dejpolsys> Message-ID: <402F7825.25674.B2F0AC8@localhost> me too On 14 Feb 2004 at 19:55, William Hindman wrote: > ...me too! :) > > William Hindman > Government is not reason, government is not persuasion, > government is force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, February 14, 2004 6:32 PM > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > > And at the risk of being flamed for a me too -- I'll brave it -- thank you > > for all you do for us. :) > > > > Susan H. > > > > Thank you Bryan! > > > > I'll say once that here and on each of the dba lists which I got the good > > news on ;-) > > > > Great job. Can't thank you enough. Happy Valentines day too. > > > > Gary Kjos > > garykjos at hotmail.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bchacc at san.rr.com Sat Feb 14 21:56:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 19:56:27 -0800 Subject: [AccessD] Administrivia - Software Updates Done References: <402F7825.25674.B2F0AC8@localhost> Message-ID: <028b01c3f377$b05f01a0$6601a8c0@HAL9002> Ok. I'm in. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 7:46 PM Subject: Re: [AccessD] Administrivia - Software Updates Done > > me too > > > > > On 14 Feb 2004 at 19:55, William Hindman wrote: > > > ...me too! :) > > > > William Hindman > > Government is not reason, government is not persuasion, > > government is force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "Susan Harkins" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Saturday, February 14, 2004 6:32 PM > > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > > > > > And at the risk of being flamed for a me too -- I'll brave it -- thank you > > > for all you do for us. :) > > > > > > Susan H. > > > > > > Thank you Bryan! > > > > > > I'll say once that here and on each of the dba lists which I got the good > > > news on ;-) > > > > > > Great job. Can't thank you enough. Happy Valentines day too. > > > > > > Gary Kjos > > > garykjos at hotmail.com > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 15 03:23:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 10:23:04 +0100 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <1651569526.20040215102304@cactus.dk> Hi Pedro The main advantage is that you separate design from data; this eases development of the frontend and backup of the backend. The main disadvantage is that you need to reattach the backend if it is moved to another folder. In a controlled environment, you can simply use the wizard to reattach the backend; if not, several utilities are available for free - just do a search in the archives for reattach or relink. /gustav > all of the databases that i have designed at work or at home don't have > backend and frontend. A maximum of 6 users are working with them. In this > group i heard a lot about front- and backend. Could you give me the > advantage and disadvantage of this method. From gustav at cactus.dk Sun Feb 15 03:49:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 10:49:00 +0100 Subject: [AccessD] increasing database size In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> Message-ID: <843125864.20040215104900@cactus.dk> Hi Erwin > Is'nt that a bad idea? Not that I know of. On the other hand, you per definition eliminate frontend corruption - not that it is a big problem with WinNT+ but with Win9x we saw that from time to time. Also, Access needs to create temporary data for running some queries dealing with complex or large datasets; when the frontend is write protected, these data are forced to temporary files. With Pedro's form opening 1 + 12 queries, this could be his bloat problem ... As for the compilation, I've never heard this should happen more than once. For code it happens when you compile it which I guess we all do before leaving an app. As for the queries, do you mean the "~$.." saved queries created when you run a form or report bound to SQL-code and not to a saved query? Those, of course, Access will need to create every time if the file is write protected, but with today's fast machines I wonder if a difference can be noted and - if so - you could just save the SQL-code as queries in the normal way. By the way, that could be a part of Pedro's speed problem: Are you using saved queries for all those combos? /gustav > The size of a database get bigger (but not only reason) due to > compilations. > Code get compiled when it gets used, but also queries. > So if you would make the file readonly you coder and queries never get > compiled and your app is slower. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, February 14, 2004 2:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Pedro > If your frontend is not supposed to write data to itself, you may write > protect the file when you have finished design changes and compacting. From Erwin.Craps at ithelps.be Sun Feb 15 08:08:55 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sun, 15 Feb 2004 15:08:55 +0100 Subject: [AccessD] increasing database size Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> What concerns query compilation. Regular database windows saved queries need to be compiled to. If you do a compress and repair or create an MDE, all you queries are decompiled. They get compiled when you execute them. I have a tool that compiles all queries before delivering a databse to the customer. I got this from a website somewhere, but unfortunatly I don't remember the author or link. This is one of the resons why a query runs at first execution slower then the second time. Please not that this is only true for saved queries. And if you use parameters in you query I supose the speed advantage will be lost. But for all +/- fixed list combo/list boxes this could matter. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, February 15, 2004 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hi Erwin > Is'nt that a bad idea? Not that I know of. On the other hand, you per definition eliminate frontend corruption - not that it is a big problem with WinNT+ but with Win9x we saw that from time to time. Also, Access needs to create temporary data for running some queries dealing with complex or large datasets; when the frontend is write protected, these data are forced to temporary files. With Pedro's form opening 1 + 12 queries, this could be his bloat problem ... As for the compilation, I've never heard this should happen more than once. For code it happens when you compile it which I guess we all do before leaving an app. As for the queries, do you mean the "~$.." saved queries created when you run a form or report bound to SQL-code and not to a saved query? Those, of course, Access will need to create every time if the file is write protected, but with today's fast machines I wonder if a difference can be noted and - if so - you could just save the SQL-code as queries in the normal way. By the way, that could be a part of Pedro's speed problem: Are you using saved queries for all those combos? /gustav > The size of a database get bigger (but not only reason) due to > compilations. > Code get compiled when it gets used, but also queries. > So if you would make the file readonly you coder and queries never get > compiled and your app is slower. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Saturday, February 14, 2004 2:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Pedro > If your frontend is not supposed to write data to itself, you may > write protect the file when you have finished design changes and compacting. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Feb 15 09:10:22 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 15 Feb 2004 10:10:22 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: Message-ID: <402F458E.1061.3B1543@localhost> On 14 Feb 2004 at 17:10, Gary Kjos wrote: > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I got the > good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. Thanks everyone. Glad to help. Stuart, love those tags :) Never seen them before. -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From bchacc at san.rr.com Sun Feb 15 09:41:20 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 15 Feb 2004 07:41:20 -0800 Subject: [AccessD] Hiding Table in mde Message-ID: <003101c3f3da$28d08480$6601a8c0@HAL9002> Dear List: Is there a way to prevent a user from importing a table from an mde into an mdb without putting a password on the mde? I'm trying to build a serial number/upgrade/license extension function into an app and will be storing the data in a front end table. TIA, Rocky Smolin Beach Access Software From gustav at cactus.dk Sun Feb 15 10:04:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 17:04:50 +0100 Subject: [AccessD] increasing database size In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> Message-ID: <2125675299.20040215170450@cactus.dk> Hi Erwin I have never run any systematic tests on this. In general, I see speed issues only for complex queries, and only for those I find it worth spending time on optimization efforts. Here are some more (diversified) observations on this: http://www.experts-exchange.com/Databases/MS_Access/Q_20838759.html#10027591 /gustav > What concerns query compilation. > Regular database windows saved queries need to be compiled to. > If you do a compress and repair or create an MDE, all you queries are > decompiled. > They get compiled when you execute them. > I have a tool that compiles all queries before delivering a databse to > the customer. > I got this from a website somewhere, but unfortunatly I don't remember > the author or link. > This is one of the resons why a query runs at first execution slower > then the second time. > Please not that this is only true for saved queries. > And if you use parameters in you query I supose the speed advantage will > be lost. > But for all +/- fixed list combo/list boxes this could matter. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, February 15, 2004 10:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Erwin >> Is'nt that a bad idea? > Not that I know of. On the other hand, you per definition eliminate > frontend corruption - not that it is a big problem with WinNT+ but with > Win9x we saw that from time to time. Also, Access needs to create > temporary data for running some queries dealing with complex or large > datasets; when the frontend is write protected, these data are forced to > temporary files. With Pedro's form opening 1 + 12 queries, this could be > his bloat problem ... > As for the compilation, I've never heard this should happen more than > once. For code it happens when you compile it which I guess we all do > before leaving an app. As for the queries, do you mean the "~$.." > saved queries created when you run a form or report bound to SQL-code > and not to a saved query? Those, of course, Access will need to create > every time if the file is write protected, but with today's fast > machines I wonder if a difference can be noted and - if so - you could > just save the SQL-code as queries in the normal way. > By the way, that could be a part of Pedro's speed problem: Are you using > saved queries for all those combos? > /gustav >> The size of a database get bigger (but not only reason) due to >> compilations. >> Code get compiled when it gets used, but also queries. >> So if you would make the file readonly you coder and queries never get >> compiled and your app is slower. >> Erwin >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Saturday, February 14, 2004 2:15 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] increasing database size >> Hi Pedro >> If your frontend is not supposed to write data to itself, you may >> write protect the file when you have finished design changes and >> compacting. From andy at minstersystems.co.uk Sun Feb 15 11:13:09 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 15 Feb 2004 17:13:09 -0000 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <01c601c3f3e7$00e86110$b274d0d5@minster33c3r25> (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 14 February 2004 23:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > And at the risk of being flamed for a me too -- I'll brave it > -- thank you for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I > got the good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From carbonnb at sympatico.ca Sun Feb 15 13:01:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 15 Feb 2004 14:01:35 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <01c601c3f3e7$00e86110$b274d0d5@minster33c3r25> References: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <402F7BBF.21077.10EC5F4@localhost> On 15 Feb 2004 at 17:13, Andy Lacey wrote: > (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > > Andy Lacey I appreciate the sentiment Andy, but lets not. I'll just ban 'em instead :-)))) -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. From dw-murphy at cox.net Sun Feb 15 14:38:18 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Sun, 15 Feb 2004 12:38:18 -0800 Subject: [AccessD] Hiding Table in mde In-Reply-To: <003101c3f3da$28d08480$6601a8c0@HAL9002> Message-ID: <000201c3f403$a4bdfea0$8500a8c0@CX615377a> One way to do this is to not put it in the database, but use an external file that is encrypted. Set the system up so it won't run if the file isn't present and make the file hard for folks to find. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Sunday, February 15, 2004 7:41 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Hiding Table in mde Dear List: Is there a way to prevent a user from importing a table from an mde into an mdb without putting a password on the mde? I'm trying to build a serial number/upgrade/license extension function into an app and will be storing the data in a front end table. TIA, Rocky Smolin Beach Access Software _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sun Feb 15 14:52:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 15 Feb 2004 21:52:19 +0100 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk><000f01c3f300$ff5b9f10$6601a8c0@HAL9002><002801c3f347$79968100$f2c581d5@pedro> <1651569526.20040215102304@cactus.dk> Message-ID: <001901c3f405$9baf32f0$f2c581d5@pedro> Hi, thank you all for the help on the increasing database, the speed problem of the form and back-frontend help. Pedro ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, February 15, 2004 10:23 AM Subject: Re: [AccessD] increasing database size > Hi Pedro > > The main advantage is that you separate design from data; this eases > development of the frontend and backup of the backend. > > The main disadvantage is that you need to reattach the backend if it > is moved to another folder. In a controlled environment, you can > simply use the wizard to reattach the backend; if not, several > utilities are available for free - just do a search in the archives > for reattach or relink. > > /gustav > > > > all of the databases that i have designed at work or at home don't have > > backend and frontend. A maximum of 6 users are working with them. In this > > group i heard a lot about front- and backend. Could you give me the > > advantage and disadvantage of this method. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Sun Feb 15 15:08:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sun, 15 Feb 2004 15:08:42 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227888@main2.marlow.com> Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a limited IIS server. (In 98, it's a personal webserver). I think it's limited to 5 simultaneous connections. However, that is only going to allow of transfering the entire .mdb, it won't allow for linked tables from a web clients Access FE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/13/04 11:06 PM Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Sun Feb 15 17:03:54 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Mon, 16 Feb 2004 10:03:54 +1100 Subject: [AccessD] Product Launched - Thanks to AccessD References: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <007a01c3f417$fc7cd350$6401a8c0@user> I can see you've put a huge amount of work into that. It looks great - nice looking website - wish you every success. Kath ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: AccessD at databaseadvisors.com Sent: Saturday, February 14, 2004 6:11 AM Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Feb 15 17:32:35 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 15 Feb 2004 16:32:35 -0700 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <251770-220042015233235210@christopherhawkins.com> Rocky, Congratulations. I know that what you have built is no small feat - I had to build an MRP system for a $30 million company a few years back. It's hard work, and you seem to have done a great job. I hope this goes over big! -Christopher- ---- Original Message ---- From: bchacc at san.rr.com To: AccessD at databaseadvisors.com, Subject: RE: [AccessD] Product Launched - Thanks to AccessD Date: Fri, 13 Feb 2004 11:11:13 -0800 >Dear List: > >Beach Access Software is pleased to announce the launch of E-Z-MRP, >an integrated manufacturing system for small manufacturers. Well, >relaunch, actually, since it was first brought out in 1985 under the >DOS operating system. This time it is written in Microsoft's Access. > >Here's the web site: http://www.e-z-mrp.com. Please take a look. > >I owe a great debt to all those who have been so generous with their >time and knowledge over the years. Without them, this product >would not have been created (as it is, there are still a few unbound >forms in it :). > >As usual, thanks in advance any feedback on the site or the product >will be greatly appreciated. > >And thanks in advance for any referrals. We are going to try to >make a living this year. :) > > >With best regards, > >Rocky Smolin >Beach Access Software > >News Release >For Immediate Release >Contact: Rocky Smolin >Beach Access Software >13614 Boquita Drive >Del Mar, CA 92014 USA >1-858-259-4334 >http:\\www.e-z-mrp.com > > > > >NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > >Del Mar, California; March 1, 2004 - - Beach Access Software, >formerly C. R. Smolin, Inc., announces the release of Version 20 of >E-Z-MRPT, an integrated manufacturing system for small- and >medium-sized manufacturers. > > > >E-Z-MRPT was first released under the DOS operating system in 1985, >and achieved great success and widespread use with hundreds of >customers around the world. > >The system has been successfully implemented in a wide variety of >small manufacturing companies such as medical instrumentation, >appliances, automotive, pharmaceutical, furniture, spraying systems, >orthodontics, firearms, as well as finding use as an instructional >aid in universities. It works just as well in job shop or >build-to-order environments as in build-to-stock or >build-to-forecast operations. > >In previous versions, it was translated into five languages and >distributed in countries throughout the world. > >The system has now been completely rewritten using Microsoft's >Access Database Management System - a component of the popular >Microsoft Office Suite - making it compatible with a wide variety of >third-party products. > >"E-Z-MRPT made running an MRP system possible for hundreds of small >manufacturers who had neither the time, the money, nor the expertise >to implement a conventional manufacturing system," says Rocky >Smolin, President of Beach Access Software. "E-Z-MRPT in this new >release is still arguably the simplest approach to MRP and the >easiest to implement of any MRP system in software history. " > >"It was designed to be used by people who do not have degrees or >certification in manufacturing systems. It requires no on-site >training or consultation. And it has cut the standard 18-month MRP >implementation cycle to as little as 18 days." > >The package includes a full-featured Bill of Materials processor, a >material planning and tracking module that tracks all sales orders, >forecasts, work orders (planned, firm, and released), purchase >orders, shortages, and raw materials and finished goods inventories, >with a complete audit trail on all inventory transactions. > >Also included in E-Z-MRPT is a physical inventory function and a >purchase order module for printing purchase orders. > >And, like previous versions, E-Z-MRPT supports multiple databases, >making it easy to do simulations or answer "what-if" questions >without disrupting the production database. > >The total cost of E-Z-MRPT is $2995, a fraction of the cost of >systems with similar power and capabilities. It will run on any >Windows-based PC or network, and requires only Access 2000 or Access >XP to run. > >No on-site or remote training is required. A comprehensive user >manual with tutorials provides all the required instruction. > >For more information, and user testimonials, visit the company's web >site: http://www.e-z-mrp.com, or call 858-259-4334. > ># # # > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From clh at christopherhawkins.com Sun Feb 15 17:33:28 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 15 Feb 2004 16:33:28 -0700 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <45230-220042015233328117@christopherhawkins.com> Rocky, Congratulations. I know that what you have built is no small feat - I had to build an MRP system for a $30 million company a few years back. It's hard work, and you seem to have done a great job. I hope this goes over big! -Christopher- ---- Original Message ---- From: bchacc at san.rr.com To: AccessD at databaseadvisors.com, Subject: RE: [AccessD] Product Launched - Thanks to AccessD Date: Fri, 13 Feb 2004 11:11:13 -0800 >Dear List: > >Beach Access Software is pleased to announce the launch of E-Z-MRP, >an integrated manufacturing system for small manufacturers. Well, >relaunch, actually, since it was first brought out in 1985 under the >DOS operating system. This time it is written in Microsoft's Access. > >Here's the web site: http://www.e-z-mrp.com. Please take a look. > >I owe a great debt to all those who have been so generous with their >time and knowledge over the years. Without them, this product >would not have been created (as it is, there are still a few unbound >forms in it :). > >As usual, thanks in advance any feedback on the site or the product >will be greatly appreciated. > >And thanks in advance for any referrals. We are going to try to >make a living this year. :) > > >With best regards, > >Rocky Smolin >Beach Access Software > >News Release >For Immediate Release >Contact: Rocky Smolin >Beach Access Software >13614 Boquita Drive >Del Mar, CA 92014 USA >1-858-259-4334 >http:\\www.e-z-mrp.com > > > > >NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > >Del Mar, California; March 1, 2004 - - Beach Access Software, >formerly C. R. Smolin, Inc., announces the release of Version 20 of >E-Z-MRPT, an integrated manufacturing system for small- and >medium-sized manufacturers. > > > >E-Z-MRPT was first released under the DOS operating system in 1985, >and achieved great success and widespread use with hundreds of >customers around the world. > >The system has been successfully implemented in a wide variety of >small manufacturing companies such as medical instrumentation, >appliances, automotive, pharmaceutical, furniture, spraying systems, >orthodontics, firearms, as well as finding use as an instructional >aid in universities. It works just as well in job shop or >build-to-order environments as in build-to-stock or >build-to-forecast operations. > >In previous versions, it was translated into five languages and >distributed in countries throughout the world. > >The system has now been completely rewritten using Microsoft's >Access Database Management System - a component of the popular >Microsoft Office Suite - making it compatible with a wide variety of >third-party products. > >"E-Z-MRPT made running an MRP system possible for hundreds of small >manufacturers who had neither the time, the money, nor the expertise >to implement a conventional manufacturing system," says Rocky >Smolin, President of Beach Access Software. "E-Z-MRPT in this new >release is still arguably the simplest approach to MRP and the >easiest to implement of any MRP system in software history. " > >"It was designed to be used by people who do not have degrees or >certification in manufacturing systems. It requires no on-site >training or consultation. And it has cut the standard 18-month MRP >implementation cycle to as little as 18 days." > >The package includes a full-featured Bill of Materials processor, a >material planning and tracking module that tracks all sales orders, >forecasts, work orders (planned, firm, and released), purchase >orders, shortages, and raw materials and finished goods inventories, >with a complete audit trail on all inventory transactions. > >Also included in E-Z-MRPT is a physical inventory function and a >purchase order module for printing purchase orders. > >And, like previous versions, E-Z-MRPT supports multiple databases, >making it easy to do simulations or answer "what-if" questions >without disrupting the production database. > >The total cost of E-Z-MRPT is $2995, a fraction of the cost of >systems with similar power and capabilities. It will run on any >Windows-based PC or network, and requires only Access 2000 or Access >XP to run. > >No on-site or remote training is required. A comprehensive user >manual with tutorials provides all the required instruction. > >For more information, and user testimonials, visit the company's web >site: http://www.e-z-mrp.com, or call 858-259-4334. > ># # # > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From d.dick at uws.edu.au Sun Feb 15 19:58:41 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 12:58:41 +1100 Subject: [AccessD] A2K: Package and Deployment Wizard Message-ID: <00f401c3f430$6712f8d0$48619a89@DDICK> Hello all How do I get the package and deployment wizard happening from Access 2000? I need to distribute an app real quick. I know most of you would refer me to Wise-SageKey et al, but these are not options for me (yet) I have the MS developer edition installed. What do I have to do to start the P&D wizard for Access. I especially need to it distribute the (ridiculously bloated) runtime version of A2000 Many thanks in advance Darren From d.dick at uws.edu.au Sun Feb 15 20:41:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 13:41:39 +1100 Subject: [AccessD] A2K: Office Dev Edition Not starting Message-ID: <060f01c3f436$6922de50$48619a89@DDICK> Hello all Now when I put in disk 1 of My MSODE 2000, I get the following error. Any one seen it or know a work around. I do have Office 2000 installed, I do have VBA installed(This is my development machine for Access) I searched the MS website and the KB articles. Nothing with any of this text showed up - Help Darren Error Message Microsoft Office 2000 Developer Edition requires visual Basic for Applications 6.0 Before installing Microsoft Office 2000 Developer, install Office 2000 or another application that contains Visual Basic for Applications 6.0 From andrew.haslett at ilc.gov.au Sun Feb 15 21:23:53 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Mon, 16 Feb 2004 13:53:53 +1030 Subject: [AccessD] A2K: Office Dev Edition Not starting Message-ID: Download the latest Jet / MDAC updates. One of them usually contains a VBA version. You can also do a repair/custom re-install of office and de-select select VBA (under shared section I think). Cheers, Andrew -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 16 February 2004 1:12 PM To: AccessD List Subject: [AccessD] A2K: Office Dev Edition Not starting Hello all Now when I put in disk 1 of My MSODE 2000, I get the following error. Any one seen it or know a work around. I do have Office 2000 installed, I do have VBA installed(This is my development machine for Access) I searched the MS website and the KB articles. Nothing with any of this text showed up - Help Darren Error Message Microsoft Office 2000 Developer Edition requires visual Basic for Applications 6.0 Before installing Microsoft Office 2000 Developer, install Office 2000 or another application that contains Visual Basic for Applications 6.0 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From stuart at pacific.net.hk Sun Feb 15 23:46:29 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 16 Feb 2004 13:46:29 +0800 Subject: [AccessD] A2K: Office Dev Edition Not starting In-Reply-To: <060f01c3f436$6922de50$48619a89@DDICK> Message-ID: <004c01c3f450$3a450a30$0fcb11d2@BITSNB02> I hit this once ... But I can't remember how I got rid of it. I think I tried installing it without going through the CD installer. Let me see if I can find anything. Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, 16 February, 2004 10:42 AM > To: AccessD List > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > Hello all > Now when I put in disk 1 of My MSODE 2000, I get the following error. > Any one seen it or know a work around. > I do have Office 2000 installed, I do have VBA installed(This > is my development machine for Access) > I searched the MS website and the KB articles. > Nothing with any of this text showed up - Help > > Darren > > Error Message > Microsoft Office 2000 Developer Edition requires visual Basic > for Applications 6.0 Before installing Microsoft Office 2000 > Developer, install Office 2000 or another application that > contains Visual Basic for Applications 6.0 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Sun Feb 15 23:54:40 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 15 Feb 2004 21:54:40 -0800 Subject: [AccessD] Hiding Table in mde References: <000201c3f403$a4bdfea0$8500a8c0@CX615377a> Message-ID: <006a01c3f451$5e990200$6601a8c0@HAL9002> Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an external > file that is encrypted. Set the system up so it won't run if the file > isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde into > an mdb without putting a password on the mde? I'm trying to build a > serial number/upgrade/license extension function into an app and will be > storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 pacific.net.hk Mon Feb 16 00:07:00 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 16 Feb 2004 14:07:00 +0800 Subject: [AccessD] A2K: Office Dev Edition Not starting In-Reply-To: <004c01c3f450$3a450a30$0fcb11d2@BITSNB02> Message-ID: <004d01c3f453$1741d880$0fcb11d2@BITSNB02> It was as I thought I remembered. For some reason the KB article doesn't show when you search using the exact error. http://support.microsoft.com/default.aspx?scid=kb;en-us;322632 You need to run acmboot.exe from cd. Don't use the autorun feature. Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart Sanders > Sent: Monday, 16 February, 2004 1:46 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > > > I hit this once ... But I can't remember how I got rid of it. > > I think I tried installing it without going through the CD installer. > > Let me see if I can find anything. > > Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Darren DICK > > Sent: Monday, 16 February, 2004 10:42 AM > > To: AccessD List > > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > > > > Hello all > > Now when I put in disk 1 of My MSODE 2000, I get the > following error. > > Any one seen it or know a work around. > > I do have Office 2000 installed, I do have VBA installed(This > > is my development machine for Access) > > I searched the MS website and the KB articles. > > Nothing with any of this text showed up - Help > > > > Darren > > > > Error Message > > Microsoft Office 2000 Developer Edition requires visual Basic > > for Applications 6.0 Before installing Microsoft Office 2000 > > Developer, install Office 2000 or another application that > > contains Visual Basic for Applications 6.0 > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KevinR at nrhs.health.nsw.gov.au Mon Feb 16 00:21:08 2004 From: KevinR at nrhs.health.nsw.gov.au (Kevin Roberts) Date: Mon, 16 Feb 2004 17:21:08 +1100 Subject: [AccessD] passing parameters to data access page Message-ID: Anyone used a browsercontrol and data access page as a subform and successfully passed a parameter to it..... Kevin From d.dick at uws.edu.au Mon Feb 16 00:24:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 17:24:56 +1100 Subject: [AccessD] A2K: Office Dev Edition Not starting References: <004d01c3f453$1741d880$0fcb11d2@BITSNB02> Message-ID: <064a01c3f455$989cb470$48619a89@DDICK> Thanks Stuart et al I remembered the "acmboot.exe" solution after I sent the post Thanks you all for responding The Package and Deployment wizard with A2K is a complete load of crap Who got paid to develop this rubbish? Found a freeware monster from the net "Setup Specialist" Still doesn't sort out the Runtime Problems :-(( I'll have to copy the runtime directory and install it if access don't exist - bugger See y'all Darren ----- Original Message ----- From: "Stuart Sanders" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 16, 2004 5:07 PM Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > It was as I thought I remembered. For some reason the KB article doesn't show > when you search using the exact error. > > http://support.microsoft.com/default.aspx?scid=kb;en-us;322632 > > You need to run acmboot.exe from cd. Don't use the autorun feature. > > Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Stuart Sanders > > Sent: Monday, 16 February, 2004 1:46 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > > > > > > I hit this once ... But I can't remember how I got rid of it. > > > > I think I tried installing it without going through the CD installer. > > > > Let me see if I can find anything. > > > > Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Darren DICK > > > Sent: Monday, 16 February, 2004 10:42 AM > > > To: AccessD List > > > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > > > > > > > Hello all > > > Now when I put in disk 1 of My MSODE 2000, I get the > > following error. > > > Any one seen it or know a work around. > > > I do have Office 2000 installed, I do have VBA installed(This > > > is my development machine for Access) > > > I searched the MS website and the KB articles. > > > Nothing with any of this text showed up - Help > > > > > > Darren > > > > > > Error Message > > > Microsoft Office 2000 Developer Edition requires visual Basic > > > for Applications 6.0 Before installing Microsoft Office 2000 > > > Developer, install Office 2000 or another application that > > > contains Visual Basic for Applications 6.0 > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Feb 16 00:31:58 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 15 Feb 2004 22:31:58 -0800 Subject: [AccessD] Database Operation from Remote Sites References: <2F8793082E00D4119A1700B0D0216BF802227888@main2.marlow.com> Message-ID: <403063DE.7000908@shaw.ca> Windows Terminal Server 2003 maybe have a look around here, Dunno about liscensing. http://www.termservhub.com/ DWUTKA at marlow.com wrote: >Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a >limited IIS server. (In 98, it's a personal webserver). I think it's >limited to 5 simultaneous connections. > >However, that is only going to allow of transfering the entire .mdb, it >won't allow for linked tables from a web clients Access FE. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >To: Access Developers discussion and problem solving >Sent: 2/13/04 11:06 PM >Subject: RE: [AccessD] Database Operation from Remote Sites > >Hi Drew: > >The remote PC will probably be connected by a static internet >connection. Is >there a PC-XP (IIS like environment?)...never checked into it. > >The venue will be a kiosk type stand-alone PC. Client decided that >Access >would produce the best user interface...good so far. There is a >permanent >Internet connection that can be accessed from their web server...still >OK. >Now the question is how to get the Remote to actually host. If it can >host >like a web server, the remote PC MDB data can be accessed and problem is >solved > >If the station was a 2000 Server or something similar problem would be >solved but costs as they are... > >Any suggestions? >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Friday, February 13, 2004 9:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >What kind of 'connection' are you asking for? Do you need a connection >where an Access FE has linked tables, or do you just want to copy data >back >and forth? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Thursday, February 12, 2004 7:23 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Hi Drew and others: > >What would be the best way to connect to a MDB, on a remote PC, >connected to >the internet, with an XP OS. > >IP address would be static. The connecting host would be anything from >Windows2000 or Linux Server etc. > >Any suggestions on best methods. Oh, yes the access must be either >manual or >automated depending on requirements. > >MTIA >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, February 12, 2004 9:45 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >I see, that is a lot to ask for. Let me explain how I learned ASP. I >had >been developing in VB, and in Access. I liked both. I switched our >company's Intranet from a file server, to an actual IIS server (web >server). >This allowed for server side scripting, so I just decided to tinker. >ASP is >actually pretty simple (I'm almost ashamed to admit this, but I just >recently discovered 'conditional' HTML (I think that's what you call >it), >which makes ASP even that much easier to develop in). What you really >need >to learn is HTML, and a little about how web pages work. > >Anyhow, I just began to tinker. > >I started with a db, with a table, and I wanted to see how to get the >data >pushed from the db, into a webpage. > >So, I built the following page: (Or something close to it) > ><% >dim cnn >dim rs >dim strSQL >set cnn=server.createobject("ADODB.Connection") >set rs=server.createobject("ADODB.Recordset") >strSQL="SELECT MyField FROM tblMyTable" >cnn.Provider="Microsoft.Jet.OLEDB.4.0" >cnn.Open "D:\Mydatabase.mdb" >rs.open strSQL,cnn,1,1 >rs.MoveFirst >Do Until rs.EOF=True > response.write rs.Fields(0).value > rs.MoveNext >Loop >rs.close >cnn.close >set rs=nothing >set cnn=nothing >%> > >sure enough, I then had an asp page full of one field out of my table. > >I then began tweaking the HTML, so instead of 'response.write >rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' > >Which now put the data down a row. the 'source' behind the page, >however >was still one big line, which is a nightmare to try and decipher, so I >changed that line to 'response.write rs.Fields(0).value & "
" & >vbcrlf'. >Now the page showed a 'column', and the source showed a column too. >Much >easier to read from both aspects. > >>From there on, I then had to learn about how to 'get' data from an ASP >page. >As you can see, pushing data out is easy, getting it turns out to be >just as >easy. I wrote/posted a beginners guide to ASP (it should be on my >website...http://www.wolfwares.com. It goes into pushing data from a >db, to >a website, and getting data from a web client. > >A few tricks I have picked up, which aren't in those documents, but >would >have been something I would have REALLY liked to have known when I was >starting out. > >First, in the sample code above, if the line 'rs.MoveNext' was removed, >or >never present in the first place, you will have just sent the IIS server >into an endless loop. In VB, or VBA, you would just hit ctrl-break, and >stop the code. However, you don't have that sort of access to the ASP >'engine'. However, if you run 'iisreset' from a command line (or >Start-->run-->iisreset), it will 'restart' the webserver, even if it's >in an >endless loop. (Stopping the actual Web service won't do this, the >stopping >process just hangs). > >Next, the 'conditional' HTML I mentioned is REALLY handy. > >You can use ASP to either show/hide HTML, or even repeat it. > >For instance, if I wanted to display a certain note, if there were no >records, I could do this (assume the first part of the code above): > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%end if%> > >That HTML, will only be displayed, if the conditional statement in the >ASP >let's it by, otherwise the HTML before the ASP's end if (or else, if you >use >that) will be skipped. > >You can also 'repeat' HTML that way, for instance: > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%else%> > > <% > rs.movefirst > do until rs.EOF=True > %> > > > > <% > loop > %> >
<%=rs.Fields(0).value%>
><%end if%> > >Kind of handy. Hope this helps you on your way! > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Wednesday, February 11, 2004 5:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Drew, thanks for your info so far. I would like to see the in and out of >how >to create something if that is not too big an ask, but any info would be >good. > >Terry Mace > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Thursday, 12 February 2004 09:53 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >By sample/demo, do you mean a complete in and out look at how to create >something, or just a working ASP interface? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >Helmut.E.Kotsch at t-online.de >Sent: Wednesday, February 11, 2004 12:45 AM >To: Access Developers discussion and problem solving >Subject: AW: [AccessD] Database Operation from Remote Sites > > >Good morning, >where could I find a sample / demo for the ASP approach? > >Regards Helmut Kotsch > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von >DWUTKA at marlow.com >Gesendet: Mittwoch, 11. Februar 2004 02:43 >An: accessd at databaseadvisors.com >Betreff: RE: [AccessD] Database Operation from Remote Sites > > >ASP is a very good approach for multi-site systems. The real question >is >how complex is the data entry? If you are only talking about a few >forms, >then ASP is the way to go. Have Site1 host the ASP pages, with the db >on >their network. That would allow for no modifications necessary for the >data >mining process. > >However, if the data entry is very complex, you may want to go with a >Citrix/TS approach. More costly to initially implement, but no real >'development' would be required. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, February 10, 2004 6:41 PM >To: 'AccessD at databaseadvisors.com' >Subject: [AccessD] Database Operation from Remote Sites > > >Hi all, > >I'm after some information on the best way to proceed with the expansion >of >an existing Access97 database application which is used for maintenance >activity recording. > >My company currently runs this database at two sites, call them Site1 >and >Site2. The BE is changed at Site2 as a function of its operations, each >night the BE is copied to Site1 where it is used for admin and data >mining >purposes with the data acknowledged as being up to 24hrs out of date. >This >has served the company well up to now as only one site can change the >data. > >The company now want to expand the number of sites that use and i/p >data. > >The new layout will have at least 4 sites. Site1 will be the admin and >data >mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, >and 3 >are on a WAN with Site3 being the companies main site and hosting the >companies Internet gateway. Site4 is overseas and not on the WAN. > >What I would like is some idea of the best approach - I have read a bit >about replication and ASP but have no practical experience with either. > >Thanks for any assistance. > > >Terry Mace >Logistic Support Officer & Maintenance Supervisor >BAE SYSTEMS >677 Victoria Street, >Abbotsford, VIC 3067 >Ph: +61 3 9208 0924 >Fax: +61 3 9208 0588 >Mailto: terry.mace at baesystems.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Mon Feb 16 01:27:19 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 16 Feb 2004 08:27:19 +0100 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2BC@stekelbes.ithelps.local> Hi Sorry to drop in just like that.... I have not folowed the thread. You have to carefuly watch out for the speed over the internet. Therefor ASP/ASPX is prefered to use to due speed limitations. An xDSL line for example has a different speed upstream than downstream. For example ADSL for private use here in Belgium has today a 3Mb bandwith downstream but only 128Kb upstream. If you have that on both sides you maximal bandwith in both directions will be only 128Kb. 128Kb is 2x ISDN or +/- 2x the speed of a classical analogue modem. Linking a MDB and working in it at that speed (with VPN for example) is very difficult and can cuase corruptions. Using ASP/ASPX is a better way, but if you need to share that 128Kb with more than one user thats gonna slow.... So first check what upstream speeds you have available. Thats pretty easy to to. Upload a file with WS-FTP to a speedy server and watch the speed you have. This is the upstream from the connection where you are. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Sunday, February 15, 2004 10:09 PM To: accessd at shaw.ca; accessd-bounces at databaseadvisors.com; accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a limited IIS server. (In 98, it's a personal webserver). I think it's limited to 5 simultaneous connections. However, that is only going to allow of transfering the entire .mdb, it won't allow for linked tables from a web clients Access FE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/13/04 11:06 PM Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Mon Feb 16 03:03:26 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Mon, 16 Feb 2004 09:03:26 -0000 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <61F915314798D311A2F800A0C9C83188047C6AD4@dibble.observatory.donnslaw.co.uk> yikes! me too, me too! ;) Roz -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 15 February 2004 17:13 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Administrivia - Software Updates Done (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 14 February 2004 23:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > And at the risk of being flamed for a me too -- I'll brave it > -- thank you for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I > got the good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From accessd667 at yahoo.com Mon Feb 16 03:04:20 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:04:20 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <20040216090420.29222.qmail@web61109.mail.yahoo.com> Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Mon Feb 16 03:14:06 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Mon, 16 Feb 2004 09:14:06 -0000 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <61F915314798D311A2F800A0C9C83188047C6AD5@dibble.observatory.donnslaw.co.uk> Rocky Looks like a killer app. - Great testimonials! Best of luck with it. The site is excellent. Can't say too much about the app., as I know less than nothing about MRP, but I'm sure it'll do great. Roz -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: 13 February 2004 19:11 To: AccessD at databaseadvisors.com Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:17:44 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:17:44 +0100 (CET) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <21663556.1076923064752.JavaMail.www@wwinf3002> SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Mon Feb 16 03:24:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 10:24:50 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! In-Reply-To: <20040216090420.29222.qmail@web61109.mail.yahoo.com> References: <20040216090420.29222.qmail@web61109.mail.yahoo.com> Message-ID: <1737532631.20040216102450@cactus.dk> Hi Sander It sounds like you have become a victim of non-internationalized code. But it is hard to tell with no code and no info on how you are using it. /gustav > I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? > When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? > The function below has the following values (after selecting januari 4th 2004): > Year = 2004 > Month = 1 > Day = 4 > Public Property Get Value() As Date > Value = DateSerial( _ > Me.Year, Me.Month, Me.Day) > End Property > i'm using > A2k english > Win2000 (reg settings => english; date = dd/mm/yyyy) From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-SQLServer] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Feb 16 03:28:38 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:28:38 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! In-Reply-To: <21663556.1076923064752.JavaMail.www@wwinf3002> Message-ID: <20040216092838.42170.qmail@web61108.mail.yahoo.com> Nope. Tried that already. thnx for the tip anyway paul.hartland at fsmail.net wrote: SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd667 at yahoo.com Mon Feb 16 03:37:07 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:37:07 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info In-Reply-To: <1737532631.20040216102450@cactus.dk> Message-ID: <20040216093707.63590.qmail@web61110.mail.yahoo.com> I'm creating a sql string to fill a table. The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. The destination table has also a datefield without formatting. I use this code to show the date on screen: txtEindDatum = adhDoCalendar(txtEindDatum) This date is put inside an array (date) like this: Dim arrDates() As Date '----------------------------------------------- 'Step 1: Fill Date Array '----------------------------------------------- Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer Dim intCounter As Integer On Error GoTo CalculateDays_Error intCounter = 0 Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) ReDim Preserve arrDates(intCounter) arrDates(intCounter) = dtmStartDatum If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then intCounter = intCounter + 1 dtmStartDatum = dtmStartDatum + 1 Else Exit Do End If Loop 'intCountDate = UBound(arrDates) CalculateDays = UBound(arrDates) 'CalculateDays = intCountDate CalculateDays_Exit: ' Collect your garbage here Exit Function CalculateDays_Error: ' Collect your garbage here MsgBox "An error occured!" & vbCrLf & _ "Error number : " & Err.Number & vbCrLf & _ "Error description: " & Err.Description & vbCrLf & _ "Error source : " & Err.Source GoTo CalculateDays_Exit End Function Then I build the select statement: For intCountDate = 0 To UBound(arrDates) 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") dtmCurrDate = arrDates(intCountDate) ..... ..... If IsWeekend(dtmCurrDate) Then 'check if 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") strWhere = "WHERE a.date = #" & dtmCurrDate & "# " ... .... Function IsWeekend(dtmDate As Date) As Boolean On Error GoTo IsWeekend_Error 'Check to See if Weekend If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then IsWeekend = True Else IsWeekend = False End If IsWeekend_Exit: ' Collect your garbage here Exit Function IsWeekend_Error: ' Collect your garbage here MsgBox "An error occured!" & vbCrLf & _ "Error number : " & Err.Number & vbCrLf & _ "Error description: " & Err.Description & vbCrLf & _ "Error source : " & Err.Source GoTo IsWeekend_Exit End Function I don't see anything funny, anybody else? SD Gustav Brock wrote: Hi Sander It sounds like you have become a victim of non-internationalized code. But it is hard to tell with no code and no info on how you are using it. /gustav > I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? > When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? > The function below has the following values (after selecting januari 4th 2004): > Year = 2004 > Month = 1 > Day = 4 > Public Property Get Value() As Date > Value = DateSerial( _ > Me.Year, Me.Month, Me.Day) > End Property > i'm using > A2k english > Win2000 (reg settings => english; date = dd/mm/yyyy) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Mon Feb 16 03:41:58 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:41:58 +0100 (CET) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <20481986.1076924518150.JavaMail.www@wwinf3002> SD, So I presume that Me.Year, Me.Month, Me.Day are all separate text boxes, have you tried the following : Dim dtDate as Date dtDate = Me.Day & ?/? & Me.Month & ?/? & Me.Year Paul Message date : Feb 16 2004, 09:31 AM >From : "S D" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] adhbCalendar returns INCORRECT value?! Nope. Tried that already. thnx for the tip anyway paul.hartland at fsmail.net wrote: SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Mon Feb 16 04:00:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 11:00:55 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info In-Reply-To: <20040216093707.63590.qmail@web61110.mail.yahoo.com> References: <20040216093707.63590.qmail@web61110.mail.yahoo.com> Message-ID: <1939697804.20040216110055@cactus.dk> Hi Sander I would check two things. 1. The input looks like coming from a textbox. If a Debug.Print shows wrongly translated dates, try: Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) 2. Date expression in SQL must be US formatted according to the Lembit method: strWhere = "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " /gustav > I'm creating a sql string to fill a table. > The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. > The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. > The destination table has also a datefield without formatting. > I use this code to show the date on screen: > txtEindDatum = adhDoCalendar(txtEindDatum) > This date is put inside an array (date) like this: > Dim arrDates() As Date > '----------------------------------------------- > 'Step 1: Fill Date Array > '----------------------------------------------- > Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) > Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer > Dim intCounter As Integer > On Error GoTo CalculateDays_Error > intCounter = 0 > Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) > ReDim Preserve arrDates(intCounter) > arrDates(intCounter) = dtmStartDatum > If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then > intCounter = intCounter + 1 > dtmStartDatum = dtmStartDatum + 1 > Else > Exit Do > End If > Loop > 'intCountDate = UBound(arrDates) > CalculateDays = UBound(arrDates) > 'CalculateDays = intCountDate > CalculateDays_Exit: > ' Collect your garbage here > Exit Function > CalculateDays_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo CalculateDays_Exit > End Function > Then I build the select statement: > For intCountDate = 0 To UBound(arrDates) > 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") > dtmCurrDate = arrDates(intCountDate) > ..... > ..... > If IsWeekend(dtmCurrDate) Then > 'check if > 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") > strWhere = "WHERE a.date = #" & dtmCurrDate & "# " > ... > .... > Function IsWeekend(dtmDate As Date) As Boolean > On Error GoTo IsWeekend_Error > 'Check to See if Weekend > If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then > IsWeekend = True > Else > IsWeekend = False > End If > IsWeekend_Exit: > ' Collect your garbage here > Exit Function > IsWeekend_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo IsWeekend_Exit > End Function > I don't see anything funny, anybody else? > SD > Gustav Brock wrote: > Hi Sander > It sounds like you have become a victim of non-internationalized code. > But it is hard to tell with no code and no info on how you are using > it. > /gustav >> I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? >> When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? >> The function below has the following values (after selecting januari 4th 2004): >> Year = 2004 >> Month = 1 >> Day = 4 >> Public Property Get Value() As Date >> Value = DateSerial( _ >> Me.Year, Me.Month, Me.Day) >> End Property >> i'm using >> A2k english >> Win2000 (reg settings => english; date = dd/mm/yyyy) From accessd667 at yahoo.com Mon Feb 16 08:34:57 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 06:34:57 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info SOLVED In-Reply-To: <1939697804.20040216110055@cactus.dk> Message-ID: <20040216143457.76855.qmail@web61101.mail.yahoo.com> Gustav, THANK YOU!!!!! When copy-pasted the code and ran the code I got a very big smile on my ugly face! WHY in G's name does this work? Sander Gustav Brock wrote: Hi Sander I would check two things. 1. The input looks like coming from a textbox. If a Debug.Print shows wrongly translated dates, try: Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) 2. Date expression in SQL must be US formatted according to the Lembit method: strWhere = "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " /gustav > I'm creating a sql string to fill a table. > The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. > The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. > The destination table has also a datefield without formatting. > I use this code to show the date on screen: > txtEindDatum = adhDoCalendar(txtEindDatum) > This date is put inside an array (date) like this: > Dim arrDates() As Date > '----------------------------------------------- > 'Step 1: Fill Date Array > '----------------------------------------------- > Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) > Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer > Dim intCounter As Integer > On Error GoTo CalculateDays_Error > intCounter = 0 > Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) > ReDim Preserve arrDates(intCounter) > arrDates(intCounter) = dtmStartDatum > If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then > intCounter = intCounter + 1 > dtmStartDatum = dtmStartDatum + 1 > Else > Exit Do > End If > Loop > 'intCountDate = UBound(arrDates) > CalculateDays = UBound(arrDates) > 'CalculateDays = intCountDate > CalculateDays_Exit: > ' Collect your garbage here > Exit Function > CalculateDays_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo CalculateDays_Exit > End Function > Then I build the select statement: > For intCountDate = 0 To UBound(arrDates) > 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") > dtmCurrDate = arrDates(intCountDate) > ..... > ..... > If IsWeekend(dtmCurrDate) Then > 'check if > 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") > strWhere = "WHERE a.date = #" & dtmCurrDate & "# " > ... > .... > Function IsWeekend(dtmDate As Date) As Boolean > On Error GoTo IsWeekend_Error > 'Check to See if Weekend > If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then > IsWeekend = True > Else > IsWeekend = False > End If > IsWeekend_Exit: > ' Collect your garbage here > Exit Function > IsWeekend_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo IsWeekend_Exit > End Function > I don't see anything funny, anybody else? > SD > Gustav Brock wrote: > Hi Sander > It sounds like you have become a victim of non-internationalized code. > But it is hard to tell with no code and no info on how you are using > it. > /gustav >> I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? >> When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? >> The function below has the following values (after selecting januari 4th 2004): >> Year = 2004 >> Month = 1 >> Day = 4 >> Public Property Get Value() As Date >> Value = DateSerial( _ >> Me.Year, Me.Month, Me.Day) >> End Property >> i'm using >> A2k english >> Win2000 (reg settings => english; date = dd/mm/yyyy) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From gustav at cactus.dk Mon Feb 16 09:09:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 16:09:40 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info SOLVED In-Reply-To: <20040216143457.76855.qmail@web61101.mail.yahoo.com> References: <20040216143457.76855.qmail@web61101.mail.yahoo.com> Message-ID: <1428223533.20040216160940@cactus.dk> Hi Sander > THANK YOU!!!!! > When copy-pasted the code and ran the code I got a very big smile on my ugly face! Very good! > WHY in G's name does this work? 1. Even if you format a textbox as date it still contains nothing more than a string or Null. Access tries at its best to turn that string into a date/time value but sometimes it gets confused if you include the value of the textbox in code. CDate() forces a conversion to a date/time value as early as possible. 2. Date/time values don't exist in SQL code other than by a string representation. If you include a date/time value in an SQL string in code, Access tries to convert this value to a string but it uses your local settings to create that string; this means that for most developers outside the US, the string will be formatted as dd/mm/yyyy or similar. However, the format must be in US format including the crazy time format with AM/PM if a time value is present. Format() can do that right away if you know how and that's Lembit's trick; to Format(), the slash "/" doesn't mean a slash but the date separator which, as to your local settings, may be replaced with a hyphen or a dot. Adding the backslash tells Format() to read and return the slash as a slash. If you are writing a lot of SQL code, this function may come in handy which also takes care of your hash marks "#": Public Function StrDateSQL(ByVal dat As Date) As String ' Formats full string of date/time in US format for SQL. ' Overrides local (non US) settings for date/time separators. ' Example output: ' ' #08/16/1998 04:03:36 PM# ' ' 1999-10-21. Cactus Data ApS, CPH. StrDateSQL = Format(dat, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") End Function /gustav > I would check two things. > 1. The input looks like coming from a textbox. If a Debug.Print shows > wrongly translated dates, try: > Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) > 2. Date expression in SQL must be US formatted according to the Lembit > method: > strWhere = > "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " From rl_stewart at highstream.net Mon Feb 16 10:15:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 10:15:48 -0600 Subject: [AccessD] Stored Procedure SQL IN Clause In-Reply-To: <200402160728.i1G7S4m29313@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com From rl_stewart at highstream.net Mon Feb 16 10:15:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 10:15:48 -0600 Subject: [AccessD] [dba-SQLServer] Stored Procedure SQL IN Clause In-Reply-To: <200402160728.i1G7S4m29313@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 16 11:44:40 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 16 Feb 2004 11:44:40 -0600 Subject: [AccessD] Stored Procedure SQL IN Clause Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE36C@TAPPEEXCH01> Normally for statements like these it is necessary to concatenate strings together and use the EXEC keyword to run the resulting string. For example: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS EXEC ('SELECT * FROM tblClient WHERE ResidenceType IN (' + @InClause + ')') Let me know if you find another way of doing this. -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, February 16, 2004 10:16 AM To: accessd at databaseadvisors.com Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] Stored Procedure SQL IN Clause All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From davide at dalyn.co.nz Mon Feb 16 13:00:37 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 17 Feb 2004 08:00:37 +1300 Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View In-Reply-To: <33430946.1076922207517.JavaMail.www@wwinf3002> Message-ID: <5.2.0.9.0.20040217075728.00b2cc70@mail.dalyn.co.nz> Paul, Were do you want the information to appear (in a sproc, in a spreadsheet ?) How are you extracting the data at the moment? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 At 16/02/2004, you wrote: >To all, > >I have a table in SQL Server 7.0 called tblClient with the following >fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > >I want the following fields ClientName, Addrs1, Addrs2, District, Town, >County, Postcode to appear as one line separated by a comma like below > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, District, Town, >Postcode > >As you can se from the example Addrs2 and County are missing, this is >because these are blank sometimes. I have tried a couple of ways but >always end up with the following > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , >Postcode > >As you can see where the missing fields are the comma?s still appear. Any >help on this will be gratefully received. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 16 13:41:36 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 13:41:36 -0600 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788B@main2.marlow.com> Yikes, better 'me too' before I get banned! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Sunday, February 15, 2004 1:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Administrivia - Software Updates Done On 15 Feb 2004 at 17:13, Andy Lacey wrote: > (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > > Andy Lacey I appreciate the sentiment Andy, but lets not. I'll just ban 'em instead :-)))) -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Mon Feb 16 15:24:08 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 16 Feb 2004 15:24:08 -0600 Subject: [AccessD] Remove Field Entry Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Is this the correct way to remove an entry with Me.ApproverID = Null? I tried Me.ApproverID.Undo instead, but the entry remains. I tried moving the code to BeforeUpdate and it still will not undo the entry, it requires the record to be saved first. I have never seen it done this way before (=Null) so I wasn't sure if it was the correct syntax. I do not want them entering their name in the ApprovalID or entering the approval date if the request is still open. Virginia Private Sub ApproverID_AfterUpdate() If IsNull(Me.DateCompleted) Then MsgBox "MMR must be completed before approving" Me.ApproverID = Null Me.DateCompleted.SetFocus End If End Sub From ssharkins at bellsouth.net Mon Feb 16 15:28:27 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 16 Feb 2004 16:28:27 -0500 Subject: [AccessD] Remove Field Entry In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Message-ID: <20040216212827.FJRZ23866.imf25aec.mail.bellsouth.net@SUSANONE> I do not want them entering their name in the ApprovalID or entering the approval date if the request is still open. ==========Why not just disable the control until the appropriate fields have been filled? Susan H. From andy at minstersystems.co.uk Mon Feb 16 15:29:38 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 16 Feb 2004 21:29:38 -0000 Subject: [AccessD] Remove Field Entry In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Message-ID: <030d01c3f4d3$fb61e700$b274d0d5@minster33c3r25> Virginia Assuming it's a bound field put this in the BeforeUpdate of the field (not the form's BeforeUpdate) If IsNull(Me.DateCompleted) Then MsgBox "MMR must be completed before approving" Me.ApproverID.Undo Cancel=True End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 16 February 2004 21:24 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Remove Field Entry > > > Is this the correct way to remove an entry with Me.ApproverID > = Null? I tried Me.ApproverID.Undo instead, but the entry > remains. I tried moving the code to BeforeUpdate and it still > will not undo the entry, it requires the record to be saved first. > > I have never seen it done this way before (=Null) so I wasn't > sure if it was the correct syntax. > > I do not want them entering their name in the ApprovalID or > entering the approval date if the request is still open. > > Virginia > > Private Sub ApproverID_AfterUpdate() > > If IsNull(Me.DateCompleted) Then > MsgBox "MMR must be completed before approving" > Me.ApproverID = Null > Me.DateCompleted.SetFocus > End If > > End Sub > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From jarus at amerinet-gpo.com Mon Feb 16 15:56:20 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Mon, 16 Feb 2004 15:56:20 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From bchacc at san.rr.com Mon Feb 16 18:19:43 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 16 Feb 2004 16:19:43 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: <61F915314798D311A2F800A0C9C83188047C6AD5@dibble.observatory.donnslaw.co.uk> Message-ID: <00a801c3f4eb$bde48d70$6601a8c0@HAL9002> Thanks. Rocky ----- Original Message ----- From: "Roz Clarke" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 16, 2004 1:14 AM Subject: RE: [AccessD] Product Launched - Thanks to AccessD > Rocky > > Looks like a killer app. - Great testimonials! Best of luck with it. > > The site is excellent. Can't say too much about the app., as I know less > than nothing about MRP, but I'm sure it'll do great. > > Roz > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: 13 February 2004 19:11 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an > integrated manufacturing system for small manufacturers. Well, relaunch, > actually, since it was first brought out in 1985 under the DOS operating > system. This time it is written in Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous with their time > and knowledge over the years. Without them, this product would not have > been created (as it is, there are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the product will be > greatly appreciated. > > And thanks in advance for any referrals. We are going to try to make a > living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. > R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an > integrated manufacturing system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and > achieved great success and widespread use with hundreds of customers around > the world. > > The system has been successfully implemented in a wide variety of small > manufacturing companies such as medical instrumentation, appliances, > automotive, pharmaceutical, furniture, spraying systems, orthodontics, > firearms, as well as finding use as an instructional aid in universities. > It works just as well in job shop or build-to-order environments as in > build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages and distributed > in countries throughout the world. > > The system has now been completely rewritten using Microsoft's Access > Database Management System - a component of the popular Microsoft Office > Suite - making it compatible with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of small > manufacturers who had neither the time, the money, nor the expertise to > implement a conventional manufacturing system," says Rocky Smolin, President > of Beach Access Software. "E-Z-MRPT in this new release is still arguably > the simplest approach to MRP and the easiest to implement of any MRP system > in software history. " > > "It was designed to be used by people who do not have degrees or > certification in manufacturing systems. It requires no on-site training or > consultation. And it has cut the standard 18-month MRP implementation cycle > to as little as 18 days." > > The package includes a full-featured Bill of Materials processor, a material > planning and tracking module that tracks all sales orders, forecasts, work > orders (planned, firm, and released), purchase orders, shortages, and raw > materials and finished goods inventories, with a complete audit trail on all > inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function and a purchase > order module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple databases, making it > easy to do simulations or answer "what-if" questions without disrupting the > production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with > similar power and capabilities. It will run on any Windows-based PC or > network, and requires only Access 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive user manual with > tutorials provides all the required instruction. > > For more information, and user testimonials, visit the company's web site: > http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 16 20:04:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 20:04:46 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788E@main2.marlow.com> Not sure why a handful of boolean fields is not normalized..... However, Jet does two bytes for a boolean field. Which is a waste of 15 bits! However, Unless you have a ton of records and/or have a massive amount of boolean fields, the space wasted is negligible. However, if you really want a method to cram them into one field, I would recommend a simple Byte field, versus a string field. First of all, with a string field, you will be using more space.....sort of. At a minimum, a string field takes up one byte. (Which tells Jet how long the data in the field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn 'off' and 'on', so you can represent up to 8 'programs' with one byte field. Still don't see a real advantage here.....unless you are dealing a heavily coded interface, then dealing with the bits is going to be faster then pulling strings apart. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 3:56 PM To: access Developers discussion and problem solving Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 16 21:11:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 16 Feb 2004 22:11:40 -0500 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? In-Reply-To: Message-ID: Terri, There is no "best" answer for this kind of question. Drew has pointed out some of the considerations, specifically the storage size etc. The most important thing to determine is "will there EVER be more of these things. If so then using fields just sucks since to add a new type you have to clear all the users out and add a new field, add it to queries, forms and reports. If these types may EVER change then adding a "child" table allows you to add in new types simply by adding a new record. That said, some types of reports are MORE difficult with child records since to see "counts" of these across a graph you now have to do crosstabs etc. If this is a "control"program where the types are well defined, there are just a handful, they can be implemented as bits in a long (for example) and you need SPEED in comparing them to values in other records then setting up bitmasks and representing them as bits in a long integer can be quite useful. So again, what is the end use? How many of these things are there? Can their names change over time? Can the number of them change over time? Are they used to switch on / off relays in an assembly line or map photocells in a control widget or just "label" an object or a property of an object? It sounds to me like you can have N of M of them for any given contract, the number of these codes could change over time (tomorrow you might need N of X of them), and thus the flexibility of a "lookup table" of these codes, with a m-m between the lookup table and the contract table would give the ability to handle anything that life might throw at you. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 4:56 PM To: accessd-owner at databaseadvisors.com Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Feb 16 22:13:49 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 16 Feb 2004 20:13:49 -0800 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? References: <2F8793082E00D4119A1700B0D0216BF80222788E@main2.marlow.com> Message-ID: <011901c3f50c$723da0c0$6601a8c0@HAL9002> Drew: In the old IBM 360 days, there was something called alignment where if you defined a byte field it had to be aligned on a word boundary anyway so you didn't save any space. (IIRC. Which is doubtful, in any event. ) Do you think it's the same in Jet where the byte field really takes up more than a byte? Rocky ----- Original Message ----- From: To: Sent: Monday, February 16, 2004 6:04 PM Subject: RE: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > Not sure why a handful of boolean fields is not normalized..... > > However, Jet does two bytes for a boolean field. Which is a waste of 15 > bits! However, Unless you have a ton of records and/or have a massive amount > of boolean fields, the space wasted is negligible. > > However, if you really want a method to cram them into one field, I would > recommend a simple Byte field, versus a string field. First of all, with a > string field, you will be using more space.....sort of. At a minimum, a > string field takes up one byte. (Which tells Jet how long the data in the > field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your > example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn > 'off' and 'on', so you can represent up to 8 'programs' with one byte field. > > Still don't see a real advantage here.....unless you are dealing a heavily > coded interface, then dealing with the bits is going to be faster then > pulling strings apart. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus > Sent: Monday, February 16, 2004 3:56 PM > To: access Developers discussion and problem solving > Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > > > I'm redesigning an existing database that is not fully normalized. Here is > an example where I'm not sure the best way to handle. Current db has a > field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and > the user checks the applicable box(es) that are related to their contract. > > I was going to use a Multiselect Listbox and have it save a string value to > the field Programs - but, I would need the string value to be in a > consistent order. > > Another idea would be to save a record for each program in a Programs table. > > Which is the best route to follow? Any suggestions? > > If you need more information, just let me know. Thank you for your input. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > -------------------------------------------------------------------------- - > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Mon Feb 16 22:31:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 22:31:01 -0600 Subject: [AccessD] Re: How To: Create a Stored Procedure using a parameter for IN Message-ID: <5.1.0.14.2.20040216223030.0198e6f8@pop3.highstream.net> Final SQL Stored Procedure: CREATE PROCEDURE usp_Build_In @Select varchar(500), @From varchar(150), @Where varchar(500), @In varchar(500), @OrderBy Varchar(250) AS BEGIN DECLARE @SQL varchar(1900) SET @sql = @Select + @From + @Where + @In + @Orderby EXEC(@sql) END To Use it: SET QUOTED_IDENTIFIER OFF GO exec usp_Build_In 'SELECT ClientID,ResidenceType,LastName ', 'FROM tbl_Client ', 'WHERE LastName IN(', "'Stewart','Jones')", 'ORDER BY LastName' Notice the Double-quotes on the @In parameter. Robert, I am still working on the idea of using the subquery. The code you sent to me only returns one row, the last one in the list. But I will have more time to work with it tomorrow. RLS From DWUTKA at marlow.com Mon Feb 16 22:34:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 22:34:32 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788F@main2.marlow.com> Nope, in Jet (AFAIK), a byte takes up one byte. Integer 2 bytes, Long 4 bytes, string 1 byte +length of string, etc. The boolean, or Yes/No is the waste of space though, it takes up 2 bytes. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, February 16, 2004 10:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Drew: In the old IBM 360 days, there was something called alignment where if you defined a byte field it had to be aligned on a word boundary anyway so you didn't save any space. (IIRC. Which is doubtful, in any event. ) Do you think it's the same in Jet where the byte field really takes up more than a byte? Rocky ----- Original Message ----- From: To: Sent: Monday, February 16, 2004 6:04 PM Subject: RE: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > Not sure why a handful of boolean fields is not normalized..... > > However, Jet does two bytes for a boolean field. Which is a waste of 15 > bits! However, Unless you have a ton of records and/or have a massive amount > of boolean fields, the space wasted is negligible. > > However, if you really want a method to cram them into one field, I would > recommend a simple Byte field, versus a string field. First of all, with a > string field, you will be using more space.....sort of. At a minimum, a > string field takes up one byte. (Which tells Jet how long the data in the > field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your > example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn > 'off' and 'on', so you can represent up to 8 'programs' with one byte field. > > Still don't see a real advantage here.....unless you are dealing a heavily > coded interface, then dealing with the bits is going to be faster then > pulling strings apart. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus > Sent: Monday, February 16, 2004 3:56 PM > To: access Developers discussion and problem solving > Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > > > I'm redesigning an existing database that is not fully normalized. Here is > an example where I'm not sure the best way to handle. Current db has a > field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and > the user checks the applicable box(es) that are related to their contract. > > I was going to use a Multiselect Listbox and have it save a string value to > the field Programs - but, I would need the string value to be in a > consistent order. > > Another idea would be to save a record for each program in a Programs table. > > Which is the best route to follow? Any suggestions? > > If you need more information, just let me know. Thank you for your input. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > -------------------------------------------------------------------------- - > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 17 00:24:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 16 Feb 2004 22:24:55 -0800 Subject: [AccessD] increasing database size In-Reply-To: <20040214222909.SCYJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: Very good. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Saturday, February 14, 2004 2:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] increasing database size http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 00:35:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 16 Feb 2004 22:35:16 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <403063DE.7000908@shaw.ca> Message-ID: Thank you Marty: Will check out the site and see what information is available. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 15, 2004 10:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Operation from Remote Sites Windows Terminal Server 2003 maybe have a look around here, Dunno about liscensing. http://www.termservhub.com/ DWUTKA at marlow.com wrote: >Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a >limited IIS server. (In 98, it's a personal webserver). I think it's >limited to 5 simultaneous connections. > >However, that is only going to allow of transfering the entire .mdb, it >won't allow for linked tables from a web clients Access FE. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >To: Access Developers discussion and problem solving >Sent: 2/13/04 11:06 PM >Subject: RE: [AccessD] Database Operation from Remote Sites > >Hi Drew: > >The remote PC will probably be connected by a static internet >connection. Is >there a PC-XP (IIS like environment?)...never checked into it. > >The venue will be a kiosk type stand-alone PC. Client decided that >Access >would produce the best user interface...good so far. There is a >permanent >Internet connection that can be accessed from their web server...still >OK. >Now the question is how to get the Remote to actually host. If it can >host >like a web server, the remote PC MDB data can be accessed and problem is >solved > >If the station was a 2000 Server or something similar problem would be >solved but costs as they are... > >Any suggestions? >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Friday, February 13, 2004 9:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >What kind of 'connection' are you asking for? Do you need a connection >where an Access FE has linked tables, or do you just want to copy data >back >and forth? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Thursday, February 12, 2004 7:23 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Hi Drew and others: > >What would be the best way to connect to a MDB, on a remote PC, >connected to >the internet, with an XP OS. > >IP address would be static. The connecting host would be anything from >Windows2000 or Linux Server etc. > >Any suggestions on best methods. Oh, yes the access must be either >manual or >automated depending on requirements. > >MTIA >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, February 12, 2004 9:45 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >I see, that is a lot to ask for. Let me explain how I learned ASP. I >had >been developing in VB, and in Access. I liked both. I switched our >company's Intranet from a file server, to an actual IIS server (web >server). >This allowed for server side scripting, so I just decided to tinker. >ASP is >actually pretty simple (I'm almost ashamed to admit this, but I just >recently discovered 'conditional' HTML (I think that's what you call >it), >which makes ASP even that much easier to develop in). What you really >need >to learn is HTML, and a little about how web pages work. > >Anyhow, I just began to tinker. > >I started with a db, with a table, and I wanted to see how to get the >data >pushed from the db, into a webpage. > >So, I built the following page: (Or something close to it) > ><% >dim cnn >dim rs >dim strSQL >set cnn=server.createobject("ADODB.Connection") >set rs=server.createobject("ADODB.Recordset") >strSQL="SELECT MyField FROM tblMyTable" >cnn.Provider="Microsoft.Jet.OLEDB.4.0" >cnn.Open "D:\Mydatabase.mdb" >rs.open strSQL,cnn,1,1 >rs.MoveFirst >Do Until rs.EOF=True > response.write rs.Fields(0).value > rs.MoveNext >Loop >rs.close >cnn.close >set rs=nothing >set cnn=nothing >%> > >sure enough, I then had an asp page full of one field out of my table. > >I then began tweaking the HTML, so instead of 'response.write >rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' > >Which now put the data down a row. the 'source' behind the page, >however >was still one big line, which is a nightmare to try and decipher, so I >changed that line to 'response.write rs.Fields(0).value & "
" & >vbcrlf'. >Now the page showed a 'column', and the source showed a column too. >Much >easier to read from both aspects. > >>From there on, I then had to learn about how to 'get' data from an ASP >page. >As you can see, pushing data out is easy, getting it turns out to be >just as >easy. I wrote/posted a beginners guide to ASP (it should be on my >website...http://www.wolfwares.com. It goes into pushing data from a >db, to >a website, and getting data from a web client. > >A few tricks I have picked up, which aren't in those documents, but >would >have been something I would have REALLY liked to have known when I was >starting out. > >First, in the sample code above, if the line 'rs.MoveNext' was removed, >or >never present in the first place, you will have just sent the IIS server >into an endless loop. In VB, or VBA, you would just hit ctrl-break, and >stop the code. However, you don't have that sort of access to the ASP >'engine'. However, if you run 'iisreset' from a command line (or >Start-->run-->iisreset), it will 'restart' the webserver, even if it's >in an >endless loop. (Stopping the actual Web service won't do this, the >stopping >process just hangs). > >Next, the 'conditional' HTML I mentioned is REALLY handy. > >You can use ASP to either show/hide HTML, or even repeat it. > >For instance, if I wanted to display a certain note, if there were no >records, I could do this (assume the first part of the code above): > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%end if%> > >That HTML, will only be displayed, if the conditional statement in the >ASP >let's it by, otherwise the HTML before the ASP's end if (or else, if you >use >that) will be skipped. > >You can also 'repeat' HTML that way, for instance: > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%else%> > > <% > rs.movefirst > do until rs.EOF=True > %> > > > > <% > loop > %> >
<%=rs.Fields(0).value%>
><%end if%> > >Kind of handy. Hope this helps you on your way! > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Wednesday, February 11, 2004 5:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Drew, thanks for your info so far. I would like to see the in and out of >how >to create something if that is not too big an ask, but any info would be >good. > >Terry Mace > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Thursday, 12 February 2004 09:53 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >By sample/demo, do you mean a complete in and out look at how to create >something, or just a working ASP interface? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >Helmut.E.Kotsch at t-online.de >Sent: Wednesday, February 11, 2004 12:45 AM >To: Access Developers discussion and problem solving >Subject: AW: [AccessD] Database Operation from Remote Sites > > >Good morning, >where could I find a sample / demo for the ASP approach? > >Regards Helmut Kotsch > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von >DWUTKA at marlow.com >Gesendet: Mittwoch, 11. Februar 2004 02:43 >An: accessd at databaseadvisors.com >Betreff: RE: [AccessD] Database Operation from Remote Sites > > >ASP is a very good approach for multi-site systems. The real question >is >how complex is the data entry? If you are only talking about a few >forms, >then ASP is the way to go. Have Site1 host the ASP pages, with the db >on >their network. That would allow for no modifications necessary for the >data >mining process. > >However, if the data entry is very complex, you may want to go with a >Citrix/TS approach. More costly to initially implement, but no real >'development' would be required. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, February 10, 2004 6:41 PM >To: 'AccessD at databaseadvisors.com' >Subject: [AccessD] Database Operation from Remote Sites > > >Hi all, > >I'm after some information on the best way to proceed with the expansion >of >an existing Access97 database application which is used for maintenance >activity recording. > >My company currently runs this database at two sites, call them Site1 >and >Site2. The BE is changed at Site2 as a function of its operations, each >night the BE is copied to Site1 where it is used for admin and data >mining >purposes with the data acknowledged as being up to 24hrs out of date. >This >has served the company well up to now as only one site can change the >data. > >The company now want to expand the number of sites that use and i/p >data. > >The new layout will have at least 4 sites. Site1 will be the admin and >data >mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, >and 3 >are on a WAN with Site3 being the companies main site and hosting the >companies Internet gateway. Site4 is overseas and not on the WAN. > >What I would like is some idea of the best approach - I have read a bit >about replication and ASP but have no practical experience with either. > >Thanks for any assistance. > > >Terry Mace >Logistic Support Officer & Maintenance Supervisor >BAE SYSTEMS >677 Victoria Street, >Abbotsford, VIC 3067 >Ph: +61 3 9208 0924 >Fax: +61 3 9208 0588 >Mailto: terry.mace at baesystems.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 02:56:44 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 09:56:44 +0100 (CET) Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <17093576.1077008204923.JavaMail.www@wwinf3002> The information is to appear in a datagrid, at the moment it is in seperate fields. But I want to call a sproc, to fill the datagrid and would like the address line to appear as one with commas Message date : Feb 16 2004, 07:07 PM >From : "David Emerson" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Paul, Were do you want the information to appear (in a sproc, in a spreadsheet ?) How are you extracting the data at the moment? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 At 16/02/2004, you wrote: >To all, > >I have a table in SQL Server 7.0 called tblClient with the following >fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > >I want the following fields ClientName, Addrs1, Addrs2, District, Town, >County, Postcode to appear as one line separated by a comma like below > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, District, Town, >Postcode > >As you can se from the example Addrs2 and County are missing, this is >because these are blank sometimes. I have tried a couple of ways but >always end up with the following > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , >Postcode > >As you can see where the missing fields are the comma?s still appear. Any >help on this will be gratefully received. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From pedro at plex.nl Tue Feb 17 03:35:01 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 17 Feb 2004 10:35:01 +0100 Subject: [AccessD] need help with filter code Message-ID: <003401c3f539$727cac20$f7c581d5@pedro> Hello Group, i have 6 patients fields in which i want to do a search on their names. I don't want to use the existing filter in access, but search with a commandbutton and a textbox. I can use the following code with 6 cmdbuttons and 6 textboxes, but that doesn't work in practice. What i want is one cmdbutton and one txtbox that searches true all 6 fields Can you help me on this? Private sub cmdsearch1_Click() Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" Me.FilterOn = True Me.Requery Me.Refresh End Sub From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-SQLServer] [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Tue Feb 17 06:03:36 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 12:03:36 +0000 Subject: [AccessD] Column Index Message-ID: Hi All, I have a series of fields which appear in datasheet view on a form. I would specifically like one of them to appear as the first column. Is there a method to programatically set this. Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From jarus at amerinet-gpo.com Tue Feb 17 06:34:44 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Tue, 17 Feb 2004 06:34:44 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: Thanks for responding. What I have is a group of Programs - about 10 of them. Then a group of Facility Types - about 12-15 of those. And then, a group of Price Types - about 7 of those. They have remained fairly consistent with an addition or deletion over time - but nothing major. Basically keeping them as Boolean fields is the easiest, but it looks messy and I thought there might be a better way. Since there's no real big advantage to making a switch, I guess I'll stay with the current setup. Thanks again. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/16/04 09:11PM >>> Terri, There is no "best" answer for this kind of question. Drew has pointed out some of the considerations, specifically the storage size etc. The most important thing to determine is "will there EVER be more of these things. If so then using fields just sucks since to add a new type you have to clear all the users out and add a new field, add it to queries, forms and reports. If these types may EVER change then adding a "child" table allows you to add in new types simply by adding a new record. That said, some types of reports are MORE difficult with child records since to see "counts" of these across a graph you now have to do crosstabs etc. If this is a "control"program where the types are well defined, there are just a handful, they can be implemented as bits in a long (for example) and you need SPEED in comparing them to values in other records then setting up bitmasks and representing them as bits in a long integer can be quite useful. So again, what is the end use? How many of these things are there? Can their names change over time? Can the number of them change over time? Are they used to switch on / off relays in an assembly line or map photocells in a control widget or just "label" an object or a property of an object? It sounds to me like you can have N of M of them for any given contract, the number of these codes could change over time (tomorrow you might need N of X of them), and thus the flexibility of a "lookup table" of these codes, with a m-m between the lookup table and the contract table would give the ability to handle anything that life might throw at you. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 4:56 PM To: accessd-owner at databaseadvisors.com Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 07:44:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 17 Feb 2004 08:44:07 -0500 Subject: [AccessD] increasing database size In-Reply-To: Message-ID: I just looked at this tip. While it works admirably for SEARCH combos what about those where the combo is just displaying FK data from another field. Perhaps the policy holder of a policy for example? These kinds of combos are much more common on a form and they may be pulling thousands of records as well. Or does Access "behind the scenes" only pull a single record to match the FK in the form's recordset? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Tuesday, February 17, 2004 1:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] increasing database size Very good. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Saturday, February 14, 2004 2:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] increasing database size http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 07:55:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 14:55:50 +0100 Subject: [AccessD] Column Index In-Reply-To: References: Message-ID: <921854044.20040217145550@cactus.dk> Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. From rsmethurst at UK.EY.COM Tue Feb 17 08:24:06 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 14:24:06 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Gustav, That's the problem. The 'lead' column needs to be changed dynamically, which is why I'm wondering if there is any way to do it programatically. I've tried to set the tabindex already (in code) and it doesn't seem to have had an affect. Ryan Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 13:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Tue Feb 17 08:44:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 15:44:09 +0100 Subject: [AccessD] Column Index In-Reply-To: References: Message-ID: <15824752842.20040217154409@cactus.dk> Hi Ryan If a requery doesn't do it, you could shuffle the recordsources of the textboxes. /gustav > That's the problem. The 'lead' column needs to be changed dynamically, > which is why I'm wondering if there is any way to do it programatically. > I've tried to set the tabindex already (in code) and it doesn't seem to > have had an affect. > Ryan > Switch to design mode and adjust the tab sequence of the textboxes. > /gustav >> I have a series of fields which appear in datasheet view on a form. I >> would specifically like one of them to appear as the first column. Is >> there a method to programatically set this. From bchacc at san.rr.com Tue Feb 17 08:53:06 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 06:53:06 -0800 Subject: [AccessD] need help with filter code References: <003401c3f539$727cac20$f7c581d5@pedro> Message-ID: <004301c3f565$c0f3c8d0$6601a8c0@HAL9002> Pedro: I do something similar (I hope) with reports where the user can enter >= and/or <= values on any of several fields to filter the contents of the report. Then I set up the filter like so: strFilter = "" If Nz(Forms!frmBuyReport!txtGEDescription) <> "" Then If strFilter <> "" Then strFilter = strFilter & " AND " strFilter = strFilter & "Description >= '" & Nz(Forms!frmBuyReport!txtGEDescription) & "'" End If If Nz(Forms!frmBuyReport!txtLEDescription) <> "" Then If strFilter <> "" Then strFilter = strFilter & " AND " strFilter = strFilter & "Description <= '" & Nz(Forms!frmBuyReport!txtLEDescription) & "'" End If If strFilter <> "" Then Me.Filter = strFilter Me.FilterOn = True Else Me.Filter = "" Me.FilterOn = "" End If Of course you can substitute Like for >= and <=. And OR for AND if you are looking for A OR B OR C OR D vs A AND B AND C AND D. HTH Rocky Smolin Beach Access Software ----- Original Message ----- From: "Pedro Janssen" To: Sent: Tuesday, February 17, 2004 1:35 AM Subject: [AccessD] need help with filter code Hello Group, i have 6 patients fields in which i want to do a search on their names. I don't want to use the existing filter in access, but search with a commandbutton and a textbox. I can use the following code with 6 cmdbuttons and 6 textboxes, but that doesn't work in practice. What i want is one cmdbutton and one txtbox that searches true all 6 fields Can you help me on this? Private sub cmdsearch1_Click() Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" Me.FilterOn = True Me.Requery Me.Refresh End Sub _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 17 09:37:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 09:37:01 -0600 Subject: [AccessD] Re: Checkboxes/MultiSelect Listbox - What's Best? In-Reply-To: <200402170641.i1H6fSm03924@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217093306.02aa5c90@pop3.highstream.net> Terri, The best way, according to normalization rules, is to store it in a SelectedPrograms table. You would also have a table tlkpPrograms to use for a list of valid programs. By doing it this way, they can add new programs without you having to change the program to handle it. If you use check boxes, you would have to add new ones and remove existing ones as the program list changed. If you want, you can send me the current structure off list and I will look at it and give you suggestions about how to get it fully normalized. Robert At 12:41 AM 2/17/2004 -0600, you wrote: >Date: Mon, 16 Feb 2004 15:56:20 -0600 >From: "Terri Jarus" >Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >I'm redesigning an existing database that is not fully normalized. Here >is an example where I'm not sure the best way to handle. Current db has a >field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and >the user checks the applicable box(es) that are related to their contract. > >I was going to use a Multiselect Listbox and have it save a string value >to the field Programs - but, I would need the string value to be in a >consistent order. > >Another idea would be to save a record for each program in a Programs table. > >Which is the best route to follow? Any suggestions? > >If you need more information, just let me know. Thank you for your input. > >Terri Jarus From rsmethurst at UK.EY.COM Tue Feb 17 09:37:59 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 15:37:59 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Gustav, Will try that. Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 14:44 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan If a requery doesn't do it, you could shuffle the recordsources of the textboxes. /gustav > That's the problem. The 'lead' column needs to be changed dynamically, > which is why I'm wondering if there is any way to do it programatically. > I've tried to set the tabindex already (in code) and it doesn't seem to > have had an affect. > Ryan > Switch to design mode and adjust the tab sequence of the textboxes. > /gustav >> I have a series of fields which appear in datasheet view on a form. I >> would specifically like one of them to appear as the first column. Is >> there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From ssharkins at bellsouth.net Tue Feb 17 09:41:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 17 Feb 2004 10:41:22 -0500 Subject: [AccessD] Is This Possible ? In-Reply-To: <16329281.1077010479959.JavaMail.www@wwinf3002> Message-ID: <20040217154121.BPJV7256.imf18aec.mail.bellsouth.net@SUSANONE> I didn't look at this very carefully, but looks like an excuse for a crosstab? Susan H. To all, I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don't really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. From reuben at gfconsultants.com Tue Feb 17 09:55:49 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 10:55:49 -0500 Subject: [AccessD] Unrecognized Database Format Message-ID: I have a semi urgent problem. A customer downloaded an update from our website and installed it correctly. However, upon opening and attempting to link to the tables she received a message "Unrecognized Database Format". We've all seen it. However, this time, A2K won't do anything with it. When I have had problems in the past A2K would open and repair it. Nothing happens to this one. It always responds "unrecognized..." Any suggestions on how to go about saving it. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From bchacc at san.rr.com Tue Feb 17 10:07:47 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 08:07:47 -0800 Subject: [AccessD] Unrecognized Database Format References: Message-ID: <00a001c3f570$2fa412d0$6601a8c0@HAL9002> Could it have been corrupted on the download? Did she try re-downloading it? How about decompile? Rocky ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Tuesday, February 17, 2004 7:55 AM Subject: [AccessD] Unrecognized Database Format > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Tue Feb 17 10:31:38 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 11:31:38 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <00a001c3f570$2fa412d0$6601a8c0@HAL9002> Message-ID: I didn't explain enough. The download of the FE went fine. The problem is in this clients BE only. The BE is 'unrecognized'. I had them send me the BE and I have tried several things to open it. I can't decompile. I can't open to compact and repair. Can't link to it from anything. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 11:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Could it have been corrupted on the download? Did she try re-downloading > it? How about decompile? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Tuesday, February 17, 2004 7:55 AM > Subject: [AccessD] Unrecognized Database Format > > > > I have a semi urgent problem. > > > > A customer downloaded an update from our website and installed it > correctly. > > > > However, upon opening and attempting to link to the tables she > received a > > message "Unrecognized Database Format". > > > > We've all seen it. However, this time, A2K won't do anything with it. > When > > I have had problems in the past A2K would open and repair it. Nothing > > happens to this one. It always responds "unrecognized..." > > > > Any suggestions on how to go about saving it. > > > > Thanks. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Feb 17 10:57:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 17:57:35 +0100 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: Message-ID: <832758864.20040217175735@cactus.dk> Hi Reuben Open it in a hex editor. If the header is overwritten with garbage the file is beyond normal repair, except if you can manage to overwrite with data copied form a freshly created database file. /gustav > The problem is in this clients BE only. The BE is 'unrecognized'. > I had them send me the BE and I have tried several things to open it. I > can't decompile. I can't open to compact and repair. Can't link to it from > anything. From reuben at gfconsultants.com Tue Feb 17 11:07:14 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 12:07:14 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <832758864.20040217175735@cactus.dk> Message-ID: You lost me, Gustav. Where would I find a hex editor? And if I get it open, is the header obvious to find? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Feb 17 11:40:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 17 Feb 2004 09:40:42 -0800 Subject: [AccessD] Hiding Table in mde Message-ID: Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Feb 17 11:56:05 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 09:56:05 -0800 Subject: [AccessD] Unrecognized Database Format References: Message-ID: <013601c3f57f$50a3a720$6601a8c0@HAL9002> DO they have a recent backup? Rocky ----- Original Message ----- From: "Reuben Cummings" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 17, 2004 8:31 AM Subject: RE: [AccessD] Unrecognized Database Format > I didn't explain enough. > > The download of the FE went fine. > > The problem is in this clients BE only. The BE is 'unrecognized'. > > I had them send me the BE and I have tried several things to open it. I > can't decompile. I can't open to compact and repair. Can't link to it from > anything. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Tuesday, February 17, 2004 11:08 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Could it have been corrupted on the download? Did she try re-downloading > > it? How about decompile? > > > > Rocky > > > > ----- Original Message ----- > > From: "Reuben Cummings" > > To: "AccessD" > > Sent: Tuesday, February 17, 2004 7:55 AM > > Subject: [AccessD] Unrecognized Database Format > > > > > > > I have a semi urgent problem. > > > > > > A customer downloaded an update from our website and installed it > > correctly. > > > > > > However, upon opening and attempting to link to the tables she > > received a > > > message "Unrecognized Database Format". > > > > > > We've all seen it. However, this time, A2K won't do anything with it. > > When > > > I have had problems in the past A2K would open and repair it. Nothing > > > happens to this one. It always responds "unrecognized..." > > > > > > Any suggestions on how to go about saving it. > > > > > > Thanks. > > > > > > Reuben Cummings > > > GFC, LLC > > > phone: 812.523.1017 > > > email: reuben at gfconsultants.com > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Feb 17 12:14:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:14:00 -0600 Subject: [AccessD] Re: Column Index In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217121151.02a581b0@pop3.highstream.net> Don't use a datasheet. Modify the form to look like a datasheet, then you can arrange them however you want. Technically, it is bad design to use them because a lot of code and events can be circumvented from what I have seen. If you have to use a datasheet, base it on a query with the columns in the order you want to see them. At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 12:03:36 +0000 >From: rsmethurst at UK.EY.COM >Subject: [AccessD] Column Index >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi All, > >I have a series of fields which appear in datasheet view on a form. I >would specifically like one of them to appear as the first column. Is >there a method to programatically set this. > >Thanks >Ryan From KIsmert at TexasSystems.com Tue Feb 17 12:20:40 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 17 Feb 2004 12:20:40 -0600 Subject: [AccessD] Column Index In-Reply-To: Message-ID: <007801c3f582$bffb58e0$2a3ca8c0@TEXASSYSTEMS.COM> This is the code that I use in the form's class module: Private Sub FormatDataSheetColumns() Me.RowHeight = 240 ' in twips txtJobNumber.ColumnHidden = True With cboAssoc_File_ID .ColumnHidden = False .ColumnOrder = 1 .ColumnWidth = 1440 ' in twips End With ' Set for all visible datasheet controls End Sub It demonstrates the four datasheet-specific display properties: RowHeight, ColumnHidden, ColumnOrder and ColumnWidth -Ken -----Original Message----- From: rsmethurst at UK.EY.COM [mailto:rsmethurst at UK.EY.COM] Sent: Tuesday, February 17, 2004 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Column Index Thanks Gustav, That's the problem. The 'lead' column needs to be changed dynamically, which is why I'm wondering if there is any way to do it programatically. I've tried to set the tabindex already (in code) and it doesn't seem to have had an affect. Ryan Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 13:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From reuben at gfconsultants.com Tue Feb 17 12:19:40 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 13:19:40 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <013601c3f57f$50a3a720$6601a8c0@HAL9002> Message-ID: I was afraid someone would ask that! My guess, knowing this client, is no. They have the copies created by the BEU, but I'm not sure when that happened. Typical client - you tell them to back up and they nod their heads and look stupid. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 12:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > DO they have a recent backup? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 17, 2004 8:31 AM > Subject: RE: [AccessD] Unrecognized Database Format > > > > I didn't explain enough. > > > > The download of the FE went fine. > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't link to it > from > > anything. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Rocky Smolin - > > > Beach Access Software > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > Could it have been corrupted on the download? Did she try > re-downloading > > > it? How about decompile? > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "Reuben Cummings" > > > To: "AccessD" > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > I have a semi urgent problem. > > > > > > > > A customer downloaded an update from our website and installed it > > > correctly. > > > > > > > > However, upon opening and attempting to link to the tables she > > > received a > > > > message "Unrecognized Database Format". > > > > > > > > We've all seen it. However, this time, A2K won't do > anything with it. > > > When > > > > I have had problems in the past A2K would open and repair > it. Nothing > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > Thanks. > > > > > > > > Reuben Cummings > > > > GFC, LLC > > > > phone: 812.523.1017 > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Feb 17 12:34:27 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:34:27 -0600 Subject: [AccessD] Re: need help with filter code In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Here are the steps that I would take: 1. Create a base query with all the fields you want to display. i.e. sqry_FilterQuery_0 2. Do a save as and save the same query with an _1 on the end instead of _0. In the code behind the OnClick event of your command button place the following: dim db as dao.database dim qdf as dao.querydef dim strSql as string dim strWhere as string set db=currentdb() set qdf=db.querydefs("base query name") ' removes the ; from the end of the query string strsql = mid(qdf.sql,1,len(qdf.sql)-3) strwhere = " WHERE (" ' build the string for each of the 6 columns you want to search in strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" set qdf = db.querydefs("_1 query name") qdf.sql = strsql & strwhere db.close set db=nothing ' enter the code here to open either the _1 query or a form/report ' based on the _1 query By doing it this way, you do not have to fool around with the filter property. Robert Replace the column1-6 with the names of the columns that you want to search in. Replace me!textbox with the name of the text box you are entering the criteria in. Replace "base query name" with the name of the _0 query. Replace "_1 query name" with the name of the _1 query. At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 10:35:01 +0100 >From: "Pedro Janssen" >Subject: [AccessD] need help with filter code >To: >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Group, > >i have 6 patients fields in which i want to do a search on their names. >I don't want to use the existing filter in access, but search with a >commandbutton and a textbox. >I can use the following code with 6 cmdbuttons and 6 textboxes, >but that doesn't work in practice. >What i want is one cmdbutton and one txtbox that searches true all 6 fields >Can you help me on this? > > >Private sub cmdsearch1_Click() >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" >Me.FilterOn = True >Me.Requery >Me.Refresh > >End Sub From rl_stewart at highstream.net Tue Feb 17 12:37:33 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:37:33 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217123710.02a52bf0@pop3.highstream.net> Did someone convert it to 2002 or 2003? At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 11:31:38 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I didn't explain enough. > >The download of the FE went fine. > >The problem is in this clients BE only. The BE is 'unrecognized'. > >I had them send me the BE and I have tried several things to open it. I >can't decompile. I can't open to compact and repair. Can't link to it from >anything. > >Reuben Cummings From reuben at gfconsultants.com Tue Feb 17 12:56:05 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 13:56:05 -0500 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <5.1.0.14.2.20040217123710.02a52bf0@pop3.highstream.net> Message-ID: Could be. They have 2002 installed. How can I find out for sure without going down there? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. > Stewart > Sent: Tuesday, February 17, 2004 1:38 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: Unrecognized Database Format > > > Did someone convert it to 2002 or 2003? > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 11:31:38 -0500 > >From: "Reuben Cummings" > >Subject: RE: [AccessD] Unrecognized Database Format > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > > > >I didn't explain enough. > > > >The download of the FE went fine. > > > >The problem is in this clients BE only. The BE is 'unrecognized'. > > > >I had them send me the BE and I have tried several things to open it. I > >can't decompile. I can't open to compact and repair. Can't > link to it from > >anything. > > > >Reuben Cummings > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Tue Feb 17 15:32:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 17 Feb 2004 22:32:19 +0100 Subject: [AccessD] Re: need help with filter code References: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Message-ID: <001201c3f59d$868ddae0$f6c581d5@pedro> Hello Robert and Rocky, thanks for help on the filter code. I will try both and see which can serve my needs. Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 17, 2004 7:34 PM Subject: [AccessD] Re: need help with filter code > Here are the steps that I would take: > > 1. Create a base query with all the fields you want to display. > i.e. sqry_FilterQuery_0 > > 2. Do a save as and save the same query with an _1 on the end instead of _0. > > In the code behind the OnClick event of your command button place the > following: > > dim db as dao.database > dim qdf as dao.querydef > dim strSql as string > dim strWhere as string > set db=currentdb() > set qdf=db.querydefs("base query name") > ' removes the ; from the end of the query string > strsql = mid(qdf.sql,1,len(qdf.sql)-3) > strwhere = " WHERE (" > ' build the string for each of the 6 columns you want to search in > strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" > set qdf = db.querydefs("_1 query name") > qdf.sql = strsql & strwhere > db.close > set db=nothing > ' enter the code here to open either the _1 query or a form/report > ' based on the _1 query > > By doing it this way, you do not have to fool around with the filter property. > > Robert > > Replace the column1-6 with the names of the columns that you want to search > in. Replace me!textbox with the name of the text box you are entering the > criteria in. Replace "base query name" with the name of the _0 > query. Replace "_1 query name" with the name of the _1 query. > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 10:35:01 +0100 > >From: "Pedro Janssen" > >Subject: [AccessD] need help with filter code > >To: > >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Group, > > > >i have 6 patients fields in which i want to do a search on their names. > >I don't want to use the existing filter in access, but search with a > >commandbutton and a textbox. > >I can use the following code with 6 cmdbuttons and 6 textboxes, > >but that doesn't work in practice. > >What i want is one cmdbutton and one txtbox that searches true all 6 fields > >Can you help me on this? > > > > > >Private sub cmdsearch1_Click() > >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" > >Me.FilterOn = True > >Me.Requery > >Me.Refresh > > > >End Sub > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Tue Feb 17 16:49:51 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 18 Feb 2004 08:49:51 +1000 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: <832758864.20040217175735@cactus.dk> Message-ID: <4033272F.23612.151631@localhost> On 17 Feb 2004 at 12:07, Reuben Cummings wrote: > You lost me, Gustav. > > Where would I find a hex editor? And if I get it open, is the header > obvious to find? > Pricelessware (The Pricelessware List reflects the programs favored by participants in the alt.comp.freeware newsgroup ; it is not an exhaustive list of the best available Freeware. Most of the listings are well-known programs, but there are some hard-to-find goodies to be discovered. Although most categories will list only 1 or 2 selections, a few will list 3-4 programs. ) http://www.pricelessware.org recommends FrHed.exe http://www.tu-darmstadt.de/~rkibria/frhed156.zip -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd at shaw.ca Tue Feb 17 18:52:40 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 17 Feb 2004 16:52:40 -0800 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Hi Rueben: The DB may be in a more recent format. I have only seen that prompt when a MDB was made in A2002 or A2003. In which case by going into say Access 2003 and converting the MDB to A2K (tools-->Database Utilities-->Convert-->2000), problem is solved. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Tuesday, February 17, 2004 7:56 AM To: AccessD Subject: [AccessD] Unrecognized Database Format I have a semi urgent problem. A customer downloaded an update from our website and installed it correctly. However, upon opening and attempting to link to the tables she received a message "Unrecognized Database Format". We've all seen it. However, this time, A2K won't do anything with it. When I have had problems in the past A2K would open and repair it. Nothing happens to this one. It always responds "unrecognized..." Any suggestions on how to go about saving it. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.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 Feb 17 19:02:48 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 17 Feb 2004 17:02:48 -0800 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Or, on the lighter side... ...tell them to back up... and then they coasted, in their chair, back to the wall ...and they nod their heads and look stupid. This is not made up; one client actually did this and I had to excuse myself from the room. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Tuesday, February 17, 2004 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format I was afraid someone would ask that! My guess, knowing this client, is no. They have the copies created by the BEU, but I'm not sure when that happened. Typical client - you tell them to back up and they nod their heads and look stupid. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 12:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > DO they have a recent backup? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 17, 2004 8:31 AM > Subject: RE: [AccessD] Unrecognized Database Format > > > > I didn't explain enough. > > > > The download of the FE went fine. > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't link to it > from > > anything. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Rocky Smolin - > > > Beach Access Software > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > Could it have been corrupted on the download? Did she try > re-downloading > > > it? How about decompile? > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "Reuben Cummings" > > > To: "AccessD" > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > I have a semi urgent problem. > > > > > > > > A customer downloaded an update from our website and installed it > > > correctly. > > > > > > > > However, upon opening and attempting to link to the tables she > > > received a > > > > message "Unrecognized Database Format". > > > > > > > > We've all seen it. However, this time, A2K won't do > anything with it. > > > When > > > > I have had problems in the past A2K would open and repair > it. Nothing > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > Thanks. > > > > > > > > Reuben Cummings > > > > GFC, LLC > > > > phone: 812.523.1017 > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Tue Feb 17 20:20:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 17 Feb 2004 21:20:03 -0500 Subject: [AccessD] Determining Scope of Project Message-ID: <40328583.31429.D89487@localhost> A while back someone offered or pointed to a document that would aid in the scoping of a project. It included things like the OS of the workstations, the Network config, the versions of Office available, the project requirements.... That kind of thing. It looked quite useful when I saw it, but can I find it now that I need it? No. So if anyone knows of such a thing can you point me to it, please? I've got a meeting for a project for another department that I may be secconded to and I want to make sure I give them, the other department and my boss, an accurate estimate of the project. Thanks a bunch. -- Bryan Carbonnell - carbonnb at sympatico.ca There are two ways to write bug-free code; only the third way works. From rusty.hammond at cpiqpc.com Tue Feb 17 21:27:43 2004 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 17 Feb 2004 21:27:43 -0600 Subject: [AccessD] Determining Scope of Project Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A912@cpixchng-1.cpiqpc.net> Bryan, There's one at www.candace-tripp.com Hover over MS Access at the top of the page, select downloads. At the bottom of the downloads page is an Application Profile form. HTH Rusty -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Tuesday, February 17, 2004 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Scope of Project A while back someone offered or pointed to a document that would aid in the scoping of a project. It included things like the OS of the workstations, the Network config, the versions of Office available, the project requirements.... That kind of thing. It looked quite useful when I saw it, but can I find it now that I need it? No. So if anyone knows of such a thing can you point me to it, please? I've got a meeting for a project for another department that I may be secconded to and I want to make sure I give them, the other department and my boss, an accurate estimate of the project. Thanks a bunch. -- Bryan Carbonnell - carbonnb at sympatico.ca There are two ways to write bug-free code; only the third way works. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 22:54:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 15:54:12 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? Message-ID: <014c01c3f5db$40a39090$48619a89@DDICK> Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### From Developer at UltraDNT.com Tue Feb 17 23:29:36 2004 From: Developer at UltraDNT.com (Developer) Date: Wed, 18 Feb 2004 00:29:36 -0500 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <014c01c3f5db$40a39090$48619a89@DDICK> Message-ID: <000501c3f5e0$37a78230$7001a8c0@COA3> You hve to build the string like this: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" --Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 17, 2004 11:54 PM To: AccessD List Subject: [AccessD] A2K: Can anyone tell me why this fails? Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStuden tIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bryan.fitzpatrick at cyberone.com.au Tue Feb 17 23:28:57 2004 From: bryan.fitzpatrick at cyberone.com.au (Bryan Fitzpatrick) Date: Wed, 18 Feb 2004 16:28:57 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <014c01c3f5db$40a39090$48619a89@DDICK> Message-ID: <4032F819.8040500@cyberone.com.au> Try this SQL string: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch].[txtStudentIDSearch]" & "))" HTH Bryan Darren DICK wrote: >Hello all >I get a very long runtime error number along with the text... >No value given for one or more required parameters > >The sql string works well as a query >'########################################### >Dim selSQL As String >Dim rs As Object >Dim con As Object > >selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE >(((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > >Set rs = CreateObject("ADODB.Recordset") >Set con = Application.CurrentProject.Connection > >rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With >'########################################### > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From bruce_bruen at mlc.com.au Tue Feb 17 23:27:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 18 Feb 2004 16:27:21 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? Message-ID: Off the top of my head.... If txtStudentIDSearch is a control name on the form, add .Value after it. hth Bruce "Darren DICK" To: "AccessD List" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] A2K: Can anyone tell me why this fails? dvisors.com 18/02/2004 15:54 Please respond to Access Developers discussion and problem solving Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:50:43 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:50:43 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <014c01c3f5db$40a39090$48619a89@DDICK> <4032F819.8040500@cyberone.com.au> Message-ID: <01a001c3f5e3$25bf2110$48619a89@DDICK> Thanks Bryan Now I get Data Type mismatch in expression as the error message Darren ----- Original Message ----- From: "Bryan Fitzpatrick" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 4:28 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > Try this SQL string: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch].[txtStudentIDSearch]" & "))" > > > HTH > Bryan > > > > Darren DICK wrote: > > >Hello all > >I get a very long runtime error number along with the text... > >No value given for one or more required parameters > > > >The sql string works well as a query > >'########################################### > >Dim selSQL As String > >Dim rs As Object > >Dim con As Object > > > >selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE > >(((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > > > >Set rs = CreateObject("ADODB.Recordset") > >Set con = Application.CurrentProject.Connection > > > >rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > > > With rs > > .MoveFirst > > .MoveLast > > .MoveFirst > > MsgBox .RecordCount > > End With > >'########################################### > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:51:53 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:51:53 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: Message-ID: <01a601c3f5e3$4f3e4c50$48619a89@DDICK> No Joy Bruce Thanks ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 4:27 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > > > > > Off the top of my head.... > > > > If txtStudentIDSearch is a control name on the form, add .Value after it. > > > hth > Bruce > > > > "Darren DICK" > To: "AccessD List" > Sent by: cc: > accessd-bounces at databasea Subject: [AccessD] A2K: Can anyone tell me why this fails? > dvisors.com > > > 18/02/2004 15:54 > Please respond to Access > Developers discussion and > problem solving > > > > > > > Hello all > I get a very long runtime error number along with the text... > No value given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM > tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:53:03 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:53:03 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <000501c3f5e0$37a78230$7001a8c0@COA3> Message-ID: <01ba01c3f5e3$79657760$48619a89@DDICK> Thanks Steve Now I get Data Type mismatch in expression as the error message ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 18, 2004 4:29 PM Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > You hve to build the string like this: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > --Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Tuesday, February 17, 2004 11:54 PM > To: AccessD List > Subject: [AccessD] A2K: Can anyone tell me why this fails? > > > Hello all > I get a very long runtime error number along with the text... No value > given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStuden > tIDSearch]));" > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 18 00:17:24 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 18 Feb 2004 16:17:24 +1000 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <01ba01c3f5e3$79657760$48619a89@DDICK> Message-ID: <40339014.9176.1AED0E1@localhost> I'd guess that FomattedStudentID is a text filed in which case you need: FROM tblStudents WHERE (((tblStudents.FormattedStudentID)='" & [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" Note the single quote after the "=" and before the first ")" in the second line. On 18 Feb 2004 at 16:53, Darren DICK wrote: > Thanks Steve > Now I get > Data Type mismatch in expression as the error message > > ----- Original Message ----- > From: "Developer" > To: "'Access Developers discussion and problem solving'" > Sent: Wednesday, February 18, 2004 4:29 PM > Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > > > > You hve to build the string like this: > > > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > > > --Steve > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From actebs at actebs.com.au Wed Feb 18 00:34:18 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 18 Feb 2004 17:34:18 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <01ba01c3f5e3$79657760$48619a89@DDICK> Message-ID: <001401c3f5e9$3f7da5d0$0b08a8c0@carltonone.local> Bruce, Try this: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & "'" [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" Regards Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, 18 February 2004 4:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? Thanks Steve Now I get Data Type mismatch in expression as the error message ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 18, 2004 4:29 PM Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > You hve to build the string like this: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > --Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Tuesday, February 17, 2004 11:54 PM > To: AccessD List > Subject: [AccessD] A2K: Can anyone tell me why this fails? > > > Hello all > I get a very long runtime error number along with the text... No value > given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStud > en > tIDSearch]));" > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 18 04:19:19 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 18 Feb 2004 10:19:19 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Ken, I'll try that...looks like exactly what I want. Cheers RS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From carbonnb at sympatico.ca Wed Feb 18 04:29:12 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 18 Feb 2004 05:29:12 -0500 Subject: [AccessD] Determining Scope of Project In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A912@cpixchng-1.cpiqpc.net> Message-ID: <4032F828.9367.190A9F@localhost> On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng From greggs at msn.com Wed Feb 18 07:07:14 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 07:07:14 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <001401c3f5e9$3f7da5d0$0b08a8c0@carltonone.local> Message-ID: I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg From prodevmg at yahoo.com Wed Feb 18 07:33:12 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 05:33:12 -0800 (PST) Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: <20040218133312.73928.qmail@web20419.mail.yahoo.com> Are you using the aggregate function dlookup? Those things can be very slow. You may want to look at getting values from a recordset object. Just a thought. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jimdettman at earthlink.net Wed Feb 18 08:06:53 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 09:06:53 -0500 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 08:35:44 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 08:35:44 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <20040218133312.73928.qmail@web20419.mail.yahoo.com> Message-ID: You're right! I did change it to a record set and got some speed back. But the fact that my second copy spends 4 times as much time as my first copy makes me think something is set up wrong, and maybe EVERYTHING is slower than it should be. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, February 18, 2004 7:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Stumped on A97 Speed Problem Are you using the aggregate function dlookup? Those things can be very slow. You may want to look at getting values from a recordset object. Just a thought. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 08:33:35 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 09:33:35 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Would any of you with 2002 or 2003 be willing to receive this db and try to convert it for me? If so, shoot me a note offline and I'll send you the db. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 7:53 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Hi Rueben: > > The DB may be in a more recent format. I have only seen that prompt when a > MDB was made in A2002 or A2003. In which case by going into say > Access 2003 > and converting the MDB to A2K (tools-->Database > Utilities-->Convert-->2000), > problem is solved. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 7:56 AM > To: AccessD > Subject: [AccessD] Unrecognized Database Format > > > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it > correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything > with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Wed Feb 18 08:33:34 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 09:33:34 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: It's nice to know that we all deal with goof balls! Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 8:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Or, on the lighter side... > > ...tell them to back up... > and then they coasted, in their chair, back to the wall > ...and they nod their heads and look stupid. > > This is not made up; one client actually did this and I had to > excuse myself > from the room. :-) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 10:20 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > I was afraid someone would ask that! > > My guess, knowing this client, is no. They have the copies created by the > BEU, but I'm not sure when that happened. > > Typical client - you tell them to back up and they nod their > heads and look > stupid. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Tuesday, February 17, 2004 12:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > DO they have a recent backup? > > > > Rocky > > > > ----- Original Message ----- > > From: "Reuben Cummings" > > To: "Access Developers discussion and problem solving" > > > > Sent: Tuesday, February 17, 2004 8:31 AM > > Subject: RE: [AccessD] Unrecognized Database Format > > > > > > > I didn't explain enough. > > > > > > The download of the FE went fine. > > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > > I had them send me the BE and I have tried several things to > open it. I > > > can't decompile. I can't open to compact and repair. Can't > link to it > > from > > > anything. > > > > > > Reuben Cummings > > > GFC, LLC > > > phone: 812.523.1017 > > > email: reuben at gfconsultants.com > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > Rocky Smolin - > > > > Beach Access Software > > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > > > > Could it have been corrupted on the download? Did she try > > re-downloading > > > > it? How about decompile? > > > > > > > > Rocky > > > > > > > > ----- Original Message ----- > > > > From: "Reuben Cummings" > > > > To: "AccessD" > > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > > > > I have a semi urgent problem. > > > > > > > > > > A customer downloaded an update from our website and installed it > > > > correctly. > > > > > > > > > > However, upon opening and attempting to link to the tables she > > > > received a > > > > > message "Unrecognized Database Format". > > > > > > > > > > We've all seen it. However, this time, A2K won't do > > anything with it. > > > > When > > > > > I have had problems in the past A2K would open and repair > > it. Nothing > > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > > > Thanks. > > > > > > > > > > Reuben Cummings > > > > > GFC, LLC > > > > > phone: 812.523.1017 > > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Wed Feb 18 08:55:14 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 18 Feb 2004 08:55:14 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402181410.i1IEAKm30390@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040218085422.02a749e0@pop3.highstream.net> Have someone with 2002 open it and see if it displays as (2000 format or 2002 format). At 08:10 AM 2/18/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 13:56:05 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Re: Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="us-ascii" > >Could be. They have 2002 installed. > >How can I find out for sure without going down there? > >Reuben Cummings From weeden1949 at hotmail.com Wed Feb 18 09:08:10 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Wed, 18 Feb 2004 09:08:10 -0600 Subject: [AccessD] Toasted? References: Message-ID: Is AccessD down? I've not received ANY messages for two days. However, I am receiving some on Dba-Tech. Curious. Greg Smith Weeden1949 at hotmail.com From jimdettman at earthlink.net Wed Feb 18 09:11:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 10:11:45 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Reuben, I have all versions of Access. Send it along if you'd like. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format Would any of you with 2002 or 2003 be willing to receive this db and try to convert it for me? If so, shoot me a note offline and I'll send you the db. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 7:53 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Hi Rueben: > > The DB may be in a more recent format. I have only seen that prompt when a > MDB was made in A2002 or A2003. In which case by going into say > Access 2003 > and converting the MDB to A2K (tools-->Database > Utilities-->Convert-->2000), > problem is solved. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 7:56 AM > To: AccessD > Subject: [AccessD] Unrecognized Database Format > > > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it > correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything > with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:32:58 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:32:58 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro From Mark.Mitsules at ngc.com Wed Feb 18 10:41:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 18 Feb 2004 11:41:41 -0500 Subject: [AccessD] MS Asscess OverFlow Message-ID: 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Feb 18 10:45:36 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 18 Feb 2004 11:45:36 -0500 Subject: [AccessD] MS Asscess OverFlow Message-ID: 2nd guess... Very rare, but could any one control have more than 32,767 characters? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:53:12 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:53:12 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: the query for the report is only 1700 records, and there are only 8 fields. Thanks "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:41 AM Please respond to Access Developers discussion and problem solving 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:56:55 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:56:55 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: most of the fileds are numeric, the format is Percent with 2 decimal places selected "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:45 AM Please respond to Access Developers discussion and problem solving 2nd guess... Very rare, but could any one control have more than 32,767 characters? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 18 10:57:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 08:57:51 -0800 (PST) Subject: [AccessD] MS Asscess OverFlow In-Reply-To: Message-ID: <20040218165751.37337.qmail@web20405.mail.yahoo.com> Is there any division going on? Maybe by an expression that could equal zero or null? ggonzalez at cccis.com wrote: the query for the report is only 1700 records, and there are only 8 fields. Thanks "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:41 AM Please respond to Access Developers discussion and problem solving 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From adtp at touchtelindia.net Wed Feb 18 10:57:29 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 18 Feb 2004 22:27:29 +0530 Subject: [AccessD] Hiding Table in mde References: Message-ID: <003a01c3f640$67d7ed90$8c1865cb@winxp> Rocky, Could you kindly confirm that you wish to add a new program module for manipulating existing objects in an mde - without having to go through the conventional steps of first altering the code in original mdb and then converting it into a fresh mde. If this be the case, an interesting solution could be adopted, so as to meet your requirement. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 17, 2004 23:10 Subject: RE: [AccessD] Hiding Table in mde Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software From bchacc at san.rr.com Wed Feb 18 11:24:00 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 18 Feb 2004 09:24:00 -0800 Subject: [AccessD] Hiding Table in mde References: <003a01c3f640$67d7ed90$8c1865cb@winxp> Message-ID: <022701c3f643$ffe7aa00$6601a8c0@HAL9002> A.D.: What I'm trying to do is copy protect my program by putting a data bomb in the opening form. Right now it's hard coded into the module's OnOpen event. I was going to put the date bomb into a table but that table is accessible to the user even in an mde. So I was trying to hide the table. But a more direct way would be to be able to alter the line of code in the mde which contains the expire date. I've cooked up a more elaborate scheme now but haven't settled on a final approach. I want the user to be able to call or email their serial number and I give them a code to change the expiration date in their system. I've done a key like this before for another client so I've got all the code/decode stuff worked out. I'm just searching around for the simplest solution to protecting my product. Regards, Rocky ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 8:57 AM Subject: Re: [AccessD] Hiding Table in mde Rocky, Could you kindly confirm that you wish to add a new program module for manipulating existing objects in an mde - without having to go through the conventional steps of first altering the code in original mdb and then converting it into a fresh mde. If this be the case, an interesting solution could be adopted, so as to meet your requirement. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 17, 2004 23:10 Subject: RE: [AccessD] Hiding Table in mde Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Feb 18 11:28:24 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 18 Feb 2004 22:58:24 +0530 Subject: [AccessD] Date data entry References: Message-ID: <009f01c3f644$e8fa9090$8c1865cb@winxp> John, This thread was initiated by you in Oct 2003. It is not clear whether the best possible solution was eventually reached. In this context, you might like to take a look at my recent sample db named InputMask_Dynamic - at Rogers Access Library (Other Developers Section). It features dynamic masks for pure dates with pre-filled values of month & year part as per chosen settings (default is current month & year). Text strings prefixed/suffixed with current month-year are also covered separately. Apart from the above, data entry for phone numbers featuring pre-filled area codes (if given), is also demonstrated. Two styles are shown (with or without saving the formatting details along with the source data). Regards, A.D.Tejpal -------------- ----- Original Message ----- From: John Colby To: Access Developers discussion and problem solving Sent: Monday, October 06, 2003 21:00 Subject: RE: [AccessD] Date data entry >Would they accept the default set to =date()? Where logical I do that, however in these cases they are entering dates out in the future or in the past. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Monday, October 06, 2003 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date data entry Would they accept the default set to =date()? Mark -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, October 06, 2003 10:44 AM To: AccessD Subject: [AccessD] Date data entry I have a specific client that LOVES the input masks for dates. I don't understand this as I personally hate them, but... What they want is to have something like that but which "assumes current year", i.e. all they have to enter is the ddmm and the rest (the year) is filled in. Does anyone do this? Know how to do this? John W. Colby www.colbyconsulting.com From garykjos at hotmail.com Wed Feb 18 11:40:17 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Wed, 18 Feb 2004 11:40:17 -0600 Subject: [AccessD] Toasted? Message-ID: No. Alive and kicking...Not a HUGE volume of messages but there are some. Gary Kjos garykjos at hotmail.com >From: "Greg Smith" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Toasted? >Date: Wed, 18 Feb 2004 09:08:10 -0600 > >Is AccessD down? I've not received ANY messages for two days. However, I >am receiving some on Dba-Tech. > >Curious. > >Greg Smith >Weeden1949 at hotmail.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx From greggs at msn.com Wed Feb 18 12:43:54 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 12:43:54 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Wed Feb 18 13:15:47 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 14:15:47 -0500 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Gregg, Thought for sure that's what you were bumping into. Only other thing that comes to mind is to check for any virus scanning that may be going on. Outside of that, I'm out of ideas. What I posted usually takes care of things. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 1:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 13:26:06 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 14:26:06 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <832758864.20040217175735@cactus.dk> Message-ID: Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, Jim. I have opened the db in a hex editor. There is something wrong for sure, but I don't know what to do. At the top of the bad file there is a line "This program cannot be run in DOS mode" In a healthy mdb, the line is "Standard Jet DB" Also, looking down thru the file, it seems as thought everything is gibberish as opposed to a good mdb which has some text in it I can recognize. That's as far as I can go without a little more help. Is there anything else that can be done (other than throwing in the towel)? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Wed Feb 18 13:35:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Feb 2004 13:35:05 -0600 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <2F8793082E00D4119A1700B0D0216BF80222789A@main2.marlow.com> Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Feb 18 13:43:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Feb 2004 20:43:51 +0100 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: Message-ID: <4942647704.20040218204351@cactus.dk> Hi Reuben If you in the hex editor after browsing down a few pages still don't see anything that looks like the pages from a new file, you can't do anything. Somehow (network or file server error) the file has been overwritten with an executable file of some sort. /gustav > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, > Jim. > I have opened the db in a hex editor. There is something wrong for sure, > but I don't know what to do. > At the top of the bad file there is a line "This program cannot be run in > DOS mode" > In a healthy mdb, the line is "Standard Jet DB" > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > That's as far as I can go without a little more help. > Is there anything else that can be done (other than throwing in the towel)? From joconnell at indy.rr.com Wed Feb 18 13:55:01 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Wed, 18 Feb 2004 14:55:01 -0500 Subject: [AccessD] Hiding Table in mde Message-ID: <037301c3f659$1abcaa00$6701a8c0@joe> Rocky, Search the archives for "Copy Protection". There was a long discussion of this topic and recommendations for several add-in products during October 2001. Joe O'Connell -----Original Message----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Date: Wednesday, February 18, 2004 12:45 PM Subject: Re: [AccessD] Hiding Table in mde |A.D.: | |What I'm trying to do is copy protect my program by putting a data bomb in |the opening form. Right now it's hard coded into the module's OnOpen event. |I was going to put the date bomb into a table but that table is accessible |to the user even in an mde. | |So I was trying to hide the table. But a more direct way would be to be |able to alter the line of code in the mde which contains the expire date. | |I've cooked up a more elaborate scheme now but haven't settled on a final |approach. I want the user to be able to call or email their serial number |and I give them a code to change the expiration date in their system. I've |done a key like this before for another client so I've got all the |code/decode stuff worked out. | |I'm just searching around for the simplest solution to protecting my |product. | |Regards, | |Rocky | |----- Original Message ----- |From: "A.D.Tejpal" |To: "Access Developers discussion and problem solving" | |Sent: Wednesday, February 18, 2004 8:57 AM |Subject: Re: [AccessD] Hiding Table in mde | | |Rocky, | | Could you kindly confirm that you wish to add a new program module for |manipulating existing objects in an mde - without having to go through the |conventional steps of first altering the code in original mdb and then |converting it into a fresh mde. | | If this be the case, an interesting solution could be adopted, so as to |meet your requirement. | |Regards, |A.D.Tejpal |-------------- | ----- Original Message ----- | From: Charlotte Foust | To: Access Developers discussion and problem solving | Sent: Tuesday, February 17, 2004 23:10 | Subject: RE: [AccessD] Hiding Table in mde | | | Code can't be modified in an mde at all, programmatically or otherwise. | That's the whole point. | | Charlotte Foust | | -----Original Message----- | From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] | Sent: Sunday, February 15, 2004 9:55 PM | To: Access Developers discussion and problem solving | Subject: Re: [AccessD] Hiding Table in mde | | | Doug: | | That would work but I'd prefer not to have the file external. Can code | be modified programmatically in an mde? | | Rocky | | ----- Original Message ----- | From: "Doug Murphy" | To: "'Access Developers discussion and problem solving'" | | Sent: Sunday, February 15, 2004 12:38 PM | Subject: RE: [AccessD] Hiding Table in mde | | | > One way to do this is to not put it in the database, but use an | > external file that is encrypted. Set the system up so it won't run if | | > the file isn't present and make the file hard for folks to find. | > | > Doug | > | > Douglas Murphy | > Murphy's Creativity | > (619) 334-5121 | > doug at murphyscreativity.com | > www.murphyscreativity.com | > | > | > | > | > -----Original Message----- | > From: accessd-bounces at databaseadvisors.com | > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky | > Smolin | > - Beach Access Software | > Sent: Sunday, February 15, 2004 7:41 AM | > To: AccessD at databaseadvisors.com | > Subject: [AccessD] Hiding Table in mde | > | > | > Dear List: | > | > Is there a way to prevent a user from importing a table from an mde | > into an mdb without putting a password on the mde? I'm trying to | > build a serial number/upgrade/license extension function into an app | > and will be storing the data in a front end table. | > | > TIA, | > | > Rocky Smolin | > Beach Access Software |_______________________________________________ |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com | |_______________________________________________ |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com From James at fcidms.com Wed Feb 18 13:59:28 2004 From: James at fcidms.com (James Barash) Date: Wed, 18 Feb 2004 14:59:28 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: I hate to say this but it looks like the file was overwritten with an exe file. The line "This program cannot be run in DOS mode" is part of the standard header for a Window exe that would display an error message if someone tried to run the program in DOS from the days where you could just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the same line. If that is indeed the case, then you are out of luck. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 2:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, Jim. I have opened the db in a hex editor. There is something wrong for sure, but I don't know what to do. At the top of the bad file there is a line "This program cannot be run in DOS mode" In a healthy mdb, the line is "Standard Jet DB" Also, looking down thru the file, it seems as thought everything is gibberish as opposed to a good mdb which has some text in it I can recognize. That's as far as I can go without a little more help. Is there anything else that can be done (other than throwing in the towel)? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:11:42 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:11:42 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Jim, After reading the Tech Info on it I was convinced that would do it. When I saw no change I thought maybe I missed a step or something. It turned out to be door #3 (below). My main form is open for the life of the app so I just connected it to a BE table. I went back and tried it with a dummy form and it worked!!! Thanks very much for your help! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 1:16 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Thought for sure that's what you were bumping into. Only other thing that comes to mind is to check for any virus scanning that may be going on. Outside of that, I'm out of ideas. What I posted usually takes care of things. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 1:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:13:45 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:13:45 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789A@main2.marlow.com> Message-ID: Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 14:17:42 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 15:17:42 -0500 Subject: [AccessD] Unrecognized Database Format - SOLVED In-Reply-To: Message-ID: Thanks to everyone who helped. The file was overwritten by our own exe update file. Our user, for some reason, saved the update to the data folder and actually saved it using the datafile name. I confirmed this by changing the extension of the 'mdb' to exe and ran it. It was the Winzip self extractor. Thanks for everyone's time and help. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of James Barash > Sent: Wednesday, February 18, 2004 2:59 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Unrecognized Database Format > > > I hate to say this but it looks like the file was overwritten with an > exe file. The line "This program cannot be run in DOS mode" is part of > the standard header for a Window exe that would display an error message > if someone tried to run the program in DOS from the days where you could > just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the > same line. If that is indeed the case, then you are out of luck. > > James Barash > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Wednesday, February 18, 2004 2:26 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. > Thanks, > Jim. > > I have opened the db in a hex editor. There is something wrong for > sure, > but I don't know what to do. > > At the top of the bad file there is a line "This program cannot be run > in > DOS mode" > > In a healthy mdb, the line is "Standard Jet DB" > > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > > That's as far as I can go without a little more help. > > Is there anything else that can be done (other than throwing in the > towel)? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > > Sent: Tuesday, February 17, 2004 11:58 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Hi Reuben > > > > Open it in a hex editor. If the header is overwritten with garbage the > > file is beyond normal repair, except if you can manage to overwrite > > with data copied form a freshly created database file. > > > > /gustav > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > I had them send me the BE and I have tried several things to open > it. I > > > can't decompile. I can't open to compact and repair. Can't > > link to it from > > > anything. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Wed Feb 18 14:23:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Feb 2004 14:23:31 -0600 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Just an FYI, this is a VERY good practice to get into. Using the 'hidden' frmLink method is very easy to setup, and relatively fool proof, since the form closes with the db, so there is no real 'handling' necessary once it's setup. With Aggregate functions, it is an absolute must, because they will constantly connect and disconnect from the backend, which will really bog things down. Access 97's help file had a description/recommendation for this process in the 'How to split a database' section. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 2:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:54:25 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:54:25 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Message-ID: Guess I missed that "How to split a database 101" course. How embarrassing. Thanks again! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 2:24 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Just an FYI, this is a VERY good practice to get into. Using the 'hidden' frmLink method is very easy to setup, and relatively fool proof, since the form closes with the db, so there is no real 'handling' necessary once it's setup. With Aggregate functions, it is an absolute must, because they will constantly connect and disconnect from the backend, which will really bog things down. Access 97's help file had a description/recommendation for this process in the 'How to split a database' section. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 2:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Wed Feb 18 15:58:16 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 18 Feb 2004 16:58:16 -0500 Subject: [AccessD] Unrecognized Database Format - SOLVED In-Reply-To: Message-ID: Bummer Indeed!! Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format - SOLVED Thanks to everyone who helped. The file was overwritten by our own exe update file. Our user, for some reason, saved the update to the data folder and actually saved it using the datafile name. I confirmed this by changing the extension of the 'mdb' to exe and ran it. It was the Winzip self extractor. Thanks for everyone's time and help. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of James Barash > Sent: Wednesday, February 18, 2004 2:59 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Unrecognized Database Format > > > I hate to say this but it looks like the file was overwritten with an > exe file. The line "This program cannot be run in DOS mode" is part of > the standard header for a Window exe that would display an error message > if someone tried to run the program in DOS from the days where you could > just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the > same line. If that is indeed the case, then you are out of luck. > > James Barash > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Wednesday, February 18, 2004 2:26 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. > Thanks, > Jim. > > I have opened the db in a hex editor. There is something wrong for > sure, > but I don't know what to do. > > At the top of the bad file there is a line "This program cannot be run > in > DOS mode" > > In a healthy mdb, the line is "Standard Jet DB" > > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > > That's as far as I can go without a little more help. > > Is there anything else that can be done (other than throwing in the > towel)? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > > Sent: Tuesday, February 17, 2004 11:58 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Hi Reuben > > > > Open it in a hex editor. If the header is overwritten with garbage the > > file is beyond normal repair, except if you can manage to overwrite > > with data copied form a freshly created database file. > > > > /gustav > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > I had them send me the BE and I have tried several things to open > it. I > > > can't decompile. I can't open to compact and repair. Can't > > link to it from > > > anything. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 18 16:01:22 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 14:01:22 -0800 (PST) Subject: [AccessD] Turn off message Message-ID: <20040218220122.96654.qmail@web20422.mail.yahoo.com> I'm using Access XP... I have a SHELL command that runs a batch file that registers a dll that I copy from a folder. When it gets done it pops up a message that says... DllRegisterServer in C:\blah blah blah succeeded. Does anyone know if there any way to suppress that message? Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From BBarabash at TappeConstruction.com Wed Feb 18 16:09:41 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 18 Feb 2004 16:09:41 -0600 Subject: [AccessD] Turn off message Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE386@TAPPEEXCH01> I assume you are using regsvr32. In which case, the /s switch will run it in silent mode. -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 18, 2004 4:01 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Turn off message I'm using Access XP... I have a SHELL command that runs a batch file that registers a dll that I copy from a folder. When it gets done it pops up a message that says... DllRegisterServer in C:\blah blah blah succeeded. Does anyone know if there any way to suppress that message? Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From d.dick at uws.edu.au Wed Feb 18 20:54:32 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 19 Feb 2004 13:54:32 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <40339014.9176.1AED0E1@localhost> Message-ID: <00e701c3f693$b387c230$48619a89@DDICK> Thanks Bryan Vlad and Stuart et al The first post I saw this morning was from Stuart - I tried his SQL and away she went - excellent. Many thanks to those who replied this list is awesome Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, February 18, 2004 5:17 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > I'd guess that FomattedStudentID is a text filed in which case you > need: > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)='" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" > > Note the single quote after the "=" and before the first ")" in the > second line. > > On 18 Feb 2004 at 16:53, Darren DICK wrote: > > > Thanks Steve > > Now I get > > Data Type mismatch in expression as the error message > > > > ----- Original Message ----- > > From: "Developer" > > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, February 18, 2004 4:29 PM > > Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > > > > > > > You hve to build the string like this: > > > > > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > > > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > > > > > --Steve > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 18 21:38:19 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 18 Feb 2004 19:38:19 -0800 Subject: [AccessD] Determining Scope of Project In-Reply-To: <4032F828.9367.190A9F@localhost> Message-ID: Where... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 18, 2004 2:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Wed Feb 18 21:43:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 18 Feb 2004 22:43:21 -0500 Subject: [AccessD] Determining Scope of Project In-Reply-To: References: <4032F828.9367.190A9F@localhost> Message-ID: <4033EA89.7913.E94BF6@localhost> On 18 Feb 2004 at 19:38, Jim Lawrence (AccessD) wrote: > Where... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan > Carbonnell > On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > > > There's one at www.candace-tripp.com > > > > Hover over MS Access at the top of the page, select downloads. At > > the bottom of the downloads page is an Application Profile form. > > Thanks Rusty. This is similar to the one I was thinking of. I finally > got it after having to resort to using IE. The site *only* seems to > work with IE. Firefox and Opera don't load the site :( Where what? -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That there's nothing sweeter than sleeping with your babies and feeling their breath on your cheeks. From jwcolby at colbyconsulting.com Wed Feb 18 23:07:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 19 Feb 2004 00:07:41 -0500 Subject: [AccessD] C2DbShutdown Message-ID: I have put C2DbShutdown up on my site. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Go to www.colbyconsulting.com and click on the top blue button - C2DbShutdown. That will take you to the page with the hotlink that allows download. I have been working on it, ironing out a few bugs and writing up a document so if you saw it or downloaded it previously, please download it again. Feedback welcome. I developed this for my own use and will be integrating it into a client application in the coming week. I'll let you know how it goes but it appears to be functioning quite well at this point. It is a pretty simple tool, with a pair of classes and a module with init code. Nothing too strenuous there. The source code is available and is reasonably well commented. Check it out and tell me what you think. Thanks, John W. Colby www.ColbyConsulting.com From Erwin.Craps at ithelps.be Thu Feb 19 01:38:57 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 08:38:57 +0100 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4F8@stekelbes.ithelps.local> Just a tought. Do you have virusscanners on both server and clients? I usealy remove the MD? Extension from the to be scanned files (that is default on in McAfee) on both server and client. If you have both on client and server a virusscanner you must set outbound scanning off on both client and server. Otherswise a files get scanned twice for same operation. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gregg Verzonden: woensdag 18 februari 2004 14:07 Aan: Access Developers discussion and problem solving Onderwerp: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 19 02:37:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Feb 2004 09:37:09 +0100 Subject: [AccessD] Re: xform design tools In-Reply-To: <753426316.20031008100637@cactus.dk> References: <753426316.20031008100637@cactus.dk> Message-ID: <894356263.20040219093709@cactus.dk> Hi those of you interested in XForms. I noted these comments and useful links on the present status of XForms which might be of interest for some of you. I'm quoting as the letter is not on-line yet. The SitePoint TECH TIMES #83 Copyright (c) 2004 February 18th, 2004 PLEASE FORWARD EDITORIAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - THE STATE OF XFORMS Back in the Tech Times #53 [1], I introduced XForms as the latest candidate recommendation to come out of the W3C. I explained the advantages it had over HTML forms, and even showed a simple example of how XForms work. At the time, the media buzz surrounding XForms came from the fact that Microsoft was building something called XDocs into its upcoming Office 2003 software. Many attributed Microsoft's refusal to endorse XForms to similarities that the recommendation bore to XDocs. Over a year later, Office 2003 has been released, XDocs is now called InfoPath [2], XForms has become a full-fledged W3C recommendation [3], and the fine folks at x-port.net have just released formsPlayer 1.0 [4], a free plug-in for Internet Explorer that fully complies with the XForms standard. So why aren't we seeing XForms springing up all over the Web? After all, the most popular Web browser in the world now supports them with a free plug-in! Due to the stagnation of Internet Explorer [5], all the ultra-keen Web developers who would normally jump on a technology like this have moved to Mozilla [6] (and Firefox [7]) as their development platform of choice. To put it bluntly, no one really cares what Internet Explorer can do now, because there is so much that it can't do (like properly support CSS2 [8]). So, the question is, what are the other browser makers doing about XForms? Mozilla is tracking requests for XForms support and volunteers interested in working on it in bug 97806 [9]. The comments on this bug, which dates back to the days when XForms was a working draft, make interesting reading. There are many opinions on why XForms may or may not be worthy of consideration for inclusion in Mozilla, but the status quo is that it remains a relatively low-priority feature request in need of good developers, despite having nearly 500 votes from community members. Apple (whose Safari browser has become a serious consideration for developers) and Opera issued a combined statement [10] last September in response to XForms becoming a proposed recommendation. In it, they outlined a list of "substantial issues" in the standard that they felt made XForms inappropriate as a replacement for HTML forms. When pressed, they admitted [11] that XForms was probably worthy as a platform for advanced forms development, as long as HTML forms remained as the mainstream choice in XHTML 2.0. So why all this negative sentiment towards XForms? Is it really so flawed? Like any new technology, XForms has a rough spot or two, but the productivity it offers to developers cannot be denied. Yet, while XForms itself isn't all that complex, it relies on a host of technologies that are fairly complex, and are not widely implemented in today's browsers. Quoting from Apple and Opera's statement, "XForms has too many dependencies. In addition to XForms itself, an XForms implementation needs to support XML with namespaces, XML Schema, XPath, XML Events, DOM Events, DOM Core, CSS, a stylesheet linking technology (e.g. the XML Stylesheet PI), and a host language (e.g. XHTML or SVG). In particular, its dependency on XML Schema is of great concern to us." The Mozilla bug discussion suggests that XML Schema [12] support is not strictly necessary for a basic implementation of XForms, but XML Events [13] is a definite piece of the puzzle that has yet to be built into Mozilla. Meanwhile, browsers like Opera and Safari are even further behind the curve. >From what I can tell, XForms has the dubious distinction of being one of the first implementations of a number of XML technolgies with mass appeal to Web developers. Though well thought out, none of these technologies has had a compelling reason to be buit into a Web browser before, and now, all of a sudden, they would all have to be built at once in order to support XForms. Even with a free, fully compliant plug-in for Internet Explorer, XForms has some serious hurdles to overcome before developers can consider it as a serious tool for general Web development. If you want to pitch in, I would definitely encourage you to contribute your services to the Mozilla project, but it will take some smart brains and a lot of work to bring XForms into the spotlight. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] The Archives are located at: http://www.sitepoint.com/newsletter/archives.php /gustav > Strangely, just this morning I received this link from Novell: > http://developer.novell.com/research/appnotes/2003/septembe/04/a0309046.htm#1849119 > Notice the headline and link > The Novell XForms Technology Preview (NXTP) > I have, however, no idea of the cost for this tool. > /gustav >> Date: 2003-10-08 03:58 >> I saw both of you had posted ?'s asking about the existence of any xforms design tools at the w3c-forms site. >> Have either of you found any? >> I am exploring QLink and Liquid Office, both of which seem to be much more than xforms, same story with holosofx (now ibm) >> Appreciate any help. >> Gene McKenna From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [AccessD] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [AccessD] [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From tomk at multiline.com.au Thu Feb 19 03:14:36 2004 From: tomk at multiline.com.au (Tom Keatley) Date: Thu, 19 Feb 2004 17:14:36 +0800 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> Message-ID: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Hi all.... I have a CSV file that I need to get information from and build a table in Access ....it contains 600 fields and of course I cant simply import it as it hits the access limit of 255 fields and will not import the whole file It is simply an Order for goods with 150 or so records but from 500 different locations. so ... Fields in the CSV file [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 fields I need to bring those into access and populate a table so.... [Item ] [itemcode][storeid1] [Item ] [itemcode][storeid2] [Item ] [itemcode][storeid3] [Item ] [itemcode][storeid4] [Item ] [itemcode][storeid5] [Item ] [itemcode][storeid6] etc using the data contained in [Item ] [itemcode] fields and using the fieldname from the 500 odd [storeid] fields as my store id. I have been playing with this for some hours so far and dont seem to be able to acheive what I need can anyone help? Regards Tom Keatley From gustav at cactus.dk Thu Feb 19 03:39:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Feb 2004 10:39:40 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) In-Reply-To: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <588107738.20040219103940@cactus.dk> Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need From Erwin.Craps at ithelps.be Thu Feb 19 04:03:54 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 11:03:54 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4FB@stekelbes.ithelps.local> You could open the file in Excel and split fields in multiple files keeping the UID in each excel files. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 19, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a > table in Access ....it contains 600 fields and of course I cant > simply import it as it hits the access limit of 255 fields and will > not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] > [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 > fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to > be able to acheive what I need _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 19 04:04:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 11:04:17 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4FC@stekelbes.ithelps.local> That in case its a one time shot.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 19, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a > table in Access ....it contains 600 fields and of course I cant > simply import it as it hits the access limit of 255 fields and will > not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] > [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 > fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to > be able to acheive what I need _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ayishakca at yahoo.ca Thu Feb 19 04:37:11 2004 From: ayishakca at yahoo.ca (Ayisha) Date: Thu, 19 Feb 2004 13:37:11 +0300 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <015901c3f6d4$59fe3f00$95d15dd4@ali> Hello Tom, The simple way is to create a store table with storeid, import the item. You can import all records, you dont need 600 Tables. Just need 2 tables. Can you just upload some sample, we can have a look. Ayisha ----- Original Message ----- From: "Tom Keatley" To: "Access Developers discussion and problem solving" Sent: Thursday, February 19, 2004 12:14 PM Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) > Hi all.... > > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > > It is simply an Order for goods with 150 or so records but from 500 > different locations. > > so ... > > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need > > can anyone help? > > Regards > > Tom Keatley > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 19 05:37:59 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Feb 2004 21:37:59 +1000 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) In-Reply-To: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <40352CB7.19925.7FAA164@localhost> On 19 Feb 2004 at 17:14, Tom Keatley wrote: > Hi all.... > > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > > It is simply an Order for goods with 150 or so records but from 500 > different locations. > > so ... > > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need > You need something like the following (air code, so will proably need some tweeking). Note this use DAO, ADO would be similar Dim strTemp as string Dim rs as DAO.Recordset Dim myArray() as String Dim Loopcount as long Set rs = Currentdb.OpenRecordset("tblMyTable") Open "MyFile.CSV" for input as #1 While Not EOF(1) 'Read the next line in Line Input #1, strTemp 'Split the fields into an Array myArray = Split(strTemp,",") 'Loop through the elements of the Array and create then the records For Loopcount = 2 to Ubound(myArray) rs.AddNew rs(0) = myArray(0) 'Item rs(1) = myArray(1) 'ItemCode rs(2) = Loopcount - 1 'StoreID rs(3) = myArray(Loopcount) 'Qty rs.Update Next Wend -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From rl_stewart at highstream.net Thu Feb 19 07:50:24 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 19 Feb 2004 07:50:24 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402190837.i1J8b9U06280@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040219074924.02a90868@pop3.highstream.net> I remember reading about a year ago that if you opened the MDB in Word by accident that you would trash it completely. Could that have happened? At 02:37 AM 2/19/2004 -0600, you wrote: >Date: Wed, 18 Feb 2004 14:26:06 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="us-ascii" > >Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, >Jim. > >I have opened the db in a hex editor. There is something wrong for sure, >but I don't know what to do. > >At the top of the bad file there is a line "This program cannot be run in >DOS mode" > >In a healthy mdb, the line is "Standard Jet DB" > >Also, looking down thru the file, it seems as thought everything is >gibberish as opposed to a good mdb which has some text in it I can >recognize. > >That's as far as I can go without a little more help. > >Is there anything else that can be done (other than throwing in the towel)? > >Thanks. > >Reuben Cummings From tinanfields at torchlake.com Thu Feb 19 07:58:13 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 19 Feb 2004 08:58:13 -0500 Subject: [AccessD] Administrivia - Software Updates Done References: <61F915314798D311A2F800A0C9C83188047C6AD4@dibble.observatory.donnslaw.co.uk> Message-ID: <4034C0F5.9020901@torchlake.com> Me too !!!!! T. Roz Clarke wrote: >yikes! > >me too, me too! > >;) > >Roz > >-----Original Message----- >From: Andy Lacey [mailto:andy at minstersystems.co.uk] >Sent: 15 February 2004 17:13 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Administrivia - Software Updates Done > > >(Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > >Andy Lacey >http://www.minstersystems.co.uk > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Susan Harkins >>Sent: 14 February 2004 23:32 >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Administrivia - Software Updates Done >> >> >>And at the risk of being flamed for a me too -- I'll brave it >>-- thank you for all you do for us. :) >> >>Susan H. >> >>Thank you Bryan! >> >>I'll say once that here and on each of the dba lists which I >>got the good news on ;-) >> >>Great job. Can't thank you enough. Happy Valentines day too. >> >>Gary Kjos >>garykjos at hotmail.com >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/a> ccessd >>Website: >>http://www.databaseadvisors.com >> >> >> >> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From prodevmg at yahoo.com Thu Feb 19 08:05:57 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:05:57 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used Message-ID: <20040219140557.80382.qmail@web20416.mail.yahoo.com> Is there a general windows feature, maybe an API or something that can detect key or mouse movement? I want to shutdown user front end applications if no activity occurs after a certain period of time. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From prodevmg at yahoo.com Thu Feb 19 08:21:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:21:51 -0800 (PST) Subject: [AccessD] [dba-VB] DataGrid Buttons In-Reply-To: <16335556.1077180981123.JavaMail.www@wwinf3004> Message-ID: <20040219142151.85162.qmail@web20416.mail.yahoo.com> Assuming you are talking about the datasheet view of a form or subform, you may be able to just change the field in question to a combo box and change the row source type to value list, put in the values in the row source separated by a semi-colon and then set the limit to list property to yes. paul.hartland at fsmail.net wrote:To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this?? Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From wdhindman at bellsouth.net Thu Feb 19 08:30:55 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 19 Feb 2004 09:30:55 -0500 Subject: [AccessD] Shutting down applications if they are not being used References: <20040219140557.80382.qmail@web20416.mail.yahoo.com> Message-ID: <007101c3f6f4$fbfd7210$6101a8c0@dejpolsys> http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prodevmg at yahoo.com Thu Feb 19 08:59:17 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:59:17 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <007101c3f6f4$fbfd7210$6101a8c0@dejpolsys> Message-ID: <20040219145917.95470.qmail@web20413.mail.yahoo.com> Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From John.Clark at niagaracounty.com Thu Feb 19 09:21:46 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 10:21:46 -0500 Subject: [AccessD] InputBox sizing Message-ID: Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John From paul.hartland at fsmail.net Thu Feb 19 09:40:10 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 16:40:10 +0100 (CET) Subject: [AccessD] InputBox sizing Message-ID: <424351.1077205210872.JavaMail.www@wwinf3005> John, The way I have got round this in the past is to put the InputBox command inside a loop checking for the required entry. Paul Message date : Feb 19 2004, 03:30 PM >From : "John Clark" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] InputBox sizing Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Lambert.Heenan at AIG.com Thu Feb 19 09:53:53 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 19 Feb 2004 10:53:53 -0500 Subject: [AccessD] InputBox sizing Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7E7B@xlivmbx12.aig.com> This looks like a case for a custom dialog box. Design a small form with two buttons on it, "Report" and "Labels", also on the form you need a hidden textbox, call it "Answer". Make sure the form does *not* have a close button, and make it a modal popup. The two button's OnClick events would do the following Answer = "Labels" ' or "Report" depending on which button is clicked Me.Visible = False Then the code that calls this form (we'll call it "RepOrLab_frm") would look like this... DoCmd.OpenForm "RepOrLab_frm",,,,,acDialog ' opening the form in dialog mode halts this code until the ' form either closes or is made invisible Opt=Forms("RepOrLab_frm").Answer DoCmd.Close acForm ,"RepOrLAb" ' and then on with the show. HTH Lambert > -----Original Message----- > From: John Clark [SMTP:John.Clark at niagaracounty.com] > Sent: Thursday, February 19, 2004 10:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] InputBox sizing > > Caution--Potential 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and I > would like to shorten it up, if possible. It isn't simply that it looks > dumb, but you just know user will try to type more if there is room. Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Thu Feb 19 10:19:53 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 08:19:53 -0800 (PST) Subject: [AccessD] InputBox sizing In-Reply-To: Message-ID: <20040219161953.16816.qmail@web20413.mail.yahoo.com> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From cfoust at infostatsystems.com Thu Feb 19 10:36:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 08:36:03 -0800 Subject: [AccessD] Determining Scope of Project Message-ID: http://www.candace-tripp.com/_pages/access_downloads.asp Charlotte Foust -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 18, 2004 7:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project Where... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 18, 2004 2:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From weeden1949 at hotmail.com Thu Feb 19 10:40:52 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Thu, 19 Feb 2004 10:40:52 -0600 Subject: [AccessD] OT Outlook 2003 Outbound Image/Attach Corruption References: Message-ID: I know this is off-topic a bit for this group but I also know that a lot of you have a lot of experience with Outlook and maybe you've run into this before. I hope. Any embedded images or attachments to my outbound emails are being corrupted. Sometimes just part of the images (if there are three or four in the body of the email, then two of them are damaged or corrupted...partially or completely) are damaged. Sometimes NONE of them. Sometimes the attachments, sometimes not. Size does not seem to matter...except it takes longer for me to find out they were corrupted if it's a large image. If I set up my ISP email on Outlook Express and send emails that way...they get corrupted as well. So it happens in both OE (latest ver on XP) and Outlook 2003. I use Starband as my ISP (no choice...vs phone line...blech...), it's kind of slow outbound, but if I send emails out with attachments through hotmail...no problem...using Starband. Took out firewall. No change. Shut down Norton AV. No change. Connected my laptop (WinXP & Outlook 2003) to the network...sends everything just FINE, using same ISP. Everything seems to point to my installation of Outlook 2003 on my desktop. Ran MSOffice Repair utility from CD: No change. Uninstalled Outlook 2003 (using M$ install CD), reinstalled. No change. Set security in Outlook to Zip, zero, nada..nothing: No change. Both my laptop and my desktop are patched to the latest MSOffice critical service packs. And one works, one doesn't. Both receive everything ok...no problem on the inbound. I've looked all over tech support at M$, but didn't find anything that gave me any clues as to what to check. Anyone ever see this behavior before? TIA...Greg Smith Weeden1949 at hotmail.com From John.Clark at niagaracounty.com Thu Feb 19 10:55:15 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 11:55:15 -0500 Subject: [AccessD] InputBox sizing...leading into yet another question...using a drop-down for reports Message-ID: Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Feb 19 11:08:53 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 19 Feb 2004 12:08:53 -0500 Subject: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports References: Message-ID: <003001c3f70b$0d652820$6101a8c0@dejpolsys> John ...I think you may be approaching this in the wrong way ...you might want to define basic report queries and then provide a generic means for your users to temporarily modify them as needed without changing your query definitions ...I use a modified version of Nyberg's RFil sample mdb to accomplish this ...makes my life a whole lot simpler while keeping the users happy: http://www.mile50.com/access/index.htm ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Clark" To: Sent: Thursday, February 19, 2004 11:55 AM Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports > Yeah, that's what I figured. Thanks for the help though. I figured on > doing something like the form Lambert had suggested, but I hadn't > thought to use check boxes. But this does give me another idea though. > > I originally had this issue because the users quickly outgrew my > reports menu--they said they wouldn't need more that a couple and I had > made room for five despite what they said. Well they have come up with > a bunch that are very similar, but each has a different specialty--as a > bunch I am referring to them as 'Program Reports', since they each > feature a different program that the department runs. > > Since I am doing a separate pop-up, I am thinking of using a drop-down > list with the report names in it--there may be around 12-15 or so of > these reports. Is there a way of creating a table or query listing > available reports, or more specifically, but less probable, certain > types of reports--I could flag them somehow--and have them pipe into a > drop-down. Or will I need to place these in myself, which I think I will > probably have to do? > > Thanks again! > > John > > >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> > > Bottom line, the Input Box IS NOT sizable. You will have to create your > own custom dialog box as suggested. > > John Clark wrote:Caution--Potential > 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and > I > would like to shorten it up, if possible. It isn't simply that it > looks > dumb, but you just know user will try to type more if there is room. > Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Feb 19 11:39:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 09:39:17 -0800 Subject: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Message-ID: What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Thu Feb 19 12:14:19 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 13:14:19 -0500 Subject: [AccessD] InputBox sizing...leading into yetanotherquestion...using a drop-down for reports Message-ID: Thank you William and Charlotte! It would be great to do what you suggest William, but I'm not sure I can--although the reports are very much alike, there are a couple of them that have slight differences. I am going to look into accounting for these differences programmically though, in which case this would work for me. I think I was trying to say exactly what Charlotte ended up saying--regarding the custom property. I'm looking forward to checking this out. Thanks again! John W Clark >>> wdhindman at bellsouth.net 2/19/2004 12:08:53 PM >>> John ...I think you may be approaching this in the wrong way ...you might want to define basic report queries and then provide a generic means for your users to temporarily modify them as needed without changing your query definitions ...I use a modified version of Nyberg's RFil sample mdb to accomplish this ...makes my life a whole lot simpler while keeping the users happy: http://www.mile50.com/access/index.htm ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Clark" To: Sent: Thursday, February 19, 2004 11:55 AM Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports > Yeah, that's what I figured. Thanks for the help though. I figured on > doing something like the form Lambert had suggested, but I hadn't > thought to use check boxes. But this does give me another idea though. > > I originally had this issue because the users quickly outgrew my > reports menu--they said they wouldn't need more that a couple and I had > made room for five despite what they said. Well they have come up with > a bunch that are very similar, but each has a different specialty--as a > bunch I am referring to them as 'Program Reports', since they each > feature a different program that the department runs. > > Since I am doing a separate pop-up, I am thinking of using a drop-down > list with the report names in it--there may be around 12-15 or so of > these reports. Is there a way of creating a table or query listing > available reports, or more specifically, but less probable, certain > types of reports--I could flag them somehow--and have them pipe into a > drop-down. Or will I need to place these in myself, which I think I will > probably have to do? > > Thanks again! > > John > > >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> > > Bottom line, the Input Box IS NOT sizable. You will have to create your > own custom dialog box as suggested. > > John Clark wrote:Caution--Potential > 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and > I > would like to shorten it up, if possible. It isn't simply that it > looks > dumb, but you just know user will try to type more if there is room. > Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 12:17:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 10:17:58 -0800 Subject: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Message-ID: Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 19 13:05:11 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 19 Feb 2004 13:05:11 -0600 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports In-Reply-To: <200402191800.i1JI0QU30152@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040219130059.02a01a20@pop3.highstream.net> John, The code below will populate a table with a list of reports. Note that the Description is used to hold specific information. An Autonumber column for the Unique ID of the report. The English title for the report The type of the report (i.e. Summary, Monthly, Annual, etc.) The form to open if the report requires criteria. By doing it this way, you do not have to open each report in design view to get information about it. And, since this code runs on open of the form, you will always get the most recent list of reports. You can also reduce the number of report options on your menu to one...the one that opens this form. For those interested, I also do something similar for my lookup tables. So there is only one menu option for maintaining that list. WATCH FOR LINE WRAP Robert Private Sub Form_Open(Cancel As Integer) Dim db As Database Dim cntr As Container Dim intI As Integer Dim strS As String Dim rs As Recordset On Error Resume Next strS = "" Set db = CurrentDb() db.Execute "DELETE * FROM tsys_Report;" Set rs = db.OpenRecordset("tsys_Report", dbOpenDynaset) Set cntr = db.Containers("REPORTS") For intI = 0 To cntr.Documents.Count If cntr.Documents(intI).Properties("Description") <> "" Then rs.AddNew rs!ReportName = cntr.Documents(intI).Name rs!ReportDescription = cntr.Documents(intI).Properties("Description") strS = cntr.Documents(intI).Properties("Description") ' Parse the data out to other fields rs!ReportTitle = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!ReportType = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!FormToOpen = strS rs.Update End If Next rs.Close db.Close Set db = Nothing End Sub At 12:00 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:55:15 -0500 >From: "John Clark" >Subject: Re: [AccessD] InputBox sizing...leading into yet another > question...using a drop-down for reports >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Yeah, that's what I figured. Thanks for the help though. I figured on >doing something like the form Lambert had suggested, but I hadn't >thought to use check boxes. But this does give me another idea though. > >I originally had this issue because the users quickly outgrew my >reports menu--they said they wouldn't need more that a couple and I had >made room for five despite what they said. Well they have come up with >a bunch that are very similar, but each has a different specialty--as a >bunch I am referring to them as 'Program Reports', since they each >feature a different program that the department runs. > >Since I am doing a separate pop-up, I am thinking of using a drop-down >list with the report names in it--there may be around 12-15 or so of >these reports. Is there a way of creating a table or query listing >available reports, or more specifically, but less probable, certain >types of reports--I could flag them somehow--and have them pipe into a >drop-down. Or will I need to place these in myself, which I think I will >probably have to do? > >Thanks again! > >John From John.Clark at niagaracounty.com Thu Feb 19 13:14:16 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 14:14:16 -0500 Subject: [AccessD] Help Charlotte! Message-ID: I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Thu Feb 19 13:27:27 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 11:27:27 -0800 (PST) Subject: [AccessD] Help Charlotte! In-Reply-To: Message-ID: <20040219192727.58985.qmail@web20415.mail.yahoo.com> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jwcolby at colbyconsulting.com Thu Feb 19 13:32:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 19 Feb 2004 14:32:40 -0500 Subject: [AccessD] Help Charlotte! In-Reply-To: Message-ID: Look for a missing reference. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Thursday, February 19, 2004 2:14 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help Charlotte! I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 13:43:32 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 11:43:32 -0800 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports Message-ID: I prefer to use a custom property so that the description property can be used for other things. Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Thursday, February 19, 2004 11:05 AM To: accessd at databaseadvisors.com Cc: John.Clark at niagaracounty.com Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports John, The code below will populate a table with a list of reports. Note that the Description is used to hold specific information. An Autonumber column for the Unique ID of the report. The English title for the report The type of the report (i.e. Summary, Monthly, Annual, etc.) The form to open if the report requires criteria. By doing it this way, you do not have to open each report in design view to get information about it. And, since this code runs on open of the form, you will always get the most recent list of reports. You can also reduce the number of report options on your menu to one...the one that opens this form. For those interested, I also do something similar for my lookup tables. So there is only one menu option for maintaining that list. WATCH FOR LINE WRAP Robert Private Sub Form_Open(Cancel As Integer) Dim db As Database Dim cntr As Container Dim intI As Integer Dim strS As String Dim rs As Recordset On Error Resume Next strS = "" Set db = CurrentDb() db.Execute "DELETE * FROM tsys_Report;" Set rs = db.OpenRecordset("tsys_Report", dbOpenDynaset) Set cntr = db.Containers("REPORTS") For intI = 0 To cntr.Documents.Count If cntr.Documents(intI).Properties("Description") <> "" Then rs.AddNew rs!ReportName = cntr.Documents(intI).Name rs!ReportDescription = cntr.Documents(intI).Properties("Description") strS = cntr.Documents(intI).Properties("Description") ' Parse the data out to other fields rs!ReportTitle = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!ReportType = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!FormToOpen = strS rs.Update End If Next rs.Close db.Close Set db = Nothing End Sub At 12:00 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:55:15 -0500 >From: "John Clark" >Subject: Re: [AccessD] InputBox sizing...leading into yet another > question...using a drop-down for reports >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Yeah, that's what I figured. Thanks for the help though. I figured on >doing something like the form Lambert had suggested, but I hadn't >thought to use check boxes. But this does give me another idea though. > >I originally had this issue because the users quickly outgrew my >reports menu--they said they wouldn't need more that a couple and I had >made room for five despite what they said. Well they have come up with >a bunch that are very similar, but each has a different specialty--as a >bunch I am referring to them as 'Program Reports', since they each >feature a different program that the department runs. > >Since I am doing a separate pop-up, I am thinking of using a drop-down >list with the report names in it--there may be around 12-15 or so of >these reports. Is there a way of creating a table or query listing >available reports, or more specifically, but less probable, certain >types of reports--I could flag them somehow--and have them pipe into a >drop-down. Or will I need to place these in myself, which I think I >will probably have to do? > >Thanks again! > >John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 13:45:57 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 11:45:57 -0800 Subject: [AccessD] Help Charlotte! Message-ID: If you downloaded the 2000 version, you may have a missing reference to one of the ADO libraries. Try downloading the 97 version instead. They do the same things in DAO, but the 97 version doesn't have the ADO alternative. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 11:14 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help Charlotte! I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Thu Feb 19 15:28:33 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Thu, 19 Feb 2004 16:28:33 -0500 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: Thanks for all the suggestions Mark Matte sent me a db that gave me what I needed. It searched out and enter into a table. all the directories in the drive. Then searched for the MDB's and put the filename, size, time, and full path into another table. I was able to create a nicely formatted report with the full path name, file name, size, and date to send to our unit. I tweaked the forms to allow me to search for all files or just A specific file extension. Drew's Drive Mapper was another good utility. The only problem I had with it was getting the full file path to print correctly. If there were several levels of subdirectories I had to try to loop through to rebuild the full path. I just really didn't have time to play with the code needed to do this. The karenware powertool was ok but with the db I was able to get a better looking report. Thanks again Patti From pedro at plex.nl Thu Feb 19 15:24:54 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 19 Feb 2004 22:24:54 +0100 Subject: [AccessD] Re: need help with filter code References: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Message-ID: <006601c3f72e$f2d75360$f4c581d5@pedro> Hello Robert (and others), i used your code to filter on multiple fields. I works, but in the query, not in the form. When i enter a value in the txtbox and click the command button, nothing happens. Looking in the query_1 i see that the Like ... Or statement is placed in the fields. Looking in the queryview it also filters the right values. Then returning to the form and looking in its view, then it is showing the exact values. I tried to requery and refresh in the code, but nothing changed. Do you know how this is possible? Pedro Janssen ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 17, 2004 7:34 PM Subject: [AccessD] Re: need help with filter code > Here are the steps that I would take: > > 1. Create a base query with all the fields you want to display. > i.e. sqry_FilterQuery_0 > > 2. Do a save as and save the same query with an _1 on the end instead of _0. > > In the code behind the OnClick event of your command button place the > following: > > dim db as dao.database > dim qdf as dao.querydef > dim strSql as string > dim strWhere as string > set db=currentdb() > set qdf=db.querydefs("base query name") > ' removes the ; from the end of the query string > strsql = mid(qdf.sql,1,len(qdf.sql)-3) > strwhere = " WHERE (" > ' build the string for each of the 6 columns you want to search in > strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" > set qdf = db.querydefs("_1 query name") > qdf.sql = strsql & strwhere > db.close > set db=nothing > ' enter the code here to open either the _1 query or a form/report > ' based on the _1 query > > By doing it this way, you do not have to fool around with the filter property. > > Robert > > Replace the column1-6 with the names of the columns that you want to search > in. Replace me!textbox with the name of the text box you are entering the > criteria in. Replace "base query name" with the name of the _0 > query. Replace "_1 query name" with the name of the _1 query. > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 10:35:01 +0100 > >From: "Pedro Janssen" > >Subject: [AccessD] need help with filter code > >To: > >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Group, > > > >i have 6 patients fields in which i want to do a search on their names. > >I don't want to use the existing filter in access, but search with a > >commandbutton and a textbox. > >I can use the following code with 6 cmdbuttons and 6 textboxes, > >but that doesn't work in practice. > >What i want is one cmdbutton and one txtbox that searches true all 6 fields > >Can you help me on this? > > > > > >Private sub cmdsearch1_Click() > >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" > >Me.FilterOn = True > >Me.Requery > >Me.Refresh > > > >End Sub > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Thu Feb 19 18:05:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 19 Feb 2004 18:05:37 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278AE@main2.marlow.com> Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 19 18:31:41 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 19 Feb 2004 18:31:41 -0600 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278AF@main2.marlow.com> ROTFL! Sorry, completely forgot about that! I normalized the path structure that way, because it was much smaller to represent everything with it's own ID. Put the following function into that db... Function GetFullPath(intRootID As Long, strDriveLetter As String, strCurrentFolder As String) As String Dim rs As Recordset Dim intRoot As Long Dim strPath As String Dim strSQL As String Dim strFolderName As String intRoot = intRootID If intRoot = 0 Then strFolderName = "" Else strFolderName = strCurrentFolder & "\" End If Do Until intRoot = 0 strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE FolderKey=" & intRoot Set rs = CurrentDb.OpenRecordset(strSQL) intRoot = rs.Fields(1).Value If intRoot = 0 Then Exit Do strPath = strPath & rs.Fields(0).Value & "\" rs.Close Loop GetFullPath = strDriveLetter & ":\" & strFolderName & strPath End Function Then use this query...the last field will be the full path of the file. SELECT tblFiles.FileName, tblFiles.FileSize, GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderName]) AS Path FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON tblFolders.DriveKey = tblDriveHeader.DriveKey) ON tblFiles.RootFolder = tblFolders.FolderKey; Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Thursday, February 19, 2004 3:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save - Thanks solved Thanks for all the suggestions Mark Matte sent me a db that gave me what I needed. It searched out and enter into a table. all the directories in the drive. Then searched for the MDB's and put the filename, size, time, and full path into another table. I was able to create a nicely formatted report with the full path name, file name, size, and date to send to our unit. I tweaked the forms to allow me to search for all files or just A specific file extension. Drew's Drive Mapper was another good utility. The only problem I had with it was getting the full file path to print correctly. If there were several levels of subdirectories I had to try to loop through to rebuild the full path. I just really didn't have time to play with the code needed to do this. The karenware powertool was ok but with the db I was able to get a better looking report. Thanks again Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Feb 19 20:30:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 20 Feb 2004 13:30:12 +1100 Subject: [AccessD] A2K:Data Type Mismatch in expression Message-ID: <019801c3f759$77449840$48619a89@DDICK> Hi Guys This is basically the same question I asked the other day that Stuart and some others answered This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly different SQL. I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single quotes and stuff, but I just cant get it right I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ Dim selSQL As String Dim rs As Object Dim con As Object Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection selSQL = "SELECT tblStudents, tblStudents.StudentID " _ & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here With rs MsgBox .RecordCount x = .RecordCount End With '++++++++++++++++++++++++++++++++++++++++++++++++++++++ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 19 21:19:46 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 20 Feb 2004 13:19:46 +1000 Subject: [AccessD] A2K:Data Type Mismatch in expression In-Reply-To: <019801c3f759$77449840$48619a89@DDICK> Message-ID: <40360972.2392.146DCE1@localhost> This time, I'd guess that StudentID in NOT a text field, so you don't want the two single quotes at all. You seem to be missing the first field name in the select statement You are missing a closing double quote after & "FROM tblStudents (note you also need a space after the tblStudents and before the double quote) So try: selSQL = "SELECT tblStudents, tblStudents.StudentID " _ & "FROM tblStudents " _ & "WHERE (((tblStudents.StudentID)=" _ & [Forms]![frmStudents]![txtStudentID] & "));" On 20 Feb 2004 at 13:30, Darren DICK wrote: > Hi Guys > This is basically the same question I asked the other day that Stuart and some others answered > This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly > different SQL. > I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single > quotes and stuff, but I just cant get it right > > I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type > "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! > > '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Dim selSQL As String > Dim rs As Object > Dim con As Object > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" > > rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here > > With rs > MsgBox .RecordCount > x = .RecordCount > End With > '++++++++++++++++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Feb 19 22:15:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 19 Feb 2004 23:15:25 -0500 Subject: [AccessD] Name of page header and footer section Message-ID: <20040220041522.FVAX22977.imf23aec.mail.bellsouth.net@SUSANONE> I've noticed that the report page header and footer section is PageHeaderSection and PageFooterSection -- it seems to be the only section with "section" tacked on. Looking at reports in Northwind, some sections are named just PageHeader and PageFooter. Is this a throw back to a much earlier version? I've checked back to 2000, and that version has "section" tacked on. Can someone with 97 or 95 check the default names of these page sections and see what they are? Thanks -- I don't have an older version installed. Susan H. From lists at jbsolutions.com.au Thu Feb 19 22:29:13 2004 From: lists at jbsolutions.com.au (Joshua B) Date: Fri, 20 Feb 2004 14:29:13 +1000 Subject: [AccessD] Name of page header and footer section Message-ID: <200402200428.i1K4SrU04752@databaseadvisors.com> Hello Susan, '97 is just PageHeader and PageFooter by default, no "Section"... ======= At 2004-02-19, 23:15:00 you wrote: ======= >I've noticed that the report page header and footer section is >PageHeaderSection and PageFooterSection -- it seems to be the only section >with "section" tacked on. > >Looking at reports in Northwind, some sections are named just PageHeader and >PageFooter. Is this a throw back to a much earlier version? I've checked >back to 2000, and that version has "section" tacked on. > >Can someone with 97 or 95 check the default names of these page sections and >see what they are? Thanks -- I don't have an older version installed. > >Susan H. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-20 From andy at minstersystems.co.uk Fri Feb 20 01:50:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 20 Feb 2004 07:50:43 -0000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 In-Reply-To: <4035324D.32194.1193E41@localhost> Message-ID: <00fa01c3f786$3deb1240$b274d0d5@minster33c3r25> 2 of each on SQL server list and 5 !!! Of each on AccessD. Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 20 February 2004 03:02 > To: accessd at databaseadvisors.com; > dba-vb at databaseadvisors.com; dba-sqlserver at databaseadvisors.com > Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 > > > Test 1 of 2. > > DO NOT REPLY!!! > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > I'm not a complete idiot some parts are missing. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Fri Feb 20 07:11:57 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 20 Feb 2004 07:11:57 -0600 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports In-Reply-To: <200402200320.i1K3KCU26331@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040220070937.029a2e80@pop3.highstream.net> Charlotte, Is the custom property available in the Documents collection? One of the reasons I started doing it this way was so I did not have to generated the list of reports for the table by opening all the reports in design view. Robert At 09:20 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:43:32 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: InputBox sizing...leading into yet another > question...using a drop-down for reports >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I prefer to use a custom property so that the description property can >be used for other things. > >Charlotte Foust From rl_stewart at highstream.net Fri Feb 20 07:18:25 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 20 Feb 2004 07:18:25 -0600 Subject: [AccessD] Re: need help with filter code In-Reply-To: <200402200320.i1K3KCU26331@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040220071410.02982a48@pop3.highstream.net> Pedro, Is the form based on the _1 query? Are you filtering the current form, or opening a different form from the button? If you are filtering the current form. you need to do me.requery. If it is a new form you are opening, then you just need to check and make sure you are using the _1 query and not the _0 query. I use this for reports and forms all the time to filter the information for them. If you continue to have problems with it, send me a zip with the forms, querys, and tables that are involved and I will look at it for you. Robert At 09:20 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 22:24:54 +0100 >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: need help with filter code >To: "Access Developers discussion and problem solving" > >Message-ID: <006601c3f72e$f2d75360$f4c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert (and others), > >i used your code to filter on multiple fields. >I works, but in the query, not in the form. >When i enter a value in the txtbox and click the command button, >nothing happens. Looking in the query_1 i see that the Like ... Or statement >is placed in the fields. Looking in the queryview it also filters the right >values. >Then returning to the form and looking in its view, then it is showing the >exact >values. I tried to requery and refresh in the code, but nothing changed. >Do you know how this is possible? > >Pedro Janssen From pedro at plex.nl Fri Feb 20 14:43:07 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 20 Feb 2004 14:43:07 (MET) Subject: [AccessD] Re: need help with filter code Message-ID: <200402201343.i1KDh7RM028562@mailhostC.plex.net> Hello Robert, the form is based on the _1 query, and i allready places me.requery in the code , between the last line of code you gave me and the End Sub. Pedro Janssen In antwoord op: > From: "Robert L. Stewart" > To: accessd at databaseadvisors.com > Cc: pedro at plex.nl > Date: Fri, 20 Feb 2004 07:18:25 -0600 > Subject: [AccessD] Re: need help with filter code > > > Pedro, > > Is the form based on the _1 query? > > Are you filtering the current form, or > opening a different form from the button? > > If you are filtering the current form. you > need to do me.requery. If it is a new form > you are opening, then you just need to check > and make sure you are using the _1 query and > not the _0 query. > > I use this for reports and forms all the time > to filter the information for them. > > If you continue to have problems with it, send > me a zip with the forms, querys, and tables > that are involved and I will look at it for you. > > Robert > > At 09:20 PM 2/19/2004 -0600, you wrote: > >Date: Thu, 19 Feb 2004 22:24:54 +0100 > >From: "Pedro Janssen" > >Subject: Re: [AccessD] Re: need help with filter code > >To: "Access Developers discussion and problem solving" > > > >Message-ID: <006601c3f72e$f2d75360$f4c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Robert (and others), > > > >i used your code to filter on multiple fields. > >I works, but in the query, not in the form. > >When i enter a value in the txtbox and click the command button, > >nothing happens. Looking in the query_1 i see that the Like ... Or statement > >is placed in the fields. Looking in the queryview it also filters the right > >values. > >Then returning to the form and looking in its view, then it is showing the > >exact > >values. I tried to requery and refresh in the code, but nothing changed. > >Do you know how this is possible? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Fri Feb 20 08:10:11 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Feb 2004 14:10:11 +0000 Subject: [AccessD] Table Structure questions Message-ID: Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx From markamatte at hotmail.com Fri Feb 20 08:17:21 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Feb 2004 14:17:21 +0000 Subject: [AccessD] Pass-Through Query Message-ID: Hello All, I've never really looked at Pass-Through Queries...often heard about them...even read through the archives and help...lots of examples...but what are some practical uses, purposes or benefits? Thanks, Mark _________________________________________________________________ Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From ssharkins at bellsouth.net Fri Feb 20 09:24:10 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 20 Feb 2004 10:24:10 -0500 Subject: [AccessD] Name of page header and footer section In-Reply-To: <200402200428.i1K4SrU04752@databaseadvisors.com> Message-ID: <20040220152432.JYRA15673.imf22aec.mail.bellsouth.net@SUSANONE> Thanks -- that answers my question. I wonder why they changed it -- seems like an odd thing to do. ;) Thanks again! Susan H. Hello Susan, '97 is just PageHeader and PageFooter by default, no "Section"... ======= At 2004-02-19, 23:15:00 you wrote: ======= >I've noticed that the report page header and footer section is >PageHeaderSection and PageFooterSection -- it seems to be the only >section with "section" tacked on. > >Looking at reports in Northwind, some sections are named just >PageHeader and PageFooter. Is this a throw back to a much earlier >version? I've checked back to 2000, and that version has "section" tacked on. > >Can someone with 97 or 95 check the default names of these page >sections and see what they are? Thanks -- I don't have an older version installed. > >Susan H. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-20 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Feb 20 09:52:08 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 20 Feb 2004 10:52:08 -0500 Subject: [AccessD] Help Charlotte! Message-ID: I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 20 10:05:19 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 20 Feb 2004 11:05:19 -0500 Subject: [AccessD] Pass-Through Query Message-ID: Mark, I use passthru queries quite a bit. The major thing is that is does the work on the server side in the native language. We have oracle databases that are huge. I can write sql in native oracle which has options not available in Access. Create temporary tables on the server side (if you have permission) to use in other queries without having to transport the data back and forth over line. I can write more complex queries and control them better. Access has a tendency to make assumptions that you don't expect, by using passthru you have a bit more control over what you want. example 1: using multiple fields in a subquery In select x, y, z from A where (e, f, g) in (select e, f, g from H) example 2: use another query as if it were a table without having to run 2 access queries bringing the data from the 1st query back over the line to do the 2nd query select a.x, a.y, h.e, h.f from A, (select e, f, g from D where .....) H These are my observations Patti > -----Original Message----- > From: Mark A Matte [mailto:markamatte at hotmail.com] > Sent: Friday, February 20, 2004 09:17 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Pass-Through Query > > > Hello All, > > I've never really looked at Pass-Through Queries...often heard about > them...even read through the archives and help...lots of > examples...but what > are some practical uses, purposes or benefits? > > Thanks, > > Mark > > _________________________________________________________________ > Get a FREE online computer virus scan from McAfee when you > click here. > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 20 10:16:40 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 20 Feb 2004 11:16:40 -0500 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: Thank you works like a charm Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Thursday, February 19, 2004 07:32 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > ROTFL! Sorry, completely forgot about that! I normalized the path > structure that way, because it was much smaller to represent > everything with > it's own ID. > > Put the following function into that db... > > Function GetFullPath(intRootID As Long, strDriveLetter As String, > strCurrentFolder As String) As String > Dim rs As Recordset > Dim intRoot As Long > Dim strPath As String > Dim strSQL As String > Dim strFolderName As String > intRoot = intRootID > If intRoot = 0 Then > strFolderName = "" > Else > strFolderName = strCurrentFolder & "\" > End If > Do Until intRoot = 0 > strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE > FolderKey=" & intRoot > Set rs = CurrentDb.OpenRecordset(strSQL) > intRoot = rs.Fields(1).Value > If intRoot = 0 Then Exit Do > strPath = strPath & rs.Fields(0).Value & "\" > rs.Close > Loop > GetFullPath = strDriveLetter & ":\" & strFolderName & strPath > End Function > > Then use this query...the last field will be the full path of > the file. > > SELECT tblFiles.FileName, tblFiles.FileSize, > GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderNam > e]) AS Path > FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON > tblFolders.DriveKey = tblDriveHeader.DriveKey) ON > tblFiles.RootFolder = > tblFolders.FolderKey; > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Thursday, February 19, 2004 3:29 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > > Thanks for all the suggestions > > Mark Matte sent me a db that gave me what I needed. It > searched out and > enter into a table. all the directories in the drive. Then > searched for the > MDB's and put the filename, size, time, and full path into > another table. I > was able to create a nicely formatted report with the full > path name, file > name, size, and date to send to our unit. I tweaked the forms > to allow me to > search for all files or just A specific file extension. > > Drew's Drive Mapper was another good utility. The only > problem I had with it > was getting the full file path to print correctly. If there > were several > levels of subdirectories I had to try to loop through to > rebuild the full > path. I just really didn't have time to play with the code > needed to do > this. > > The karenware powertool was ok but with the db I was able to > get a better > looking report. > > > Thanks again > Patti > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Feb 20 10:22:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Feb 2004 08:22:36 -0800 Subject: [AccessD] Help Charlotte! Message-ID: Replace it with whatever version of the ADO Ext library for DDL and Security you have on your machine. As long as you have version 2.5 or later installed, it should work. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 20, 2004 7:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Help Charlotte! I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 20 11:40:02 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 20 Feb 2004 09:40:02 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278AE@main2.marlow.com> Message-ID: <20040220174002.10545.qmail@web20416.mail.yahoo.com> Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From bchacc at san.rr.com Fri Feb 20 13:05:48 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 20 Feb 2004 11:05:48 -0800 Subject: [AccessD] BOD Election Message-ID: <031401c3f7e4$8ced1e20$6801a8c0@HAL9002> Dear AccessD members: The annual election for The Database Advisors Board of Directors will be held early in March. For the next few days the cyber-floor will be open for additional nominations to the Board. At the moment, the entire current board is standing for re-election plus John Bartow. Only shareholders are allowed to vote - one share, one vote. To be on the Board you must also be a shareholder. You do not have to be a shareholder to run, but you must be a shareholder to serve. Tentative schedule for the election is: 02/20 - open the floor for nominations 02/24 - floor closed for nominations. 02/26 - list of candidates, candidates statements (if any) distributed 03/04 - ballots distributed to shareholders. 03/08 - polls close 03/10 - results of election announced The election committee consists of myself, Donna Cook, and Lembit Soobik. Please address any question you have to me at bchacc at san.rr.com. and copy Donna at DBCfour at aol.com and Lembit at lembit.soobik at t-online.de. If you can remember, please put BOD Election as the subject so it will get routed to the election mail folder. Regards, Rocky Smolin Beach Access Software From prodevmg at yahoo.com Fri Feb 20 13:04:33 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) Subject: [AccessD] Faster way to copy files Message-ID: <20040220190433.57499.qmail@web20413.mail.yahoo.com> I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From John.Clark at niagaracounty.com Fri Feb 20 13:15:22 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 20 Feb 2004 14:15:22 -0500 Subject: [AccessD] Help Charlotte! Message-ID: Yeah, I've actually gotten up to the point where it works. I have been looking at your code on and off, when I could, all day. I've gotta tell you; this is some pretty cool coding--I like it. There are some things I don't understand, but I want to try to figure them out, before I bug you too much more. I have a self-imposed rule; I basically cannot 'borrow' code, unless I understand what it does and how it does it. I have broken this rule once or twice, because of time constraints, but even then I have gone back and learned the code, after the fact. Thanks again for you help! John W Clark >>> cfoust at infostatsystems.com 2/20/2004 11:22:36 AM >>> Replace it with whatever version of the ADO Ext library for DDL and Security you have on your machine. As long as you have version 2.5 or later installed, it should work. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 20, 2004 7:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Help Charlotte! I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Feb 20 13:58:11 2004 From: James at fcidms.com (James Barash) Date: Fri, 20 Feb 2004 14:58:11 -0500 Subject: [AccessD] DataGrid Buttons In-Reply-To: Message-ID: Paul, I assume you are talking about the msdatgrd.ocx control. I have a vba example somewhere but I can't find it right now. What you need to do is create a hidden combo box populated with the values you want to select from. On the ButtonClick event for the datagrid, you need to unhide the combo box, set its properties so that it appears on top of the datagrid cell and then call the dropdown method. Then, on the combo box Change event you need to populate the combo box value back to the datagrid and hide the combo box. If you have more than one button, you will either need separate combo boxes for each or you need to set the rowsource in the ButtonClick event. If you want, I can see if I can find the example but this should help you get started. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 19, 2004 3:56 AM To: dba-vb Cc: accessd Subject: [AccessD] DataGrid Buttons To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 20 16:09:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:09:48 -0800 Subject: [AccessD] Re: xform design tools References: <753426316.20031008100637@cactus.dk> <894356263.20040219093709@cactus.dk> Message-ID: <403685AC.30000@shaw.ca> I didn't know anyone had created a browser addin yet. Interesting was waiting for that rather than using old XSL-FO Gustav Brock wrote: >Hi those of you interested in XForms. > >I noted these comments and useful links on the present status of >XForms which might be of interest for some of you. >I'm quoting as the letter is not on-line yet. > > > >The SitePoint TECH TIMES #83 Copyright (c) 2004 >February 18th, 2004 PLEASE FORWARD > >EDITORIAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - > >THE STATE OF XFORMS > >Back in the Tech Times #53 [1], I introduced XForms as the >latest candidate recommendation to come out of the W3C. I >explained the advantages it had over HTML forms, and even showed >a simple example of how XForms work. > >At the time, the media buzz surrounding XForms came from the >fact that Microsoft was building something called XDocs into its >upcoming Office 2003 software. Many attributed Microsoft's >refusal to endorse XForms to similarities that the >recommendation bore to XDocs. > >Over a year later, Office 2003 has been released, XDocs is now >called InfoPath [2], XForms has become a full-fledged W3C >recommendation [3], and the fine folks at x-port.net have just >released formsPlayer 1.0 [4], a free plug-in for Internet >Explorer that fully complies with the XForms standard. > >So why aren't we seeing XForms springing up all over the Web? >After all, the most popular Web browser in the world now >supports them with a free plug-in! > >Due to the stagnation of Internet Explorer [5], all the >ultra-keen Web developers who would normally jump on a >technology like this have moved to Mozilla [6] (and Firefox [7]) >as their development platform of choice. To put it bluntly, >no one really cares what Internet Explorer can do now, because >there is so much that it can't do (like properly support CSS2 >[8]). > >So, the question is, what are the other browser makers doing >about XForms? > >Mozilla is tracking requests for XForms support and volunteers >interested in working on it in bug 97806 [9]. The comments on >this bug, which dates back to the days when XForms was a working >draft, make interesting reading. There are many opinions on why >XForms may or may not be worthy of consideration for inclusion >in Mozilla, but the status quo is that it remains a relatively >low-priority feature request in need of good developers, despite >having nearly 500 votes from community members. > >Apple (whose Safari browser has become a serious consideration >for developers) and Opera issued a combined statement [10] last >September in response to XForms becoming a proposed >recommendation. In it, they outlined a list of "substantial >issues" in the standard that they felt made XForms inappropriate >as a replacement for HTML forms. When pressed, they admitted >[11] that XForms was probably worthy as a platform for advanced >forms development, as long as HTML forms remained as the >mainstream choice in XHTML 2.0. > >So why all this negative sentiment towards XForms? Is it really >so flawed? > >Like any new technology, XForms has a rough spot or two, but the >productivity it offers to developers cannot be denied. Yet, >while XForms itself isn't all that complex, it relies on a host >of technologies that are fairly complex, and are not widely >implemented in today's browsers. Quoting from Apple and Opera's >statement, > >"XForms has too many dependencies. In addition to XForms itself, >an XForms implementation needs to support XML with namespaces, >XML Schema, XPath, XML Events, DOM Events, DOM Core, CSS, a >stylesheet linking technology (e.g. the XML Stylesheet PI), and >a host language (e.g. XHTML or SVG). In particular, its >dependency on XML Schema is of great concern to us." > >The Mozilla bug discussion suggests that XML Schema [12] >support is not strictly necessary for a basic implementation of >XForms, but XML Events [13] is a definite piece of the puzzle >that has yet to be built into Mozilla. Meanwhile, browsers like >Opera and Safari are even further behind the curve. > >>From what I can tell, XForms has the dubious distinction of >being one of the first implementations of a number of XML >technolgies with mass appeal to Web developers. Though well >thought out, none of these technologies has had a compelling >reason to be buit into a Web browser before, and now, all of a >sudden, they would all have to be built at once in order to >support XForms. > >Even with a free, fully compliant plug-in for Internet Explorer, >XForms has some serious hurdles to overcome before developers >can consider it as a serious tool for general Web development. >If you want to pitch in, I would definitely encourage you to >contribute your services to the Mozilla project, but it will >take some smart brains and a lot of work to bring XForms into >the spotlight. > >[1] >[2] >[3] >[4] >[5] >[6] >[7] >[8] >[9] >[10] >[11] >[12] >[13] > >The Archives are located at: >http://www.sitepoint.com/newsletter/archives.php > > > >/gustav > > > > >>Strangely, just this morning I received this link from Novell: >> >> > > > >>http://developer.novell.com/research/appnotes/2003/septembe/04/a0309046.htm#1849119 >> >> > > > >>Notice the headline and link >> >> > > > >> The Novell XForms Technology Preview (NXTP) >> >> > > > >>I have, however, no idea of the cost for this tool. >> >> > > > >>/gustav >> >> > > > > >>>Date: 2003-10-08 03:58 >>> >>> > > > >>>I saw both of you had posted ?'s asking about the existence of any xforms design tools at the w3c-forms site. >>> >>> > > > >>>Have either of you found any? >>> >>> > > > >>>I am exploring QLink and Liquid Office, both of which seem to be much more than xforms, same story with holosofx (now ibm) >>> >>> > > > >>>Appreciate any help. >>> >>> > > > >>>Gene McKenna >>> >>> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 20 16:13:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:13:47 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> Message-ID: <4036869B.4080601@shaw.ca> You can sort of hide the table if you preface table name with USys. It can then only be seen if you turn on System Objects view in options Joseph O'Connell wrote: >Rocky, > >Search the archives for "Copy Protection". There was a long discussion of >this topic and recommendations for several add-in products during October >2001. > >Joe O'Connell > > >-----Original Message----- >From: Rocky Smolin - Beach Access Software >To: Access Developers discussion and problem solving > >Date: Wednesday, February 18, 2004 12:45 PM >Subject: Re: [AccessD] Hiding Table in mde > > >|A.D.: >| >|What I'm trying to do is copy protect my program by putting a data bomb in >|the opening form. Right now it's hard coded into the module's OnOpen >event. >|I was going to put the date bomb into a table but that table is accessible >|to the user even in an mde. >| >|So I was trying to hide the table. But a more direct way would be to be >|able to alter the line of code in the mde which contains the expire date. >| >|I've cooked up a more elaborate scheme now but haven't settled on a final >|approach. I want the user to be able to call or email their serial number >|and I give them a code to change the expiration date in their system. I've >|done a key like this before for another client so I've got all the >|code/decode stuff worked out. >| >|I'm just searching around for the simplest solution to protecting my >|product. >| >|Regards, >| >|Rocky >| >|----- Original Message ----- >|From: "A.D.Tejpal" >|To: "Access Developers discussion and problem solving" >| >|Sent: Wednesday, February 18, 2004 8:57 AM >|Subject: Re: [AccessD] Hiding Table in mde >| >| >|Rocky, >| >| Could you kindly confirm that you wish to add a new program module for >|manipulating existing objects in an mde - without having to go through the >|conventional steps of first altering the code in original mdb and then >|converting it into a fresh mde. >| >| If this be the case, an interesting solution could be adopted, so as to >|meet your requirement. >| >|Regards, >|A.D.Tejpal >|-------------- >| ----- Original Message ----- >| From: Charlotte Foust >| To: Access Developers discussion and problem solving >| Sent: Tuesday, February 17, 2004 23:10 >| Subject: RE: [AccessD] Hiding Table in mde >| >| >| Code can't be modified in an mde at all, programmatically or otherwise. >| That's the whole point. >| >| Charlotte Foust >| >| -----Original Message----- >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >| Sent: Sunday, February 15, 2004 9:55 PM >| To: Access Developers discussion and problem solving >| Subject: Re: [AccessD] Hiding Table in mde >| >| >| Doug: >| >| That would work but I'd prefer not to have the file external. Can code >| be modified programmatically in an mde? >| >| Rocky >| >| ----- Original Message ----- >| From: "Doug Murphy" >| To: "'Access Developers discussion and problem solving'" >| >| Sent: Sunday, February 15, 2004 12:38 PM >| Subject: RE: [AccessD] Hiding Table in mde >| >| >| > One way to do this is to not put it in the database, but use an >| > external file that is encrypted. Set the system up so it won't run if >| >| > the file isn't present and make the file hard for folks to find. >| > >| > Doug >| > >| > Douglas Murphy >| > Murphy's Creativity >| > (619) 334-5121 >| > doug at murphyscreativity.com >| > www.murphyscreativity.com >| > >| > >| > >| > >| > -----Original Message----- >| > From: accessd-bounces at databaseadvisors.com >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >| > Smolin >| > - Beach Access Software >| > Sent: Sunday, February 15, 2004 7:41 AM >| > To: AccessD at databaseadvisors.com >| > Subject: [AccessD] Hiding Table in mde >| > >| > >| > Dear List: >| > >| > Is there a way to prevent a user from importing a table from an mde >| > into an mdb without putting a password on the mde? I'm trying to >| > build a serial number/upgrade/license extension function into an app >| > and will be storing the data in a front end table. >| > >| > TIA, >| > >| > Rocky Smolin >| > Beach Access Software >|_______________________________________________ >|AccessD mailing list >|AccessD at databaseadvisors.com >|http://databaseadvisors.com/mailman/listinfo/accessd >|Website: http://www.databaseadvisors.com >| >|_______________________________________________ >|AccessD mailing list >|AccessD at databaseadvisors.com >|http://databaseadvisors.com/mailman/listinfo/accessd >|Website: http://www.databaseadvisors.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Fri Feb 20 16:31:08 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 20 Feb 2004 15:31:08 -0700 Subject: [AccessD] Faster way to copy files Message-ID: <310980-22004252022318911@christopherhawkins.com> I can't say for usre, but I'd bet good money that if you used that same FileSystemObject approach in a VB6 .dll instead of from inside Access, you'd see a marked performance improvement. Just a thought. -C- ---- Original Message ---- From: prodevmg at yahoo.com To: ms-access-l at po.missouri.edu, accessdevelopers at yahoogroups.com, ms_access at yahoogroups.com, accessd at databaseadvisors.com, Subject: RE: [AccessD] Faster way to copy files Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) >I have used both the CreateObject("Scripting.FileSystemObject") and >the MS Access FileCopy method to copy MS Access front end databases >from a network folder to multiple (upwards to 50) user home >directories and they are both too slow for me. > >Is there a faster method or any optimizing tips anyone can share? > >Thanks again to the Gurus of the Tech World! > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From Lambert.Heenan at AIG.com Fri Feb 20 16:29:46 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 20 Feb 2004 17:29:46 -0500 Subject: [AccessD] Faster way to copy files Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7E92@xlivmbx12.aig.com> The limiting factors when copying files are the sizes of the files and the speed of your network. I don't believe you are going to be able to improve on FileCopy, the Scripting objects method of copying or the CopyFile API. ;-( Lambert > -----Original Message----- > From: Lonnie Johnson [SMTP:prodevmg at yahoo.com] > Sent: Friday, February 20, 2004 2:05 PM > To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; > AccessD solving' > Subject: [AccessD] Faster way to copy files > > I have used both the CreateObject("Scripting.FileSystemObject") and the MS > Access FileCopy method to copy MS Access front end databases from a > network folder to multiple (upwards to 50) user home directories and they > are both too slow for me. > > Is there a faster method or any optimizing tips anyone can share? > > Thanks again to the Gurus of the Tech World! > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 20 16:32:53 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 20 Feb 2004 15:32:53 -0700 Subject: [AccessD] Faster way to copy files Message-ID: <81760-220042520223253428@christopherhawkins.com> P.S. There is also the CopyFile API, whcih you should be able to use form either whthin Access or from within a .dll. Here's the link: http://vbnet.mvps.org/index.html?code/fileapi/copyfile.htm Good luck! -Christopher- ---- Original Message ---- From: prodevmg at yahoo.com To: ms-access-l at po.missouri.edu, accessdevelopers at yahoogroups.com, ms_access at yahoogroups.com, accessd at databaseadvisors.com, Subject: RE: [AccessD] Faster way to copy files Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) >I have used both the CreateObject("Scripting.FileSystemObject") and >the MS Access FileCopy method to copy MS Access front end databases >from a network folder to multiple (upwards to 50) user home >directories and they are both too slow for me. > >Is there a faster method or any optimizing tips anyone can share? > >Thanks again to the Gurus of the Tech World! > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Fri Feb 20 16:30:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:30:00 -0800 Subject: [AccessD] TOAD for MS SQL 2000 References: Message-ID: <40368A68.9030600@shaw.ca> For those of you who like TOAD for Oracle, there is now a version for MS SQL 2000 It appears to work for MSDE too. So might be handy for those without Enterprise Manager. http://www.toadsoft.com/toadss.html Sort of handy to know for consultants; on Oracle sites I am usually always asked if I am familar with TOAD. TOAD is an application development tool built around an advanced Data Browser and a SQL and T-SQL editor. Using TOAD, developers can build and test T-SQL code and can use the Data Browser to quickly access, create and edit database objects. TOAD lets you view tables, indexes, stored procedures and more - all through a multi-tabbed browser. -- Marty Connelly Victoria, B.C. Canada From rusty.hammond at cpiqpc.com Fri Feb 20 17:09:14 2004 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 20 Feb 2004 17:09:14 -0600 Subject: [AccessD] Faster way to copy files Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A92D@cpixchng-1.cpiqpc.net> Just a thought - instead of using a program to copy front ends to everyone, could you put something into the login script that would copy the file every time they login to the network? Rusty -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Friday, February 20, 2004 1:05 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Faster way to copy files I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:49:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:49:35 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B7@main2.marlow.com> May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:51:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:51:04 -0600 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B8@main2.marlow.com> Let me know if you want the VB source code to that .exe. I'd be more then happy to send that to you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Friday, February 20, 2004 10:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save - Thanks solved Thank you works like a charm Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Thursday, February 19, 2004 07:32 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > ROTFL! Sorry, completely forgot about that! I normalized the path > structure that way, because it was much smaller to represent > everything with > it's own ID. > > Put the following function into that db... > > Function GetFullPath(intRootID As Long, strDriveLetter As String, > strCurrentFolder As String) As String > Dim rs As Recordset > Dim intRoot As Long > Dim strPath As String > Dim strSQL As String > Dim strFolderName As String > intRoot = intRootID > If intRoot = 0 Then > strFolderName = "" > Else > strFolderName = strCurrentFolder & "\" > End If > Do Until intRoot = 0 > strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE > FolderKey=" & intRoot > Set rs = CurrentDb.OpenRecordset(strSQL) > intRoot = rs.Fields(1).Value > If intRoot = 0 Then Exit Do > strPath = strPath & rs.Fields(0).Value & "\" > rs.Close > Loop > GetFullPath = strDriveLetter & ":\" & strFolderName & strPath > End Function > > Then use this query...the last field will be the full path of > the file. > > SELECT tblFiles.FileName, tblFiles.FileSize, > GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderNam > e]) AS Path > FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON > tblFolders.DriveKey = tblDriveHeader.DriveKey) ON > tblFiles.RootFolder = > tblFolders.FolderKey; > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Thursday, February 19, 2004 3:29 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > > Thanks for all the suggestions > > Mark Matte sent me a db that gave me what I needed. It > searched out and > enter into a table. all the directories in the drive. Then > searched for the > MDB's and put the filename, size, time, and full path into > another table. I > was able to create a nicely formatted report with the full > path name, file > name, size, and date to send to our unit. I tweaked the forms > to allow me to > search for all files or just A specific file extension. > > Drew's Drive Mapper was another good utility. The only > problem I had with it > was getting the full file path to print correctly. If there > were several > levels of subdirectories I had to try to loop through to > rebuild the full > path. I just really didn't have time to play with the code > needed to do > this. > > The karenware powertool was ok but with the db I was able to > get a better > looking report. > > > Thanks again > Patti > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:51:34 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:51:34 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B9@main2.marlow.com> Let me know how it works for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. From DWUTKA at marlow.com Fri Feb 20 17:53:52 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:53:52 -0600 Subject: [AccessD] Faster way to copy files Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BA@main2.marlow.com> There is an API to copy files. Don't know if it's faster or not. When I am manually copying files, command line copies are always faster then copy/pastes from windows. So you may want to try a batch file approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 1:05 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Faster way to copy files I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ 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 Feb 20 18:14:41 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2004 10:14:41 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278B7@main2.marlow.com> Message-ID: <40372F91.1375.39EFC9@localhost> On 20 Feb 2004 at 17:49, DWUTKA at marlow.com wrote: > > Instead of have a record per question, why not store all of the answers in 1 > record. The easiest method would be to just create a string, of the > answers. (12012111002211000). Question 1 would be mid([MyField],1,1) > Question 2 would be Mid([MyField],2,1), and so on. > > That does 2 things for you. One record a call, will knock quite a bit of > storage space, and by using a string, instead of Long values, you are only > using 1 byte per question + 1 extra byte per call, instead of 4 bytes for > each question. > Aren't strings stored in A2K onwards as Unicode ie two bytes per character? Storing the answers as 25 separate Byte fields takes up less space (even if it is only one byte per character + 1 extra) and saves all that string manipulation. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Fri Feb 20 18:23:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Feb 2004 16:23:53 -0800 Subject: [AccessD] Table Structure questions Message-ID: The problem with that approach shows up when you want to analyze the data, Drew. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Friday, February 20, 2004 3:50 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Table Structure questions May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 18:25:02 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 18:25:02 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BD@main2.marlow.com> Sorry, use 97 for almost all of my backends....so I keep forgetting about the Unicode issue! However, what are you LINKING the records in that table with? Each record, in a one per question table, would need a caller ID (Long), Question Number (could be byte), then the answer (another byte). Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Friday, February 20, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Table Structure questions On 20 Feb 2004 at 17:49, DWUTKA at marlow.com wrote: > > Instead of have a record per question, why not store all of the answers in 1 > record. The easiest method would be to just create a string, of the > answers. (12012111002211000). Question 1 would be mid([MyField],1,1) > Question 2 would be Mid([MyField],2,1), and so on. > > That does 2 things for you. One record a call, will knock quite a bit of > storage space, and by using a string, instead of Long values, you are only > using 1 byte per question + 1 extra byte per call, instead of 4 bytes for > each question. > Aren't strings stored in A2K onwards as Unicode ie two bytes per character? Storing the answers as 25 separate Byte fields takes up less space (even if it is only one byte per character + 1 extra) and saves all that string manipulation. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 18:57:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 18:57:40 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BE@main2.marlow.com> Not too difficult to display the data in a query that splits the answers up. I know, it's a trade off. Normalize the data, for easy reporting, but suck up a lot of extra storage space. Or crunch what you store, to save space, and lose speed when you want to display/analyze the data. Now there's a suggestion for an upgrade to Jet. Provide a crunching/speed capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, February 20, 2004 6:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Table Structure questions The problem with that approach shows up when you want to analyze the data, Drew. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Friday, February 20, 2004 3:50 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Table Structure questions May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 27 21:42:46 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 27 Feb 2004 19:42:46 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> <4036869B.4080601@shaw.ca> Message-ID: <03f501c3fdac$ee527750$6801a8c0@HAL9002> Can it be imported from an mde into another MDB like a regular table or will it not show in the list of objects to be imported? Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2004 2:13 PM Subject: Re: [AccessD] Hiding Table in mde > You can sort of hide the table if you preface table name with USys. It > can then only be seen if you turn on System Objects view in options > > Joseph O'Connell wrote: > > >Rocky, > > > >Search the archives for "Copy Protection". There was a long discussion of > >this topic and recommendations for several add-in products during October > >2001. > > > >Joe O'Connell > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software > >To: Access Developers discussion and problem solving > > > >Date: Wednesday, February 18, 2004 12:45 PM > >Subject: Re: [AccessD] Hiding Table in mde > > > > > >|A.D.: > >| > >|What I'm trying to do is copy protect my program by putting a data bomb in > >|the opening form. Right now it's hard coded into the module's OnOpen > >event. > >|I was going to put the date bomb into a table but that table is accessible > >|to the user even in an mde. > >| > >|So I was trying to hide the table. But a more direct way would be to be > >|able to alter the line of code in the mde which contains the expire date. > >| > >|I've cooked up a more elaborate scheme now but haven't settled on a final > >|approach. I want the user to be able to call or email their serial number > >|and I give them a code to change the expiration date in their system. I've > >|done a key like this before for another client so I've got all the > >|code/decode stuff worked out. > >| > >|I'm just searching around for the simplest solution to protecting my > >|product. > >| > >|Regards, > >| > >|Rocky > >| > >|----- Original Message ----- > >|From: "A.D.Tejpal" > >|To: "Access Developers discussion and problem solving" > >| > >|Sent: Wednesday, February 18, 2004 8:57 AM > >|Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >|Rocky, > >| > >| Could you kindly confirm that you wish to add a new program module for > >|manipulating existing objects in an mde - without having to go through the > >|conventional steps of first altering the code in original mdb and then > >|converting it into a fresh mde. > >| > >| If this be the case, an interesting solution could be adopted, so as to > >|meet your requirement. > >| > >|Regards, > >|A.D.Tejpal > >|-------------- > >| ----- Original Message ----- > >| From: Charlotte Foust > >| To: Access Developers discussion and problem solving > >| Sent: Tuesday, February 17, 2004 23:10 > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| Code can't be modified in an mde at all, programmatically or otherwise. > >| That's the whole point. > >| > >| Charlotte Foust > >| > >| -----Original Message----- > >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >| Sent: Sunday, February 15, 2004 9:55 PM > >| To: Access Developers discussion and problem solving > >| Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >| Doug: > >| > >| That would work but I'd prefer not to have the file external. Can code > >| be modified programmatically in an mde? > >| > >| Rocky > >| > >| ----- Original Message ----- > >| From: "Doug Murphy" > >| To: "'Access Developers discussion and problem solving'" > >| > >| Sent: Sunday, February 15, 2004 12:38 PM > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| > One way to do this is to not put it in the database, but use an > >| > external file that is encrypted. Set the system up so it won't run if > >| > >| > the file isn't present and make the file hard for folks to find. > >| > > >| > Doug > >| > > >| > Douglas Murphy > >| > Murphy's Creativity > >| > (619) 334-5121 > >| > doug at murphyscreativity.com > >| > www.murphyscreativity.com > >| > > >| > > >| > > >| > > >| > -----Original Message----- > >| > From: accessd-bounces at databaseadvisors.com > >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >| > Smolin > >| > - Beach Access Software > >| > Sent: Sunday, February 15, 2004 7:41 AM > >| > To: AccessD at databaseadvisors.com > >| > Subject: [AccessD] Hiding Table in mde > >| > > >| > > >| > Dear List: > >| > > >| > Is there a way to prevent a user from importing a table from an mde > >| > into an mdb without putting a password on the mde? I'm trying to > >| > build a serial number/upgrade/license extension function into an app > >| > and will be storing the data in a front end table. > >| > > >| > TIA, > >| > > >| > Rocky Smolin > >| > Beach Access Software > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > >| > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Fri Feb 20 22:24:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 20:24:57 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> <4036869B.4080601@shaw.ca> <03f501c3fdac$ee527750$6801a8c0@HAL9002> Message-ID: <4036DD99.1040205@shaw.ca> In Access 97 unless you have system objects option set to visible in the mde, you cannot see it to import a copy of the table. I don't know about grabbing it via vba code though. Rocky Smolin - Beach Access Software wrote: >Can it be imported from an mde into another MDB like a regular table or will >it not show in the list of objects to be imported? > >Rocky > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 20, 2004 2:13 PM >Subject: Re: [AccessD] Hiding Table in mde > > > > >>You can sort of hide the table if you preface table name with USys. It >>can then only be seen if you turn on System Objects view in options >> >>Joseph O'Connell wrote: >> >> >> >>>Rocky, >>> >>>Search the archives for "Copy Protection". There was a long discussion >>> >>> >of > > >>>this topic and recommendations for several add-in products during October >>>2001. >>> >>>Joe O'Connell >>> >>> >>>-----Original Message----- >>>From: Rocky Smolin - Beach Access Software >>>To: Access Developers discussion and problem solving >>> >>>Date: Wednesday, February 18, 2004 12:45 PM >>>Subject: Re: [AccessD] Hiding Table in mde >>> >>> >>>|A.D.: >>>| >>>|What I'm trying to do is copy protect my program by putting a data bomb >>> >>> >in > > >>>|the opening form. Right now it's hard coded into the module's OnOpen >>>event. >>>|I was going to put the date bomb into a table but that table is >>> >>> >accessible > > >>>|to the user even in an mde. >>>| >>>|So I was trying to hide the table. But a more direct way would be to be >>>|able to alter the line of code in the mde which contains the expire >>> >>> >date. > > >>>| >>>|I've cooked up a more elaborate scheme now but haven't settled on a >>> >>> >final > > >>>|approach. I want the user to be able to call or email their serial >>> >>> >number > > >>>|and I give them a code to change the expiration date in their system. >>> >>> >I've > > >>>|done a key like this before for another client so I've got all the >>>|code/decode stuff worked out. >>>| >>>|I'm just searching around for the simplest solution to protecting my >>>|product. >>>| >>>|Regards, >>>| >>>|Rocky >>>| >>>|----- Original Message ----- >>>|From: "A.D.Tejpal" >>>|To: "Access Developers discussion and problem solving" >>>| >>>|Sent: Wednesday, February 18, 2004 8:57 AM >>>|Subject: Re: [AccessD] Hiding Table in mde >>>| >>>| >>>|Rocky, >>>| >>>| Could you kindly confirm that you wish to add a new program module >>> >>> >for > > >>>|manipulating existing objects in an mde - without having to go through >>> >>> >the > > >>>|conventional steps of first altering the code in original mdb and then >>>|converting it into a fresh mde. >>>| >>>| If this be the case, an interesting solution could be adopted, so as >>> >>> >to > > >>>|meet your requirement. >>>| >>>|Regards, >>>|A.D.Tejpal >>>|-------------- >>>| ----- Original Message ----- >>>| From: Charlotte Foust >>>| To: Access Developers discussion and problem solving >>>| Sent: Tuesday, February 17, 2004 23:10 >>>| Subject: RE: [AccessD] Hiding Table in mde >>>| >>>| >>>| Code can't be modified in an mde at all, programmatically or >>> >>> >otherwise. > > >>>| That's the whole point. >>>| >>>| Charlotte Foust >>>| >>>| -----Original Message----- >>>| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>>| Sent: Sunday, February 15, 2004 9:55 PM >>>| To: Access Developers discussion and problem solving >>>| Subject: Re: [AccessD] Hiding Table in mde >>>| >>>| >>>| Doug: >>>| >>>| That would work but I'd prefer not to have the file external. Can >>> >>> >code > > >>>| be modified programmatically in an mde? >>>| >>>| Rocky >>>| >>>| ----- Original Message ----- >>>| From: "Doug Murphy" >>>| To: "'Access Developers discussion and problem solving'" >>>| >>>| Sent: Sunday, February 15, 2004 12:38 PM >>>| Subject: RE: [AccessD] Hiding Table in mde >>>| >>>| >>>| > One way to do this is to not put it in the database, but use an >>>| > external file that is encrypted. Set the system up so it won't run >>> >>> >if > > >>>| >>>| > the file isn't present and make the file hard for folks to find. >>>| > >>>| > Doug >>>| > >>>| > Douglas Murphy >>>| > Murphy's Creativity >>>| > (619) 334-5121 >>>| > doug at murphyscreativity.com >>>| > www.murphyscreativity.com >>>| > >>>| > >>>| > >>>| > >>>| > -----Original Message----- >>>| > From: accessd-bounces at databaseadvisors.com >>>| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>>| > Smolin >>>| > - Beach Access Software >>>| > Sent: Sunday, February 15, 2004 7:41 AM >>>| > To: AccessD at databaseadvisors.com >>>| > Subject: [AccessD] Hiding Table in mde >>>| > >>>| > >>>| > Dear List: >>>| > >>>| > Is there a way to prevent a user from importing a table from an mde >>>| > into an mdb without putting a password on the mde? I'm trying to >>>| > build a serial number/upgrade/license extension function into an app >>>| > and will be storing the data in a front end table. >>>| > >>>| > TIA, >>>| > >>>| > Rocky Smolin >>>| > Beach Access Software >>>|_______________________________________________ >>>|AccessD mailing list >>>|AccessD at databaseadvisors.com >>>|http://databaseadvisors.com/mailman/listinfo/accessd >>>|Website: http://www.databaseadvisors.com >>>| >>>|_______________________________________________ >>>|AccessD mailing list >>>|AccessD at databaseadvisors.com >>>|http://databaseadvisors.com/mailman/listinfo/accessd >>>|Website: http://www.databaseadvisors.com >>> >>> >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sat Feb 21 04:02:26 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Feb 2004 11:02:26 +0100 Subject: [AccessD] Faster way to copy files In-Reply-To: <20040220190433.57499.qmail@web20413.mail.yahoo.com> References: <20040220190433.57499.qmail@web20413.mail.yahoo.com> Message-ID: <1695414435.20040221110226@cactus.dk> Hi Lonnie You may set up a task scheduler on the server or pick a separate utility: http://windows.about.com/cs/batchjobschedprod/ or setup VNC or other remote control of the server. /gustav > I have used both the CreateObject("Scripting.FileSystemObject") and > the MS Access FileCopy method to copy MS Access front end databases > from a network folder to multiple (upwards to 50) user home > directories and they are both too slow for me. > Is there a faster method or any optimizing tips anyone can share? From stuart at lexacorp.com.pg Sat Feb 21 04:30:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2004 20:30:17 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278BD@main2.marlow.com> Message-ID: <4037BFD9.25690.26D8437@localhost> On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > Sorry, use 97 for almost all of my backends....so I keep forgetting about > the Unicode issue! > > However, what are you LINKING the records in that table with? Each record, > in a one per question table, would need a caller ID (Long), Question Number > (could be byte), then the answer (another byte). > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) > No, I agreed completely with your idea of storing all the answers in one record, I just suggested stotring the anwers in separate fields rather than a string - so you have CallerID plus 25 byte fields rather than CallerID plus one string field storing 25 characters. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Sat Feb 21 10:25:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 21 Feb 2004 11:25:10 -0500 Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <20040220174002.10545.qmail@web20416.mail.yahoo.com> Message-ID: Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [AccessD] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:39:53 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:39:53 -0000 Subject: [AccessD] Table Structure questions In-Reply-To: <4037BFD9.25690.26D8437@localhost> Message-ID: <003f01c3f8a1$b6fb9530$bf00a8c0@dabsight> I think you've all lost the plot, mostly: 1. Each individual answer *has* to identify the question it relates to, if you want to make any sense of the analysis! (Re-read Mark's posting, repeated below. There are different simultaneously existing sets of 25 questions, and each set varies with time.) 2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've been working too much with SQLS lately, but this minuscule amount, coupled with the simplicity and flexibility of design, and ease of querying/reporting, is "more efficient" (Mark's phrase) than groping about in strings. IF (really?) you think that disk space is the only criterion, then you shouldn't be wasting a whole byte on each answer, when a couple of bits would do! Stick to Normal form, unless there's a GOOD reason not to. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 21 February 2004 10:30 > To: Access Developers discussion and problemsolving > Subject: RE: [AccessD] Table Structure questions > > > On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > > > Sorry, use 97 for almost all of my backends....so I keep forgetting > > about the Unicode issue! > > > > However, what are you LINKING the records in that table with? Each > > record, in a one per question table, would need a caller ID (Long), > > Question Number (could be byte), then the answer (another byte). > > > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in > > Unicode!) > > > > No, I agreed completely with your idea of storing all the answers in > one record, I just suggested stotring the anwers in separate fields > rather than a string - so you have CallerID plus 25 byte fields > rather than CallerID plus one string field storing 25 characters. > > ****************************************** Mark's original posting: ****************************************** Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark ****************************************** From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From jwelz at hotmail.com Sat Feb 21 11:53:21 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 10:53:21 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Pet peeve - Microsoft documentation and book authors that insist that the the first dimension of 2 dimensional array is the row and the second is the column. I see that this carries over into the .Net books I'm reading. When was the last time you used a Recordset .getRows method and had the first index refer to the record and the second to the field? When was the last time you redimensioned an array to add a column rather than to add or remove a number of rows (records)? How often does a table/query change in size as to the number of rows (records) in comparison to the number of columns (fields)? It doesn't really matter which it is, but with the old versions of VB/A, you could only resize the last index of a multi-dimensioned array (without copying to a new array anyway) so the only practical usage is to add rows to a fixed number of columns which is in fact how it was implemented. Then the authors (Dianne Zak for example) and even Microsoft help deliberately explain them to be varArray(RowIndex, ColIndex) when in the actual practical implementation it is nearly always (ColIndex, RowIndex). It doesn't matter which it is because it is really just an abstract data structure that you can in theory map as you please. The problem I have is when documentation insists on defining it in an impractical manner in the context of getrows and other database usage making it obvious that the VB data people didn't speak with the VB language people. I had hoped that by .Net they would have a chance to write new documentation and finally get it right but I've been reading the Sybex Maastering Visual Basic .NET Database Programming, Visual Basic .NET Developer's Handbook and Mastering Visual Basic .NET and Evangelos Petroutsos keeps right on defining it backwards when he could have just shut up. Why is it that within a single company and a single development platform, developers insist on driving on different sides of the road? Is there a means to lodge a complaint with Microsoft so that the next time they replace the entire language they might finally get the documentaion consistent? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From jwelz at hotmail.com Sat Feb 21 12:09:40 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 11:09:40 -0700 Subject: [AccessD] Table Structure questions Message-ID: Start normalized and denormalize should performance issues arise. Querying bit flags can be very fast and efficient but there is a learning curve and it is quite steep if you want to return a recordset using a where condition of 'Answered yes to a certain set of questions, A to another and not D to yet another set ''OR'' another set of criteria'. If there are standard groups of questions that are asked over a period of time, you may want to use a junction table between a table of questions and a defined question block. If the questions in a ResponderSurvey are generated ad hoc it will be necessary to store the foreign key of each question and its answer in each survey record. I didn't catch the start of this thread but the topic is one of my favorites. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "DJK(John) Robinson" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] Table Structure questions >Date: Sat, 21 Feb 2004 17:39:53 -0000 >MIME-Version: 1.0 >X-Originating-IP: [81.129.30.231] >X-Originating-Email: [djkr at msn.com] >X-Sender: djkr at msn.com >Received: from mc12-f1.hotmail.com ([65.54.167.137]) by mc12-s4.hotmail.com >with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 09:42:13 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f1.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >09:41:27 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LHeBM32066;Sat, 21 Feb 2004 11:40:11 -0600 >Received: from hotmail.com (bay5-dav21.bay5.hotmail.com [65.54.172.125])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LHduM31764for >; Sat, 21 Feb 2004 11:39:56 -0600 >Received: from mail pickup service by hotmail.com with Microsoft >SMTPSVC;Sat, 21 Feb 2004 09:39:56 -0800 >Received: from 81.129.30.231 by bay5-dav21.bay5.hotmail.com with DAV;Sat, >21 Feb 2004 17:39:56 +0000 >X-Message-Info: vGzX0e+ktu7ZFEgZNgxxTXZAKJwb4Y3e/D28QRQNxYg= >Message-ID: <003f01c3f8a1$b6fb9530$bf00a8c0 at dabsight> >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook, Build 10.0.4510 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 >In-Reply-To: <4037BFD9.25690.26D8437 at localhost> >X-OriginalArrivalTime: 21 Feb 2004 17:39:56.0131 >(UTC)FILETIME=[B842BB30:01C3F8A1] >X-MIME-Autoconverted: from quoted-printable to 8bit by databaseadvisors.com >idi1LHduM31764 >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com > >I think you've all lost the plot, mostly: > >1. Each individual answer *has* to identify the question it relates to, >if you want to make any sense of the analysis! (Re-read Mark's posting, >repeated below. There are different simultaneously existing sets of 25 >questions, and each set varies with time.) > >2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've >been working too much with SQLS lately, but this minuscule amount, coupled >with the simplicity and flexibility of design, and ease of >querying/reporting, is "more efficient" (Mark's phrase) than groping about >in strings. >IF (really?) you think that disk space is the only criterion, then you >shouldn't be wasting a whole byte on each answer, when a couple of bits >would do! > >Stick to Normal form, unless there's a GOOD reason not to. > >John > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Stuart McLachlan > > Sent: 21 February 2004 10:30 > > To: Access Developers discussion and problemsolving > > Subject: RE: [AccessD] Table Structure questions > > > > > > On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > > > > > Sorry, use 97 for almost all of my backends....so I keep forgetting > > > about the Unicode issue! > > > > > > However, what are you LINKING the records in that table with? Each > > > record, in a one per question table, would need a caller ID (Long), > > > Question Number (could be byte), then the answer (another byte). > > > > > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in > > > Unicode!) > > > > > > > No, I agreed completely with your idea of storing all the answers in > > one record, I just suggested stotring the anwers in separate fields > > rather than a string - so you have CallerID plus 25 byte fields > > rather than CallerID plus one string field storing 25 characters. > > > > >****************************************** >Mark's original posting: >****************************************** >Hello All, > >I have been asked to set up a call monitoring db for several different >groups. A few pieces of data will be captured for each call and then 25 >questions will be answered for each call. Each group may or may not have >the same 25 questions...which they can add or remove throughout the month. >Initially I wanted 2 main tables for data collection(1 for call info and 1 >for Answers)...The Answers table would have 1 row per question(instead of a >column for each)...so 25 records per call monitored. I thought this would >be best so as new questions were added and discontinued...there would be no >need to change the forms,tables, or reports...but with this method I will >be > >over 1 million records in 6 months. I've informed them they will need some >BE other than access for this scenario. > >The question I have...is there a more efficient way to store this type of >data?(Also, the answers are all 1,2,or 0...so its very little info...just a >lot of rows) > >Thanks, > >Mark >****************************************** >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From gustav at cactus.dk Sat Feb 21 12:10:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Feb 2004 19:10:45 +0100 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: References: Message-ID: <1634712864.20040221191045@cactus.dk> Hi J?rgen! Are you back with us ... or is this a standalone rant? /gustav From Subscriptions at servicexp.com Sat Feb 21 12:13:10 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Sat, 21 Feb 2004 13:13:10 -0500 Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: Message-ID: That is exactly what I ran into.... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 21, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Sat Feb 21 13:05:38 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 14:05:38 -0500 Subject: [AccessD] Thanks, Bryan In-Reply-To: <004001c3f8a2$b907c370$bf00a8c0@dabsight> References: <40374635.14782.C02296@localhost> Message-ID: <403765B2.27469.13B24C9@localhost> On 21 Feb 2004 at 17:47, DJK(John) Robinson wrote: > Thanks for your work in analysing and solving the cross-posting > problem. Those of us subscribed to more than one list will truly > benefit! Alas, as you have probably noticed, it's not fixed. It's not something that I can fix. I need to contact an external postmaster to fix their relay server :( -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From prodevmg at yahoo.com Sat Feb 21 13:45:28 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sat, 21 Feb 2004 11:45:28 -0800 (PST) Subject: [AccessD] Hiding Table in mde In-Reply-To: <03f501c3fdac$ee527750$6801a8c0@HAL9002> Message-ID: <20040221194528.69998.qmail@web20405.mail.yahoo.com> Why not just hardcode an expiration date in a module and call it from an autoexec? If Date() >= #06/30/04# Then MsgBox "Sorry, this db has expired" Quit 'Shutdown the db End If Rocky Smolin - Beach Access Software wrote: Can it be imported from an mde into another MDB like a regular table or will it not show in the list of objects to be imported? Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2004 2:13 PM Subject: Re: [AccessD] Hiding Table in mde > You can sort of hide the table if you preface table name with USys. It > can then only be seen if you turn on System Objects view in options > > Joseph O'Connell wrote: > > >Rocky, > > > >Search the archives for "Copy Protection". There was a long discussion of > >this topic and recommendations for several add-in products during October > >2001. > > > >Joe O'Connell > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software > >To: Access Developers discussion and problem solving > > > >Date: Wednesday, February 18, 2004 12:45 PM > >Subject: Re: [AccessD] Hiding Table in mde > > > > > >|A.D.: > >| > >|What I'm trying to do is copy protect my program by putting a data bomb in > >|the opening form. Right now it's hard coded into the module's OnOpen > >event. > >|I was going to put the date bomb into a table but that table is accessible > >|to the user even in an mde. > >| > >|So I was trying to hide the table. But a more direct way would be to be > >|able to alter the line of code in the mde which contains the expire date. > >| > >|I've cooked up a more elaborate scheme now but haven't settled on a final > >|approach. I want the user to be able to call or email their serial number > >|and I give them a code to change the expiration date in their system. I've > >|done a key like this before for another client so I've got all the > >|code/decode stuff worked out. > >| > >|I'm just searching around for the simplest solution to protecting my > >|product. > >| > >|Regards, > >| > >|Rocky > >| > >|----- Original Message ----- > >|From: "A.D.Tejpal" > >|To: "Access Developers discussion and problem solving" > >| > >|Sent: Wednesday, February 18, 2004 8:57 AM > >|Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >|Rocky, > >| > >| Could you kindly confirm that you wish to add a new program module for > >|manipulating existing objects in an mde - without having to go through the > >|conventional steps of first altering the code in original mdb and then > >|converting it into a fresh mde. > >| > >| If this be the case, an interesting solution could be adopted, so as to > >|meet your requirement. > >| > >|Regards, > >|A.D.Tejpal > >|-------------- > >| ----- Original Message ----- > >| From: Charlotte Foust > >| To: Access Developers discussion and problem solving > >| Sent: Tuesday, February 17, 2004 23:10 > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| Code can't be modified in an mde at all, programmatically or otherwise. > >| That's the whole point. > >| > >| Charlotte Foust > >| > >| -----Original Message----- > >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >| Sent: Sunday, February 15, 2004 9:55 PM > >| To: Access Developers discussion and problem solving > >| Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >| Doug: > >| > >| That would work but I'd prefer not to have the file external. Can code > >| be modified programmatically in an mde? > >| > >| Rocky > >| > >| ----- Original Message ----- > >| From: "Doug Murphy" > >| To: "'Access Developers discussion and problem solving'" > >| > >| Sent: Sunday, February 15, 2004 12:38 PM > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| > One way to do this is to not put it in the database, but use an > >| > external file that is encrypted. Set the system up so it won't run if > >| > >| > the file isn't present and make the file hard for folks to find. > >| > > >| > Doug > >| > > >| > Douglas Murphy > >| > Murphy's Creativity > >| > (619) 334-5121 > >| > doug at murphyscreativity.com > >| > www.murphyscreativity.com > >| > > >| > > >| > > >| > > >| > -----Original Message----- > >| > From: accessd-bounces at databaseadvisors.com > >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >| > Smolin > >| > - Beach Access Software > >| > Sent: Sunday, February 15, 2004 7:41 AM > >| > To: AccessD at databaseadvisors.com > >| > Subject: [AccessD] Hiding Table in mde > >| > > >| > > >| > Dear List: > >| > > >| > Is there a way to prevent a user from importing a table from an mde > >| > into an mdb without putting a password on the mde? I'm trying to > >| > build a serial number/upgrade/license extension function into an app > >| > and will be storing the data in a front end table. > >| > > >| > TIA, > >| > > >| > Rocky Smolin > >| > Beach Access Software > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > >| > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jwelz at hotmail.com Sat Feb 21 14:31:52 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 13:31:52 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Hi Gustav: I thought I'd hang around a bit. Did some schooling for a year and dabbled a bit in some ASP, Java and more recently, the .Net technologies and now my former employers have decided to upgrade everything I did for them to Office 2003. Subscribing to this list seemed like a good idea as I expect I may need some pointers here or there. The conversion project looks like it will probably begin next weekend. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Gustav Brock >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row >Date: Sat, 21 Feb 2004 19:10:45 +0100 >MIME-Version: 1.0 >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >10:11:04 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb >2004 10:11:04 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 >Received: from relay.webpartner.dk (relay.webpartner.dk [195.184.96.12])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for >; Sat, 21 Feb 2004 12:10:47 -0600 >Received: from gustav (unknown [213.150.48.58])by relay.webpartner.dk >(Postfix) with ESMTP id CACBFCB5A7for ;Sat, >21 Feb 2004 19:10:45 +0100 (CET) >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= >X-Mailer: The Bat! (v1.62i) Business >Organization: Cactus Data ApS >Message-ID: <1634712864.20040221191045 at cactus.dk> >In-Reply-To: >References: >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From mwp.reid at qub.ac.uk Sat Feb 21 14:42:03 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 21 Feb 2004 20:42:03 -0000 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <000d01c3f8bb$2b46f830$e60a6351@martin1> Great to see you back home Martin ----- Original Message ----- From: "J?rgen Welz" To: Sent: Saturday, February 21, 2004 8:31 PM Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row Hi Gustav: I thought I'd hang around a bit. Did some schooling for a year and dabbled a bit in some ASP, Java and more recently, the .Net technologies and now my former employers have decided to upgrade everything I did for them to Office 2003. Subscribing to this list seemed like a good idea as I expect I may need some pointers here or there. The conversion project looks like it will probably begin next weekend. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Gustav Brock >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row >Date: Sat, 21 Feb 2004 19:10:45 +0100 >MIME-Version: 1.0 >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >10:11:04 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb >2004 10:11:04 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 >Received: from relay.webpartner.dk (relay.webpartner.dk [195.184.96.12])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for >; Sat, 21 Feb 2004 12:10:47 -0600 >Received: from gustav (unknown [213.150.48.58])by relay.webpartner.dk >(Postfix) with ESMTP id CACBFCB5A7for ;Sat, >21 Feb 2004 19:10:45 +0100 (CET) >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= >X-Mailer: The Bat! (v1.62i) Business >Organization: Cactus Data ApS >Message-ID: <1634712864.20040221191045 at cactus.dk> >In-Reply-To: >References: >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Sat Feb 21 15:04:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 21 Feb 2004 15:04:33 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BF@main2.marlow.com> Ya, but that leads to 'fixing' the number of questions to 25, unless you make table design changes. The original question asked for an approach where size would be smaller, and no table changes would be needed in the future. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 4:30 AM Subject: RE: [AccessD] Table Structure questions On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > Sorry, use 97 for almost all of my backends....so I keep forgetting about > the Unicode issue! > > However, what are you LINKING the records in that table with? Each record, > in a one per question table, would need a caller ID (Long), Question Number > (could be byte), then the answer (another byte). > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) > No, I agreed completely with your idea of storing all the answers in one record, I just suggested stotring the anwers in separate fields rather than a string - so you have CallerID plus 25 byte fields rather than CallerID plus one string field storing 25 characters. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Sat Feb 21 15:07:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 21 Feb 2004 15:07:57 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 10:25 AM Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 15:34:48 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 21:34:48 -0000 Subject: [AccessD] Thanks, Bryan In-Reply-To: <403765B2.27469.13B24C9@localhost> Message-ID: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> Ouch, yes! I got six non-deliveries *and* bounced off this list! Let me know off-list if you want any details, Bryan. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 21 February 2004 19:06 > To: Access Developers discussion and problemsolving > Subject: Re: [AccessD] Thanks, Bryan > > > On 21 Feb 2004 at 17:47, DJK(John) Robinson wrote: > > > Thanks for your work in analysing and solving the cross-posting > > problem. Those of us subscribed to more than one list will truly > > benefit! > > Alas, as you have probably noticed, it's not fixed. > > It's not something that I can fix. I need to contact an external > postmaster to fix their relay server :( > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Code so clean...you can eat off it. > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > From d.dick at uws.edu.au Sat Feb 21 17:01:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Sun, 22 Feb 2004 10:01:00 +1100 Subject: [AccessD] A2K:Data Type Mismatch in expression References: <40360972.2392.146DCE1@localhost> Message-ID: <003701c3f8ce$94215630$25669a89@DDICK> Hi Stuart Thank you, Thank you, Thank you Awesome I'll never get this SQL syntax :-( < sigh> That's why I have this list :-)) Thanks again Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Friday, February 20, 2004 2:19 PM Subject: Re: [AccessD] A2K:Data Type Mismatch in expression > This time, I'd guess that StudentID in NOT a text field, so you don't > want the two single quotes at all. > > You seem to be missing the first field name in the select statement > > You are missing a closing double quote after & "FROM tblStudents > (note you also need a space after the tblStudents and before the > double quote) > > So try: > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > & "FROM tblStudents " _ > & "WHERE (((tblStudents.StudentID)=" _ > & [Forms]![frmStudents]![txtStudentID] & "));" > > > On 20 Feb 2004 at 13:30, Darren DICK wrote: > > > Hi Guys > > This is basically the same question I asked the other day that Stuart and some others answered > > This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly > > different SQL. > > I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single > > quotes and stuff, but I just cant get it right > > > > I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type > > "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! > > > > '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Dim selSQL As String > > Dim rs As Object > > Dim con As Object > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > > & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" > > > > rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here > > > > With rs > > MsgBox .RecordCount > > x = .RecordCount > > End With > > '++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Feb 21 17:24:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 22 Feb 2004 09:24:19 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278BF@main2.marlow.com> Message-ID: <40387543.11550.118C8D@localhost> On 21 Feb 2004 at 15:04, DWUTKA at marlow.com wrote: > Ya, but that leads to 'fixing' the number of questions to 25, unless you > make table design changes. > > The original question asked for an approach where size would be smaller, and > no table changes would be needed in the future. > Actually, I read it as always 25 questions, but the specific questions could change over time, so 25 byte fields would do it is as long as you also had a pointer to the question set at the time. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Sat Feb 21 17:30:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 22 Feb 2004 09:30:33 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <003f01c3f8a1$b6fb9530$bf00a8c0@dabsight> References: <4037BFD9.25690.26D8437@localhost> Message-ID: <403876B9.2769.174268@localhost> On 21 Feb 2004 at 17:39, DJK(John) Robinson wrote: > I think you've all lost the plot, mostly: > > 1. Each individual answer *has* to identify the question it relates to, > if you want to make any sense of the analysis! (Re-read Mark's posting, > repeated below. There are different simultaneously existing sets of 25 > questions, and each set varies with time.) > > 2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've > been working too much with SQLS lately, but this minuscule amount, coupled > with the simplicity and flexibility of design, and ease of > querying/reporting, is "more efficient" (Mark's phrase) than groping about > in strings. > IF (really?) you think that disk space is the only criterion, then you > shouldn't be wasting a whole byte on each answer, when a couple of bits > would do! > > Stick to Normal form, unless there's a GOOD reason not to. > It's not the overall size, it's the number of records. As Mark said: ".but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?" Manipulating 1,000,000+ records in an Access table can be a real PITA. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd at shaw.ca Sat Feb 21 17:30:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 21 Feb 2004 15:30:01 -0800 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: Message-ID: Hi J?rgen: Your back! Good to see you, email-wise again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of J?rgen Welz Sent: Saturday, February 21, 2004 9:53 AM To: accessd at databaseadvisors.com Subject: [AccessD] Array dimensions, Row - Col or Col Row Pet peeve - Microsoft documentation and book authors that insist that the the first dimension of 2 dimensional array is the row and the second is the column. I see that this carries over into the .Net books I'm reading. When was the last time you used a Recordset .getRows method and had the first index refer to the record and the second to the field? When was the last time you redimensioned an array to add a column rather than to add or remove a number of rows (records)? How often does a table/query change in size as to the number of rows (records) in comparison to the number of columns (fields)? It doesn't really matter which it is, but with the old versions of VB/A, you could only resize the last index of a multi-dimensioned array (without copying to a new array anyway) so the only practical usage is to add rows to a fixed number of columns which is in fact how it was implemented. Then the authors (Dianne Zak for example) and even Microsoft help deliberately explain them to be varArray(RowIndex, ColIndex) when in the actual practical implementation it is nearly always (ColIndex, RowIndex). It doesn't matter which it is because it is really just an abstract data structure that you can in theory map as you please. The problem I have is when documentation insists on defining it in an impractical manner in the context of getrows and other database usage making it obvious that the VB data people didn't speak with the VB language people. I had hoped that by .Net they would have a chance to write new documentation and finally get it right but I've been reading the Sybex Maastering Visual Basic .NET Database Programming, Visual Basic .NET Developer's Handbook and Mastering Visual Basic .NET and Evangelos Petroutsos keeps right on defining it backwards when he could have just shut up. Why is it that within a single company and a single development platform, developers insist on driving on different sides of the road? Is there a means to lodge a complaint with Microsoft so that the next time they replace the entire language they might finally get the documentaion consistent? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin .msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sun Feb 22 02:31:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Feb 2004 09:31:33 +0100 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: References: Message-ID: <1412999943.20040222093133@cactus.dk> Hi J?rgen > I thought I'd hang around a bit. Did some schooling for a year and dabbled > a bit in some ASP, Java and more recently, the .Net technologies and now my > former employers have decided to upgrade everything I did for them to Office > 2003. Subscribing to this list seemed like a good idea as I expect I may > need some pointers here or there. The conversion project looks like it will > probably begin next weekend. OK. Things have gone into polite mode here; JC at present is in nice-guy-no-rant mode, William doesn't react anymore on trigger words like "Novell", Drew has stopped burning down his homes, Arthur has disappeared in the forest of SQL Server, and Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. So, welcome back! We need some solid input and experience from Access 2003 developers. Most of us - including myself - hang around with older versions. /gustav >>Are you back with us ... or is this a standalone rant? From mwp.reid at qub.ac.uk Sun Feb 22 03:32:38 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 22 Feb 2004 09:32:38 -0000 Subject: [AccessD] OT Quick Question References: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> Message-ID: <001101c3f926$d048a0c0$e60a6351@martin1> You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin From jwcolby at colbyconsulting.com Sun Feb 22 06:57:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 22 Feb 2004 07:57:04 -0500 Subject: [AccessD] OT Quick Question In-Reply-To: <001101c3f926$d048a0c0$e60a6351@martin1> Message-ID: Top 5 what? Words of advice? Books? Subjects to study? Places to get my head examined? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 4:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Feb 22 07:25:43 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 22 Feb 2004 13:25:43 -0000 Subject: [AccessD] OT Quick Question References: Message-ID: <000701c3f947$61094ea0$1b02a8c0@MARTINREID> Well is sunday (<: Top basic access for example How to create parameter queries etc Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 22, 2004 12:57 PM Subject: RE: [AccessD] OT Quick Question > Top 5 what? Words of advice? Books? Subjects to study? Places to get my > head examined? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 4:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know more. > No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Feb 22 07:38:15 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 08:38:15 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <1412999943.20040222093133@cactus.dk> Message-ID: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. From ssharkins at bellsouth.net Sun Feb 22 07:42:43 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 08:42:43 -0500 Subject: [AccessD] OT Quick Question In-Reply-To: <000701c3f947$61094ea0$1b02a8c0@MARTINREID> Message-ID: <20040222134243.EEZM1898.imf19aec.mail.bellsouth.net@SUSANONE> Why just 5? Are these users complete novices to databases or just Access? Susan H. Well is sunday (<: Top basic access for example How to create parameter queries etc Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 22, 2004 12:57 PM Subject: RE: [AccessD] OT Quick Question > Top 5 what? Words of advice? Books? Subjects to study? Places to get my > head examined? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 4:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know more. > No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Feb 22 08:22:45 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 22 Feb 2004 09:22:45 -0500 Subject: [AccessD] Thanks, Bryan In-Reply-To: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> References: <403765B2.27469.13B24C9@localhost> Message-ID: <403874E5.5039.C062D@localhost> On 21 Feb 2004 at 21:34, DJK(John) Robinson wrote: > Ouch, yes! I got six non-deliveries *and* bounced off this list! Let > me know off-list if you want any details, Bryan. Don't feel bad about the bounce. Yesterday was a bad day for MSN and Hotmail subscibers. Quite a few got bounced. I think their e-mail server was down. for a while. -- Bryan Carbonnell - carbonnb at sympatico.ca An unkind remark is like a killing frost. No matter how much it warms up later, the damage remains. From carbonnb at sympatico.ca Sun Feb 22 08:25:54 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 22 Feb 2004 09:25:54 -0500 Subject: [AccessD] Cross Post test Message-ID: <403875A2.22791.EEA93@localhost> Just to get some traffic on Visio :) DO NOT REPLY. -- Bryan Carbonnell - carbonnb at sympatico.ca I try to take one day at a time, but sometimes several days attack me at once. From mikedorism at adelphia.net Sun Feb 22 09:58:24 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Sun, 22 Feb 2004 10:58:24 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c3f95c$b4545900$a1194244@hargrove.internal> Hi Susan, I haven't done much yet with Access2003 but I have started moving down the .Net westward trail. I've done several projects and really like the UI changes in Visual Basic. If you need a co-author for any articles (Access or otherwise), let me know. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 8:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Feb 22 10:40:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 22 Feb 2004 16:40:53 -0000 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: Message-ID: <014701c3f962$a418dd30$b274d0d5@minster33c3r25> Good to see you back Jurgen. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J?rgen Welz > Sent: 21 February 2004 20:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row > > > Hi Gustav: > > I thought I'd hang around a bit. Did some schooling for a > year and dabbled > a bit in some ASP, Java and more recently, the .Net > technologies and now my > former employers have decided to upgrade everything I did for > them to Office > 2003. Subscribing to this list seemed like a good idea as I > expect I may > need some pointers here or there. The conversion project > looks like it will > probably begin next weekend. > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > > >From: Gustav Brock > >Reply-To: Access Developers discussion and problem > >solving > >To: Access Developers discussion and problem > >solving > >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row > >Date: Sat, 21 Feb 2004 19:10:45 +0100 > >MIME-Version: 1.0 > >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by > >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); > Sat, 21 Feb 2004 > >10:11:04 -0800 > >Received: from databaseadvisors.com ([209.135.140.44]) by > >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); > Sat, 21 Feb > >2004 10:11:04 -0800 > >Received: from databaseadvisors.com (databaseadvisors.com > >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) > with ESMTP id > >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 > >Received: from relay.webpartner.dk (relay.webpartner.dk > [195.184.96.12])by > >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for > >; Sat, 21 Feb 2004 12:10:47 -0600 > >Received: from gustav (unknown [213.150.48.58])by > relay.webpartner.dk > >(Postfix) with ESMTP id CACBFCB5A7for > ;Sat, > >21 Feb 2004 19:10:45 +0100 (CET) > >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= > >X-Mailer: The Bat! (v1.62i) Business > >Organization: Cactus Data ApS > >Message-ID: <1634712864.20040221191045 at cactus.dk> > >In-Reply-To: > >References: > >X-BeenThere: accessd at databaseadvisors.com > >X-Mailman-Version: 2.1.4 > >Precedence: list > >List-Id: Access Developers discussion and problem > >solving > >List-Help: > >List-Post: > >List-Subscribe: > >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoi n.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sun Feb 22 10:50:03 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 09:50:03 -0700 Subject: [AccessD] OT Quick Question Message-ID: >From: "Martin Reid" >You just starting out with Access, bit of experience but want to know more. >No programming just basic skills. > >What would be the top 5 > > >Martin Most problems I see with amateur databases arise from 6 general areas: - Table structure/relationships/3NF basics (and use a numeric unique key) - Queries, understanding the different joins, union, append, update, make table (you need to know most of this before you can do your database table structural design) - Indexes, cost/benefit and performance (that numeric key again) - Understand the datatypes and sizes, table record field limitations and type delimiter issues (delimiters for beginning coders-especially datetime-input mast and formatted display v storage) - The hows and whys of cascade updates/deletes - Understanding concurrency: Bound v Unbound, connected v disconnected Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From ssharkins at bellsouth.net Sun Feb 22 11:23:35 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 12:23:35 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <000001c3f95c$b4545900$a1194244@hargrove.internal> Message-ID: <20040222172338.DQVI1895.imf21aec.mail.bellsouth.net@SUSANONE> I will -- I haven't even started my adventure yet -- other than to install it and poke around. ) Susan H. I haven't done much yet with Access2003 but I have started moving down the .Net westward trail. I've done several projects and really like the UI changes in Visual Basic. If you need a co-author for any articles (Access or otherwise), let me know. From jwelz at hotmail.com Sun Feb 22 11:52:39 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 10:52:39 -0700 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Message-ID: I did a little file list demo a couple years ago that MTM might take a look at. Just starting with 2003 which I neither own nor have installed on any machine I can get my hands on. It is installed on a security hypochondriac's terminal server to which I will obtain a login later next week. If any addins are needed, it will probably be a struggle. Very likely no VBA help will be installed so if and when object dependencies arise, it will be something I may have to address. There are 20 concurrent users and 6 may open two instances of the same database at the same time, all at the end of 6 dsl connections to different offices. Ten of the users share a single dsl connection. Six laptops will need to synchronize files (11 gigabytes are managed by the system) and data (BE sits at 19 megabytes at present). There will be no replication tools. A great many people are not moving to .NET. Look at www.mvps.org and you'll see little mention of it. VB 6 is not about to expire and there is little need to expose mature objects in MS Office applications to modification at the root levels. There was a period of time where I believed that I would need to learn C++ or Java to do programming from the ground up but it looks like Microsoft has taken much of the best from both of these to build a newer and somewhat more mature Javaesqe language. That is not to say I would want to build a replacement for Word as there is so little sense in doing so. There is a world of difference between building your own object heirarchy and using a mature documented and well understood object model. The transition to .NET requires a large investment in understanding and developing object hierarchies before writing any code. With VB and VBA it was relatively safe to dive in once the tables were designed. An acquaintance told me a story of an impossible development task with a ridiculous delivery date. He had to deliver a .NET application in a few weeks and he firmly believed that the task was impossible given the time constraints. Rather than panic, he decided to work with the schedule and devote time to planning the hierarchy and overall structure believing that if he documented his work, he would demonstrate to his employer that he worked hard but the task was impossible. He was shocked to find that he completed the project with time to spare. I don't have that comfort with .NET. There are times when I live and breathe code and there have been many times where I would have to go to excessive lengths to get Access to do what I wanted and as a result, I'm finding that .NET is a pretty good fit. I believe users need drag and drop and more flexible formatting in lists, combos and continuous forms. When I look at what I've done in ASP in the past and do the comparison with ASP.NET and how learning VB.NET yeilds returns in that area as well, I'm convinced that learning .NET will give me a good return on my investment. I have also heard from numerous acquaintances that many of the jobs that are offered require either open source or .NET experience. Every fundamental concept I learned about Java translates well to .NET. If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Susan Harkins" > > Susan is too busy to post those "impossible" questions which did catalyze >threads with 100+ messages. > >===========I apologize for all my failings. :) > >I have been busy -- working on my third book with Mike G since fall. >Nothing >this crowd will be interested in though I don't think. :) An interesting >one >will be out next month and I'll be glad to talk about it then -- cause I'd >like to get this crowd's reaction to the whole move. > >I've been using Outlook 2003 and there are things that just don't work that >seem to work for other people -- I have no clue what's wrong with it (aside >from my incompetence in this area). :( For instance, the new AutoComplete >feature uses names from my Outlook Express address book instead of the >Outlook contacts I've entered. It did that before I imported the address >book from OE. I imported it, but Outlook still won't read names entered as >contacts--it only uses the names in my original OE address book. Truly >strange. But overall, I like it better than OE, even if it is still a >memory >hog. If anyone's using the BCM and has some good documentation they could >point me to I'd be grateful. > >I don't have any articles for the next issue of MTM, so somebody needs to >get busy. :) > >I followed the article on Access becoming extinct and found it interesting >-- how many of you are actually using or supporting Access 2003? > >I'm curious if any of you are actually using any of the new features like >the Object Dependencies task pane and so on. I have to upgrade each time, >but at this point, publishers are wanting to cover up to 4 versions in one >article -- I tell them, "no, but thank you for asking..." ;) Collaboration >seems to be the big push and I just don't have any need for it personally, >but that is the push so my guess is a large part of the user base wants it. >We don't need no stinkin' smart tags... ;) > >How many of you are moving to .NET? Seems like the next frontier, but I may >not go west. ;) I'm getting to old to keep up. ;) I'll be working with >basics, but I can't imagine ever taking it on at a development level. I >don't like working that hard. Unlike so many of you, this is just something >I do to make money, not something I'm passionate about. I don't code in my >sleep -- unless I'm having a nightmare. :) > >Shouldn't TechEd be just around the corner? Anyone going? I haven't been in >years. > >Susan H. _________________________________________________________________ Say ?good-bye? to spam, viruses and pop-ups with MSN Premium -- free trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ From martyconnelly at shaw.ca Sun Feb 22 14:37:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 22 Feb 2004 12:37:15 -0800 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <403912FB.80703@shaw.ca> Generally in mathematical matrix notation for a Matrix M i,j i is the row and j is the column, However in computers Arrays are either broken down as column major or row major. Meaning what part of the Array is stored contiguously in memory. Those who wish to consider a 2-D numeric array as an analogue for a matrix consider column-major (columns stored contiguously) to be more "natural," since the mathematical convention is to divide matrices into "column vectors." When linear systems, linear eigensystems, or other linear-algebra-based disciplines are discussed in the mechanical engineering, electrical engineering, physics, and mathmatical literature , it is far more common to speak of "column vectors" than "row vectors". All programs that manipulate matrices take advantage of one particular memory layout. If you ignore it, you'll suffer a huge performance hit. In Fortran the memory layout for arrays is column-major. Fortran orders things the way the mathematical literature has made us accustomed to seeing them. I am not sure which is contiguous in memory in VBA. rows or columns. I would have to fiddle around to find out. If I remember right APL treats an ordinary vector as either a column vector or row vector depending on use or context. However: Compilers don't know anything about rows or columns. Most C and C++ compilers store two dimensional arrays in exactly the same way that Fortran compilers store them. The only difference is that C array subscripts appear in reverse order from Fortran array subscripts. The problem is that both C and Fortran programmers associate the left and right subscripts of a two dimensional array with the row and column indices respectively. Fortran programmers tend to think of two dimensional arrays as collections of column vectors so they naturally think of one dimensional arrays as column vectors. C programmers,on the other hand, tend to think of two dimensional arrays as collections of row vectors so they naturally think of one dimensional arrays as row vectors. This screws you up calling C routines from Fortran because you have to generally transpose the matrix or array. To further mess up things, Some Fortran compilers have an option to take care of the following: For the inner loop of a matrix-matrix product Most RISC machines like DOT (dot-product) operation best, but some vector-instruction machines like the AXPY(constant-times-a-vector-plus-a-vector) best. This can be a real bag of worms! Welz wrote: > Pet peeve - Microsoft documentation and book authors that insist that > the the first dimension of 2 dimensional array is the row and the > second is the column. I see that this carries over into the .Net > books I'm reading. When was the last time you used a Recordset > .getRows method and had the first index refer to the record and the > second to the field? When was the last time you redimensioned an > array to add a column rather than to add or remove a number of rows > (records)? How often does a table/query change in size as to the > number of rows (records) in comparison to the number of columns (fields)? > > It doesn't really matter which it is, but with the old versions of > VB/A, you could only resize the last index of a multi-dimensioned > array (without copying to a new array anyway) so the only practical > usage is to add rows to a fixed number of columns which is in fact how > it was implemented. Then the authors (Dianne Zak for example) and > even Microsoft help deliberately explain them to be varArray(RowIndex, > ColIndex) when in the actual practical implementation it is nearly > always (ColIndex, RowIndex). > > It doesn't matter which it is because it is really just an abstract > data structure that you can in theory map as you please. The problem > I have is when documentation insists on defining it in an impractical > manner in the context of getrows and other database usage making it > obvious that the VB data people didn't speak with the VB language > people. I had hoped that by .Net they would have a chance to write > new documentation and finally get it right but I've been reading the > Sybex Maastering Visual Basic .NET Database Programming, Visual Basic > .NET Developer's Handbook and Mastering Visual Basic .NET and > Evangelos Petroutsos keeps right on defining it backwards when he > could have just shut up. > > Why is it that within a single company and a single development > platform, developers insist on driving on different sides of the > road? Is there a means to lodge a complaint with Microsoft so that > the next time they replace the entire language they might finally get > the documentaion consistent? > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Sun Feb 22 16:02:20 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 15:02:20 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Thanks Marty: Thinking about file streams and the manner in which records are stored in text files, a record is appended contiguously (row major) and it is implicit from the 2 k page locks in Access databases where you can fill a record with extra fields with up to 255 characters each to fake single record locking in Jet 3.5, it would appear that Access and .GetRows should be row major and that redim preserve would work to add or remove a record. I remember dabbling with 'safe arrays' to write a quick sort that moved rows at a time (or was it structs?) and my recollection is that arrays were akin to a sequential series of records, each made up of repeating column values. Can you imagine how inefficient it would be to sort records in a column major array? It's been 15 or so years since I've done any matrix math but your comments ring a bell. There is no doubt that an array assigned to the return value of getrows uses a (col, row) order and the help and every author I've read who says anything about it states that the indexes are (row, col). In terms of priority in retrieving a value from a record, it would make sense to locate the record first and then the value from the appropriate column. ie, find the person and then determine the age of that person rather than find the age column and then check them for the person. If one seeks the record first, perhaps the first index should be the record and the second the column but that reverses the index order resulting from getrows. When it comes to iterating elements, there is no advantage to row, col or col row as they are simply memory addresses. Working with blocks of memory rather than addresses is another matter entirely (ie sorting entire records). I would have been much happier about the help if it were consistent. If getrows returned (row, col) and the language allowed one only to redim the first dimension (so much easier to determine and code), then the help and the usage would be reconciled. Most programmers don't need to know how the array is stored in memory but they should know how to access the value of a row and column of a particular 'record' and all the help does is reverse the manner in which it is used with databases. I'd still like to know where a complaint of this nature stands a hope of getting consideration that will result in the help at least saying that arrays are (row, col) except when dealing with database records. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: MartyConnelly > >Generally in mathematical matrix notation for a Matrix M i,j i is the >row and j is the column, However in computers Arrays are either broken down >as column major or row major. Meaning what part of the Array is stored >contiguously in memory. Those who wish to consider a 2-D numeric array as >an analogue for a >matrix consider column-major (columns stored contiguously) to be more >"natural," since the mathematical convention is to divide matrices into >"column vectors." When linear systems, linear eigensystems, or other >linear-algebra-based disciplines are discussed in the mechanical >engineering, electrical >engineering, physics, and mathmatical literature , it is far more common to >speak of "column vectors" than "row vectors". >All programs that manipulate matrices take advantage of one particular >memory layout. If you ignore it, you'll suffer a huge performance hit. >In Fortran the memory layout for arrays is column-major. Fortran orders >things the way the mathematical literature has made us accustomed to seeing >them. >I am not sure which is contiguous in memory in VBA. rows or columns. I >would have to fiddle around to find out. > >If I remember right APL treats an ordinary vector as either a column vector >or row vector depending on use or context. > >However: >Compilers don't know anything about rows or columns. Most C and C++ >compilers store two dimensional arrays >in exactly the same way that Fortran compilers store them. The only >difference is that C array subscripts appear >in reverse order from Fortran array subscripts. The problem is that both C >and Fortran programmers >associate the left and right subscripts of a two dimensional array with the >row and column indices respectively. >Fortran programmers tend to think of two dimensional arrays as collections >of column vectors so they naturally think of >one dimensional arrays as column vectors. C programmers,on the other hand, >tend to think of two dimensional arrays >as collections of row vectors so they naturally think of one dimensional >arrays as row vectors. >This screws you up calling C routines from Fortran because you have to >generally transpose the matrix or array. > >To further mess up things, Some Fortran compilers have an option to take >care of the following: >For the inner loop of a matrix-matrix product >Most RISC machines like DOT (dot-product) operation best, but some >vector-instruction machines like the >AXPY(constant-times-a-vector-plus-a-vector) best. > >This can be a real bag of worms! > > > >Welz wrote: > >>Pet peeve - Microsoft documentation and book authors that insist that the >>the first dimension of 2 dimensional array is the row and the second is >>the column. I see that this carries over into the .Net books I'm reading. >> When was the last time you used a Recordset .getRows method and had the >>first index refer to the record and the second to the field? When was the >>last time you redimensioned an array to add a column rather than to add or >>remove a number of rows (records)? How often does a table/query change in >>size as to the number of rows (records) in comparison to the number of >>columns (fields)? >> >>It doesn't really matter which it is, but with the old versions of VB/A, >>you could only resize the last index of a multi-dimensioned array (without >>copying to a new array anyway) so the only practical usage is to add rows >>to a fixed number of columns which is in fact how it was implemented. >>Then the authors (Dianne Zak for example) and even Microsoft help >>deliberately explain them to be varArray(RowIndex, ColIndex) when in the >>actual practical implementation it is nearly always (ColIndex, RowIndex). >> >>It doesn't matter which it is because it is really just an abstract data >>structure that you can in theory map as you please. The problem I have is >>when documentation insists on defining it in an impractical manner in the >>context of getrows and other database usage making it obvious that the VB >>data people didn't speak with the VB language people. I had hoped that by >>.Net they would have a chance to write new documentation and finally get >>it right but I've been reading the Sybex Maastering Visual Basic .NET >>Database Programming, Visual Basic .NET Developer's Handbook and Mastering >>Visual Basic .NET and Evangelos Petroutsos keeps right on defining it >>backwards when he could have just shut up. >> >>Why is it that within a single company and a single development platform, >>developers insist on driving on different sides of the road? Is there a >>means to lodge a complaint with Microsoft so that the next time they >>replace the entire language they might finally get the documentaion >>consistent? >> >> >>Ciao >>J?rgen Welz >>Edmonton, Alberta >>jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From Mark.Mitsules at ngc.com Sun Feb 22 16:17:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Sun, 22 Feb 2004 17:17:51 -0500 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: To put it more basic terms, consider geometry. The x-y coordinate system is always defined as x (the horizontal component), then y (the vertical component). Just looking at a 2-d matrix, columns should be the x, rows should be the y. The theory behind why it should be any different is beyond me. Mark -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Sunday, February 22, 2004 3:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row Generally in mathematical matrix notation for a Matrix M i,j i is the row and j is the column, However in computers Arrays are either broken down as column major or row major. Meaning what part of the Array is stored contiguously in memory. Those who wish to consider a 2-D numeric array as an analogue for a matrix consider column-major (columns stored contiguously) to be more "natural," since the mathematical convention is to divide matrices into "column vectors." When linear systems, linear eigensystems, or other linear-algebra-based disciplines are discussed in the mechanical engineering, electrical engineering, physics, and mathmatical literature , it is far more common to speak of "column vectors" than "row vectors". All programs that manipulate matrices take advantage of one particular memory layout. If you ignore it, you'll suffer a huge performance hit. In Fortran the memory layout for arrays is column-major. Fortran orders things the way the mathematical literature has made us accustomed to seeing them. I am not sure which is contiguous in memory in VBA. rows or columns. I would have to fiddle around to find out. If I remember right APL treats an ordinary vector as either a column vector or row vector depending on use or context. However: Compilers don't know anything about rows or columns. Most C and C++ compilers store two dimensional arrays in exactly the same way that Fortran compilers store them. The only difference is that C array subscripts appear in reverse order from Fortran array subscripts. The problem is that both C and Fortran programmers associate the left and right subscripts of a two dimensional array with the row and column indices respectively. Fortran programmers tend to think of two dimensional arrays as collections of column vectors so they naturally think of one dimensional arrays as column vectors. C programmers,on the other hand, tend to think of two dimensional arrays as collections of row vectors so they naturally think of one dimensional arrays as row vectors. This screws you up calling C routines from Fortran because you have to generally transpose the matrix or array. To further mess up things, Some Fortran compilers have an option to take care of the following: For the inner loop of a matrix-matrix product Most RISC machines like DOT (dot-product) operation best, but some vector-instruction machines like the AXPY(constant-times-a-vector-plus-a-vector) best. This can be a real bag of worms! Welz wrote: > Pet peeve - Microsoft documentation and book authors that insist that > the the first dimension of 2 dimensional array is the row and the > second is the column. I see that this carries over into the .Net > books I'm reading. When was the last time you used a Recordset > .getRows method and had the first index refer to the record and the > second to the field? When was the last time you redimensioned an > array to add a column rather than to add or remove a number of rows > (records)? How often does a table/query change in size as to the > number of rows (records) in comparison to the number of columns (fields)? > > It doesn't really matter which it is, but with the old versions of > VB/A, you could only resize the last index of a multi-dimensioned > array (without copying to a new array anyway) so the only practical > usage is to add rows to a fixed number of columns which is in fact how > it was implemented. Then the authors (Dianne Zak for example) and > even Microsoft help deliberately explain them to be varArray(RowIndex, > ColIndex) when in the actual practical implementation it is nearly > always (ColIndex, RowIndex). > > It doesn't matter which it is because it is really just an abstract > data structure that you can in theory map as you please. The problem > I have is when documentation insists on defining it in an impractical > manner in the context of getrows and other database usage making it > obvious that the VB data people didn't speak with the VB language > people. I had hoped that by .Net they would have a chance to write > new documentation and finally get it right but I've been reading the > Sybex Maastering Visual Basic .NET Database Programming, Visual Basic > .NET Developer's Handbook and Mastering Visual Basic .NET and > Evangelos Petroutsos keeps right on defining it backwards when he > could have just shut up. > > Why is it that within a single company and a single development > platform, developers insist on driving on different sides of the > road? Is there a means to lodge a complaint with Microsoft so that > the next time they replace the entire language they might finally get > the documentaion consistent? > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Feb 22 16:25:13 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 22 Feb 2004 14:25:13 -0800 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) In-Reply-To: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: There is a lot to comment on email but I will just comment on a couple of your other queries. Yes, I have been using Access 2003. I find it work 'nice'. It is prettier, has a few extra feature, that I have not got around to using. It also has some very annoying habits. If I am testing a new application and 'heaven-forbid' an error in code mysterious appears, I have to be careful not to fix it then but get out, shut down the application, go into design mode and fix it. I have found that if I do not, the application will, forever more, disallow me to go directly from running to designing. I now have to exit Access, go back in and then, I can start designing...a major PITA. Lucky my development computer is fast. I have a whole CD from MS explaining Smart Tags and some day, when there is nothing important to do, I plan to take a look at it. If there is ever a hint that a client is remotely interested in .NET, I have a big chunk of .NET samples, web tutorials and feature articles to read. For now it sits on the back burner. That's my two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 5:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sun Feb 22 18:22:32 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 19:22:32 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: Message-ID: <20040223002231.CTRR15673.imf22aec.mail.bellsouth.net@SUSANONE> If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. From artful at rogers.com Sun Feb 22 21:38:06 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:38:06 -0800 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127DC@nt04.karta.com> Message-ID: <021701c3f9be$735f8c50$6601a8c0@rock> Yes, I published the recipe notion a while back. And am about to revive it with a few bells and whistles :) Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Wednesday, February 11, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Teaching Access Course Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. > I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions > to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a > sheet of > paper the things we need to store about a recipe. Now, look at each > item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. > ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there > needs to > be a table to hold it. > My guess would be that they want to be able to query the database and > do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Feb 22 21:47:05 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:47:05 -0800 Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure OrSQL View In-Reply-To: <33430946.1076922207517.JavaMail.www@wwinf3002> Message-ID: <021801c3f9bf$b4c82070$6601a8c0@rock> In SQL 2K this is relatively trivial. Write a UDF that does a bunch of IsNull()s. In SQL 7 it is more complex but essentially the same op. Write a bunch of IsNull()s and CASE WHEN them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Monday, February 16, 2004 1:03 AM To: SQL Group Cc: accessd; dba-vb Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure OrSQL View To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Feb 22 21:53:01 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:53:01 -0800 Subject: [AccessD] Stored Procedure SQL IN Clause In-Reply-To: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> Message-ID: <021901c3f9c0$8b2c01e0$6601a8c0@rock> I did a piece recently for Builder.com's SQL Tips thing on exactly this. The trick is to disassemble the string and create a temp table containing the fragments (one row per frag) then join this to the relevant query. That way you get 11 rows (say) in your temp table joined to 1000 rows in your query and performance is lightning fast. In() sucks because it's incredibly hard to optimize, even by the smartest optimizers out there. By creating a temp table you get way more performance. The cost of parsing the string and creating the temp table is WAY less than doing a table scan, assuming that the table is large. On 100 rows, who cares? On 1000 or 100K rows, the difference is dramatic! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, February 16, 2004 8:16 AM To: accessd at databaseadvisors.com Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] Stored Procedure SQL IN Clause All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Feb 22 18:57:15 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 22 Feb 2004 19:57:15 -0500 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <003201c3f9a7$fac0cd60$6101a8c0@dejpolsys> Jurgen ...nice to see you back among us ...things have been all too quiet around here since kids mellowed JC :))))) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli From Oleg_123 at xuppa.com Sun Feb 22 19:49:32 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 22 Feb 2004 20:49:32 -0500 (EST) Subject: [AccessD] Tab Control question In-Reply-To: <021901c3f9c0$8b2c01e0$6601a8c0@rock> References: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> <021901c3f9c0$8b2c01e0$6601a8c0@rock> Message-ID: <2649.24.187.36.171.1077500972.squirrel@heck.bay9.com> I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From bruce_bruen at mlc.com.au Sun Feb 22 20:01:04 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 13:01:04 +1100 Subject: [AccessD] Tab Control question Message-ID: Oleg, Each tab page also has its own events, in particular each page has an onClick event. You can write the handler for Page4_Click to refer to vlaues on Page1 using references of the nature Me.TabCtlName.Pages(0).ControlName.Value hth Bruce Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Tab Control question 23/02/2004 12:49 Please respond to Access Developers discussion and problem solving I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Sun Feb 22 20:16:49 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 13:16:49 +1100 Subject: [AccessD] Tab Control question Message-ID: Oleg, Cancel that! I never knew it didn't work and have been using it for years! Use the onChange event for the tabctl and the value of the tabctl to achieve what you want. Sub MyTabCtl_Change() If Me.MyTabCtl.Value = 3 then ' use numpages less 1 'copy the info from me.MyTabCtl.Pages(0).controls... endif endsub Bruce Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Tab Control question 23/02/2004 12:49 Please respond to Access Developers discussion and problem solving I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Sun Feb 22 21:09:16 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Sun, 22 Feb 2004 21:09:16 -0600 Subject: [AccessD] RE: I ask impossible questions????? Message-ID: >>>>Susan Harkins said, "Outlook still won't read names entered as >>>>contacts"<<<< In Outlook 2K you have to set a property for the contacts so it uses them as addresses. Right click on the contacts folder, bring up propertys, click Outlook Address Book tab and check the "Show this folder as an address book" checkbox. Of course could be all different in 2003 ;-) Also if you have sub folders, each one needs this setting set. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Find and compare great deals on Broadband access at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ From Oleg_123 at xuppa.com Sun Feb 22 21:46:16 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 22 Feb 2004 22:46:16 -0500 (EST) Subject: [AccessD] Tab Control question In-Reply-To: References: Message-ID: <1103.24.187.36.171.1077507976.squirrel@heck.bay9.com> great !! is there really a need for if ? i'll just do it this way -- Private Sub TabCtl0_Change() bText.Value = aText.Value End Sub > > > > > Oleg, > > Cancel that! I never knew it didn't work and have been using it for > years! > > Use the onChange event for the tabctl and the value of the tabctl to > achieve what you want. > > > Sub MyTabCtl_Change() > If Me.MyTabCtl.Value = 3 then ' use numpages less 1 > 'copy the info from me.MyTabCtl.Pages(0).controls... > endif > endsub > > > Bruce > > > > > > Sent by: > To: > > accessd-bounces at databasea cc: > > dvisors.com > Subject: [AccessD] Tab Control question > > > > 23/02/2004 12:49 > > Please respond to Access > > Developers > discussion and > > problem solving > > > > > > > > > I have a tab control, containing 4 tabs, and I would like (the users > actually) that when i click on the 4th tab it transfers the values from > the first. > The tab control only has - on click, on double click, mouse down, mouse > move, and mouse up events. Is it possible to do ? > > Oleg > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From bruce_bruen at mlc.com.au Sun Feb 22 21:54:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 14:54:21 +1100 Subject: [AccessD] Tab Control question Message-ID: The if statement checks to see if the user has clicked on tab page 4, so the copy is only executed then. B Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: Re: [AccessD] Tab Control question 23/02/2004 14:46 Please respond to Access Developers discussion and problem solving great !! is there really a need for if ? i'll just do it this way -- Private Sub TabCtl0_Change() bText.Value = aText.Value End Sub > > > > > Oleg, > > Cancel that! I never knew it didn't work and have been using it for > years! > > Use the onChange event for the tabctl and the value of the tabctl to > achieve what you want. > > > Sub MyTabCtl_Change() > If Me.MyTabCtl.Value = 3 then ' use numpages less 1 > 'copy the info from me.MyTabCtl.Pages(0).controls... > endif > endsub > > > Bruce > > > > > > Sent by: > To: > > accessd-bounces at databasea cc: > > dvisors.com > Subject: [AccessD] Tab Control question > > > > 23/02/2004 12:49 > > Please respond to Access > > Developers > discussion and > > problem solving > > > > > > > > > I have a tab control, containing 4 tabs, and I would like (the users > actually) that when i click on the 4th tab it transfers the values from > the first. > The tab control only has - on click, on double click, mouse down, mouse > move, and mouse up events. Is it possible to do ? > > Oleg > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at pacific.net.hk Sun Feb 22 22:03:38 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 23 Feb 2004 12:03:38 +0800 Subject: [AccessD] RE: I ask impossible questions????? In-Reply-To: Message-ID: Don't know whether she means what you say, or the autocomplete. Autocompleted addresses are different to the address book and if there is method to the madness of which addresses get remembered, or how to remove a specific one. I have never worked it out. I read something recently in W2KNews which showed how to delete the address cache. "To remove all the saved addresses, delete the .NK2 file where Outlook stores them. The file is normally located in C:\Documents and Settings\username\Application Data\Microsoft\Outlook folder for each Outlook profile. Some of these folders are hidden so you will need to turn on the unhide file feature to in Windows Explorer to see them (Click Tools -> Folder Options and select the View tab)." Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, 23 February, 2004 11:09 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: I ask impossible questions????? > > > >>>>Susan Harkins said, "Outlook still won't read names entered as > >>>>contacts"<<<< > > In Outlook 2K you have to set a property for the contacts so > it uses them as > addresses. Right click on the contacts folder, bring up > propertys, click > Outlook Address Book tab and check the "Show this folder as > an address book" > checkbox. Of course could be all different in 2003 ;-) > > Also if you have sub folders, each one needs this setting set. > > Gary Kjos > garykjos at hotmail.com > > _________________________________________________________________ > Find and compare great deals on Broadband access at the MSN > High-Speed > Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at touchtelindia.net Sun Feb 22 23:18:20 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 23 Feb 2004 10:48:20 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: Message-ID: <006201c3f9cc$abce8970$df1865cb@winxp> This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From gustav at cactus.dk Mon Feb 23 02:24:11 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Feb 2004 09:24:11 +0100 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <021701c3f9be$735f8c50$6601a8c0@rock> References: <021701c3f9be$735f8c50$6601a8c0@rock> Message-ID: <492143301.20040223092411@cactus.dk> Hi Arthur > Yes, I published the recipe notion a while back. Where? Is it viewable? > And am about to revive it with a few bells and whistles :) Great! /gustav > Arthur Fuller did work with recipes too. > Look up the archive for "SQL Puzzle" in Mar. 2002. > The question was, given a certain mix of ingredients, how to list which > recipes could possibly be chosen ... From d.dick at uws.edu.au Mon Feb 23 04:40:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 23 Feb 2004 21:40:01 +1100 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <001701c3f9f9$6511bca0$2b669a89@DDICK> Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next From jwcolby at colbyconsulting.com Mon Feb 23 05:40:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 23 Feb 2004 06:40:02 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <001701c3f9f9$6511bca0$2b669a89@DDICK> Message-ID: Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any equivalent in ADO. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Monday, February 23, 2004 5:40 AM To: AccessD List Subject: [AccessD] A2K:ADO Version of the following Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 07:06:37 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 00:06:37 +1100 Subject: [AccessD] A2K:ADO Version of the following References: Message-ID: <004301c3fa0d$dfd54240$2b669a89@DDICK> Bugger Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 10:40 PM Subject: RE: [AccessD] A2K:ADO Version of the following > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any > equivalent in ADO. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:40 AM > To: AccessD List > Subject: [AccessD] A2K:ADO Version of the following > > > Hello all > I have a nice bit of code (Thanks Deano) that drops all the linked tables in > a dB - cool > Does anyone know the ADO version of the code below? > > Many thanks > > Darren > > """""""""""""""""""""""""""""""""""""""""""""" > Dim lnk As DAO.tabledef > > For Each lnk In CurrentDb.TableDefs > If lnk.Attributes = dbAttachedTable Then > CurrentDb.TableDefs.Delete lnk.Name > End If > Next > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Feb 23 07:21:53 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Feb 2004 14:21:53 +0100 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <004301c3fa0d$dfd54240$2b669a89@DDICK> References: <004301c3fa0d$dfd54240$2b669a89@DDICK> Message-ID: <15720005656.20040223142153@cactus.dk> Hi Darren Can't you use a pass-through query and SQL: DROP TABLE ... /gustav > Bugger >> Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >> equivalent in ADO. --- >> I have a nice bit of code (Thanks Deano) that drops all the linked tables in >> a dB - cool >> Does anyone know the ADO version of the code below? >> >> Many thanks >> >> Darren >> >> """""""""""""""""""""""""""""""""""""""""""""" >> Dim lnk As DAO.tabledef >> >> For Each lnk In CurrentDb.TableDefs >> If lnk.Attributes = dbAttachedTable Then >> CurrentDb.TableDefs.Delete lnk.Name >> End If >> Next From prodevmg at yahoo.com Mon Feb 23 08:06:35 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 23 Feb 2004 06:06:35 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being us ed In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Message-ID: <20040223140635.81659.qmail@web20419.mail.yahoo.com> Thanks guys for (John and Gracie) for pointing that out. Also, thank you Drew for the quick fix. DWUTKA at marlow.com wrote:Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 10:25 AM Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From Developer at UltraDNT.com Mon Feb 23 08:40:59 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 23 Feb 2004 09:40:59 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <004301c3fa0d$dfd54240$2b669a89@DDICK> Message-ID: <001001c3fa1b$10905020$7001a8c0@COA3> You need to use ADOX, which is ADO for DDL and Security. If you have ADO, you have ADOX. Add the reference, and then use something like: Public Sub DelLinkedADO() Dim c As New ADOX.Catalog Dim t As ADOX.Table Set c.ActiveConnection = CurrentProject.Connection For Each t In c.Tables If t.Type = "link" Then c.Tables.Delete t.Name End If Next End Sub Hth, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, February 23, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following Bugger Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 10:40 PM Subject: RE: [AccessD] A2K:ADO Version of the following > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > any equivalent in ADO. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:40 AM > To: AccessD List > Subject: [AccessD] A2K:ADO Version of the following > > > Hello all > I have a nice bit of code (Thanks Deano) that drops all the linked > tables in a dB - cool Does anyone know the ADO version of the code > below? > > Many thanks > > Darren > > """""""""""""""""""""""""""""""""""""""""""""" > Dim lnk As DAO.tabledef > > For Each lnk In CurrentDb.TableDefs > If lnk.Attributes = dbAttachedTable Then > CurrentDb.TableDefs.Delete lnk.Name > End If > Next > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 bellsouth.net Mon Feb 23 09:15:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 10:15:09 -0500 Subject: OT (RE: [AccessD] RE: I ask impossible questions????? ) In-Reply-To: Message-ID: <20040223151508.CHVW1897.imf18aec.mail.bellsouth.net@SUSANONE> That property is checked. :) Still doesn't work. There are a number of things that don't work just right for me in Outlook 2003. Often, the tools stay enabled at inappropriate times, and then like magic, suddenly enable themselves -- just weird stuff that I just can't account for. It's a shame, because I like it better than OE now. Older versions of Outlook were more complicated to use. Susan H. In Outlook 2K you have to set a property for the contacts so it uses them as addresses. Right click on the contacts folder, bring up propertys, click Outlook Address Book tab and check the "Show this folder as an address book" checkbox. Of course could be all different in 2003 ;-) Also if you have sub folders, each one needs this setting set. From ssharkins at bellsouth.net Mon Feb 23 09:17:42 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 10:17:42 -0500 Subject: [AccessD] RE: I ask impossible questions????? In-Reply-To: Message-ID: <20040223151740.CJRG1897.imf18aec.mail.bellsouth.net@SUSANONE> Don't know whether she means what you say, or the autocomplete. Autocompleted addresses are different to the address book and if there is method to the madness of which addresses get remembered, or how to remove a specific one. I have never worked it out. =======AutoComplete works more like OE now == Outlook generates a list of matching contact names from the To control. "To remove all the saved addresses, delete the .NK2 file where Outlook stores them. The file is normally located in C:\Documents and Settings\username\Application Data\Microsoft\Outlook folder for each Outlook profile. Some of these folders are hidden so you will need to turn on the unhide file feature to in Windows Explorer to see them (Click Tools -> Folder Options and select the View tab)." =======I tried uninstalling -- didn't help. I'll take a look at this. I guess we should probably end this thread before someone fusses at us for being OT -- thanks for the ideas. :) Susan H. From Oleg_123 at xuppa.com Mon Feb 23 09:17:51 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 10:17:51 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <20040223140635.81659.qmail@web20419.mail.yahoo.com> References: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> <20040223140635.81659.qmail@web20419.mail.yahoo.com> Message-ID: <51014.63.251.87.214.1077549471.squirrel@heck.bay9.com> Good Morning Group I have a transform query, and I would like for it to show only the columns that actually contain data, so if there is no data for September and October, just show August column followed by November. Is it possible ? Thank yo Oleg TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Mon Feb 23 09:28:06 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 09:28:06 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> Oleg, This is the default functionality of cross-tab queries (i.e. supress blank columns). It is overridden by specifying an IN clause in the PIVOT statement, to force the specfied columns to show regardless of whether or not they contain data. Omit the In ("Jan","Feb"... from the query and it should return what you want, e.g.: TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm"); -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 9:18 AM To: accessd at databaseadvisors.com Subject: [AccessD] Transform query question Good Morning Group I have a transform query, and I would like for it to show only the columns that actually contain data, so if there is no data for September and October, just show August column followed by November. Is it possible ? Thank yo Oleg TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Oleg_123 at xuppa.com Mon Feb 23 09:47:36 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 10:47:36 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> Message-ID: <35428.63.251.87.214.1077551256.squirrel@heck.bay9.com> I get an error -- Microsoft Jet Database Engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field name of expression It works fine when the lest line is present :--\ > Oleg, > This is the default functionality of cross-tab queries (i.e. supress > blank columns). It is overridden by specifying an IN clause in the > PIVOT statement, to force the specfied columns to show regardless of > whether or not they contain data. > > Omit the In ("Jan","Feb"... from the query and it should return what you > want, e.g.: > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm"); > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:18 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Transform query question > > > Good Morning Group > > I have a transform query, and I would like for it to show only the > columns that actually contain data, so if there is no data for September > and October, just show August column followed by November. Is it > possible ? > > Thank yo > Oleg > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Mon Feb 23 09:57:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 09:57:20 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 10:07:12 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:07:12 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> Took a look at the MSKB and found the following article: ACC2000: Error When Running Crosstab Query with a Parameter http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 00 Jet is confusing your form control parameters with column names. In the Query designer, select Query > Parameters, and enter the name of the controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with the appropriate data type, and all will be well. So there. We both learned something today... -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transform query question I get an error -- Microsoft Jet Database Engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field name of expression It works fine when the lest line is present :--\ > Oleg, > This is the default functionality of cross-tab queries (i.e. supress > blank columns). It is overridden by specifying an IN clause in the > PIVOT statement, to force the specfied columns to show regardless of > whether or not they contain data. > > Omit the In ("Jan","Feb"... from the query and it should return what you > want, e.g.: > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm"); > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:18 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Transform query question > > > Good Morning Group > > I have a transform query, and I would like for it to show only the > columns that actually contain data, so if there is no data for September > and October, just show August column followed by November. Is it > possible ? > > Thank yo > Oleg > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ---------------------------------------------------------------------------- ---------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Oleg_123 at xuppa.com Mon Feb 23 10:23:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 11:23:31 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> Message-ID: <33832.63.251.87.214.1077553411.squirrel@heck.bay9.com> :)) thanks, it worked, only it doesn't sort the records right, did alphabetically I guess- Feb, Jan, March.. can I sort it in normal way ? > Took a look at the MSKB and found the following article: > > ACC2000: Error When Running Crosstab Query with a Parameter > http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 > 00 > > Jet is confusing your form control parameters with column names. In the > Query designer, select Query > Parameters, and enter the name of the > controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with > the appropriate data type, and all will be well. > > So there. We both learned something today... > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:48 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Transform query question > > > I get an error -- > Microsoft Jet Database Engine does not recognise '[Forms]![Report > Form]![Start_Date]' as a valid field name of expression > It works fine when the lest line is present :--\ > > >> Oleg, >> This is the default functionality of cross-tab queries (i.e. supress >> blank columns). It is overridden by specifying an IN clause in the >> PIVOT statement, to force the specfied columns to show regardless of >> whether or not they contain data. >> >> Omit the In ("Jan","Feb"... from the query and it should return what >> you want, e.g.: >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref > > >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm"); >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Monday, February 23, 2004 9:18 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Transform query question >> >> >> Good Morning Group >> >> I have a transform query, and I would like for it to show only the >> columns that actually contain data, so if there is no data for >> September and October, just show August column followed by November. >> Is it possible ? >> >> Thank yo >> Oleg >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > ---------------------------------------------------------------------------- > ---------------------------------------- >> This email and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom >> they are addressed. >> If you have received this email in error please notify the >> originator of the message. This footer also confirms that this >> email message has been scanned for the presence of computer viruses. >> >> Any views expressed in this message are those of the individual >> sender, except where the sender specifies and with authority, >> states them to be the views of Tappe Construction Co. >> >> Scanning of this message and addition of this footer is performed by >> SurfControl E-mail Filter software in conjunction with >> virus detection software. >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Mon Feb 23 10:48:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 08:48:30 -0800 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Message-ID: Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Sunday, February 22, 2004 4:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 10:48:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 10:48:30 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C2@main2.marlow.com> Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 10:51:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 10:51:37 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C3@main2.marlow.com> In Outlook 2k, what determines the 'AutoComplete' feature for addresses, is in the Address book window. Once in that window, click Tools, then Options. You should have a window that has a listbox at the bottom, which has something along these lines above it... When sending mail, check names using these address lists in the following order. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 7:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 10:54:19 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:54:19 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> You could try an ORDER BY Format([AMTS Date Opened],"mmm"). -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transform query question :)) thanks, it worked, only it doesn't sort the records right, did alphabetically I guess- Feb, Jan, March.. can I sort it in normal way ? > Took a look at the MSKB and found the following article: > > ACC2000: Error When Running Crosstab Query with a Parameter > http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 > 00 > > Jet is confusing your form control parameters with column names. In the > Query designer, select Query > Parameters, and enter the name of the > controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with > the appropriate data type, and all will be well. > > So there. We both learned something today... > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:48 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Transform query question > > > I get an error -- > Microsoft Jet Database Engine does not recognise '[Forms]![Report > Form]![Start_Date]' as a valid field name of expression > It works fine when the lest line is present :--\ > > >> Oleg, >> This is the default functionality of cross-tab queries (i.e. supress >> blank columns). It is overridden by specifying an IN clause in the >> PIVOT statement, to force the specfied columns to show regardless of >> whether or not they contain data. >> >> Omit the In ("Jan","Feb"... from the query and it should return what >> you want, e.g.: >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref > > >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm"); >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Monday, February 23, 2004 9:18 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Transform query question >> >> >> Good Morning Group >> >> I have a transform query, and I would like for it to show only the >> columns that actually contain data, so if there is no data for >> September and October, just show August column followed by November. >> Is it possible ? >> >> Thank yo >> Oleg >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > ---------------------------------------------------------------------------- > ---------------------------------------- >> This email and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom >> they are addressed. >> If you have received this email in error please notify the >> originator of the message. This footer also confirms that this >> email message has been scanned for the presence of computer viruses. >> >> Any views expressed in this message are those of the individual >> sender, except where the sender specifies and with authority, >> states them to be the views of Tappe Construction Co. >> >> Scanning of this message and addition of this footer is performed by >> SurfControl E-mail Filter software in conjunction with >> virus detection software. >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ---------------------------------------------------------------------------- ---------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From DWUTKA at marlow.com Mon Feb 23 11:07:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 11:07:32 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C4@main2.marlow.com> Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. Yes, it is relatively easy to get into, and thus can be seen as a 'power user' language, however, I believe the real 'purpose' of VB/VBA, is to drive computer 'programming' where it needs to go. Whenever I get into a discussion about VB, I always think of the phrase 'Standing on the shoulders of giants', because that is what VB is, really. In VB, there is quite frankly very little that you cannot do. Most of those are by design. For instance, you can't have a -0 in VB. But that is by design. Sure, at some very basic level, there may be a need for a negative zero, but not in regular math. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 23 11:25:27 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 12:25:27 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> Message-ID: <59922.63.251.87.214.1077557127.squirrel@heck.bay9.com> Why is it prompting me for status ? TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) AS Total FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Mon Feb 23 11:26:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 11:26:32 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C5@main2.marlow.com> Sure, use this: Function RemoveLinkedTables(strPath As String) Dim cnn As New ADODB.Connection Dim rs As New ADODB.Recordset cnn.Provider = "Microsoft.JET.OLEDB.4.0" cnn.Open "D:\Databases\AccessD.mdb" Set rs = cnn.OpenSchema(adSchemaTables) rs.MoveFirst Do Until rs.EOF = True If rs.Fields("TABLE_TYPE") = "LINK" Then cnn.Execute "DROP Table " & rs.Fields("TABLE_NAME") End If rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing End Function Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Monday, February 23, 2004 4:40 AM To: AccessD List Subject: [AccessD] A2K:ADO Version of the following Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 11:40:33 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 11:40:33 -0600 Subject: [AccessD] another Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> You included your aggregate field (Count([Ron Data Mid OP].ID)) twice in the query. It should only appear in the TRANSFORM portion: TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" as [Status] FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); I'm assuming that you want a single row with overall totals by month, right? -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 11:25 AM To: accessd at databaseadvisors.com Subject: [AccessD] another Transform query question Why is it prompting me for status ? TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) AS Total FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: Message-ID: <20040223174720.GUZP1897.imf18aec.mail.bellsouth.net@SUSANONE> I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C4@main2.marlow.com> Message-ID: <20040223174726.GVAR1897.imf18aec.mail.bellsouth.net@SUSANONE> Doesn't matter what it "is" or has become -- what we were discussing was its original market. ;) Susan H. Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C3@main2.marlow.com> Message-ID: <20040223174732.GVBZ1897.imf18aec.mail.bellsouth.net@SUSANONE> Similar in 2003 -- changed it, still ignoring every new address I've added. Only sees the old OE list that I imported -- the same list it saw before I imported it. "... Something is not right..." Susan H. In Outlook 2k, what determines the 'AutoComplete' feature for addresses, is in the Address book window. Once in that window, click Tools, then Options. You should have a window that has a listbox at the bottom, which has something along these lines above it... When sending mail, check names using these address lists in the following order. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 7:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. 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 prodevmg at yahoo.com Mon Feb 23 11:48:14 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 23 Feb 2004 09:48:14 -0800 (PST) Subject: [AccessD] ListView or TreeView to show directory listing Message-ID: <20040223174814.7206.qmail@web20405.mail.yahoo.com> I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From adtp at touchtelindia.net Mon Feb 23 11:50:22 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 23 Feb 2004 23:20:22 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Message-ID: <004501c3fa35$a3826bb0$121865cb@winxp> My sincere thanks Drew! I shall try it out and let you know. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From Oleg_123 at xuppa.com Mon Feb 23 11:59:13 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 12:59:13 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> Message-ID: <54769.63.251.87.214.1077559153.squirrel@heck.bay9.com> I would hope it would be that simple.. nee, it keeps prompting me for status :(( (not to mention that it takes like 4 minutes for a query to open) Also, they change their mind, they now want it to prompt, like I had in the first one.. TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" AS Status FROM [Ron Data Mid OP] WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Status] PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); whats the better way to do prompts ? > You included your aggregate field (Count([Ron Data Mid OP].ID)) twice in > the query. It should only appear in the TRANSFORM portion: > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" as [Status] > FROM [Ron Data Mid OP] > GROUP BY [Status] > PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); > > I'm assuming that you want a single row with overall totals by month, > right? > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 11:25 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] another Transform query question > > > Why is it prompting me for status ? > > TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID > SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) > AS Total > FROM [Ron Data Mid OP] > GROUP BY [Status] > PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mikedorism at adelphia.net Mon Feb 23 12:03:06 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 23 Feb 2004 13:03:06 -0500 Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <20040223174814.7206.qmail@web20405.mail.yahoo.com> Message-ID: <000001c3fa37$4a507d00$a1194244@hargrove.internal> You want a treeview control. I have code I can send you offline to show you how to populate the tree. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 12:48 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Mon Feb 23 12:51:18 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Mon, 23 Feb 2004 13:51:18 -0500 Subject: [AccessD] another Transform query question Message-ID: Try TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" AS Status FROM [Ron Data Mid OP] WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY "Investigation Opened" PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); Patti > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 12:59 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] another Transform query question > > > I would hope it would be that simple.. nee, it keeps prompting me for > status :(( > (not to mention that it takes like 4 minutes for a query to open) > Also, they change their mind, they now want it to prompt, > like I had in > the first one.. > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > Opened]<=[Forms]![Report > Form]![End_Date],"Cases Closed")) Is Not Null)) > GROUP BY [Status] > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > > > whats the better way to do prompts ? > > From my.lists at verizon.net Mon Feb 23 13:12:36 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 23 Feb 2004 11:12:36 -0800 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <15720005656.20040223142153@cactus.dk> References: <004301c3fa0d$dfd54240$2b669a89@DDICK> <15720005656.20040223142153@cactus.dk> Message-ID: <403A50A4.7090508@verizon.net> That would delete the table :S -- -Francisco Gustav Brock wrote: >Hi Darren > >Can't you use a pass-through query and SQL: > > DROP TABLE ... > >/gustav > > > > >>Bugger >> >> > > > >>>Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >>>equivalent in ADO. >>> >>> > >--- > > > >>>I have a nice bit of code (Thanks Deano) that drops all the linked tables in >>>a dB - cool >>>Does anyone know the ADO version of the code below? >>> >>>Many thanks >>> >>>Darren >>> >>>"""""""""""""""""""""""""""""""""""""""""""""" >>> Dim lnk As DAO.tabledef >>> >>> For Each lnk In CurrentDb.TableDefs >>> If lnk.Attributes = dbAttachedTable Then >>> CurrentDb.TableDefs.Delete lnk.Name >>> End If >>> Next >>> >>> From Patricia.O'Connor at DFA.STATE.NY.US Mon Feb 23 13:29:43 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Mon, 23 Feb 2004 14:29:43 -0500 Subject: [AccessD] another Transform query question Message-ID: Oleg, I don't think you really need the IIF. The where statement using just the dates should be enough and might speed up the query. > TRANSFORM Count([Ron Data Mid OP].[ID]) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE ([Ron Data Mid OP].[MS Date Opened] >= [Forms]![Report > Form]![Start_Date]) And ([Ron Data Mid OP].[MS Date > Opened]<=[Forms]![Report Form]![End_Date]) > > > GROUP BY "Investigation Opened" > > > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > Patti > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] > Sent: Monday, February 23, 2004 01:51 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] another Transform query question > > > > Try > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > Opened]<=[Forms]![Report > Form]![End_Date],"Cases Closed")) Is Not Null)) > > > GROUP BY "Investigation Opened" > > > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > > > Patti > > > -----Original Message----- > > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > > Sent: Monday, February 23, 2004 12:59 PM > > To: accessd at databaseadvisors.com > > Subject: RE: [AccessD] another Transform query question > > > > > > I would hope it would be that simple.. nee, it keeps > prompting me for > > status :(( > > (not to mention that it takes like 4 minutes for a query to open) > > Also, they change their mind, they now want it to prompt, > > like I had in > > the first one.. > > > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > > SELECT "Investigation Opened" AS Status > > FROM [Ron Data Mid OP] > > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > > Opened]<=[Forms]![Report > > Form]![End_Date],"Cases Closed")) Is Not Null)) > > GROUP BY [Status] > > PIVOT Format([AMTS Date Opened],"mmm") In > > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > > Nov","Dec"); > > > > > > whats the better way to do prompts ? > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 23 13:38:27 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 14:38:27 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: References: Message-ID: <59866.63.251.87.214.1077565107.squirrel@heck.bay9.com> thanks a lot, seems to be working :--) now I'll do another one taking away the missing months llike Brett suggested, and see which the like better > Oleg, > > I don't think you really need the IIF. The where statement using just > the dates should be enough and might speed up the query. > > > >> TRANSFORM Count([Ron Data Mid OP].[ID]) AS Total >> SELECT "Investigation Opened" AS Status >> FROM [Ron Data Mid OP] > >> WHERE ([Ron Data Mid OP].[MS Date Opened] >= [Forms]![Report >> Form]![Start_Date]) And ([Ron Data Mid OP].[MS Date >> Opened]<=[Forms]![Report Form]![End_Date]) >> >> >> GROUP BY "Investigation Opened" >> >> >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> > > Patti > >> -----Original Message----- >> From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >> Sent: Monday, February 23, 2004 01:51 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] another Transform query question >> >> >> >> Try >> >> TRANSFORM Count([Ron Data Mid OP].ID) AS Total >> SELECT "Investigation Opened" AS Status >> FROM [Ron Data Mid OP] >> WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data Mid OP]![MS Date >> Opened]<=[Forms]![Report >> Form]![End_Date],"Cases Closed")) Is Not Null)) >> >> >> GROUP BY "Investigation Opened" >> >> >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> >> >> Patti >> >> > -----Original Message----- >> > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> > Sent: Monday, February 23, 2004 12:59 PM >> > To: accessd at databaseadvisors.com >> > Subject: RE: [AccessD] another Transform query question >> > >> > >> > I would hope it would be that simple.. nee, it keeps >> prompting me for >> > status :(( >> > (not to mention that it takes like 4 minutes for a query to open) >> Also, they change their mind, they now want it to prompt, >> > like I had in >> > the first one.. >> > >> > TRANSFORM Count([Ron Data Mid OP].ID) AS Total >> > SELECT "Investigation Opened" AS Status >> > FROM [Ron Data Mid OP] >> > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data Mid OP]![MS Date >> > Opened]<=[Forms]![Report >> > Form]![End_Date],"Cases Closed")) Is Not Null)) >> > GROUP BY [Status] >> > PIVOT Format([AMTS Date Opened],"mmm") In >> > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> > >> > >> > whats the better way to do prompts ? >> > >> >> >> > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Mon Feb 23 13:57:32 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 23 Feb 2004 13:57:32 -0600 Subject: [AccessD] Re: another Transform query question In-Reply-To: <200402231800.i1NI0MM31016@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040223135557.03601010@pop3.highstream.net> The best way of doing this is to design a form to gather the data. Then create the SQL Statement based on the form. Then replace the SQL statement in an existing query for use with reports and/or forms for displaying the resulting data. Robert At 12:00 PM 2/23/2004 -0600, you wrote: >Date: Mon, 23 Feb 2004 12:59:13 -0500 (EST) >From: >Subject: RE: [AccessD] another Transform query question >To: >Message-ID: <54769.63.251.87.214.1077559153.squirrel at heck.bay9.com> >Content-Type: text/plain; charset=iso-8859-1 > >I would hope it would be that simple.. nee, it keeps prompting me for >status :(( >(not to mention that it takes like 4 minutes for a query to open) >Also, they change their mind, they now want it to prompt, like I had in >the first one.. > >TRANSFORM Count([Ron Data Mid OP].ID) AS Total >SELECT "Investigation Opened" AS Status >FROM [Ron Data Mid OP] >WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report >Form]![End_Date],"Cases Closed")) Is Not Null)) >GROUP BY [Status] >PIVOT Format([AMTS Date Opened],"mmm") In >("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > >whats the better way to do prompts ? From serbach at new.rr.com Mon Feb 23 14:04:23 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 23 Feb 2004 14:04:23 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040223140423.1720397048.serbach@new.rr.com> Dear Group, Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Mon Feb 23 14:01:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 14:01:31 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> Yes, and if it's a linked table, it just deletes the link. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 1:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following That would delete the table :S -- -Francisco Gustav Brock wrote: >Hi Darren > >Can't you use a pass-through query and SQL: > > DROP TABLE ... > >/gustav > > > > >>Bugger >> >> > > > >>>Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >>>equivalent in ADO. >>> >>> > >--- > > > >>>I have a nice bit of code (Thanks Deano) that drops all the linked tables in >>>a dB - cool >>>Does anyone know the ADO version of the code below? >>> >>>Many thanks >>> >>>Darren >>> >>>"""""""""""""""""""""""""""""""""""""""""""""" >>> Dim lnk As DAO.tabledef >>> >>> For Each lnk In CurrentDb.TableDefs >>> If lnk.Attributes = dbAttachedTable Then >>> CurrentDb.TableDefs.Delete lnk.Name >>> End If >>> Next >>> >>> _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Feb 23 14:19:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 15:19:06 -0500 Subject: [AccessD] What do you think about DAPs? In-Reply-To: <20040223140423.1720397048.serbach@new.rr.com> Message-ID: <20040223201908.JCOP22977.imf23aec.mail.bellsouth.net@SUSANONE> Because they're easy to create... But they're only useful in tbe right circumstances. Susan H. Dear Group, Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? From mwp.reid at qub.ac.uk Mon Feb 23 14:46:39 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Feb 2004 20:46:39 -0000 Subject: [AccessD] What do you think about DAPs? References: <20040223140423.1720397048.serbach@new.rr.com> Message-ID: <000b01c3fa4e$24c550d0$1b02a8c0@MARTINREID> Absolutly. Nice from a technical point of view and in a closed environment OK, otherwise I would not touch them. Martin ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 8:04 PM Subject: [AccessD] What do you think about DAPs? > Dear Group, > > Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? > > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Without men, civilization would last until the oil needed changing." - Fred Reed > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Mon Feb 23 15:05:04 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 16:05:04 -0500 Subject: [AccessD] ActiveX Calendar Control range Message-ID: <20040223210514.UQKG1830.imf16aec.mail.bellsouth.net@SUSANONE> I'm using text controls to display a range, but the control itself only seems to let you click one day on the actual calendar layout. Can't seem to extend the visual selection. Is this true? Susan H. From cfoust at infostatsystems.com Mon Feb 23 15:10:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 13:10:34 -0800 Subject: [AccessD] ActiveX Calendar Control range Message-ID: Try the MonthView control instead of the Calendar Control. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, February 23, 2004 1:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Calendar Control range I'm using text controls to display a range, but the control itself only seems to let you click one day on the actual calendar layout. Can't seem to extend the visual selection. Is this true? Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Mon Feb 23 15:41:56 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 23 Feb 2004 13:41:56 -0800 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> Message-ID: <403A73A4.4070602@verizon.net> wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > From DWUTKA at marlow.com Mon Feb 23 16:31:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 16:31:18 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D2@main2.marlow.com> It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 23 16:40:29 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 24 Feb 2004 09:40:29 +1100 Subject: [AccessD] A2K:ADO Version of the following Message-ID: NO ARCHIVE Drew, You never know who might be listening mate - dont give any ideas! B DWUTKA at marlow.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] A2K:ADO Version of the following 24/02/2004 09:31 Please respond to Access Developers discussion and problem solving It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Mon Feb 23 16:57:11 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 23 Feb 2004 16:57:11 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040223165711.283524285.serbach@new.rr.com> Susan and Martin, Hey! Nice for the frequent book collaborators to be right in there on the reply! I'm just curious, really. I have one client who says he wants the application I wrote for him to go up on the Internet. Talk about taking the guts out of a perfectly good application! Besides which he's going to be chary about the (considerable) additional expense. That's why I thought that keeping it in an Access-based thing might be the way to go. Susan, any elaboration on what you mean by "the right circumstances?" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Mon Feb 23 16:54:50 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 16:54:50 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D4@main2.marlow.com> I think Access WOULD be dead if MS did that in their next version! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 23, 2004 4:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K:ADO Version of the following NO ARCHIVE Drew, You never know who might be listening mate - dont give any ideas! B DWUTKA at marlow.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] A2K:ADO Version of the following 24/02/2004 09:31 Please respond to Access Developers discussion and problem solving It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 16:58:22 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 09:58:22 +1100 Subject: [AccessD] A2K:ADO Version of the following References: <001001c3fa1b$10905020$7001a8c0@COA3> Message-ID: <00c401c3fa60$8963cf50$48619a89@DDICK> Hi Steve Thank for the response What ref do I need to set? many thanks Darren ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 1:40 AM Subject: RE: [AccessD] A2K:ADO Version of the following > You need to use ADOX, which is ADO for DDL and Security. If you have > ADO, you have ADOX. Add the reference, and then use something like: > > Public Sub DelLinkedADO() > Dim c As New ADOX.Catalog > Dim t As ADOX.Table > > Set c.ActiveConnection = CurrentProject.Connection > > For Each t In c.Tables > If t.Type = "link" Then > c.Tables.Delete t.Name > End If > Next > End Sub > > Hth, > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Bugger > > Thanks John > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 23, 2004 10:40 PM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > any equivalent in ADO. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > > Sent: Monday, February 23, 2004 5:40 AM > > To: AccessD List > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > Hello all > > I have a nice bit of code (Thanks Deano) that drops all the linked > > tables in a dB - cool Does anyone know the ADO version of the code > > below? > > > > Many thanks > > > > Darren > > > > """""""""""""""""""""""""""""""""""""""""""""" > > Dim lnk As DAO.tabledef > > > > For Each lnk In CurrentDb.TableDefs > > If lnk.Attributes = dbAttachedTable Then > > CurrentDb.TableDefs.Delete lnk.Name > > End If > > Next > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 23 17:10:54 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 24 Feb 2004 09:10:54 +1000 Subject: [AccessD] OT Quick Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C2@main2.marlow.com> Message-ID: <403B151E.23967.148F00@localhost> On 23 Feb 2004 at 10:48, DWUTKA at marlow.com wrote: > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't outright do > for you. After that, there is VBA. I know you said 'no programming', but I > think everyone on the list, who has delved into VBA, would agree, that it's > a vital skill. I personally don't know what I did before I knew VBA. > Built a lot of horrific macros ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Mon Feb 23 17:16:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 24 Feb 2004 09:16:13 +1000 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <00c401c3fa60$8963cf50$48619a89@DDICK> Message-ID: <403B165D.18198.196C5C@localhost> On 24 Feb 2004 at 9:58, Darren DICK wrote: > Hi Steve > Thank for the response > What ref do I need to set? > Look for something like "Microsoft ADO Ext 2.x for DDL and Security." -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Mon Feb 23 17:16:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 15:16:46 -0800 Subject: [AccessD] What do you think about DAPs? Message-ID: It you're talking about INTERNet instead of INTRANet, those are not the right circumstances. DAPs are intended to be used within a network on machines with the relevant version of Access installed. Charlotte Foust -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Monday, February 23, 2004 2:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What do you think about DAPs? Susan and Martin, Hey! Nice for the frequent book collaborators to be right in there on the reply! I'm just curious, really. I have one client who says he wants the application I wrote for him to go up on the Internet. Talk about taking the guts out of a perfectly good application! Besides which he's going to be chary about the (considerable) additional expense. That's why I thought that keeping it in an Access-based thing might be the way to go. Susan, any elaboration on what you mean by "the right circumstances?" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Mon Feb 23 17:26:05 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 23 Feb 2004 18:26:05 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <00c401c3fa60$8963cf50$48619a89@DDICK> Message-ID: <000701c3fa64$6d28a640$7001a8c0@COA3> On the pc I am at right now, it's: "Microsoft ADO Ext. 2.5 for DDL and Security" (the filename is msadox.dll). G2H (glad to help!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, February 23, 2004 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following Hi Steve Thank for the response What ref do I need to set? many thanks Darren ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 1:40 AM Subject: RE: [AccessD] A2K:ADO Version of the following > You need to use ADOX, which is ADO for DDL and Security. If you have > ADO, you have ADOX. Add the reference, and then use something like: > > Public Sub DelLinkedADO() > Dim c As New ADOX.Catalog > Dim t As ADOX.Table > > Set c.ActiveConnection = CurrentProject.Connection > > For Each t In c.Tables > If t.Type = "link" Then > c.Tables.Delete t.Name > End If > Next > End Sub > > Hth, > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Bugger > > Thanks John > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 23, 2004 10:40 PM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > any equivalent in ADO. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren > > DICK > > Sent: Monday, February 23, 2004 5:40 AM > > To: AccessD List > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > Hello all > > I have a nice bit of code (Thanks Deano) that drops all the linked > > tables in a dB - cool Does anyone know the ADO version of the code > > below? > > > > Many thanks > > > > Darren > > > > """""""""""""""""""""""""""""""""""""""""""""" > > Dim lnk As DAO.tabledef > > > > For Each lnk In CurrentDb.TableDefs > > If lnk.Attributes = dbAttachedTable Then > > CurrentDb.TableDefs.Delete lnk.Name > > End If > > Next > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 17:34:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 17:34:17 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D6@main2.marlow.com> Ya, but I was the Macro KING! ! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Monday, February 23, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question On 23 Feb 2004 at 10:48, DWUTKA at marlow.com wrote: > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't outright do > for you. After that, there is VBA. I know you said 'no programming', but I > think everyone on the list, who has delved into VBA, would agree, that it's > a vital skill. I personally don't know what I did before I knew VBA. > Built a lot of horrific macros ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 19:37:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 12:37:04 +1100 Subject: [AccessD] A2K:ADO Version of the following References: <000701c3fa64$6d28a640$7001a8c0@COA3> Message-ID: <012001c3fa76$b51fc930$48619a89@DDICK> NO ARCHIVE Thanks Steve I worked it out Thanks again ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 10:26 AM Subject: RE: [AccessD] A2K:ADO Version of the following > On the pc I am at right now, it's: "Microsoft ADO Ext. 2.5 for DDL and > Security" (the filename is msadox.dll). > > G2H (glad to help!) > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:58 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Hi Steve > Thank for the response > What ref do I need to set? > > many thanks > > Darren > > ----- Original Message ----- > From: "Developer" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, February 24, 2004 1:40 AM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > You need to use ADOX, which is ADO for DDL and Security. If you have > > ADO, you have ADOX. Add the reference, and then use something like: > > > > Public Sub DelLinkedADO() > > Dim c As New ADOX.Catalog > > Dim t As ADOX.Table > > > > Set c.ActiveConnection = CurrentProject.Connection > > > > For Each t In c.Tables > > If t.Type = "link" Then > > c.Tables.Delete t.Name > > End If > > Next > > End Sub > > > > Hth, > > Steve > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > > Sent: Monday, February 23, 2004 8:07 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K:ADO Version of the following > > > > > > Bugger > > > > Thanks John > > > > ----- Original Message ----- > > From: "John W. Colby" > > To: "Access Developers discussion and problem solving" > > > > Sent: Monday, February 23, 2004 10:40 PM > > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > > any equivalent in ADO. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren > > > DICK > > > Sent: Monday, February 23, 2004 5:40 AM > > > To: AccessD List > > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > > > > Hello all > > > I have a nice bit of code (Thanks Deano) that drops all the linked > > > tables in a dB - cool Does anyone know the ADO version of the code > > > below? > > > > > > Many thanks > > > > > > Darren > > > > > > """""""""""""""""""""""""""""""""""""""""""""" > > > Dim lnk As DAO.tabledef > > > > > > For Each lnk In CurrentDb.TableDefs > > > If lnk.Attributes = dbAttachedTable Then > > > CurrentDb.TableDefs.Delete lnk.Name > > > End If > > > Next > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Mon Feb 23 23:42:21 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 24 Feb 2004 16:42:21 +1100 Subject: [AccessD] One Record to MS Word Message-ID: <002701c3fa98$f96a1d80$0100000a@mirridong> Hi Folks I need to move the current record in an Access (2000) form into a MS Word document which has the appropriate merge fields created .... return to Access and do it again with another record as required. What's the most expedient method to achieve this? I have played around with a few methods but there must be an easier way! Martin From caa at highway.com.br Tue Feb 24 05:59:31 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Tue, 24 Feb 2004 08:59:31 -0300 Subject: [AccessD] Backup routines Message-ID: Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From bheid at appdevgrp.com Tue Feb 24 06:18:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 24 Feb 2004 07:18:38 -0500 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA307A78CC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> I think the answer is: it depends. If this is data that cannot be recreated easily and you have no other backup mechanism in place, I'd say that this is not over-cautious. On my machine at home, I do weekly backups. But I use a program called Replicator to replicate several key folders to another drive, just in case. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto Alves Sent: Tuesday, February 24, 2004 7:00 AM To: AccessD List Subject: [AccessD] Backup routines Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Feb 24 07:47:29 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 08:47:29 -0500 Subject: [AccessD] OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD4F@TTNEXCHSRV1.hshhp.com> No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Tue Feb 24 09:58:41 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 24 Feb 2004 09:58:41 -0600 Subject: [AccessD] Add records with sequential numbers Message-ID: I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina _________________________________________________________________ Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ From prodevmg at yahoo.com Tue Feb 24 10:18:00 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 24 Feb 2004 08:18:00 -0800 (PST) Subject: [AccessD] Add records with sequential numbers In-Reply-To: Message-ID: <20040224161800.21133.qmail@web20414.mail.yahoo.com> You could append to the table using a recordset object. This way you could get your next invoice number as you usually do, then increment it as you desire inside the vba that is doing the appending. Gina Hoopes wrote: I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina _________________________________________________________________ Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From caa at highway.com.br Tue Feb 24 10:27:05 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Tue, 24 Feb 2004 13:27:05 -0300 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> Message-ID: On Tue, 24 Feb 2004 07:18:38 -0500, Bobby Heid wrote: > I think the answer is: it depends. > > If this is data that cannot be recreated easily and you have no other > backup > mechanism in place, I'd say that this is not over-cautious. > > On my machine at home, I do weekly backups. But I use a program called > Replicator to replicate several key folders to another drive, just in > case. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto > Alves > Sent: Tuesday, February 24, 2004 7:00 AM > To: AccessD List > Subject: [AccessD] Backup routines > > > Dear Members: > I would like to have your input on this subject. I wrote a Sub to execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > Do you think that such a 30-day backup routine is overzealous??? Thanks > for > your opinion, Hi Bobby! It is a commercial medical app and hospital?s network administrator set just 5 backup copies (Mon thru Fri). Last year we faced a BE corruption and lost data because there was no backup copy older than 5 days. :( -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From rl_stewart at highstream.net Tue Feb 24 10:31:40 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 24 Feb 2004 10:31:40 -0600 Subject: [AccessD] Re: Add records with sequential numbers In-Reply-To: <200402241559.i1OFxWM30683@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040224102719.029cccf8@pop3.highstream.net> Gina, The simple way is to create a table with all of the invoice number she could use. As they are used delete them. Use the autonumber field as the PK and set the Invoice Number field to a unique index that ignores nulls. Add a field to the Invoice ProcessFlag (Yes/No) default it to No. Have her use that to select the ones to process and limit the list to those not processed. In the "Process Button," add code that will loop through all those selected for processing and get an invoice number from the table you created. As you get the invoice number, delete it from the list of available invoice numbers. Robert At 09:59 AM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 09:58:41 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Add records with sequential numbers >To: AccessD at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >I've got an invoicing database that the end user has used to create invoices >on an individual basis. Each time she clicks the "new invoice" button, I've >coded the form to give her the next number in sequence. She has a specific >range of numbers she's required to use, so it can't just be an Auto Number. >Anyway, it's been working great, but now they want to automate the process >so that the db automatically generates all invoices for the month after I've >presented her with a screen to check or uncheck those that should be >created. So, what I need help with doing is taking the temp table which >contains those items she's checked, appending them to the Invoices table, >and assigning them numbers in sequence. If this was a straight auto number >situation it would be easy, but I can't figure out how to get it to work >using her numbering system. The invoice number field is a text field >because it contains non-numeric characters, but I've been able to get it to >behave as a number for the individual creation purpose I described above by >stripping the alpha characters, adding 1, then putting the alpha characters >back in. Can someone give me an idea of how to use an append query, or >something similar, that will allow me to automate this process? > >Thanks, >Gina From Oleg_123 at xuppa.com Tue Feb 24 10:32:58 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 11:32:58 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <20040224161800.21133.qmail@web20414.mail.yahoo.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> Message-ID: <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> Hi Group i have a CrossTab query that gives result in a following order Jan Feb Mar Apr Jun Jul etc... 4 55 2 12 43 6 If the user selects as dates March 1 to April 31, i'll need to show the data combining everything before and after -- (the field names don't matter) Feb Mar Apr Jun 59 2 12 49 is it possible to do in a crosstab query ? oleg TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format([Preliminary Investigation Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From adtp at touchtelindia.net Tue Feb 24 10:35:54 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 24 Feb 2004 22:05:54 +0530 Subject: [AccessD] Add records with sequential numbers References: Message-ID: <007801c3faf4$6ec69c60$811865cb@winxp> Gina, You could consider a query for appending new records having values incrementing by 1, starting with MaxVal + 1 . (MaxVal is existing maximum value of the field holding series data) It involves an interesting use of simple custom functions based upon global variables. Relevant SQL as well as the code details are given below. Regards, A.D.Tejpal -------------- ====================== Let main table be named T_Series having one of the fields named RefValue (Number type long) for holding a series of numerical values. Table T_SeriesAppend is the table from which data is to be appended to table T_Series and has same structure. ====================== SQL Statement (Append Query) - INSERT INTO T_Series ( RefValue ) SELECT Fn_SeriesNext([T_SeriesAppend].[RefValue]*0) AS RFV FROM T_SeriesAppend WHERE Fn_SeriesMax()>=0; Note - (i) Where clause is meant to set initial values for global variables MaxVal and NextVal via custom function Fn_SeriesMax() (ii) Multiplication by zero in the argument passed to function Fn_SeriesNext() in the Append SQL is meant to force discarding of existing value for field RefValue in the second table i.e. T_SeriesAppend so that newly appended records will only carry series of values in continuation to the existing maximum in the main table. (iii) In the sample SQL for append action, only the series field has been mentioned for illustration. Other fields can be included as desired. Code Module - Option Compare Database Option Explicit Public MaxVal As Long, NextVal As Long Function Fn_SeriesMax() As Long MaxVal = Nz(DMax("RefValue", "T_Series"), 0) NextVal = MaxVal + 1 Fn_SeriesMax = MaxVal End Function Function Fn_SeriesNext(ByVal FValue As Variant) As Long FValue = Nz(FValue, 0) If FValue > 0 Then Fn_SeriesNext = FValue Else Fn_SeriesNext = NextVal NextVal = NextVal + 1 End If End Function ===================================== ----- Original Message ----- From: Gina Hoopes To: AccessD at databaseadvisors.com Sent: Tuesday, February 24, 2004 21:28 Subject: [AccessD] Add records with sequential numbers I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina From gustav at cactus.dk Tue Feb 24 10:37:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 17:37:18 +0100 Subject: [AccessD] Add records with sequential numbers In-Reply-To: References: Message-ID: <10621241453.20040224173718@cactus.dk> Hi Gina For your append query which copies the invoices to the invoice table, you may be able to modify the functions we use for tasks of this type. The _Set function is used for setting the initial value (the first number), the _Get function is used in the query. For varDummy you may use any field from your source (temp) table. ' Declaration. Public lngKeyCounter As Long Public Function NextKey_Get(Optional ByVal varDummy, Optional ByVal intIncrement As Integer = 1, Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set(Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function Have fun! /gustav > I've got an invoicing database that the end user has used to create invoices > on an individual basis. Each time she clicks the "new invoice" button, I've > coded the form to give her the next number in sequence. She has a specific > range of numbers she's required to use, so it can't just be an Auto Number. > Anyway, it's been working great, but now they want to automate the process > so that the db automatically generates all invoices for the month after I've > presented her with a screen to check or uncheck those that should be > created. So, what I need help with doing is taking the temp table which > contains those items she's checked, appending them to the Invoices table, > and assigning them numbers in sequence. If this was a straight auto number > situation it would be easy, but I can't figure out how to get it to work > using her numbering system. The invoice number field is a text field > because it contains non-numeric characters, but I've been able to get it to > behave as a number for the individual creation purpose I described above by > stripping the alpha characters, adding 1, then putting the alpha characters > back in. Can someone give me an idea of how to use an append query, or > something similar, that will allow me to automate this process? From gustav at cactus.dk Tue Feb 24 11:07:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 18:07:14 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> Message-ID: <5923037986.20040224180714@cactus.dk> Hi Oleg Adjust your WHERE statement assuming you look at one calendar year only: WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= Year(CDate([Forms]![Report Form]![Start_Date]))) And [PreliminaryInvestigation Opened] Is Not Null Then, in your PIVOT statement, shift the dates outside your date range: PIVOT Format( IIf([Preliminary Investigation Opened] < CDate([Forms]![ReportForm]![Start_Date]), DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), IIf([Preliminary Investigation Opened] > CDate([Forms]![ReportForm]![End_Date]), DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), [Preliminary Investigation Opened])), "mmm") /gustav > i have a CrossTab query that gives result in a following order > Jan Feb Mar Apr Jun Jul etc... > 4 55 2 12 43 6 > If the user selects as dates March 1 to April 31, i'll need to show the > data combining everything before and after -- (the field names don't > matter) > Feb Mar Apr Jun > 59 2 12 49 > is it possible to do in a crosstab query ? > oleg > TRANSFORM Count([Ron Data spr].[ID]) AS Total > SELECT "Investigation Caseload" AS Status > FROM [Ron Data spr] > WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= > [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary > Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary > Investigation Opened] is not null > GROUP BY "Investigation Caseload" > PIVOT Format([Preliminary Investigation Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); From DWUTKA at marlow.com Tue Feb 24 11:13:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:13:16 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Tue Feb 24 11:15:45 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Tue, 24 Feb 2004 12:15:45 -0500 Subject: [AccessD] Strange corruption Message-ID: <078201c3faf9$db6d9b20$6701a8c0@joe> Cross posted AccessD and Access-L I recently sent a zipped Access 2000 database to a friend. He was able to unzip and run the Access application with no problem, but he had a question about the code. So that I could look at the code while talking with him, I opened the oroiginal version on the computer that was used for development, a Win XP Pro laptop. When I attempted to open any module, the message box informing me that there is a fatal error in Access appeared, the only options are whether or not to send a report to Microsoft. After trying this several times with the same result, I thought that the database might have become corrupted so I extracted the Access application from the zip file and tried again. Same result. Copying the zip file to a Windows 2000 Terminal Server, unzipping and trying to look at a module generated the same error. I then unzipped again, but before attempting to open a module, I verified that several local tables were intact and could be opened with no problem. Opening forms which are bound to queries that use the tables also did not produce any error. After opening tables and forms, the modules then opened as expected without any errors! I tried the same procedure on the Win XP machine--unzip, look at a table, open a form, open a module. No error, it worked as expected. Has anyone else experienced strange behavior like this? Any ideas as to what could cause this situation? Joe O'Connell From DWUTKA at marlow.com Tue Feb 24 11:24:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:24:16 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E3@main2.marlow.com> There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Feb 24 11:25:00 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 12:25:00 -0500 Subject: [AccessD] OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD5F@TTNEXCHSRV1.hshhp.com> The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 11:26:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:26:33 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E4@main2.marlow.com> Now are we talking about much earlier versions? Or VB 6.0 and A97+ VBA? It's a little hard to discuss much about 'original markets', because Excel is still overused as a database system, and I don't think MS is pushing hard to change that! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Doesn't matter what it "is" or has become -- what we were discussing was its original market. ;) Susan H. Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Tue Feb 24 11:24:20 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 24 Feb 2004 17:24:20 +0000 Subject: [AccessD] Strange corruption Message-ID: Joe, I have had some similar problems recently. No proper solutions but I found that if I opened the database (shift-key down) and then opened one of the modules, commented the entire module out, compacted and closed...I was then able to open the database again, uncomment the module and it worked fine?! I know this sounds like voodoo, but it has happened more than once and doing this seems to work...not sure why, can only assume it has something to do with the code being compiled, but the fact that it compiles and runs fine after all that that is a little wierd to say the least. HTH Ryan "Joseph O'Connell" Sent by: accessd-bounces at databaseadvisors.com 24/02/2004 17:15 Please respond to Access Developers discussion and problem solving To: "Microsoft Access Database Discussion List" , cc: Subject: [AccessD] Strange corruption Cross posted AccessD and Access-L I recently sent a zipped Access 2000 database to a friend. He was able to unzip and run the Access application with no problem, but he had a question about the code. So that I could look at the code while talking with him, I opened the oroiginal version on the computer that was used for development, a Win XP Pro laptop. When I attempted to open any module, the message box informing me that there is a fatal error in Access appeared, the only options are whether or not to send a report to Microsoft. After trying this several times with the same result, I thought that the database might have become corrupted so I extracted the Access application from the zip file and tried again. Same result. Copying the zip file to a Windows 2000 Terminal Server, unzipping and trying to look at a module generated the same error. I then unzipped again, but before attempting to open a module, I verified that several local tables were intact and could be opened with no problem. Opening forms which are bound to queries that use the tables also did not produce any error. After opening tables and forms, the modules then opened as expected without any errors! I tried the same procedure on the Win XP machine--unzip, look at a table, open a form, open a module. No error, it worked as expected. Has anyone else experienced strange behavior like this? Any ideas as to what could cause this situation? Joe O'Connell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From DWUTKA at marlow.com Tue Feb 24 11:28:24 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:28:24 -0600 Subject: [AccessD] ListView or TreeView to show directory listing Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E5@main2.marlow.com> A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 24 11:34:08 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 12:34:08 -0500 (EST) Subject: [AccessD] OT Quick Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Message-ID: <46333.63.251.87.214.1077644048.squirrel@heck.bay9.com> basic SQL i would think, its not really programming Drew mentioned Union Query it can only be done in SQL window There is also Pass-through query, and Data definition query (which i don't think are oftened used) > Granted, but which UI's work the best, one's done strictly in Access, or > ones that utilize VBA? Sure, it may depend on the application itself, > but VBA certainly provides a lot more capability. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco > Sent: Tuesday, February 24, 2004 7:47 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT Quick Question > > > No there's one more that you're overlooking (that Access leads you to > believe it does for you) and that's UI. Access is a bit more than a > database (if we interpret DB to be a place to store your data) since it > also allows us to create the user interface/experience. In addition to > some of the down and dirty "guts" items from Jurgen's post I'd like to > see UI in that list. > > Jim DeMarco > Director Product Development > Hudson Health Plan > T 914.631.1611 x2309 > > > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Monday, February 23, 2004 11:49 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT Quick Question > > > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't > outright do for you. After that, there is VBA. I know you said 'no > programming', but I think everyone on the list, who has delved into VBA, > would agree, that it's a vital skill. I personally don't know what I > did before I knew VBA. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 3:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know > more. No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Tue Feb 24 11:36:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:36:18 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E6@main2.marlow.com> Good point. Guess I'm biased from the path I took. I started using Access 97 in July of 1999, and by August of 2000, I was beginning to delve into VBA. (it was about a month an a half.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 24 11:39:08 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 12:39:08 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <5923037986.20040224180714@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> Message-ID: <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> Hi Gustav I am getting this erroe -- The Microsoft Jet database engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field or expression... It works fine with original pivot, and [Forms]![Report Form]![Start_Date] is written everywhere in the same way.. TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format( IIf([Preliminary Investigation Opened] < CDate([Forms]![Report Form]![Start_Date]), DateAdd("d", -1, CDate([Forms]![Report Form]![Start_Date])), IIf([Preliminary Investigation Opened] > CDate([Forms]![Report Form]![End_Date]), DateAdd("d", 1, CDate([Forms]![Report Form]![End_Date])), [Preliminary Investigation Opened])), "mmm") p.s. doesn't nmatter about calendar year > Hi Oleg > > Adjust your WHERE statement assuming you look at one calendar year only: > > WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= > Year(CDate([Forms]![Report Form]![Start_Date]))) > And [PreliminaryInvestigation Opened] Is Not Null > > Then, in your PIVOT statement, shift the dates outside your date > range: > > PIVOT Format( > IIf([Preliminary Investigation Opened] < > CDate([Forms]![ReportForm]![Start_Date]), > DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), > IIf([Preliminary Investigation Opened] > > CDate([Forms]![ReportForm]![End_Date]), > DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), > [Preliminary Investigation Opened])), "mmm") > > /gustav > > >> i have a CrossTab query that gives result in a following order > >> Jan Feb Mar Apr Jun Jul etc... > >> 4 55 2 12 43 6 > >> If the user selects as dates March 1 to April 31, i'll need to show >> the data combining everything before and after -- (the field names >> don't matter) > >> Feb Mar Apr Jun > >> 59 2 12 49 > >> is it possible to do in a crosstab query ? > >> oleg > > >> TRANSFORM Count([Ron Data spr].[ID]) AS Total >> SELECT "Investigation Caseload" AS Status >> FROM [Ron Data spr] >> WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= >> [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary >> Investigation Opened]<=[Forms]![Report Form]![End_Date]) and >> [Preliminary Investigation Opened] is not null >> GROUP BY "Investigation Caseload" >> PIVOT Format([Preliminary Investigation Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Tue Feb 24 11:40:56 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:40:56 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E7@main2.marlow.com> Whoops, that is August of 1999, I was using VBA....not August of 2000. (That would be a year and a month....not a month and a half! ) Apparently I musted have missed the keeping track of time class I was supposed to take, by jumping into VBA so fast! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 11:36 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Good point. Guess I'm biased from the path I took. I started using Access 97 in July of 1999, and by August of 2000, I was beginning to delve into VBA. (it was about a month an a half.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Tue Feb 24 12:13:46 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 24 Feb 2004 12:13:46 -0600 Subject: [AccessD] Add records with sequential numbers Message-ID: Wow! Great solutions from several of you. I'm going to try at least this one from Gustav, and probably the others to see which one fits our situation best. Thank you for such good ideas so quickly! Gina From: Gustav Brock Reply-To: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add records with sequential numbers Date: Tue, 24 Feb 2004 17:37:18 +0100 Hi Gina For your append query which copies the invoices to the invoice table, you may be able to modify the functions we use for tasks of this type. The _Set function is used for setting the initial value (the first number), the _Get function is used in the query. For varDummy you may use any field from your source (temp) table. ' Declaration. Public lngKeyCounter As Long Public Function NextKey_Get(Optional ByVal varDummy, Optional ByVal intIncrement As Integer = 1, Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set(Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function Have fun! /gustav _________________________________________________________________ Dream of owning a home? Find out how in the First-time Home Buying Guide. http://special.msn.com/home/firsthome.armx From rl_stewart at highstream.net Tue Feb 24 12:23:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 24 Feb 2004 12:23:51 -0600 Subject: [AccessD] Re: OT Quick Question In-Reply-To: <200402241800.i1OI0aM10680@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040224121711.02912b98@pop3.highstream.net> Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew From gustav at cactus.dk Tue Feb 24 12:27:19 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 19:27:19 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> Message-ID: <17227843076.20040224192719@cactus.dk> Hi Oleg Try removing the CDate(..)s. Then add to the query these parameters of date type Date/Time: [Forms]![Report Form]![Start_Date] [Forms]![Report Form]![End_Date] If you wish to include any date outside the interval, just remove that from the WHERE clause: WHERE [Preliminary Investigation Opened] Is Not Null /gustav > I am getting this erroe -- The Microsoft Jet database engine does not > recognise '[Forms]![Report Form]![Start_Date]' as a valid field or > expression... > It works fine with original pivot, and [Forms]![Report Form]![Start_Date] > is written everywhere in the same way.. > TRANSFORM Count([Ron Data spr].[ID]) AS Total > SELECT "Investigation Caseload" AS Status > FROM [Ron Data spr] > WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= > [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary > Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary > Investigation Opened] is not null > GROUP BY "Investigation Caseload" > PIVOT Format( > IIf([Preliminary Investigation Opened] < CDate([Forms]![Report > Form]![Start_Date]), DateAdd("d", -1, CDate([Forms]![Report > Form]![Start_Date])), > IIf([Preliminary Investigation Opened] > CDate([Forms]![Report > Form]![End_Date]), DateAdd("d", 1, CDate([Forms]![Report > Form]![End_Date])), > [Preliminary Investigation Opened])), "mmm") > p.s. doesn't nmatter about calendar year >> Hi Oleg >> >> Adjust your WHERE statement assuming you look at one calendar year only: >> >> WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= >> Year(CDate([Forms]![Report Form]![Start_Date]))) >> And [PreliminaryInvestigation Opened] Is Not Null >> >> Then, in your PIVOT statement, shift the dates outside your date >> range: >> >> PIVOT Format( >> IIf([Preliminary Investigation Opened] < >> CDate([Forms]![ReportForm]![Start_Date]), >> DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), >> IIf([Preliminary Investigation Opened] > >> CDate([Forms]![ReportForm]![End_Date]), >> DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), >> [Preliminary Investigation Opened])), "mmm") >> >> /gustav >> >> >>> i have a CrossTab query that gives result in a following order >> >>> Jan Feb Mar Apr Jun Jul etc... >> >>> 4 55 2 12 43 6 >> >>> If the user selects as dates March 1 to April 31, i'll need to show >>> the data combining everything before and after -- (the field names >>> don't matter) >> >>> Feb Mar Apr Jun >> >>> 59 2 12 49 >> >>> is it possible to do in a crosstab query ? >> >>> oleg >> >> >>> TRANSFORM Count([Ron Data spr].[ID]) AS Total >>> SELECT "Investigation Caseload" AS Status >>> FROM [Ron Data spr] >>> WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= >>> [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary >>> Investigation Opened]<=[Forms]![Report Form]![End_Date]) and >>> [Preliminary Investigation Opened] is not null >>> GROUP BY "Investigation Caseload" >>> PIVOT Format([Preliminary Investigation Opened],"mmm") In >>> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); From gustav at cactus.dk Tue Feb 24 12:35:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 19:35:50 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <17227843076.20040224192719@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> <17227843076.20040224192719@cactus.dk> Message-ID: <16928353730.20040224193550@cactus.dk> Hi Oleg This was not clear: If you wish to include any date outside the interval, just remove the year filtering from the WHERE clause so it reads: WHERE [Preliminary Investigation Opened] Is Not Null /gustav From Oleg_123 at xuppa.com Tue Feb 24 13:03:53 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 14:03:53 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <16928353730.20040224193550@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> <17227843076.20040224192719@cactus.dk> <16928353730.20040224193550@cactus.dk> Message-ID: <11295.63.251.87.214.1077649433.squirrel@heck.bay9.com> beautiful, thank u Gustav. Now the only thing left is the sorting, which i'll be thinking off now PARAMETERS [Forms]![Report Form]![Start_Date] DateTime, [Forms]![Report Form]![End_Date] DateTime; TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format( IIf([Preliminary Investigation Opened] < ([Forms]![Report Form]![Start_Date]), DateAdd("d", -1, ([Forms]![Report Form]![Start_Date])), IIf([Preliminary Investigation Opened] > ([Forms]![Report Form]![End_Date]), DateAdd("d", 1, ([Forms]![Report Form]![End_Date])), [Preliminary Investigation Opened])), "mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > Hi Oleg > > This was not clear: > > If you wish to include any date outside the interval, just remove the > year filtering from the WHERE clause so it reads: > > WHERE [Preliminary Investigation Opened] Is Not Null > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From shait at mindspring.com Tue Feb 24 13:05:16 2004 From: shait at mindspring.com (Stephen Hait) Date: Tue, 24 Feb 2004 14:05:16 -0500 Subject: [AccessD] Strange corruption In-Reply-To: <078201c3faf9$db6d9b20$6701a8c0@joe> Message-ID: <403B5A1C.5401.19B06B5A@localhost> I had a somewhat similar problem arise out of the blue the other day. What fixed it for me was to [re]install the latest MDAC from MS. You might try that. Regards, Stephen > Cross posted AccessD and Access-L > > > I recently sent a zipped Access 2000 database to a friend. He was > able to unzip and run the Access application with no problem, but he > had a question about the code. So that I could look at the code > while talking with him, I opened the oroiginal version on the > computer that was used for development, a Win XP Pro laptop. When I > attempted to open any module, the message box informing me that > there is a fatal error in Access appeared, the only options are > whether or not to send a report to Microsoft. After trying this > several times with the same result, I thought that the database > might have become corrupted so I extracted the Access application > from the zip file and tried again. Same result. > > Copying the zip file to a Windows 2000 Terminal Server, unzipping > and trying to look at a module generated the same error. I then > unzipped again, but before attempting to open a module, I verified > that several local tables were intact and could be opened with no > problem. Opening forms which are bound to queries that use the > tables also did not produce any error. After opening tables and > forms, the modules then opened as expected without any errors! > > I tried the same procedure on the Win XP machine--unzip, look at a > table, open a form, open a module. No error, it worked as expected. > > Has anyone else experienced strange behavior like this? Any ideas > as to what could cause this situation? > > Joe O'Connell > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at hotmail.com Tue Feb 24 13:32:10 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Tue, 24 Feb 2004 13:32:10 -0600 Subject: [AccessD] Backup routines Message-ID: You can't back up too much. Anytime a change is made to a database if disaster were to strike, that change could be lost. How big of a problem that would be to redo varies a lot by application. In most cases backing up a database every time an change is made is simply not feasible, so you find a balance between the pain of doing the backup verses the risk of having to redo the changes. Only you and the users of your database can really determine how frequent of a backup is necessary. If you have the disk space - and disk space is relatively cheap nowadays, once a day is pretty good insurance. Now a bigger question might be, how often are those 30 days of backups backed up? What do you do if the drive they are on fails? Or what if there is a fire in the building? Copying those backups off to a CD or a tape or a removable hard drive on a regular basis and taking those removable media to an offsite location or at least a fireproof safe would give you security against a different kind of disaster. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ From mikedorism at adelphia.net Tue Feb 24 13:37:04 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 24 Feb 2004 14:37:04 -0500 Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E5@main2.marlow.com> Message-ID: <001201c3fb0d$94850cc0$a1194244@hargrove.internal> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] ListView or TreeView to show directory listing A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 14:00:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 14:00:40 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> Um, yeah. Kind of what I was saying! Technically, whether people like it or not, if you use a form, you are using VBA, because Forms are Class Objects. Whether you put code behind them or not, they are still using VBA. VBA can be used with the UI, for reasons other then business rules. In fact, the first VBA code I ever used was to hide the Access Window, something that you can't do without VBA, and also part of the UI. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: OT Quick Question Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 24 14:39:39 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 24 Feb 2004 12:39:39 -0800 (PST) Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <001201c3fb0d$94850cc0$a1194244@hargrove.internal> Message-ID: <20040224203939.39113.qmail@web20418.mail.yahoo.com> Thanks guys, those were great responses. The user actually settled for a list box that was populated from the Dir function of a predetermined path. Mike & Doris Manning wrote: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] ListView or TreeView to show directory listing A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From Jdemarco at hudsonhealthplan.org Tue Feb 24 14:45:07 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 15:45:07 -0500 Subject: [AccessD] Re: OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD6F@TTNEXCHSRV1.hshhp.com> I don't know if the mention of UI in these posts has to do with my post but I just want to clarify that I meant "designing user interface" in general as opposed to learning/using Access UI. I know this is not just an Access issue but sure has a lot to with an application's success. Jim D. -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 3:01 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, yeah. Kind of what I was saying! Technically, whether people like it or not, if you use a form, you are using VBA, because Forms are Class Objects. Whether you put code behind them or not, they are still using VBA. VBA can be used with the UI, for reasons other then business rules. In fact, the first VBA code I ever used was to hide the Access Window, something that you can't do without VBA, and also part of the UI. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: OT Quick Question Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 24 15:39:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 24 Feb 2004 16:39:43 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E3@main2.marlow.com> Message-ID: >However, there is very little that you can do in one, that you can't do in the other. Well... not exactly. VBA is Visual Basic for Applications and is simultaneously a superset of and a subset of VB (Visual Basic). VBA is different for each "Application" that is the A portion of VBA. VBA for Access is not the same as VBA for Word as VBA for Excel etc. VBA for Access understands Database things, VBA for Word understands document things (paragraphs for example), VBA for Excel understands Cells for example. That is the "Superset" part of VB. It is VB with something (a LOT!) added. It is also a subset because there are a handful of things that VB can do that VBA can't. Thus to say that "there is very little you can do in one that you can't in the other" is very misleading. I can apply formatting to selected test in VBA for Word where VB hasn't a clue what text even exists. Now I understand that these "objects" exist in libraries and VB can access these libraries, but... and this is a BIG but... if Office is loaded then VBA exists whether or not VB is loaded on a machine, whereas the Word.OLB does NOT exist unless Office is loaded. Thus VBA for word can do paragraphs regardless of anything else. If Word is loaded, VBA for word can do that stuff. A VB programmer on the other hand has to make sure that Word is loaded before he can use the .olb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 15:51:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 15:51:17 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278EC@main2.marlow.com> True. Very true. I was glossing over the minor details! LOL! There are other differences, I just didn't want to bog the list down by going into them all. Like VBA allows for 'Eval', which cannot be used in VB. VB has no problems with using AddressOf in callback functions. VB also creates true 'forms' instead of highly subclassed forms (like Access). This list goes on..... However, my statement still holds true, in the manner in which I 'meant' it. There is little you can do in one or the other, which you can't do in the opposite. True, VBA inside of Access uses Access a default object, so it is easier to do database stuff within Access (though I tend to use ADO in VB, which to me, is just as easy as using Access). However, that 'capability' is still there, it's just more difficult to do it. Likewise, there are things which are easier to do in VB, but you can still replicate the capability (most of the time) with VBA. It all boils down to using the right tool for the job. Which is what we generally agreed on in the great bound/unbound debate! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 3:40 PM To: Access Developers discussion and problem solving Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) >However, there is very little that you can do in one, that you can't do in the other. Well... not exactly. VBA is Visual Basic for Applications and is simultaneously a superset of and a subset of VB (Visual Basic). VBA is different for each "Application" that is the A portion of VBA. VBA for Access is not the same as VBA for Word as VBA for Excel etc. VBA for Access understands Database things, VBA for Word understands document things (paragraphs for example), VBA for Excel understands Cells for example. That is the "Superset" part of VB. It is VB with something (a LOT!) added. It is also a subset because there are a handful of things that VB can do that VBA can't. Thus to say that "there is very little you can do in one that you can't in the other" is very misleading. I can apply formatting to selected test in VBA for Word where VB hasn't a clue what text even exists. Now I understand that these "objects" exist in libraries and VB can access these libraries, but... and this is a BIG but... if Office is loaded then VBA exists whether or not VB is loaded on a machine, whereas the Word.OLB does NOT exist unless Office is loaded. Thus VBA for word can do paragraphs regardless of anything else. If Word is loaded, VBA for word can do that stuff. A VB programmer on the other hand has to make sure that Word is loaded before he can use the .olb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 24 15:54:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 24 Feb 2004 16:54:54 -0500 Subject: [AccessD] validation Message-ID: I added rudimentary validation code to my text and combo framework classes today, and a validate function to my form class. As I call a ValidationSetup method of the form class I pass in the control name and message text. Since I have a control scanner that finds every object (with a class) and loads a class instance for each such control, as I call the ValidationSetup I grab a pointer to the instance of the class for that control and place the pointer in a colValidate collection keyed on the control's name. When I am finished setting up the validation for any controls I want to validate I have a collection with exactly and only the control classes that need their Validate method called. Now I can do code like: sub myform_Open(Cancel) with fdclsFrm .ValidationSetup "txtCtlName1", "Last Name" .ValidationSetup "cboCltName2", "Title" end with end sub Having done that there form events are sunk in the form class so BeforeUpdate calls the validate event for each control in the colValidate collection passing in Cancel. If Cancel comes back True, the collection iterator exits, and cancel True is passed back to the BeforeUpdate which prevents the record from being saved. The control's Validate method does things like put up a message informing the user that they need to enter data in a control and sets the focus in that control. Likewise the setup code causes the background color of any validated control to be set to a specific color so that all controls needing validation are visually distinct. Works swimmingly and now validating controls is a simple line of code for each control to validate that "does it all". John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Tue Feb 24 17:21:58 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Feb 2004 15:21:58 -0800 Subject: [AccessD] Backup routines References: Message-ID: <403BDC96.8070707@shaw.ca> Many years ago I was a systems programmer on a mainframe, I ran a daily tape backup, rotating the tapes with a weekly backup, then a monthly and a yearly. Today I would go with 30 days, and the oldest of thirty days or at the end of the month it would become the next monthly backup. Yes you need a yearly backup to possibly restore old financial data or whatever your countries' or state's expiration or retention periods are on specific types of data (some medical periods are 30 years under state laws). This method also allows you to trace back or correct a mistake that may have been made months ago.This backup procedure is usually called "grandfather father son". Most hospitals have a records officer, so I would discuss backup retention periods with them. Gary is right about offsite backup. I was once involved with a hospital that burned down, had to fly in a new hospital that was then reset up in an school. Also at least a couple of times a year test your backup is viable. Not much fun finding out your tape drive has been out of synch for 3 months and the tapes are unreadable. Oracle has a 500 page manual on backup practices and methodology. Gary Kjos wrote: > You can't back up too much. Anytime a change is made to a database if > disaster were to strike, that change could be lost. How big of a > problem that would be to redo varies a lot by application. In most > cases backing up a database every time an change is made is simply not > feasible, so you find a balance between the pain of doing the backup > verses the risk of having to redo the changes. Only you and the users > of your database can really determine how frequent of a backup is > necessary. If you have the disk space - and disk space is relatively > cheap nowadays, once a day is pretty good insurance. Now a bigger > question might be, how often are those 30 days of backups backed up? > What do you do if the drive they are on fails? Or what if there is a > fire in the building? Copying those backups off to a CD or a tape or a > removable hard drive on a regular basis and taking those removable > media to an offsite location or at least a fireproof safe would give > you security against a different kind of disaster. > > Gary Kjos > garykjos at hotmail.com > > _________________________________________________________________ > Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose > from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Feb 24 17:33:35 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 25 Feb 2004 09:33:35 +1000 Subject: [AccessD] Backup routines In-Reply-To: Message-ID: <403C6BEF.22774.C6B572@localhost> On 24 Feb 2004 at 8:59, Carlos Alberto Alves wrote: > Dear Members: > I would like to have your input on this subject. I wrote a Sub to execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > Do you think that such a 30-day backup routine is overzealous??? Depends on the application and why you are backing up. Several possible reasons: 1. To keep historical records which you can refer back to. 2. To provide fallback if you discover that data has been "messed up" (bad data entry, incorrect deletions etc) 3. For data entry audit purposes 4. For data recovery in the event of a major disaster For Type 1 - Some accounting applications, keep monthly/annual backups that go back years. for Type 2 - it depends on how long you expect it to take to discover such errors for Type 3 - similar reasoning to type 2 for Type 4, you don't need to store more that a single generation as long as you are sure it is retrievable. Ask yourself why you want the 20 day old copy for example. If you have the 21 day old copy and the 19 day old copy, is there *any* reason you would ever want to access or restore the 20 day one? If the answer is No, there is no poiont in maintaining such as long line of backups. A common way of covering these contingencies is something like: 1. Save daily backups which you normally delete after a week 2. Keep a weekly copy for more than a month 3. Keep a monthly copy for more than a year 4. Keep an Annual copy permanently. You can do this by checking the data and doing appropriate file deletes One way would be: If it's a Friday, delete previous Friday files if they are a month old else delete any files that exactly a week old. If it's the first of the month delete files that are more than 12 months old unless they are dated the 1st Jan (or whatever) That means that you will have less than 30 copies but would have a much better archive. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Feb 24 17:05:40 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 25 Feb 2004 09:05:40 +1000 Subject: [AccessD] OT Quick Question In-Reply-To: <46333.63.251.87.214.1077644048.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Message-ID: <403C6564.18620.AD267A@localhost> On 24 Feb 2004 at 12:34, Oleg_123 at xuppa.com wrote: > basic SQL i would think, its not really programming Why not. SQL is a language. It provides variables, conditional operations and flow control and produces outputs - in what way is it not "really programming"? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Tue Feb 24 23:23:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 00:23:32 -0500 Subject: [AccessD] C2DbShutdown Message-ID: Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. John W. Colby www.ColbyConsulting.com From adtp at touchtelindia.net Tue Feb 24 23:26:53 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 25 Feb 2004 10:56:53 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Message-ID: <016101c3fb60$beb2d8d0$b41865cb@winxp> Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From JOHNWARDBELL at aol.com Wed Feb 25 09:30:43 2004 From: JOHNWARDBELL at aol.com (JOHNWARDBELL at aol.com) Date: Wed, 25 Feb 2004 10:30:43 EST Subject: [AccessD] Using Access as a cash register Message-ID: <107.2c892592.2d6e19a3@aol.com> Hi Setting up an A2k form as the input for point-of-sale transaction is not too difficult. My problem is how to trigger a serial or UBS port to open a till draw by hitting a cmd button. Anyone hit this problem before or any suggestions? johnwb From Oleg_123 at xuppa.com Wed Feb 25 09:35:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 10:35:31 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> Message-ID: <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> Good Mornig Group. Is it possible for one query to count how many records are up to 150 days old and have been chechked and the ones that haven't ? I understand how to do in 2 queris, i am wondering if its possible to do in one thanks, Oleg SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data mid AP].FileToSupervisor) Is not Null)); SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data mid AP].FileToSupervisor) Is Null)); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From gustav at cactus.dk Wed Feb 25 09:49:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 16:49:35 +0100 Subject: [AccessD] Count query In-Reply-To: <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> Message-ID: <1528123779.20040225164935@cactus.dk> Hi Oleg How about this: SELECT Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); /gustav > Is it possible for one query to count how many records are up to 150 days > old and have been chechked and the ones that haven't ? I understand how to > do in 2 queris, i am wondering if its possible to do in one > thanks, > Oleg > SELECT Count([Ron Data mid AP].ID) AS CountOfID > FROM [Ron Data mid AP] > WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data > mid AP].FileToSupervisor) Is not Null)); > SELECT Count([Ron Data mid AP].ID) AS CountOfID > FROM [Ron Data mid AP] > WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data > mid AP].FileToSupervisor) Is Null)); From gustav at cactus.dk Wed Feb 25 09:58:26 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 16:58:26 +0100 Subject: [AccessD] Using Access as a cash register In-Reply-To: <107.2c892592.2d6e19a3@aol.com> References: <107.2c892592.2d6e19a3@aol.com> Message-ID: <10028655294.20040225165826@cactus.dk> Hi John Traditionally this is done by sending some (arbitrary) chars to the serial port, but the manual or the dealer must confirm this. If so, it's very simple: Dim strPort as String Dim strOpenDrawer as String strPort = "1" ' Adjust for 1, 2 or 3 as needed. strPort = "LPT" & strPort strOpenDrawer = Chr(130) ' Send special character string to the cash drawer via PC port. Open strPort For Output As #1 Print #1, strOpenDrawer Close #1 If this is the setup, remember that WinNT+ for some reason doesn't feed that much power to the serial port which means that you'll need to have an external power supply to the cash drawer. I haven't worked with the USB interface. /gustav > Setting up an A2k form as the input for point-of-sale transaction is not too > difficult. My problem is how to trigger a serial or UBS port to open a till > draw by hitting a cmd button. > Anyone hit this problem before or any suggestions? > johnwb From carbonnb at sympatico.ca Wed Feb 25 10:04:36 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 25 Feb 2004 11:04:36 -0500 Subject: [AccessD] Determining Time for Project Message-ID: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From Oleg_123 at xuppa.com Wed Feb 25 10:05:30 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 11:05:30 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <1528123779.20040225164935@cactus.dk> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> <1528123779.20040225164935@cactus.dk> Message-ID: <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From paul.hartland at fsmail.net Wed Feb 25 10:12:00 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 25 Feb 2004 17:12:00 +0100 (CET) Subject: [AccessD] Count query Message-ID: <32880125.1077725520253.JavaMail.www@wwinf3006> Oleg, If the FileToSupervisor contains the same value when not null, you could try this: SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149)) GROUP BY [Ron Data mid AP].FileToSupervisor; Paul Message date : Feb 25 2004, 04:09 PM >From : Oleg_123 at xuppa.com To : accessd at databaseadvisors.com Copy to : Subject : Re: [AccessD] Count query Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Wed Feb 25 10:12:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 17:12:46 +0100 Subject: [AccessD] Count query In-Reply-To: <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> <1528123779.20040225164935@cactus.dk> <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> Message-ID: <12929514830.20040225171246@cactus.dk> Hi Oleg Yes, adding the two sums should equal the total count ... /gustav > i need a count, not a sum :--) > when i am trying count this way -- i just get a same number in both columns. > I don't think Union Query would work here > SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, > Count((IsNull(FileToSupervisor))) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)); >> Hi Oleg >> >> How about this: >> >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> Is it possible for one query to count how many records are up to 150 >>> days old and have been chechked and the ones that haven't ? I >>> understand how to do in 2 queris, i am wondering if its possible to do >>> in one >> >>> thanks, >>> Oleg >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is not Null)); >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is Null)); From ssharkins at bellsouth.net Wed Feb 25 10:18:36 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 25 Feb 2004 11:18:36 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <20040225161834.OHOC1898.imf19aec.mail.bellsouth.net@SUSANONE> Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. From rsmethurst at UK.EY.COM Wed Feb 25 10:17:37 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 25 Feb 2004 16:17:37 +0000 Subject: [AccessD] Count query Message-ID: Hi All, I think Gustav was on the right track with the SUM. If you include and IIF statement and attribute 1's and 0's depending on whether they meet the criteria, you could then put a count on each respective column to get the totals you want. Something along the lines of...(not sure if the syntax is correct here, have just added it to give you an idea) SELECT Sum(IIF(Not IsNull(FileToSupervisor),1,0)) AS CheckedID, Sum(IIF(IsNull(FileToSupervisor),1,0)) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)) This will give you the totals for the checked and unchecked in one query, if that is what you want. Cheers Ryan Sent by: accessd-bounces at databaseadvisors.com 25/02/2004 16:05 Please respond to Access Developers discussion and problem solving To: cc: Subject: Re: [AccessD] Count query Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Jdemarco at hudsonhealthplan.org Wed Feb 25 10:25:16 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 25 Feb 2004 11:25:16 -0500 Subject: [AccessD] Determining Time for Project Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD8B@TTNEXCHSRV1.hshhp.com> Exactly right (subjectively of course)!! I usually make a task list that shows every object I have to create and an estimate of how long to do each item (create table A, create table B, create Form A, etc). Then like Susan says triple it. The number will look ridiculous but given the little "gotchas" that pop up you'll be glad you did. HTH, Jim DeMarco -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, February 25, 2004 11:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Determining Time for Project Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 25 10:24:12 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 25 Feb 2004 16:24:12 +0000 Subject: [AccessD] Determining Time for Project Message-ID: Good advice...me thinks. Better to end early, than late. Since it's only you, you won't have to take into account what other people are doing, or what is the critical path of the project, you'll only be able to do things one at a time and in a step by step process. Roughly, break the project as a whole down into small, manageable 'modules' or tasks. (At least into packages that you will be able to have a guestimate as to how long you will take to get them done.) Then have a look at how long each module will take. If you are reliant on anyone or anything to get modules done, be sure to build this into your timeframes, and as Susan said, be generous...there's always something out there just waiting to trip you up! :) Ryan "Susan Harkins" Sent by: accessd-bounces at databaseadvisors.com 25/02/2004 16:18 Please respond to Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" cc: Subject: RE: [AccessD] Determining Time for Project Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From cfoust at infostatsystems.com Wed Feb 25 10:27:26 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 08:27:26 -0800 Subject: [AccessD] Determining Time for Project Message-ID: Stan Leszynski's Book Expert Access 97 has an approach to estimating time based on how many tables, reports, etc. are involved and the average time required to build each one. Charlotte Foust -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 8:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Wed Feb 25 10:31:14 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 11:31:14 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: References: Message-ID: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, the one below gave 321017 and 25515793... (they wish they had that many cases) :--) SELECT Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); > Hi All, > > I think Gustav was on the right track with the SUM. If you include and > IIF statement and attribute 1's and 0's depending on whether they meet > the criteria, you could then put a count on each respective column to > get the totals you want. > > Something along the lines of...(not sure if the syntax is correct here, > have just added it to give you an idea) > > SELECT Sum(IIF(Not IsNull(FileToSupervisor),1,0)) AS CheckedID, > Sum(IIF(IsNull(FileToSupervisor),1,0)) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)) > > This will give you the totals for the checked and unchecked in one > query, if that is what you want. > > Cheers > Ryan > > > > > > > > Sent by: accessd-bounces at databaseadvisors.com > 25/02/2004 16:05 > Please respond to Access Developers discussion and problem solving > > > To: > cc: > Subject: Re: [AccessD] Count query > > > Hi Gustav, > > i need a count, not a sum :--) > when i am trying count this way -- i just get a same number in both > columns. > I don't think Union Query would work here > > SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, > Count((IsNull(FileToSupervisor))) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)); > > > >> Hi Oleg >> >> How about this: >> >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> Is it possible for one query to count how many records are up to 150 >>> days old and have been chechked and the ones that haven't ? I >>> understand how to do in 2 queris, i am wondering if its possible to >>> do in one >> >>> thanks, >>> Oleg >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is not Null)); >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is Null)); >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Wed Feb 25 10:44:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 25 Feb 2004 10:44:00 -0600 Subject: [AccessD] Re: OT Quick Question In-Reply-To: <200402251612.i1PGCXM24842@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040225103642.02938e30@pop3.highstream.net> UI - user interface VBA - Programming language VBA is not part of the UI, it is how the UI is programmed. Using VBA the way you said is programming the UI. By your definition, the UI is a subset of VBA, not the other way around. A form is VBA but VBA is not a form. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew From rl_stewart at highstream.net Wed Feb 25 10:51:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 25 Feb 2004 10:51:51 -0600 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <200402251612.i1PGCXM24842@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040225105031.029dd4f8@pop3.highstream.net> See if you can find the book Access Expert Solutions. The first 9 or 10 chapters are on project management and estimating. The best book I have seen on it for Access projects. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Wed, 25 Feb 2004 11:04:36 -0500 >From: Bryan Carbonnell >Subject: [AccessD] Determining Time for Project >To: >Message-ID: > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.net> > >Content-Type: text/plain; charset=iso-8859-1 > >I know that this is all subjective, but... > >How do you determine the amount of time required to build an application? > >I need to do it for an internal project, but I have NO idea how to >estimate the time. I already know what the application needs to do and >produce, but I haven't got the foggiest idea how to estimate time. > >I will be the only one that will be developing it, so I don't have to >worry about other people, just me. > >Thanks for any hints, tips or ideas. From gustav at cactus.dk Wed Feb 25 11:02:48 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 18:02:48 +0100 Subject: [AccessD] Count query In-Reply-To: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> Message-ID: <18832517527.20040225180248@cactus.dk> Hi Oleg Ahh, got it now, omit the ID: SELECT Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); /gustav > hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, > the one below gave 321017 and 25515793... > (they wish they had that many cases) :--) > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); From cfoust at infostatsystems.com Wed Feb 25 11:05:32 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 09:05:32 -0800 Subject: [AccessD] Re: Determining Time for Project Message-ID: Ack! That's the title of Stan Leszynski's book: Access 97 Expert Solutions. My copy is at home and the office copy is in another cubicle, so I got it wrong. :-{ Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Wednesday, February 25, 2004 8:52 AM To: accessd at databaseadvisors.com Cc: carbonnb at sympatico.ca Subject: [AccessD] Re: Determining Time for Project See if you can find the book Access Expert Solutions. The first 9 or 10 chapters are on project management and estimating. The best book I have seen on it for Access projects. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Wed, 25 Feb 2004 11:04:36 -0500 >From: Bryan Carbonnell >Subject: [AccessD] Determining Time for Project >To: >Message-ID: > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.ne >t> > >Content-Type: text/plain; charset=iso-8859-1 > >I know that this is all subjective, but... > >How do you determine the amount of time required to build an >application? > >I need to do it for an internal project, but I have NO idea how to >estimate the time. I already know what the application needs to do and >produce, but I haven't got the foggiest idea how to estimate time. > >I will be the only one that will be developing it, so I don't have to >worry about other people, just me. > >Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 25 10:57:51 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 25 Feb 2004 16:57:51 -0000 Subject: [AccessD] Re: Determining Time for Project References: <5.1.0.14.2.20040225105031.029dd4f8@pop3.highstream.net> Message-ID: <000501c3fbc0$81677700$9111758f@aine> http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm Dont know how legal this is re copyright etc but its on the web Martin ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Wednesday, February 25, 2004 4:51 PM Subject: [AccessD] Re: Determining Time for Project > See if you can find the book Access Expert Solutions. The first 9 or 10 > chapters are on project management and estimating. The best book I have > seen on it for Access projects. > > At 10:12 AM 2/25/2004 -0600, you wrote: > >Date: Wed, 25 Feb 2004 11:04:36 -0500 > >From: Bryan Carbonnell > >Subject: [AccessD] Determining Time for Project > >To: > >Message-ID: > > > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.net> > > > >Content-Type: text/plain; charset=iso-8859-1 > > > >I know that this is all subjective, but... > > > >How do you determine the amount of time required to build an application? > > > >I need to do it for an internal project, but I have NO idea how to > >estimate the time. I already know what the application needs to do and > >produce, but I haven't got the foggiest idea how to estimate time. > > > >I will be the only one that will be developing it, so I don't have to > >worry about other people, just me. > > > >Thanks for any hints, tips or ideas. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Feb 25 11:11:38 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 12:11:38 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <18832517527.20040225180248@cactus.dk> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> Message-ID: <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> Ahh, they now wont in 2 rows (there also 150 to 179, 180 - 209, aabove 210, etc.) one row on target' the other - behind schedule,, so i guess I'have to stick to selecting it by one, then do Union Query > Hi Oleg > > Ahh, got it now, omit the ID: > > SELECT > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >> the one below gave 321017 and 25515793... >> (they wish they had that many cases) :--) > >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From gustav at cactus.dk Wed Feb 25 11:32:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 18:32:30 +0100 Subject: [AccessD] Count query In-Reply-To: <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> Message-ID: <18334299339.20040225183230@cactus.dk> Hi Oleg You could Group By: IIf(DateDiff("d", [MS Date Opened], Date()) < 150, 4, DateDiff("d", [MS Date Opened], Date()) \ 30) /gustav > Ahh, they now wont in 2 rows (there also 150 to 179, 180 - 209, aabove > 210, etc.) one row on target' the other - behind schedule,, so i guess > I'have to stick to selecting it by one, then do Union Query >> Hi Oleg >> >> Ahh, got it now, omit the ID: >> >> SELECT >> Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >>> the one below gave 321017 and 25515793... >>> (they wish they had that many cases) :--) >> >>> SELECT >>> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >>> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >>> FROM >>> [Ron Data mid AP] >>> WHERE >>> (Date() - [MS Date Opened] < 149); From carbonnb at sympatico.ca Wed Feb 25 12:07:22 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 25 Feb 2004 13:07:22 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: <20040225180726.SBEC23238.tomts31-srv.bellnexxia.net@smtp.bellnexxia.net> > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From cfoust at infostatsystems.com Wed Feb 25 12:30:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 10:30:36 -0800 Subject: [AccessD] Re: Determining Time for Project Message-ID: Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gdb at AllenandAllen.com Wed Feb 25 12:44:44 2004 From: gdb at AllenandAllen.com (Boehm, Gary D.) Date: Wed, 25 Feb 2004 13:44:44 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: I remember sitting in a meeting with a client and the head of our company. The client asked if we could do a particular thing and the boss said, "yes, these guys can just push a button" while pointing to me and a co-worker. It took us three months to build the button. Gary -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, February 25, 2004 1:31 PM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From jwelz at hotmail.com Wed Feb 25 13:14:03 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Wed, 25 Feb 2004 12:14:03 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: It has begun. I was given the IP of a Terminal Server that I can log into from dial up. I opened a copy of the 97 FE applciation and it offered to convert. Three times I was given various messages that there were unsafe expressions and notwithstanding my agreement to all, the program failed to open and offered no error message. There were conversion errors logged to a table but they all appeared to be errors relating to linked data tables. There was an offer to turn off warnings about unsafe expression messages but when I tried to accept, I was given a message that I had no rights to the registry. I could open the application with the bypass key when I changed it before conversion and I was able to open forms in design mode and view code. I also found that the conversion was to an Access 2000 version of the database rather than 2003. I have had no problem with 'upgrading' (now therre's a misnomer) to Access 2000 as the file simply converted and opened without complaint. I may have to attempt to convert in stages to see if that will work. Fortunately they now allow floppy disk and WinZip on one of the machines so there is a way to do the interim upgrade by Access 2000 off site and move it (no other versions of Access are available on the otherwise highly secured network and there is no dial up file tranfer ability nor ftp and email is restricted by attachment size) to the server after the intervening upgrade to a format that 2003 seems to say it can open. I have the Sybex Word 2000 Developers Handbook that I read about a year ago and I recall that Word permitted digital certificates to supress macro warnings on self signed certificates for use on an intranet. Given that the powers that be like to view the application as a virus and Access in general as a threat to security, does anyone know whether Access 2003 has a capability similar to that of Word. I have been told that there will be no commercially issued certificates such as by Verisign as the cost exceeds what they will allow, but a self signed free certificate to allow home grown 'macros' may be allowed. I'll give dial up another shot tonight. I built the application secured as an mde with login coded in the mde by network login and the accounts they gave me on the test server use a different login name. I should have at least received an 'Unauthorized User' message before I was dumped unless it was the unsafe expressions that forced the abort. Now the big questions: Is there a reason that it didn't offer to convert to 2003 format? What disadvantages does the new format force upon developers. If I build a single unbound form without any code and open it in 2003, will it still only upgrade to 2000? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From gustav at cactus.dk Wed Feb 25 13:23:12 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 20:23:12 +0100 Subject: [AccessD] A97 - 2003 conversion In-Reply-To: References: Message-ID: <15440940699.20040225202312@cactus.dk> Hi J?rgen You should look up Helen's article (part one only, part two to follow!) http://www.helenfeddema.com/access.htm on this topic: accarch119.zip /gustav > It has begun. .. From Lambert.Heenan at AIG.com Wed Feb 25 13:26:25 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 25 Feb 2004 14:26:25 -0500 Subject: [AccessD] A97 - 2003 conversion Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7EC9@xlivmbx12.aig.com> Digital certs for Access 2003 were just covered in Woody's Access watch. Pop over here... http://www.helenfeddema.com/access.htm and go to the bottom of the page and download accarch119.zip. Lambert > -----Original Message----- > From: J?rgen Welz [SMTP:jwelz at hotmail.com] > Sent: Wednesday, February 25, 2004 2:14 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] A97 - 2003 conversion > > It has begun. I was given the IP of a Terminal Server that I can log into > > from dial up. I opened a copy of the 97 FE applciation and it offered to > convert. Three times I was given various messages that there were unsafe > expressions and notwithstanding my agreement to all, the program failed to > > open and offered no error message. > > There were conversion errors logged to a table but they all appeared to be > > errors relating to linked data tables. There was an offer to turn off > warnings about unsafe expression messages but when I tried to accept, I > was > given a message that I had no rights to the registry. I could open the > application with the bypass key when I changed it before conversion and I > was able to open forms in design mode and view code. I also found that > the > conversion was to an Access 2000 version of the database rather than 2003. > > I have had no problem with 'upgrading' (now therre's a misnomer) to Access > > 2000 as the file simply converted and opened without complaint. I may > have > to attempt to convert in stages to see if that will work. Fortunately > they > now allow floppy disk and WinZip on one of the machines so there is a way > to > do the interim upgrade by Access 2000 off site and move it (no other > versions of Access are available on the otherwise highly secured network > and > there is no dial up file tranfer ability nor ftp and email is restricted > by > attachment size) to the server after the intervening upgrade to a format > that 2003 seems to say it can open. > > I have the Sybex Word 2000 Developers Handbook that I read about a year > ago > and I recall that Word permitted digital certificates to supress macro > warnings on self signed certificates for use on an intranet. Given that > the > powers that be like to view the application as a virus and Access in > general > as a threat to security, does anyone know whether Access 2003 has a > capability similar to that of Word. I have been told that there will be > no > commercially issued certificates such as by Verisign as the cost exceeds > what they will allow, but a self signed free certificate to allow home > grown > 'macros' may be allowed. > > I'll give dial up another shot tonight. I built the application secured > as > an mde with login coded in the mde by network login and the accounts they > gave me on the test server use a different login name. I should have at > least received an 'Unauthorized User' message before I was dumped unless > it > was the unsafe expressions that forced the abort. > > Now the big questions: Is there a reason that it didn't offer to convert > to > 2003 format? What disadvantages does the new format force upon > developers. > If I build a single unbound form without any code and open it in 2003, > will > it still only upgrade to 2000? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoi > n.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Feb 25 13:52:11 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Wed, 25 Feb 2004 12:52:11 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: Thank you Gustav & Lambert: And thanks to all members who welcomed me back. Helen's document addresses that aspect of my question exactly. The IT people were telling me that I was dreaming about self-signed certificates. I will forward them the doc file and await their response. Hopefully I can browse the Access help (not vba help yet unfortuantely) files a bit tonight and have a peek at the MSDN online as well. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Heenan, Lambert" > >Digital certs for Access 2003 were just covered in Woody's Access watch. > >Pop over here... > >http://www.helenfeddema.com/access.htm > >and go to the bottom of the page and download accarch119.zip. > >Lambert _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From Oleg_123 at xuppa.com Wed Feb 25 14:01:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 15:01:31 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <18832517527.20040225180248@cactus.dk> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> Message-ID: <36352.63.251.87.214.1077739291.squirrel@heck.bay9.com> Hello again, what about if more then one condition is required ? Like -- SELECT Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0))as OpenPRE_Inv, Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS Open_Inv, Sum(IIf(Not IsNull([First Investigation Document Review]),1,0))AS FirstDocComplete FROM [Ron Data sprT]; and the condition for the OpenPRE_Inc column should be ([Preliminary Investigation Closed])not Null and another column [Pre Inv Disposition]not Null. Same (or actully the opposite) for Open_Inv is there a way to combine it ? I tried with "and", didn't seenm to work SELECT Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS OpenPRE_Inv, --(IsNull([Pre Inv Disposition])) Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0)) AS Open_Inv, --(Not IsNull([Pre Inv Disposition])) Sum(IIf(Not IsNull([First Investigation Document Review]),1,0)) AS FirstDocComplete --( IsNull([Depos Complete])) FROM [Ron Data sprT]; > Hi Oleg > > Ahh, got it now, omit the ID: > > SELECT > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >> the one below gave 321017 and 25515793... >> (they wish they had that many cases) :--) > >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From serbach at new.rr.com Wed Feb 25 14:16:56 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 25 Feb 2004 14:16:56 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040225141656.1283356441.serbach@new.rr.com> Charlotte, >> It you're talking about INTERNet instead of INTRANet, those are not the right circumstances. ?DAPs are intended to be used within a network on machines with the relevant version of Access installed. << Thank you for that, Charlotte. This client definitely wants INTERnet access, not INTRAnet. Hah! His network is just a Windows P2P linking XP Home workstations. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Wed Feb 25 15:36:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:36:37 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F6@main2.marlow.com> Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 15:37:43 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:37:43 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F7@main2.marlow.com> By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 Patricia.O'Connor at DFA.STATE.NY.US Wed Feb 25 15:46:22 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 25 Feb 2004 16:46:22 -0500 Subject: [AccessD] Count query Message-ID: well you could try SELECT Sum(IIf((IsNull([Preliminary Investigation Closed]) AND IsNull([Pre Inv Disposition])),1,0)) AS OpenPRE_Inv, Sum(IIf ((Not IsNull([Preliminary Investigation Closed]) and (Not IsNull([Pre Inv Disposition])) ,1,0)) AS Open_Inv, Sum(IIf((Not IsNull([First Investigation Document Review]) and (IsNull([Depos Complete])),1,0)) AS FirstDocComplete > FROM [Ron Data sprT]; or switch the 1,0 to 0,1 for the open_inv and leave the isnull same as first SELECT Sum(IIf((IsNull([Preliminary Investigation Closed]) AND IsNull([Pre Inv Disposition])),1,0)) AS OpenPRE_Inv, Sum(IIf ((IsNull([Preliminary Investigation Closed]) and (IsNull([Pre Inv Disposition])) ,0,1)) AS Open_Inv, Sum(IIf((Not IsNull([First Investigation Document Review]) and (IsNull([Depos Complete])),1,0)) AS FirstDocComplete FROM [Ron Data sprT]; HTH Patti > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 25, 2004 03:02 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Count query > > > Hello again, > what about if more then one condition is required ? Like -- > > SELECT > Sum(IIf(Not IsNull([Preliminary Investigation > Closed]),1,0))as OpenPRE_Inv, > Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS > Open_Inv, > Sum(IIf(Not IsNull([First Investigation Document > Review]),1,0))AS > FirstDocComplete > FROM [Ron Data sprT]; > > and the condition for the OpenPRE_Inc column should be ([Preliminary > Investigation Closed])not Null and another column [Pre Inv > Disposition]not > Null. Same (or actully the opposite) for Open_Inv > > is there a way to combine it ? I tried with "and", didn't > seenm to work > > SELECT > Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS > OpenPRE_Inv, > --(IsNull([Pre Inv Disposition])) > Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0)) > AS Open_Inv, > --(Not IsNull([Pre Inv Disposition])) > Sum(IIf(Not IsNull([First Investigation Document Review]),1,0)) AS > FirstDocComplete > --( IsNull([Depos Complete])) > FROM [Ron Data sprT]; > > > > Hi Oleg > > > > Ahh, got it now, omit the ID: > > > > SELECT > > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > > FROM > > [Ron Data mid AP] > > WHERE > > (Date() - [MS Date Opened] < 149); > > > > /gustav > > > > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, > >> the one below gave 321017 and 25515793... > >> (they wish they had that many cases) :--) > > > >> SELECT > >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > >> FROM > >> [Ron Data mid AP] > >> WHERE > >> (Date() - [MS Date Opened] < 149); > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Feb 25 15:48:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 16:48:25 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F7@main2.marlow.com> Message-ID: The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:38 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 DWUTKA at marlow.com Wed Feb 25 15:54:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:54:58 -0600 Subject: [AccessD] Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 16:01:08 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:01:08 -0600 Subject: [AccessD] Re: Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F9@main2.marlow.com> I have found that I get done in half the time asked (usually) if I am the only one involved in the project. However, for every person that gets involved (even just to comment on fonts), I can easily multiply the time of development by 150% to 200%! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 25, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 25 16:15:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 25 Feb 2004 16:15:28 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AA@TAPPEEXCH01> Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From cfoust at infostatsystems.com Wed Feb 25 16:17:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 14:17:59 -0800 Subject: [AccessD] Re: OT Quick Question Message-ID: Aren't you talking about the database window? I think Drew is talking about the main Access window. Charlotte Foust -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 25, 2004 2:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them >or not, they are still using VBA. VBA can be used with the UI, for >reasons other then business rules. In fact, the first VBA code I ever >used was to hide the Access Window, something that you can't do without >VBA, and also part of the UI. > >Drew ------------------------------------------------------------------------ -------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 16:40:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:40:20 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:38 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 DWUTKA at marlow.com Wed Feb 25 16:42:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:42:14 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FB@main2.marlow.com> Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Wed Feb 25 16:46:30 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 25 Feb 2004 17:46:30 -0500 Subject: [AccessD] Determining Time for Project References: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> ...first things first Bryan ...you MUST write a product spec that defines everything your project is expected to accomplish ...AND get your boss or client to sign off on it IN WRITING ...then and ONLY then can you talk to anyone about how much time it will take ...the fact that you THINK you know what the application needs won't mean diddly if its not in writing before you start ...someone will want this MINOR change ...and then there'll be the "just add this small feature" bits ...etc, etc, ad infinitum ...only if its in writing and your time estimate is based solely on that spec do you have a viable defense against the changes everyone will inevitably ask for ...if its in writing, you can say "Yes I CAN change that but it'll take another 24 man-hours ...just sign here to authorize the additional time" ...but if its only in your head you can't use that because the requester will almost always say it was his understanding that that was how it was supposed to be from the start and its your problem if it needs fixing ...been there, never going back :(((( ...other than that, I find Drew's WAG method as accurate as most :)))) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Wednesday, February 25, 2004 11:04 AM Subject: [AccessD] Determining Time for Project > I know that this is all subjective, but... > > How do you determine the amount of time required to build an application? > > I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. > > I will be the only one that will be developing it, so I don't have to worry about other people, just me. > > Thanks for any hints, tips or ideas. > > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Unfortunately common sense isn't so common! > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Wed Feb 25 20:17:45 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 25 Feb 2004 18:17:45 -0800 Subject: [AccessD] Backup routines In-Reply-To: Message-ID: <000201c3fc0e$b8f12920$6501a8c0@rock> IMO daily backup routines are not overzealous. At my last place of employ we did more than one daily backup (of the database), in fact: at noon, at 5pm and at midnight. Each morning the midnight copy was burned to a CD and taken off-site. We never had to use one of them in 3+ years. But there's a security in knowing that even if the whole building burns down, there's an offsite backup that can take us back to last midnight. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto Alves Sent: Tuesday, February 24, 2004 4:00 AM To: AccessD List Subject: [AccessD] Backup routines Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 25 17:38:52 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 25 Feb 2004 17:38:52 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AB@TAPPEEXCH01> Aha! I see... Never tried that before (tend to favor MDI interfaces anyways). I saw a code sample on Dev Ashish's site that used the ShowWindow API call to hide it. Is this the one you are using? (I think that may be a little out of the realm of Macro commands ) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 25, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From my.lists at verizon.net Wed Feb 25 17:56:39 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 25 Feb 2004 15:56:39 -0800 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> Message-ID: <403D3637.6010002@verizon.net> IMNSHO, Access databases in production require at minimum a 30 day cycle I use zip to cd to backup the mdb and zip it off the server to my pc, and then have a seperate backup that backs the server mdb to tape at night. Tape backups are stored by the IS dept offsite under our company contract of a 10yr storage, while the zip files are stored on my 80gig hdd for a minumum of 30 days. When the mdb was in production we also moved the older zips (in 1week intervals) to CD Bobby Heid wrote: >I think the answer is: it depends. > >If this is data that cannot be recreated easily and you have no other backup >mechanism in place, I'd say that this is not over-cautious. > >On my machine at home, I do weekly backups. But I use a program called >Replicator to replicate several key folders to another drive, just in case. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto >Alves >Sent: Tuesday, February 24, 2004 7:00 AM >To: AccessD List >Subject: [AccessD] Backup routines > > >Dear Members: >I would like to have your input on this subject. I wrote a Sub to execute >regular BE backups. Everyday thru a month a BE copy is compacted >(DBEngine.CompactDatabase) and renamed and stored in a different folder. >Do you think that such a 30-day backup routine is overzealous??? Thanks for >your opinion, > > -- -Francisco From DWUTKA at marlow.com Wed Feb 25 18:17:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 18:17:17 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FD@main2.marlow.com> I wrote my own eventually. It's just a call to the ShowWindow API. Download and try the AlwaysOnTop demo I have on my site. It not only hides the Access Window, but puts the access form in an 'always on top' state, to stay above the other windows on your desktop. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 5:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Aha! I see... Never tried that before (tend to favor MDI interfaces anyways). I saw a code sample on Dev Ashish's site that used the ShowWindow API call to hide it. Is this the one you are using? (I think that may be a little out of the realm of Macro commands ) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 25, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 25 19:13:48 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:13:48 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: The gold standard for estimating time in software is as follows: Make your best estimate. Multiply the number portion of the estimate by 3 Change the time unit upwards to the next unit. For example. I estimate 2 days 2 X 3 = 6 Days changes to weeks Realistic estimate 6 weeks. Another example. I estimate 1 month 1 X 3 = 3 Months changes to years Realistic estimate = 3 years. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:55 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Determining Time for Project Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 25 19:20:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:20:13 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> Message-ID: You never really said what specifically the problem was, how it expressed itself, nor how it could be avoided. >because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. What does that mean? Just opening ANY MODULE in the application causes Access to lock up? Opening the module with that functionality in it causes ACCESS to go beserk? Stepping into the function with that code? Stepping over that line of code? If opening ANY MODULE causes that then I for one would never use that method. If either of the other three, then I could place it in it's own module and deal with the problem. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Feb 25 19:23:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:23:27 -0500 Subject: [AccessD] Shutting down applications if they are not being us ed In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Message-ID: Drew, May I suggest that you put your web site in your sig? I don't know how to get to your site to get this thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Saturday, February 21, 2004 4:08 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Shutting down applications if they are not being us ed Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew From DWUTKA at marlow.com Wed Feb 25 19:28:51 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:28:51 -0600 Subject: [AccessD] Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FE@main2.marlow.com> LOL, how true that is! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Time for Project The gold standard for estimating time in software is as follows: Make your best estimate. Multiply the number portion of the estimate by 3 Change the time unit upwards to the next unit. For example. I estimate 2 days 2 X 3 = 6 Days changes to weeks Realistic estimate 6 weeks. Another example. I estimate 1 month 1 X 3 = 3 Months changes to years Realistic estimate = 3 years. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:55 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Determining Time for Project Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 19:31:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:31:05 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FF@main2.marlow.com> Opening ANY module. The problem is the VBE. When it's loaded, the callback function slows to a crawl, and everything goes bonkers. It is simple to create a condition statement to 'block' that functionality from running in development though, and set it to normal in regular mode. Personally, I think it's outrageous that MS would incorporate AddressOf, and then have such a HUGE issue with using it. But sometimes, functionality supercedes convenience. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:20 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown You never really said what specifically the problem was, how it expressed itself, nor how it could be avoided. >because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. What does that mean? Just opening ANY MODULE in the application causes Access to lock up? Opening the module with that functionality in it causes ACCESS to go beserk? Stepping into the function with that code? Stepping over that line of code? If opening ANY MODULE causes that then I for one would never use that method. If either of the other three, then I could place it in it's own module and deal with the problem. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 19:31:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:31:35 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF802227900@main2.marlow.com> Http://www.wolfwares.com Sorry, I don't like using sigs...used to use them all the time, now I just don't bother with them! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being us ed Drew, May I suggest that you put your web site in your sig? I don't know how to get to your site to get this thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Saturday, February 21, 2004 4:08 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Shutting down applications if they are not being us ed Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 25 19:39:11 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:39:11 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> Message-ID: Well I found your site by searching back through dozens of your messages 8(, downloaded and played with the A2K version you discussed. Pretty nasty situation. I think I'll pass on that. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com From carbonnb at sympatico.ca Thu Feb 26 04:29:58 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:29:58 -0500 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: Message-ID: <403D8456.12641.19ADF1@localhost> On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: <403D8586.20679.1E50C4@localhost> On 25 Feb 2004 at 15:54, DWUTKA at marlow.com wrote: > Take a WAG. Then double it. Add a few hours of hair pulling and :-))) -- Bryan Carbonnell - carbonnb at sympatico.ca Learn from the mistakes of others. You can't live long enough to make them all yourself. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> Message-ID: <403D8586.2397.1E510A@localhost> On 25 Feb 2004 at 17:46, William Hindman wrote: > ...first things first Bryan ...you MUST write a product spec that > defines everything your project is expected to accomplish ...AND get > your boss or client to sign off on it IN WRITING ...then and ONLY then Ick. I've nevre done that before. I guess I'm going to learn now, eh? > ...other than that, I find Drew's WAG method as accurate as most :)))) Oh, boy :)) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: References: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: <403D8586.31651.1E5088@localhost> On 25 Feb 2004 at 20:13, John W. Colby wrote: > The gold standard for estimating time in software is as follows: > > Make your best estimate. > Multiply the number portion of the estimate by 3 > Change the time unit upwards to the next unit. Cool. 2 years!!!! :) -- Bryan Carbonnell - carbonnb at sympatico.ca Tell me what you need, and I'll tell you how to get along without it. From Oleg_123 at xuppa.com Thu Feb 26 08:09:43 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 26 Feb 2004 09:09:43 -0500 (EST) Subject: [AccessD] Determining Time for Project In-Reply-To: <403D8586.2397.1E510A@localhost> References: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> <403D8586.2397.1E510A@localhost> Message-ID: <45053.63.251.87.214.1077804583.squirrel@heck.bay9.com> yeah, but the contractor is not always the one to make the rules... > On 25 Feb 2004 at 17:46, William Hindman wrote: > >> ...first things first Bryan ...you MUST write a product spec that >> defines everything your project is expected to accomplish ...AND get >> your boss or client to sign off on it IN WRITING ...then and ONLY then > > Ick. I've nevre done that before. I guess I'm going to learn now, eh? > > > >> ...other than that, I find Drew's WAG method as accurate as most :)))) > > Oh, boy :)) > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > You're just jealous because the voices only talk to me. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From jwcolby at colbyconsulting.com Thu Feb 26 09:07:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 10:07:17 -0500 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <403D8456.12641.19ADF1@localhost> Message-ID: The silly part of this whole thing is "the amount of time she initially thought it would be". That's like ME taking my car to my mechanic (I am NOT a mechanic) and telling him how long it should take to swap out my engine. How on God's green earth can she "think how long it will take"? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 5:30 AM To: Access Developers discussion and problemsolving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 26 09:08:57 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:08:57 +0000 Subject: [AccessD] Progress Bar Message-ID: Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From bridgetd at biostat.umn.edu Thu Feb 26 09:16:06 2004 From: bridgetd at biostat.umn.edu (Bridget Doran) Date: Thu, 26 Feb 2004 09:16:06 -0600 (CST) Subject: [AccessD] IIf Message-ID: Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu From ssharkins at bellsouth.net Thu Feb 26 09:21:54 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 26 Feb 2004 10:21:54 -0500 Subject: [AccessD] Progress Bar In-Reply-To: Message-ID: <20040226152151.ZQIK1860.imf24aec.mail.bellsouth.net@SUSANONE> There's one built-in, with the SysCmd function. I'm sure you could find something slicker, but it works OK. Susan H. Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 26 09:22:12 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:22:12 +0100 (CET) Subject: [AccessD] IIf Message-ID: <21471599.1077808932144.JavaMail.www@wwinf3004> Bridget, Try one of the two possibilities below: =iif(Isnull([4]),0,[4]) or =iif([4]=??,0,[4]) Paul Message date : Feb 26 2004, 03:19 PM >From : "Bridget Doran" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] IIf Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 26 09:24:57 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:24:57 +0100 (CET) Subject: [AccessD] Progress Bar Message-ID: <23690516.1077809097343.JavaMail.www@wwinf3004> The one that comes with Access is pretty straight forward to use, I could send an example if you like (and if I can find it) Paul Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From BBarabash at TappeConstruction.com Thu Feb 26 09:26:09 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 26 Feb 2004 09:26:09 -0600 Subject: [AccessD] IIf Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AC@TAPPEEXCH01> Hi Bridget, First of all, yes, IIf can be used in all types of queries. However your syntax is incorrect. The best way to convert null values to zero is to use the built-in Nz function: =Nz([4]) Also, the proper way to check if a field is null is to use the IsNull() function. e.g. IsNull([4]) In a query you can also use the Is Null syntax e.g. [4] Is Null HTH Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Bridget Doran [mailto:bridgetd at biostat.umn.edu] Sent: Thursday, February 26, 2004 9:16 AM To: accessd at databaseadvisors.com Subject: [AccessD] IIf Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From rsmethurst at UK.EY.COM Thu Feb 26 09:30:11 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:30:11 +0000 Subject: [AccessD] Progress Bar Message-ID: Thanks Paul, I'd appreciate that. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Feb 26 09:40:57 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:40:57 +0000 Subject: [AccessD] Progress Bar Message-ID: Sorry, Should have elaborated on this a little more. I would like a progress bar that is form based if possible. Thanks Ryan rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 26/02/2004 15:08 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: [AccessD] Progress Bar Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From paul.hartland at fsmail.net Thu Feb 26 09:45:53 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:45:53 +0100 (CET) Subject: [AccessD] Progress Bar Message-ID: <12946164.1077810353263.JavaMail.www@wwinf3004> ok, create a form and add the progress bar control call it ProgressBar add a cmdbutton and on the click event of the button add the following code Dim intIncrementBar As Integer Dim intDelay As Integer Me.ProgressBar0.Value = 0 For intIncrementBar = 1 To 100 Me.ProgressBar0.Value = intIncrementBar For intDelay = 0 To 50000 Next intDelay Next intIncrementBar This should get you started, if you need any more help let me know..... Paul Message date : Feb 26 2004, 03:37 PM >From : rsmethurst at UK.EY.COM To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Progress Bar Thanks Paul, I'd appreciate that. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Thu Feb 26 09:42:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 07:42:48 -0800 Subject: [AccessD] ListView or TreeView to show directory listing References: <20040224203939.39113.qmail@web20418.mail.yahoo.com> Message-ID: <403E13F8.1010505@shaw.ca> I have been fiddling around with Dir code recently; to check entire disks and came across one quirk you can get Number 76 Runtime errors with files like page.sys or occasionally files with no extension in the name. I was doing it to determine what type of mdb files are on a disk. 2000, XP, 97 etc. Lonnie Johnson wrote: >Thanks guys, those were great responses. The user actually settled for a list box that was populated from the Dir function of a predetermined path. > > >Mike & Doris Manning wrote: > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com >Sent: Tuesday, February 24, 2004 12:28 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] ListView or TreeView to show directory listing > > >A treeview would be 'collapsable', however, it would be a bit more complex >to program. You could create the VB equivalent of a DriveList, FolderList >and Filelist box. (Or just use them, but those would be extra ActiveX >controls in your project). > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson >Sent: Monday, February 23, 2004 11:48 AM >To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD >solving' >Subject: [AccessD] ListView or TreeView to show directory listing > > >I want to be able to display the folders and files of a directory in a list >box type manner. Would this be a listview or treeview control? If so, is >there a wizard you can install to do this on Access XP? I want a collapsable >list to allow the user to highlight a file in any folder they desire. > >p.s. The user does not want the Windows Common Dialog Box. > >Thanks in advance > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Feb 26 09:48:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 10:48:27 -0500 Subject: [AccessD] Many to Many Message-ID: What is the deadline for articles? John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Thu Feb 26 09:53:28 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 26 Feb 2004 07:53:28 -0800 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <403D8456.12641.19ADF1@localhost> Message-ID: Hi Bryan: There is nothing like 'small p' politics within a government or semi-govern-mental agency. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 2:30 AM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 26 09:56:13 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:56:13 +0000 Subject: [AccessD] Progress Bar Message-ID: Thanks a lot Paul, all sorted now. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From martyconnelly at shaw.ca Thu Feb 26 10:07:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 08:07:16 -0800 Subject: [AccessD] A97 - 2003 conversion References: Message-ID: <403E19B4.10006@shaw.ca> There is one caveat I have about Word 2003. If you have any lawyers using it to reproduce or save in Word Perfect format, the conversion driver is no longer there, You can read WP but not write WP type files. so you might want to keep a copy of Word 2002 or 2000 hanging around. I know in the US, you have to submit Superior Court Appeal documents in Word Perfect only. I don't think Canadian courts are that fussy. See http://www.woodyswatch.com/office/archtemplate.asp?v9-n05 Welz wrote: > Thank you Gustav & Lambert: > > And thanks to all members who welcomed me back. > > Helen's document addresses that aspect of my question exactly. The IT > people were telling me that I was dreaming about self-signed > certificates. > > I will forward them the doc file and await their response. > > Hopefully I can browse the Access help (not vba help yet > unfortuantely) files a bit tonight and have a peek at the MSDN online > as well. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > >> From: "Heenan, Lambert" >> >> Digital certs for Access 2003 were just covered in Woody's Access watch. >> >> Pop over here... >> >> http://www.helenfeddema.com/access.htm >> >> and go to the bottom of the page and download accarch119.zip. >> >> Lambert > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Feb 26 10:28:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 11:28:05 -0500 Subject: [AccessD] Progress Bar In-Reply-To: Message-ID: Ryan, Go to my site, click Misc Demos and download the C2DbDemoWaitForm. This is a very nice wait form with the ability to accept messages, cancel button if needed etc. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at uk.ey.com Sent: Thursday, February 26, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Progress Bar Thanks a lot Paul, all sorted now. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 26 10:40:12 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 11:40:12 -0500 Subject: [AccessD] Progress Bar Message-ID: http://www.mvps.org/access/downloads/ProgressBarR1.3.zip is the one I use. It's basically a subform that you drop on your form. You then increment some custom properties of the subform in vba and there is your progress bar. It's pretty easy to use. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> rsmethurst at UK.EY.COM 26-Feb-04 10:08:57 AM >>> Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan From Bryan_Carbonnell at cbc.ca Thu Feb 26 10:41:45 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 11:41:45 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: Yea, well... I know here well enough to be fairly confident that she really meant she hoped that it would only take that long. English is such a finicky language :) Bryan Carbonnell bryan_carbonnell at cbc.ca >>> jwcolby at colbyconsulting.com 26-Feb-04 10:07:17 AM >>> The silly part of this whole thing is "the amount of time she initially thought it would be". That's like ME taking my car to my mechanic (I am NOT a mechanic) and telling him how long it should take to swap out my engine. How on God's green earth can she "think how long it will take"? From Bryan_Carbonnell at cbc.ca Thu Feb 26 11:07:47 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 12:07:47 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: In this case it isn't anything that resembles politics. Its just repeating what was said and NOT what was meant. I KNOW there is a difference in this case. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> accessd at shaw.ca 26-Feb-04 10:53:28 AM >>> Hi Bryan: There is nothing like 'small p' politics within a government or semi-govern-mental agency. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 2:30 AM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Feb 26 11:21:53 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 26 Feb 2004 22:51:53 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278F6@main2.marlow.com> Message-ID: <001201c3fc8d$38cad0f0$8a1865cb@winxp> Drew, I truly appreciate your thoughtfulness and helpful approach in explaining the position in such a nice manner. I would love to have the 2000 version of sample mentioned by you. (My introduction to Access started with version 2000). Thanks a lot for your kind help. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Thursday, February 26, 2004 03:06 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From ssharkins at bellsouth.net Thu Feb 26 12:06:39 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 26 Feb 2004 13:06:39 -0500 Subject: [AccessD] Many to Many In-Reply-To: Message-ID: <20040226180638.BBLI1827.imf20aec.mail.bellsouth.net@SUSANONE> Anytime. I don't have a thing right now -- so as soon as I get a few, we'll publish again. Susan H. What is the deadline for articles? From jwelz at hotmail.com Thu Feb 26 13:18:45 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 26 Feb 2004 12:18:45 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: Thanks Marty: This is for my former Employer - now Client construction company that does not run WordPerfect. I do have lawyer clients running Office 2000 though and will keep track of this tidbit because many run both Word and Wordperfect for their boilderplate. The other news is that the 97 - 2003 conversion appears to run without issue including automation code for Word, Excel, Powerpoint and Project. I haven't tested all aspects yet but those that I have seem to work without issue. A far bigger issue is that they are moving from an MS 2000 Windows to 2003 and the screen fonts are all much smaller. The result of that conversion is that much of my drag and drop pixel based code requires revision. For some reason the drag form now truncates in width notwithstanding that it uses a API calls to determine the width of the text using the actual screen font. The drag distance had a few constants that I hard coded that need to be revised or convert to API based dynamic code. The biggest conversion headache is that a number of fonts have been changed such that they exceed the screen realestate allotted at the original design time. The good news is that the new screen uses smaller screen fonts than the old so while the old and new applications run at 1024*768, the forms use only the left and top 2/3's of the screen. What seems to have messed up the most in the conversion is the fonts on tabs. Most of the other issues relate to ODBC to outside data sources that appear no longer to work. It does look like I can continue to use the Access 97 file ODBC and link data imported into a 97 container to the 2003 application. I'll give this a shot tomorrow. The downside is that I'll have to import into the 97 mdb whereas previously I had only to overwrite the prelinked file. A change in that file format from some kind of text file to a Pervasive SQL database file may yet cause some headaches as the software vendor advises that their ODBC still only works with Access 97 files. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: MartyConnelly > >There is one caveat I have about Word 2003. If you have any lawyers using >it to reproduce or save in Word Perfect format, the conversion driver is no >longer there, You can read WP but not write WP type files. so you might >want to keep a copy of Word 2002 or 2000 hanging around. I know in the US, >you have to submit Superior Court Appeal documents in Word Perfect only. I >don't think Canadian courts are that fussy. >See >http://www.woodyswatch.com/office/archtemplate.asp?v9-n05 _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From DWUTKA at marlow.com Thu Feb 26 13:32:01 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 26 Feb 2004 13:32:01 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF802227902@main2.marlow.com> There is going to be a problem with a 2000 version. It too is going to use the AddressOf (which the 'shutdown' thread is talking about). So it may get goofy if you run it during development. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Thursday, February 26, 2004 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, I truly appreciate your thoughtfulness and helpful approach in explaining the position in such a nice manner. I would love to have the 2000 version of sample mentioned by you. (My introduction to Access started with version 2000). Thanks a lot for your kind help. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Thursday, February 26, 2004 03:06 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 26 16:07:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 17:07:49 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed there. John W. Colby www.ColbyConsulting.com From Lambert.Heenan at AIG.com Thu Feb 26 16:30:04 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 26 Feb 2004 17:30:04 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7ED9@xlivmbx12.aig.com> Hi John, You could try using Regedit. Take a look at the key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Extensions] with luck you'll find .DB listed there and you ca just delete the entry. Lambert > -----Original Message----- > From: John W. Colby [SMTP:jwcolby at colbyconsulting.com] > Sent: Thursday, February 26, 2004 5:08 PM > To: AccessD > Subject: [AccessD] Paradox and Windows stupidity > > Folks, > > I made the mistake of telling a Paradox .Db file to "open with" Access. > Windows has now decided to place the Access symbol on that and try and > open > it with Access all the time. .Db is NOT an extension listed in the "file > types" dialog box so I can't "undo" what I did. And I can't link to these > things (any more) because Access says "wrong file type". Where do I go to > tell Windows that a .Db file is not anything to do with Access? And > please > don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB > is > not listed 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 pharold at proftesting.com Thu Feb 26 17:33:46 2004 From: pharold at proftesting.com (Perry Harold) Date: Thu, 26 Feb 2004 18:33:46 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <001b01c3fcc0$fab3beb0$082da8c0@D58BT131> Hi John If you're running XP you can add the .db as a new file type in .../FileTypes - don't remember if it was the same in 98 or not. It then "should" say it's already associated with something and ask if you want to unassociate it and then create the new association. You "should" then be able to make it be associated with Paradox again. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, February 26, 2004 5:08 PM To: AccessD Subject: [AccessD] Paradox and Windows stupidity Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 mmm at tbig.com Thu Feb 26 18:40:44 2004 From: mmm at tbig.com (Myke Myers) Date: Thu, 26 Feb 2004 19:40:44 -0500 Subject: [AccessD] FYI: Adp Textbox Limitations Message-ID: <00ca01c3fcca$5881c9c0$d701a8c0@tbig1> After spending several frustrating hours testing and searching newsgroups, I have found a flaw in Access adp textboxes. Here's how it looks from here: If you bind the textbox to a field that is NOT a datatype of NTEXT, you can only put 255 characters in the textbox. The weird thing is, if you have a textbox bound to a varchar data type of size 300 and you put 300 characters in the textbox, sometines Access DROPS the first 255 and only shows the last 45 characters! If anyone knows any way around this, i.e., how to bind a textbox to a varchar size 500 and actually put 500 characters in the database, please share. Myke From d.dick at uws.edu.au Thu Feb 26 20:00:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 27 Feb 2004 13:00:12 +1100 Subject: [AccessD] OT:Batch file Question Message-ID: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Hello all WAY OT but... I need a batch file to pause for 'n' seconds Of course the 'pause' command stops a batch file until a key is pressed, but is there something like "pause, 3" where 3 is the delay to pause, in seconds Sorry for the OT post If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au Many thanks Darren From stuart at lexacorp.com.pg Thu Feb 26 20:36:46 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Feb 2004 12:36:46 +1000 Subject: [AccessD] OT:Batch file Question In-Reply-To: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Message-ID: <403F39DE.22181.36B5B3@localhost> On 27 Feb 2004 at 13:00, Darren DICK wrote: > Hello all > WAY OT but... > I need a batch file to pause for 'n' seconds > Of course the 'pause' command stops a batch file until a key is pressed, > but is there something like "pause, 3" where 3 is the delay to pause, in seconds > > Sorry for the OT post > > If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au > Not completely OT, so I'm replying on list since it's also a useful technique within a VBA Shell command. You can do it using CHOICE: CHOICE /T:N,3 >Null will wait for 3 seconds and then continue. It actually puts up a Y/N prompt and waits 3 seconds before defaulting to N. But since you are sending the output to Null - nothing appears to happen for the 3 seconds. You can create a batchfile containing one line File - WAIT.BAT @CHOICE /T:n,%1% > Null Then to wait for 5 seconds, just use WAIT 5 or CALL WAIT 5 -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From d.dick at uws.edu.au Thu Feb 26 21:07:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 27 Feb 2004 14:07:01 +1100 Subject: [AccessD] OT:Batch file Question References: <403F39DE.22181.36B5B3@localhost> Message-ID: <00f301c3fcde$c55b7370$48619a89@DDICK> NO ARCHIVE Again - Stuart to my rescue many many thanks Have a great day DD ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Friday, February 27, 2004 1:36 PM Subject: Re: [AccessD] OT:Batch file Question > On 27 Feb 2004 at 13:00, Darren DICK wrote: > > > Hello all > > WAY OT but... > > I need a batch file to pause for 'n' seconds > > Of course the 'pause' command stops a batch file until a key is pressed, > > but is there something like "pause, 3" where 3 is the delay to pause, in seconds > > > > Sorry for the OT post > > > > If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au > > > Not completely OT, so I'm replying on list since it's also a useful > technique within a VBA Shell command. > > You can do it using CHOICE: > > CHOICE /T:N,3 >Null > will wait for 3 seconds and then continue. > > It actually puts up a Y/N prompt and waits 3 seconds before defaulting to > N. But since you are sending the output to Null - nothing appears to > happen for the 3 seconds. > > You can create a batchfile containing one line > File - WAIT.BAT > @CHOICE /T:n,%1% > Null > > Then to wait for 5 seconds, just use WAIT 5 or CALL WAIT 5 > > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy > http://www.lexacorp.com.pg > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From caa at highway.com.br Thu Feb 26 21:13:18 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Fri, 27 Feb 2004 00:13:18 -0300 Subject: [AccessD] Backup routines In-Reply-To: <000201c3fc0e$b8f12920$6501a8c0@rock> References: <000201c3fc0e$b8f12920$6501a8c0@rock> Message-ID: On Wed, 25 Feb 2004 18:17:45 -0800, Arthur Fuller wrote: > IMO daily backup routines are not overzealous. At my last place of > employ we did more than one daily backup (of the database), in fact: at > noon, at 5pm and at midnight. Each morning the midnight copy was burned > to a CD and taken off-site. > > We never had to use one of them in 3+ years. But there's a security in > knowing that even if the whole building burns down, there's an offsite > backup that can take us back to last midnight. > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos > Alberto Alves > Sent: Tuesday, February 24, 2004 4:00 AM > To: AccessD List > Subject: [AccessD] Backup routines > > > Dear Members: > I would like to have your input on this subject. I wrote a Sub to > execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > > Do you think that such a 30-day backup routine is overzealous??? Thanks > for your opinion, Thanks for all replies. Answering some questions, there is a network backup routine that overwrites last week backup (i.e.: this Monday backup overwrites last Monday backup), it is performed on removable tape, users got a corrupted database and all five copies were faulty too and there are no offsite copies. So I decided to set backup on a daily basis. See code below... >>> Dim strPATH As String, strPATH_BKP As String, strCOMPACT As String Dim strBD As String, strPREFIX As String, strTEMP As String, ReturnValue strPATH = "your_forder" strPATH_BKP = "new_folder" strBD = "DB_name" strCOMPACT = "BEFORE_COMPACT" strTEMP = "TEMP" strPREFIX = Format(Day(Date), "00") ReturnValue = SysCmd(acSysCmdSetStatus, "your_msg") If strPREFIX = 31 Then If Dir(strPATH_BKP & strCOMPACT & Chr(95) & strBD) <> "" Then Kill strPATH_BKP & strCOMPACT & Chr(95) & strBD DoEvents End If FileCopy strPATH & strBD, strPATH_BKP & strBD DoEvents Name strPATH_BKP & strBD As strPATH_BKP & strCOMPACT & Chr(95) & strBD DoEvents DBEngine.CompactDatabase strPATH & strBD, _ strPATH & strTEMP & Chr(95) & strBD, , , _ ";pwd=BD_PWD" DoEvents Kill strPATH & strBD DoEvents Name strPATH & strTEMP & Chr(95) & strBD As strPATH & strBD DoEvents Else FileCopy strPATH & strBD, strPATH_BKP & strBD If Dir(strPATH_BKP & strPREFIXO & Chr(95) & strBD) <> "" Then Kill strPATH_BKP & strPREFIXO & Chr(95) & strBD DoEvents End If DBEngine.CompactDatabase strPATH_BKP & strBD, _ strPATH_BKP & strPREFIXO & Chr(95) & strBD, , , _ ";pwd=BD_pwd" DoEvents Kill strPATH_BKP & strBD DoEvents End If ReturnValue = SysCmd(acSysCmdClearStatus) MsgBox "Backup completado com sucesso.", vbExclamation + vbOKOnly, "Backup" >>> ;-) -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From stuart at lexacorp.com.pg Thu Feb 26 21:31:05 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Feb 2004 13:31:05 +1000 Subject: [AccessD] OT:Batch file Question In-Reply-To: <403F39DE.22181.36B5B3@localhost> References: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Message-ID: <403F4699.18227.121A059@localhost> On 27 Feb 2004 at 12:36, Stuart McLachlan wrote: > > > Not completely OT, so I'm replying on list since it's also a useful > technique within a VBA Shell command. > > You can do it using CHOICE: > But only if you are using W9X :-( MS in their wisdom have not used it in NT/2000/XP ! An alternative is to PING an unreachable address PING 0.0.0.1 -n 1 -w 5000 > Null will time out after 5,000 milliseconds ( Just make sure that 0.0.0.1 or whatever IP address use is unreachable) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From martyconnelly at shaw.ca Fri Feb 27 01:37:07 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 23:37:07 -0800 Subject: [AccessD] Re: Determining Time for Project References: Message-ID: <403EF3A3.9070501@shaw.ca> Ack. I just realized you are in Canadian Silly service. Make sure you have a signed agreement with your boss or preferrably the personnel dept. that you have a job to return to. I had a friend who worked with Transport Canada and she was seconded outside the Department for six months to a year to get a major air traffic control system back on track. I insisted that she get a piece of paper saying she would return with same seniority and position. When she returned nobody wanted to know her and they tried to tell her she had abandoned her position, without that paper she would have been in PSAC arbitration for months without pay. Don't trust anyone without it being in writing , I have seen too many people in the Civil Service lie through their teeth. It probably won't happen but protect yourself anway. Bryan Carbonnell wrote: >In this case it isn't anything that resembles politics. > >Its just repeating what was said and NOT what was meant. I KNOW there >is a difference in this case. > >Bryan Carbonnell >bryan_carbonnell at cbc.ca > > > > >>>>accessd at shaw.ca 26-Feb-04 10:53:28 AM >>> >>>> >>>> >Hi Bryan: > >There is nothing like 'small p' politics within a government or >semi-govern-mental agency. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan >Carbonnell >Sent: Thursday, February 26, 2004 2:30 AM >To: Access Developers discussion and problem solving >Subject: RE: Re: [AccessD] Re: Determining Time for Project > > >On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > > > >>Non-developers never understand why it takes so long. They figure >> >> >if > > >>they throw a few more people at it or leave out a few things, you >> >> >can > > >>do it in a week ... Or a month ... Or 90 days ... Or whatever. I >> >> > >It wasn't so much she didn't understand why I needed that much time. > >She seemed to understand that, it's just that she didn't like it. > >We are undergoing some pretty significant changes in the department >and I get myself secconded for 4 times the amount of time she >initially thought it would be. That's why she didn't appreciate it. > >Oh well, the seccondment was *HER* idea anyway :) > >-- >Bryan Carbonnell - carbonnb at sympatico.ca >Artificial intelligence is no match for natural stupidity. > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jarus at amerinet-gpo.com Fri Feb 27 06:18:10 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Fri, 27 Feb 2004 06:18:10 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From jwcolby at colbyconsulting.com Fri Feb 27 06:48:36 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 07:48:36 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwilliams_78704 at yahoo.com Fri Feb 27 07:32:09 2004 From: dwilliams_78704 at yahoo.com (dan williams) Date: Fri, 27 Feb 2004 05:32:09 -0800 (PST) Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <20040227133209.40520.qmail@web9808.mail.yahoo.com> Well, I still have a need for moving old Paradox data to access, and I keep a copy of Access 2.0 around for that reason. Once we started using Access 97, the import for Paradox stoped working. If you need in of the files for the import - I think it will as about a file named 'pardox.net', I have a copy of it if you need it. --- "John W. Colby" wrote: > LOL. If I HAD paradox I might do that. The job is > to get the data out of > the Paradox DB files into Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Terri Jarus > Sent: Friday, February 27, 2004 7:18 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Paradox and Windows stupidity > > > Not sure exactly the problem - but couldn't you > either start up Paradox and > open the file via the program which should make the > file type change OR > change the extension and do an Open with ... Paradox > or whatever to get > Access off of it? > > Hope this makes sense - don't know if it will help. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> > Folks, > > I made the mistake of telling a Paradox .Db file to > "open with" Access. > Windows has now decided to place the Access symbol > on that and try and open > it with Access all the time. .Db is NOT an > extension listed in the "file > types" dialog box so I can't "undo" what I did. And > I can't link to these > things (any more) because Access says "wrong file > type". Where do I go to > tell Windows that a .Db file is not anything to do > with Access? And please > don't say Explorer/Tools/FolderOptions/File Types > because, as I said, DB is > not listed 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 > > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools From Rich_Lavsa at pghcorning.com Fri Feb 27 08:24:15 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Fri, 27 Feb 2004 09:24:15 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <833956F5C117124A89417638FDB11290EBD0E7@goexchange.pghcorning.com> I never liked going to "Explorer/Tools/FolderOptions/File Types" to change my file associations. I do it cause I want to keep up, however sometimes I get frustrated and use the old "File Manager". If you remember the old "File Manager" the tool before Windows Explorer and My Computer and how to associate file with it then I'd suggest this as a nice little tool for your tool kit. This version actually works for WinNT, 2000, and XP. Here is a copy of the exe that I found to change file associations with from time to time when the new tools just won't cut it. http://www.kellys-korner-xp.com/regs_edits/WINFILE.EXE G'luck, Rich -----Original Message----- From: dan williams [mailto:dwilliams_78704 at yahoo.com] Sent: Friday, February 27, 2004 8:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity Well, I still have a need for moving old Paradox data to access, and I keep a copy of Access 2.0 around for that reason. Once we started using Access 97, the import for Paradox stoped working. If you need in of the files for the import - I think it will as about a file named 'pardox.net', I have a copy of it if you need it. --- "John W. Colby" wrote: > LOL. If I HAD paradox I might do that. The job is > to get the data out of > the Paradox DB files into Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Terri Jarus > Sent: Friday, February 27, 2004 7:18 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Paradox and Windows stupidity > > > Not sure exactly the problem - but couldn't you > either start up Paradox and > open the file via the program which should make the > file type change OR > change the extension and do an Open with ... Paradox > or whatever to get > Access off of it? > > Hope this makes sense - don't know if it will help. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> > Folks, > > I made the mistake of telling a Paradox .Db file to > "open with" Access. > Windows has now decided to place the Access symbol > on that and try and open > it with Access all the time. .Db is NOT an > extension listed in the "file > types" dialog box so I can't "undo" what I did. And > I can't link to these > things (any more) because Access says "wrong file > type". Where do I go to > tell Windows that a .Db file is not anything to do > with Access? And please > don't say Explorer/Tools/FolderOptions/File Types > because, as I said, DB is > not listed 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 > > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Fri Feb 27 08:58:33 2004 From: actebs at actebs.com.au (ACTEBS) Date: Sat, 28 Feb 2004 01:58:33 +1100 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <000401c3fd42$2e31f280$0b08a8c0@carltonone.local> John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Fri Feb 27 09:16:25 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 27 Feb 2004 15:16:25 +0000 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Hi All, Does anyone know how I can "autosize " columns in a datasheet form Similar to : Columns("A:B").EntireColumn.AutoFit in Excel. Is this possible? Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From deanellis at iprimus.com.au Fri Feb 27 09:24:43 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Sat, 28 Feb 2004 01:54:43 +1030 (Cen. Australia Daylight Time) Subject: [AccessD] BE UPGRADER Message-ID: <403F613B.000003.43591@jedel> Hi all, I'm at the stage where I need to send out and updated version of my BE DB. Darren put me onto the BE Updater and I've been working through how to use it and have found myself lost with the instructions. I created a backup of the BE and began using this for development. I created some new tables and added them to the BE Upgrader. What I don't understand is how do these new tables get to the users BE DB? Where do I have to put the tables? Do I send the BE along with teh FE to the user and if so how can it be looking for a second BE with the same name in a diferent file path? I'm afraid the instructions that I have are not real clear on the steps needed to finish the task at hand and that's add some tables to the users BE any help would e great. Cheers JEDEL From rsmethurst at UK.EY.COM Fri Feb 27 09:37:19 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 27 Feb 2004 15:37:19 +0000 Subject: [AccessD] 'Autosize' datasheet columns Message-ID: Sorry, wrong heading! rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 27/02/2004 15:16 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Paradox and Windows stupidity Hi All, Does anyone know how I can "autosize " columns in a datasheet form Similar to : Columns("A:B").EntireColumn.AutoFit in Excel. Is this possible? Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Bryan_Carbonnell at cbc.ca Fri Feb 27 09:50:31 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 10:50:31 -0500 Subject: [AccessD] BE UPGRADER Message-ID: To answer your question, all you need to distrubute to the end user is your FE. No need to send the BE, that is the whole purpose of the BEU. It sounds like you missed the very first step of the whole process, and that is to install the BEU components into your FE. Re-read page 2 and 3 of the instructions. It tells you how to install the BEU into your FE. Once it's in your FE, then you can start using it to create the changes in the BE. Then once you have made all the changes you distribute the FE, with the BEU code in it, to your user. The first time they run the new FE, the BEU code will run and update the BE. If this doesn't make sense, ask and I'll try and be clearer. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> deanellis at iprimus.com.au 27-Feb-04 10:24:43 AM >>> Hi all, I'm at the stage where I need to send out and updated version of my BE DB. Darren put me onto the BE Updater and I've been working through how to use it and have found myself lost with the instructions. I created a backup of the BE and began using this for development. I created some new tables and added them to the BE Upgrader. What I don't understand is how do these new tables get to the users BE DB? Where do I have to put the tables? Do I send the BE along with teh FE to the user and if so how can it be looking for a second BE with the same name in a diferent file path? I'm afraid the instructions that I have are not real clear on the steps needed to finish the task at hand and that's add some tables to the users BE any help would e great. From reuben at gfconsultants.com Fri Feb 27 09:49:47 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 27 Feb 2004 10:49:47 -0500 Subject: [AccessD] BE UPGRADER In-Reply-To: <403F613B.000003.43591@jedel> Message-ID: Dean, the BEU is designed for you to define the parts of the table in steps. You first define the table, then define each field, define any indexes, and finally define any relationships. This may take several steps. I know I have added tables with as many as 20 lines in the BEU. This is all done in the FE and all you send to the user is the new FE. When you issue a new FE to the user, the BEU will create this table upon the next start up. There is no need to create the tables before hand. These days I never create a table manually. Even if I am just testing some ideas I use the BEU to make any needed changes to the BE. I haven't manually changed a BE since we finished the BEU. If you have specific questions please ask them. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dean Ellis > Sent: Friday, February 27, 2004 10:25 AM > To: AccessD > Subject: [AccessD] BE UPGRADER > > > Hi all, I'm at the stage where I need to send out and updated > version of my BE DB. > Darren put me onto the BE Updater and I've been working through how to use > it and have found myself lost with the instructions. I created a backup of > the BE and began using this for development. I created some new tables and > added them to the BE Upgrader. What I don't understand is how do these new > tables get to the users BE DB? Where do I have to put the tables? > Do I send > the BE along with teh FE to the user and if so how can it be looking for a > second BE with the same name in a diferent file path? I'm afraid > the instructions that I have are not real clear on the steps > needed to finish the task at hand and that's add some tables to > the users BE > any help would e great. Cheers JEDEL > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From weeden1949 at hotmail.com Fri Feb 27 10:08:34 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Fri, 27 Feb 2004 10:08:34 -0600 Subject: [AccessD] Confused-On a Friday... References: Message-ID: This is more of an administrative question...and probably a stupid one...but it's Friday... I'm changing my [accessD] and [dba-tech] delivery from weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is bouncing too many. I already did this on the website. Do I still have to submit any questions thru my weeden1949 or from starband? Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, should I unsubscribe as weeden1949, then resubscribe as GregSmith at starband.net and rejoin the lists? Of course, if this goes through, it'll answer PART of the questions automatically... Thanks! Greg Smith GregSmith at Starband.Net or aka weeden1949 at hotmail.com From garykjos at hotmail.com Fri Feb 27 10:45:11 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 27 Feb 2004 10:45:11 -0600 Subject: [AccessD] Confused-On a Friday... Message-ID: If you don't mind the duplicate mail volume, you can stay subscribed under both addresses and then reply or post from either. Or you could set one as "digest" mode and receive only one post per day of all the posts made that day and still be allowed to post from either address. The e-mail address you are subscribed under is what defines your subscription, not the name you provide. So each e-mail address is a seperate subscription. Gary Kjos garykjos at hotmail.com >From: "Greg Smith" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Confused-On a Friday... >Date: Fri, 27 Feb 2004 10:08:34 -0600 > >This is more of an administrative question...and probably a stupid >one...but >it's Friday... > >I'm changing my [accessD] and [dba-tech] delivery from >weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is >bouncing >too many. I already did this on the website. > >Do I still have to submit any questions thru my weeden1949 or from >starband? >Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, >should I unsubscribe as weeden1949, then resubscribe as >GregSmith at starband.net and rejoin the lists? > >Of course, if this goes through, it'll answer PART of the questions >automatically... > >Thanks! > >Greg Smith >GregSmith at Starband.Net or aka weeden1949 at hotmail.com _________________________________________________________________ Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From GregSmith at starband.net Fri Feb 27 11:05:47 2004 From: GregSmith at starband.net (GregSmith at starband.net) Date: Fri, 27 Feb 2004 12:05:47 -0500 (EST) Subject: [AccessD] Test - Do Not Archive In-Reply-To: References: Message-ID: <1730.216.43.21.235.1077901547.squirrel@cetus.email.starband.net> Testing. Greg From Bryan_Carbonnell at cbc.ca Fri Feb 27 11:08:40 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 12:08:40 -0500 Subject: [AccessD] Confused-On a Friday... Message-ID: It depends. If you subscribed under the new address, then you will need to unsub your hotmail account. If you *CHANGED* your address, and confirmed the change, on the web site, then you don't need to do anything else to your hotmail account but you will need to post from your starband account. Bryan Carbonnell bryan_carbonnell at cbc.ca Your neighbourhood listmaster from work >>> weeden1949 at hotmail.com 27-Feb-04 11:08:34 AM >>> This is more of an administrative question...and probably a stupid one...but it's Friday... I'm changing my [accessD] and [dba-tech] delivery from weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is bouncing too many. I already did this on the website. Do I still have to submit any questions thru my weeden1949 or from starband? Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, should I unsubscribe as weeden1949, then resubscribe as GregSmith at starband.net and rejoin the lists? Of course, if this goes through, it'll answer PART of the questions automatically... Thanks! Greg Smith GregSmith at Starband.Net or aka weeden1949 at hotmail.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Feb 27 11:11:07 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 12:11:07 -0500 Subject: [AccessD] Test - Do Not Archive Message-ID: It archives automatically. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> GregSmith at starband.net 27-Feb-04 12:05:47 PM >>> Testing. Greg -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 27 12:15:41 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 27 Feb 2004 11:15:41 -0700 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report? Message-ID: <108220-220042527181541791@christopherhawkins.com> Here's some behavior that took me completely by surprise. Perhaps you can tell me why it's not working. Be warned, this one's longer than your average mail. THE SITUATION: I am building Yet Another Effing Billing System for a client of mine, an outsourced IT shop that send technicians out to take care of customers' networks. The client wants his guys to be entering their service visits the instant they're done, but in practice they're getting entered a few days leter, when the guys get around to it. So, I've been asked to build a Gap Report - a report that will indicate the number of days between the occurrance of a service and the date it was actually keyed into the database. THE REPORT: I built a query that includes (among other fields) ServiceDate (the date the service was actually performed) and CreateDate (the date the service was keyed into the database) from a table. I've created a field called Gap that uses DateDiff to get the number of days between ServiceDate and Create date. So: "SELECT Technician, CreateDate, ServiceDate, DateDiff("d",CreateDate, ServiceDate) AS Gap, ServiceDescription, CustomerID FROM Service" Now...in the report. I have created a report whose RecordSource is set to my Gap query. I created a header and footer for the Technician, inside which is a header and footer for the ServiceDate. Inside that is the Detail section, which includes the CreateDate, Technician's Name, Customer, Service Description, and most importantly, the Gap field. Here's where it gets interesting. I wanted to calculate an average Gap for each Technician. So I put a field named ItemCount in the footer section of the Technician group with it's ControlSource set to "Count(CustomerID)" and it works perfectly - it gives me the number of rows in the Technician's Details. To get an average, I need to add up all the individual Gap figures, so I put a field named TotalGap in the footer section of the Technician group, with it's ControlSource set to "Sum(Gap)". That works fine too. THE PROBLEM: Now, it's time to divide to get an average. I put a field named AverageGap in the Technician's footer, with the ControlSource "[BlockGapSum]/[ItemCount]". When I run the report, this field displays #Name!. Usually, I only see #Name! if there is no data for a given field. But I have all the elements tha the AverageGap field needs - the calculation in AverageGap simply isn't working, and I'm not sure why. Ideas? -Christopher- From gustav at cactus.dk Fri Feb 27 12:33:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 27 Feb 2004 19:33:34 +0100 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report? In-Reply-To: <108220-220042527181541791@christopherhawkins.com> References: <108220-220042527181541791@christopherhawkins.com> Message-ID: <3438279993.20040227193334@cactus.dk> Hi Christopher Looks like AverageGap is a calculated textbox. Try: =[BlockGapSum]/[ItemCount] But where did [BlockGapSum] come from? Shouldn't it be [TotalGap]? /gustav > THE PROBLEM: > Now, it's time to divide to get an average. I put a field named > AverageGap in the Technician's footer, with the ControlSource > "[BlockGapSum]/[ItemCount]". When I run the report, this field > displays #Name!. > Usually, I only see #Name! if there is no data for a given field. > But I have all the elements tha the AverageGap field needs - the > calculation in AverageGap simply isn't working, and I'm not sure why. > Ideas? > -Christopher- From Lambert.Heenan at AIG.com Fri Feb 27 12:36:47 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 27 Feb 2004 13:36:47 -0500 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report ? Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7EE5@xlivmbx12.aig.com> Your average calculation is "[BlockGapSum]/[ItemCount]", but you just told us that the control that holds the total gap is called "TotalGap", so change the average calculation to [TotalGap]/ItemCount]. That *should* do it! :-) Lambert > -----Original Message----- > From: Christopher Hawkins [SMTP:clh at christopherhawkins.com] > Sent: Friday, February 27, 2004 1:16 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] SUM-ing results of a DateDiff Operation in a > report? > > THE REPORT: > > I've created a field called Gap that uses DateDiff to get the number of > days between > ServiceDate and Create date. So: > > "SELECT Technician, CreateDate, ServiceDate, DateDiff("d",CreateDate, > ServiceDate) AS Gap, ServiceDescription, CustomerID FROM Service" > I wanted to calculate an average Gap for each Technician. So I put a > field named ItemCount in the footer section of the Technician group > with it's ControlSource set to "Count(CustomerID)" and it works > perfectly - it gives me the number of rows in the Technician's > Details. > > To get an average, I need to add up all the individual Gap figures, > so I put a field named TotalGap in the footer section of the > Technician group, with it's ControlSource set to "Sum(Gap)". That > works fine too. > > THE PROBLEM: > > Now, it's time to divide to get an average. I put a field named > AverageGap in the Technician's footer, with the ControlSource > "[BlockGapSum]/[ItemCount]". When I run the report, this field > displays #Name!. > > Usually, I only see #Name! if there is no data for a given field. > But I have all the elements tha the AverageGap field needs - the > calculation in AverageGap simply isn't working, and I'm not sure why. > > Ideas? > > -Christopher- > From Jdemarco at hudsonhealthplan.org Fri Feb 27 14:22:36 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 27 Feb 2004 15:22:36 -0500 Subject: [AccessD] A2K ODE setup wizard?? Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FDC9@TTNEXCHSRV1.hshhp.com> There's a setup wizard in A97 ODE but I don't see one in A2K. Is there one? Will the A97 version work to set up a run-time A2K install? TIA Jim DeMarco Director Product Development Hudson Health Plan From john at winhaven.net Fri Feb 27 15:15:51 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 15:15:51 -0600 Subject: [AccessD] burned by word Message-ID: Gustav: Is this bad news? http://catless.ncl.ac.uk/Risks/23.12.html#subj4 John From DElam at jenkens.com Fri Feb 27 15:25:52 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 27 Feb 2004 15:25:52 -0600 Subject: [AccessD] burned by word Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BB60@natexch.jenkens.com> We have a security program in place that asks if you want to clean the word document before sending it. That way if you created it from a previous document, that previous information would be removed. We did this after we heard about a case where a real estate company was burned by this same feature. They sent a lease agreement to a potential tenant to look over and sign. It had been created from a previous agreement with a lower rent. The potential tenant discovered the lower rent given to another tenant and demanded the lower price based on the document. Debbie -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, February 27, 2004 3:16 PM To: _DBA-Access Subject: [AccessD] burned by word Gustav: Is this bad news? http://catless.ncl.ac.uk/Risks/23.12.html#subj4 John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jwcolby at colbyconsulting.com Fri Feb 27 15:39:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 16:39:26 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: <000401c3fd42$2e31f280$0b08a8c0@carltonone.local> Message-ID: The problem is that I don't own Paradox so I can't do that. I can't just say "none" so that doesn't work. Once you "associate" something with a file type you are screwed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Friday, February 27, 2004 9:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Paradox and Windows stupidity John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 27 15:42:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 27 Feb 2004 13:42:55 -0800 Subject: [AccessD] A2K ODE setup wizard?? Message-ID: I has a different name in A2k. It's the Packaging Wizard, I believe. And no, each setup version will only work with its own format. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, February 27, 2004 12:23 PM To: AccessD (E-mail) Subject: [AccessD] A2K ODE setup wizard?? There's a setup wizard in A97 ODE but I don't see one in A2K. Is there one? Will the A97 version work to set up a run-time A2K install? TIA Jim DeMarco Director Product Development Hudson Health Plan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 27 15:44:49 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 15:44:49 -0600 Subject: [AccessD] burned by word In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0106BB60@natexch.jenkens.com> Message-ID: I've been converting files into Acrobat 6 for a client lately and noticed that there is a switch to exclude this type of data. It is off by default. I haven't tried it with it set to allow so I'm not sure how much gets through to the acrobat file. John From serbach at new.rr.com Fri Feb 27 15:55:11 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 15:55:11 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <20040227155511.838642399.serbach@new.rr.com> John, I've come late to this discussion. I'll pass your question on to the Paradox forum I subscribe to. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From wdhindman at bellsouth.net Fri Feb 27 15:53:01 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 27 Feb 2004 16:53:01 -0500 Subject: [AccessD] burned by word References: Message-ID: <016001c3fd7c$1209a5a0$6101a8c0@dejpolsys> ...Woody's had a number of articles on this problem recently ...it can be readily controlled by the proper option selections but of course MS never warned anyone about it until Woody forced the issue ...the fixes are all posted on Woody's :( William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Bartow" To: "Access Developers discussion and problem solving" Sent: Friday, February 27, 2004 4:44 PM Subject: RE: [AccessD] burned by word > I've been converting files into Acrobat 6 for a client lately and noticed > that there is a switch to exclude this type of data. It is off by default. I > haven't tried it with it set to allow so I'm not sure how much gets through > to the acrobat file. > > John > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Feb 27 16:03:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 17:03:24 -0500 Subject: [AccessD] Watching data Message-ID: I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? John W. Colby www.ColbyConsulting.com From john at winhaven.net Fri Feb 27 16:04:20 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 16:04:20 -0600 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: John, You should be able to completely delete the association. Open Regedit open the HKEY_CLASSES_ROOT tree find .db right click on it and choose delete voila If you want to test it out try it on .txt first. then try to open a text file. Windows will say it can't automatically open it and ask which program you want to try it with. HTH, John R. Bartow WinHaven LLC PO Box 130 Winneconne, WI 54986 920-582-7574 john at winhaven.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity The problem is that I don't own Paradox so I can't do that. I can't just say "none" so that doesn't work. Once you "associate" something with a file type you are screwed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Friday, February 27, 2004 9:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Paradox and Windows stupidity John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Feb 27 16:11:52 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 16:11:52 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <20040227161152.291992971.serbach@new.rr.com> John, I haven't posted your question to the Paradox forum yet, but a possibility occured to me: can you install Access' support for Paradox imports? I forget what it's called, but, at least in Access 2000 and 97, I don't believe support for Paradox files is installed by default; it's a separate install option on the Office CDs. Might that help? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Don't light a match 'til ya know which end of the dog is barkin'." - Dave Barry From martyconnelly at shaw.ca Fri Feb 27 17:07:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Feb 2004 15:07:23 -0800 Subject: [AccessD] Paradox and Windows stupidity References: Message-ID: <403FCDAB.1090000@shaw.ca> Another way to change this, is go to RUN then CMD and then type in "assoc.db=" without quotes That sets the db file association to blank Then when you click on filename it will ask for a program to open the file with For a complete list of standard file associations with WinXP http://www.dougknox.com/xp/tips/xp_fileassoc.txt For bigger fixes on things like IE or MSI or ZIP via REG file see: http://www.dougknox.com/xp/file_assoc.htm To reset all WinXP file associations back to standard http://www.dougknox.com/xp/fileassoc/xp_fileassoc.zip Oh by the way unless you are using Jet 7.0 you will have trouble writing to paradox files and perhaps reading (can't remember have to read the update file manifests on MS site, It might have been fixed in Jet 6.0) This was due to Borland - MS court cases or just general ill will. They finally kissed and made up. John W. Colby wrote: >Folks, > >I made the mistake of telling a Paradox .Db file to "open with" Access. >Windows has now decided to place the Access symbol on that and try and open >it with Access all the time. .Db is NOT an extension listed in the "file >types" dialog box so I can't "undo" what I did. And I can't link to these >things (any more) because Access says "wrong file type". Where do I go to >tell Windows that a .Db file is not anything to do with Access? And please >don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is >not listed there. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Fri Feb 27 17:27:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 18:27:04 -0500 Subject: [AccessD] Importing (or linking to) Paradox files Message-ID: My client sent me an email 3 weeks ago with three Paradox .db files attached. I was able to successfully link to 2 of those 3 files, but the third says "file not the expected format". The client just sent me 60 of these files which I need to import into Access. ALL of them now say "not the expected format", including the same file names of the two that previously imported. My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? The client says that he installed a SP for Paradox 11 in the last 3 weeks. Could that have screwed around with the files and made them into a format that Access no longer understands? To make things even Murkier, he claims that he can open them just fine there. Hmmmm. John W. Colby www.ColbyConsulting.com From clh at christopherhawkins.com Fri Feb 27 17:26:58 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 27 Feb 2004 16:26:58 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <95540-220042527232658264@christopherhawkins.com> I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- From davesharpe2 at cox.net Fri Feb 27 17:50:49 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 18:50:49 -0500 Subject: [AccessD] Getting the start and end dates of the current week References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <001001c3fd8c$87506eb0$dd2f0a44@bcsext6137> Christopher Look at using the WeekDay function. It returns 1 =Sunday 2 =Monday 3 =Tuesday 4 =Wednesday 5 =Thursday 6 =Friday 7 =Saturday Dave ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Friday, February 27, 2004 6:26 PM Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 18:04:40 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 19:04:40 -0500 Subject: [AccessD] Getting the start and end dates of the current week References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <001b01c3fd8e$76478d90$dd2f0a44@bcsext6137> Christopher- Possibly working with the following You may be able to get where You need to go. Dave Function DayOne() Dim DayNow As Integer Dim Day1 As Variant Dim Day7 As Variant DayNow = Weekday(Now()) Select Case DayNow Case Is = 1 Day1 = Now() Day7 = Now() + 6 Case Is = 2 Day1 = Now() - 1 Day7 = Now() + 5 Case Is = 3 Day1 = Now() - 2 Day7 = Now() + 4 Case Is = 4 Day1 = Now() - 3 Day7 = Now() + 3 Case Is = 5 Day1 = Now() - 4 Day7 = Now() + 2 Case Is = 6 Day1 = Now() - 5 Day7 = Now() + 1 Case Is = 7 Day1 = Now() - 6 Day7 = Now() End Select End Function ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Friday, February 27, 2004 6:26 PM Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 18:52:32 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 19:52:32 -0500 Subject: [AccessD] Importing (or linking to) Paradox files References: Message-ID: <002301c3fd95$25f20bc0$dd2f0a44@bcsext6137> John I know nothing about Paradox but, I found the following VB6 code that might help. http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=47621&lngWId=1 Using ADO & ADOX, convert between various database formats like Text, Access, Excel, dBASE, Paradox & HTML. This is a NEW VERSION of Any-to-Any Database converter. Can You compile ? If not, and You're interested in trying; I can compile and send to you. Dave ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Friday, February 27, 2004 6:27 PM Subject: [AccessD] Importing (or linking to) Paradox files My client sent me an email 3 weeks ago with three Paradox .db files attached. I was able to successfully link to 2 of those 3 files, but the third says "file not the expected format". The client just sent me 60 of these files which I need to import into Access. ALL of them now say "not the expected format", including the same file names of the two that previously imported. My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? The client says that he installed a SP for Paradox 11 in the last 3 weeks. Could that have screwed around with the files and made them into a format that Access no longer understands? To make things even Murkier, he claims that he can open them just fine there. Hmmmm. 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 Fri Feb 27 19:01:50 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 27 Feb 2004 18:01:50 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: I wrote a few standard functions that give me fiscal year (Oct 31 year end, good old two digit format) and start and end dates of the current/next week that could serve as a starting point. These should be regionalized for different weekday start of week dates but works for Canada/US. Function fnFiscalYr() If DatePart("m", Date) > 10 Then fnFiscalYr = Format$(Format$(Date, "yy") + 1, "00") Else fnFiscalYr = Right$(Format$(Date, "yy"), 2) End If End Function Function fnLastOfThisWeek() As Date fnLastOfThisWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 7 - WeekDay(Date)) End Function Function fnLastOfNextWeek() As Date 'change to + 7 for current week fnLastOfNextWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 14 - WeekDay(Date)) End Function Function fnFirstOfNextWeek() As Date fnFirstOfNextWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 8 - WeekDay(Date)) End Function Function fnLastOfMonth() As Date fnLastOfMonth = CDate(Format$(DateAdd("m", 1, Date), "m/1/yy")) - 1 End Function Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Christopher Hawkins" > >I need a function that will determine the start and end dates of the >current week. I'm hacking around with some code, but I'm not >producing enything useful. Surely I'm not the first to have this >problem? > >-Christopher- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From donald.a.Mcgillivray at mail.sprint.com Fri Feb 27 19:03:16 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 27 Feb 2004 19:03:16 -0600 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07298DBA@PKDWB01C.ad.sprint.com> Christopher, This ought to do it: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 27, 2004 3:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Fri Feb 27 19:13:23 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 27 Feb 2004 19:13:23 -0600 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07298DBE@PKDWB01C.ad.sprint.com> Well, my carriage returns didn't stay put. You probably got the drift, but trying again anyway: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Donald [ITS] Sent: Friday, February 27, 2004 5:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Getting the start and end dates of the current week Christopher, This ought to do it: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 27, 2004 3:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Feb 27 21:09:06 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 21:09:06 -0600 Subject: [AccessD] Importing (or linking to) Paradox files Message-ID: <20040227210906.257890905.serbach@new.rr.com> John, >> My question is are there versions of paradox files that Access can understand these but not those? ?Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From stephen at bondsoftware.co.nz Fri Feb 27 22:13:39 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sat, 28 Feb 2004 17:13:39 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F29088670@server.bondsoftware.co.nz> I am sending one e-mail to each person on file. Each e-mail has that person's individual details. Here is the code snippet ... ======= If Not rs.BOF And Not rs.EOF Then rs.MoveFirst Do Until rs.EOF GoSub BuildBodyOfEmail ' build field 'eMailBody' MsgBox "email for " & rs!pId & " " & rs!pSurname DoCmd.SendObject acSendNoObject, , , _ "mytest at mydomain.co.nz", _ , , "Subject Test", _ eMailBody, True rs.MoveNext DoEvents Loop End If ======== The problem is the first record in the recordset pops up as a new mail message OK, but subsequent records don't. The debugging MsgBox comes up for each record so I know the loop is getting the right records. Changing the SendObject's 'editmessage' flag from True to False doesn't make any difference. Eventually I want to change the SendObject's 'editmessage' flag from True to False so the e-mails go straight out without visual verification. The False is for testing purposes meantime. Weird. Any thoughts ..... Stephen Bond From jwcolby at colbyconsulting.com Fri Feb 27 23:00:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 00:00:17 -0500 Subject: [AccessD] Importing (or linking to) Paradox files In-Reply-To: <20040227210906.257890905.serbach@new.rr.com> Message-ID: That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? ?Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 23:15:07 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Sat, 28 Feb 2004 00:15:07 -0500 Subject: [AccessD] Importing (or linking to) Paradox files References: Message-ID: <007101c3fdb9$d5197ba0$dd2f0a44@bcsext6137> John Would it help if You had Paradox ? http://www.pricewatch.com/ shows a couple of vendors selling WordPerfect Office Pro verion 11 ( that seens to be the most recent ) for only $18.00 ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, February 28, 2004 12:00 AM Subject: RE: [AccessD] Importing (or linking to) Paradox files That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 03:21:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 10:21:40 +0100 Subject: [AccessD] burned by word In-Reply-To: References: Message-ID: <52429122.20040228102140@cactus.dk> Hi John Yes and no. The bad thing, of course, is that it could happen - that is, however, due to the general unawareness of the Word problem. As the article concludes, the good thing is that the happening puts focus on this exact problem. Once again it shows that people often have to be burned to learn ... We have for years warned our clients against distributing anything to anybody in Word format. It is by its nature an unsound and unsafe proprietary format. At least, send the document as rtf - that removes the macro risk and many incompatibility issues but not the privacy issue - preferably as pdf or plain text - some people send simple meeting confirmations, agendas etc. as Word documents even though they contain no more that ten lines of plain text. /gustav > Gustav: > Is this bad news? > http://catless.ncl.ac.uk/Risks/23.12.html#subj4 > John From gustav at cactus.dk Sat Feb 28 03:35:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 10:35:22 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <1253250433.20040228103522@cactus.dk> Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables for > changes. For example, if the Policy holder address changes, the claimant > address changes, the Payment location (address) changes etc. If ANY of > these change then I need to gather the information and at the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). From gustav at cactus.dk Sat Feb 28 04:05:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 11:05:40 +0100 Subject: [AccessD] Getting the start and end dates of the current week In-Reply-To: <95540-220042527232658264@christopherhawkins.com> References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <15068818.20040228110540@cactus.dk> Hi Christopher > I need a function that will determine the start and end dates of the > current week. I'm hacking around with some code, but I'm not > producing enything useful. Surely I'm not the first to have this > problem? We are using these two functions for this purpose as the usual "hacks" won't do in an internationalized environment where the ISO standards rule - among other things, Monday is the first day of the week here. If you live in a pure US environment you may wish to strip each of them down the one final line of essential code using DateAdd() and Weekday(): Function DateWeekFirst( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the first date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function Function DateWeekLast( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the last date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekLast = DateAdd("d", vbSaturday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function Have fun! /gustav From becklesd at tiscali.co.uk Sat Feb 28 05:41:05 2004 From: becklesd at tiscali.co.uk (David Beckles) Date: Sat, 28 Feb 2004 11:41:05 +0000 Subject: [AccessD] Watching data In-Reply-To: <200402281009.i1SA9cM24948@databaseadvisors.com> Message-ID: <5.2.0.9.2.20040228113115.02127b08@127.0.0.1> An alternative approach, and the one that I use, is to audit all changes, along the lines given by Allen Browne in http://members.iinet.net.au/~allenbrowne/AppAudit.html. It is then a simple matter to produce reports on the changes to fields in the tables. Of course this assumes that all changes are made through the forms, or else that all code that updates the tables writes an audit trail. I use a class associated with the table to handle these. I think that this is a simpler approach than the one you have suggested (but that's just my opinion, probably because it is the one that I use.) I could give more details if you wanted. I hope that this helps, David >Date: Fri, 27 Feb 2004 17:03:24 -0500 >From: "John W. Colby" >Subject: [AccessD] Watching data >To: "AccessD" >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I need a system for watching specific data fields in specific tables for >changes. For example, if the Policy holder address changes, the claimant >address changes, the Payment location (address) changes etc. If ANY of >these change then I need to gather the information and at the end of the day >email a report to the client (the insurance company) spelling out the >changes, what object the fields belonged to (Claimant, Policy Holder etc.). > >Make sense? > >Of course I could launch into building code in every form I can find where >these objects are used and this info can be saved. However this seems like >a "framework" kind of task. I envision a class (let's call it >dclsMonitorCtlChg for now) in the framework that the form class loads if a >form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as >variant) ) is called with controls specified. > >The form class already has a collection of the classes for each control's >class. The form class MonitorCtlDataChg() could grab a pointer to each of >the controls that this method says needs to be monitored and pass them to >the dclsMonitorCtlChg which would place them in a collection. Then a form >event or events (Before update, After update) could call a method of >dclsMonitorCtlChg telling it to "look for changes in your control set". The >class could raise an event or simply return a value to the form caller if >any change was detected. > >Of course it would then be useful to know what controls (fields) were >changed, the old value and the new value. This would allow the application >to generate a report: > >Object Monitored (Claimant) >Field: Addr1: OldValue: NewValue > Zip: OldValue: NewValue > >IOW the claimant moved to a new location, but in the same city, just changed >the address1 and the zip. > >So.... is anyone doing anything like this? If so any words of advice, >things to look out for etc? > >John W. Colby >www.ColbyConsulting.com From becklesd at tiscali.co.uk Sat Feb 28 05:48:13 2004 From: becklesd at tiscali.co.uk (David Beckles) Date: Sat, 28 Feb 2004 11:48:13 +0000 Subject: [AccessD] Re: AccessD Digest, Vol 12, Issue 63 In-Reply-To: <200402281009.i1SA9cM24948@databaseadvisors.com> Message-ID: <5.2.0.9.2.20040228114547.00ba2c10@127.0.0.1> Christopher, You could try the following: StartOfCurrentWeek = dateadd("d", 1 - Weekday(Now()), Now()) EndOfCurrentWeek=dateadd("d", Weekday(Now())-7, Now()) I hope that this helps, David At 04:09 28/02/2004 -0600, accessd-request at databaseadvisors.com wrote: >Date: Fri, 27 Feb 2004 16:26:58 -0700 >From: "Christopher Hawkins" >Subject: [AccessD] Getting the start and end dates of the current week >To: accessd at databaseadvisors.com >Message-ID: <95540-220042527232658264 at christopherhawkins.com> >Content-Type: text/plain; charset=iso-8859-1 > >I need a function that will determine the start and end dates of the >current week. I'm hacking around with some code, but I'm not >producing enything useful. Surely I'm not the first to have this >problem? > >-Christopher- From jwcolby at colbyconsulting.com Sat Feb 28 06:00:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 07:00:54 -0500 Subject: [AccessD] Importing (or linking to) Paradox files In-Reply-To: <007101c3fdb9$d5197ba0$dd2f0a44@bcsext6137> Message-ID: Wow. I hadn't thought about going at it from that direction. I went looking for the BDE but the cheapest programming package is about $100. It seems that having the BDE installed on a machine may be useful to Jet's ability to do this stuff, i.e. maybe Jet uses the BDE. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dave Sharpe Sent: Saturday, February 28, 2004 12:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John Would it help if You had Paradox ? http://www.pricewatch.com/ shows a couple of vendors selling WordPerfect Office Pro verion 11 ( that seens to be the most recent ) for only $18.00 ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, February 28, 2004 12:00 AM Subject: RE: [AccessD] Importing (or linking to) Paradox files That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 28 06:04:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 07:04:03 -0500 Subject: [AccessD] Watching data In-Reply-To: <1253250433.20040228103522@cactus.dk> Message-ID: Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 4:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables for > changes. For example, if the Policy holder address changes, the claimant > address changes, the Payment location (address) changes etc. If ANY of > these change then I need to gather the information and at the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 06:13:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 13:13:38 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <17812746828.20040228131338@cactus.dk> Hi John I see. Then you could add a field with the original CRC value of the address. If the address is changed, a CRC check will fail. /gustav > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me that > the claimant table had changed, not that the address portion of the table > had changed. Maybe she got married and changed her name? The Date of Birth > was corrected? The name was mis-spelled and the mis-spelling was corrected? > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 4:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > Wouldn't it be much easier to add timestamps and track these? If the > timestamp of an address is newer than that recorded for the case, > "something else" has changed the address. > /gustav >> I need a system for watching specific data fields in specific tables for >> changes. For example, if the Policy holder address changes, the claimant >> address changes, the Payment location (address) changes etc. If ANY of >> these change then I need to gather the information and at the end of the day >> email a report to the client (the insurance company) spelling out the >> changes, what object the fields belonged to (Claimant, Policy Holder etc.). From jwcolby at colbyconsulting.com Sat Feb 28 07:18:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 08:18:29 -0500 Subject: [AccessD] Watching data In-Reply-To: <5.2.0.9.2.20040228113115.02127b08@127.0.0.1> Message-ID: David, Thanks, the article does discuss the pitfalls and the concepts of auditing changes, the fact that is just part of the table is irrelevant. I am a framework kinda guy so I always think at the "make it a part of the framework" so that it is available to the next form / project. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Beckles Sent: Saturday, February 28, 2004 6:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Watching data An alternative approach, and the one that I use, is to audit all changes, along the lines given by Allen Browne in http://members.iinet.net.au/~allenbrowne/AppAudit.html. It is then a simple matter to produce reports on the changes to fields in the tables. Of course this assumes that all changes are made through the forms, or else that all code that updates the tables writes an audit trail. I use a class associated with the table to handle these. I think that this is a simpler approach than the one you have suggested (but that's just my opinion, probably because it is the one that I use.) I could give more details if you wanted. I hope that this helps, David >Date: Fri, 27 Feb 2004 17:03:24 -0500 >From: "John W. Colby" >Subject: [AccessD] Watching data >To: "AccessD" >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I need a system for watching specific data fields in specific tables for >changes. For example, if the Policy holder address changes, the claimant >address changes, the Payment location (address) changes etc. If ANY of >these change then I need to gather the information and at the end of the day >email a report to the client (the insurance company) spelling out the >changes, what object the fields belonged to (Claimant, Policy Holder etc.). > >Make sense? > >Of course I could launch into building code in every form I can find where >these objects are used and this info can be saved. However this seems like >a "framework" kind of task. I envision a class (let's call it >dclsMonitorCtlChg for now) in the framework that the form class loads if a >form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as >variant) ) is called with controls specified. > >The form class already has a collection of the classes for each control's >class. The form class MonitorCtlDataChg() could grab a pointer to each of >the controls that this method says needs to be monitored and pass them to >the dclsMonitorCtlChg which would place them in a collection. Then a form >event or events (Before update, After update) could call a method of >dclsMonitorCtlChg telling it to "look for changes in your control set". The >class could raise an event or simply return a value to the form caller if >any change was detected. > >Of course it would then be useful to know what controls (fields) were >changed, the old value and the new value. This would allow the application >to generate a report: > >Object Monitored (Claimant) >Field: Addr1: OldValue: NewValue > Zip: OldValue: NewValue > >IOW the claimant moved to a new location, but in the same city, just changed >the address1 and the zip. > >So.... is anyone doing anything like this? If so any words of advice, >things to look out for etc? > >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 Feb 28 07:21:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 08:21:38 -0500 Subject: [AccessD] Watching data In-Reply-To: <17812746828.20040228131338@cactus.dk> Message-ID: Hmmm, I like that idea. I'll have to think about how to do that efficiently. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 7:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John I see. Then you could add a field with the original CRC value of the address. If the address is changed, a CRC check will fail. /gustav > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me that > the claimant table had changed, not that the address portion of the table > had changed. Maybe she got married and changed her name? The Date of Birth > was corrected? The name was mis-spelled and the mis-spelling was corrected? > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 4:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > Wouldn't it be much easier to add timestamps and track these? If the > timestamp of an address is newer than that recorded for the case, > "something else" has changed the address. > /gustav >> I need a system for watching specific data fields in specific tables for >> changes. For example, if the Policy holder address changes, the claimant >> address changes, the Payment location (address) changes etc. If ANY of >> these change then I need to gather the information and at the end of the day >> email a report to the client (the insurance company) spelling out the >> changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 09:31:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 16:31:14 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <6424602706.20040228163114@cactus.dk> Hi John Well, one issue is speed. Here's a link to a German guy, Jost Schwider, claiming some pretty fast code: http://vb-tec.de/crc.htm What you'll need is the three top functions and this: http://vb-tec.de/bytelong.htm You'll also need some helper functions like these: Public Function Long2Chars( _ ByVal lngCRC As Long) _ As String ' Create four byte string from input value of type Long. Dim byt1 As Byte Dim byt2 As Byte Dim byt3 As Byte Dim byt4 As Byte Call Long2Bytes(lngCRC, byt1, byt2, byt3, byt4) Long2Chars = Chr(byt1) & Chr(byt2) & Chr(byt3) & Chr(byt4) End Function Public Function VerifyStringCRC32( _ ByVal strText As String, _ ByVal lngCRC As Long) _ As Boolean ' Verify if CRC32 value of strText matches CRC32 check value lngCRC. Const clngLenCRC As Long = 4 Dim strCheck As String Dim lngText As Long lngText = Len(strText) strCheck = Space(lngText + clngLenCRC) Mid(strCheck, 1) = strText Mid(strCheck, 1 + lngText) = Long2Chars(lngCRC) VerifyStringCRC32 = CRC32Unicode(strCheck, True) End Function /gustav > Hmmm, I like that idea. I'll have to think about how to do that > efficiently. > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 7:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > I see. Then you could add a field with the original CRC value of the > address. If the address is changed, a CRC check will fail. > /gustav >> Well... the data isn't normalized to that extent, i.e. I don't have an >> "Address table". A claimant has a single address, and that is embedded >> directly in the Claimant table. Thus a timestamp would only tell me that >> the claimant table had changed, not that the address portion of the table >> had changed. Maybe she got married and changed her name? The Date of Birth >> was corrected? The name was mis-spelled and the mis-spelling was corrected? >> John W. Colby >> www.ColbyConsulting.com >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >> Sent: Saturday, February 28, 2004 4:35 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Watching data >> Hi John >> Wouldn't it be much easier to add timestamps and track these? If the >> timestamp of an address is newer than that recorded for the case, >> "something else" has changed the address. >> /gustav >>> I need a system for watching specific data fields in specific tables for >>> changes. For example, if the Policy holder address changes, the claimant >>> address changes, the Payment location (address) changes etc. If ANY of >>> these change then I need to gather the information and at the end of the day >>> email a report to the client (the insurance company) spelling out the >>> changes, what object the fields belonged to (Claimant, Policy Holder etc.). From artful at rogers.com Sat Feb 28 16:05:12 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 28 Feb 2004 14:05:12 -0800 Subject: [AccessD] Watching data In-Reply-To: Message-ID: <000001c3fe46$f3e71780$6501a8c0@rock> How interesting and convenient that you should raise this issue, as I am facing a similar problem on an inherited app. While I am free to restructure it, I also don't want to destroy everything done by previous developers (not least for political reasons, but also because I want to deliver the solution as inexpensively as possible). So... The table of interest contains several fields which can be changed, and parallel fields recording the date they were last changed. Obviously I can add some code to each of the first set's AfterUpdate event and record the date. But I'm thinking that it would be way cooler to do it all in the form's AfterUpdate event instead. IIRC I don't think that I have ever used this event in all my years of Access programming. >From this event, can you determine which fields have changed? For example, the user changes five fields. Can I somehow obtain a list of the changed fields? Maybe I want the BeforeUpdate event instead? Ideally what I would like to do is let the user change anything, then write the changes to an AuditTrail table or somesuch, having a structure something like this: Table PK FieldName PreviousValue NewValue DateTime Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 4:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 4:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables > for changes. For example, if the Policy holder address changes, the > claimant address changes, the Payment location (address) changes etc. > If ANY of these change then I need to gather the information and at > the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 28 13:54:58 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 14:54:58 -0500 Subject: [AccessD] Watching data In-Reply-To: <000001c3fe46$f3e71780$6501a8c0@rock> Message-ID: Arthur, It's never easy and this is especially not easy. ;-) A user can start to edit a record and hit escape. A user can start to edit a record and have validation fail to allow the save, or the user can have a nice clean edit / save. Even in the case of a clean save, by the time AfterUpdate occurs the previous value isn't available. Thus you have to save the old value to a temp location in BeforeUpdate and then save the old and new value to the log table in AfterUpdate. Now, what about forms where the form has more than one editable table represented? I have very few of those but I have one in particular where the user wanted data from about 4 different (related) tables all available in one screen and all editable. So what is the PK? In fact, what is the table? What about controls bound to queries with aliased fields where the name was changed by the developer in the underlying query? I HATE "one of a kind, do it with code in this specific form, for this specific form" solutions. I prefer to take the time to figure out how to make it work across a broad spectrum of situations if possible. I asked awhile back if it was possible to "drill down" through a bound control to find the table / field name of the field that a control is bound to and was told it is indeed possible. It seems that to do it right, any changed CONTROLS would have to be "drilled down" to discover their source, then that info (table / field name) as well as old/new values recorded in the log file. It just so happens that I have a form class and a control class for every data aware control so I could have my form class' form events poll the control classes to see which controls have changed, do the "drill down" however that may occur, and record the results. Or, every control class could be taught how to record changes in the Change Log and then the form would poll all the control classes telling them to LogChanges (if any). I think it would be easier to teach the control classes to automatically record changes, then have the form just poll the control classes for old/new values if they have changed, and have the form class do the logging. In either case, if I could figure out the drill down thing and get this working, in essence I could turn on logging with a switch as the form loads. In it's Open even tell the form class to turn on logging for this specific form. If you don't have a framework such as mine how do you do this? For that matter, if you DO have a framework such as mine, how do you do this? ;-) Curious minds want to know. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Saturday, February 28, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Watching data How interesting and convenient that you should raise this issue, as I am facing a similar problem on an inherited app. While I am free to restructure it, I also don't want to destroy everything done by previous developers (not least for political reasons, but also because I want to deliver the solution as inexpensively as possible). So... The table of interest contains several fields which can be changed, and parallel fields recording the date they were last changed. Obviously I can add some code to each of the first set's AfterUpdate event and record the date. But I'm thinking that it would be way cooler to do it all in the form's AfterUpdate event instead. IIRC I don't think that I have ever used this event in all my years of Access programming. >From this event, can you determine which fields have changed? For example, the user changes five fields. Can I somehow obtain a list of the changed fields? Maybe I want the BeforeUpdate event instead? Ideally what I would like to do is let the user change anything, then write the changes to an AuditTrail table or somesuch, having a structure something like this: Table PK FieldName PreviousValue NewValue DateTime Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 4:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com From jimdettman at earthlink.net Sat Feb 28 14:26:38 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 28 Feb 2004 15:26:38 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 tinanfields at torchlake.com Sat Feb 28 14:28:54 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 28 Feb 2004 15:28:54 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity Message-ID: <4040FA06.1030500@torchlake.com> A student of mine is trying to remodel a database for her employer. I think the database was converted from A97 to AXP (A2K format). She was reviewing the relationships and wanted to enforce referential integrity on one or more relationships. She reports that the checkbox for enforcing referential integrity was dimmed and unavailable. I don't know much more about this particular database. Any ideas as to why the enforce referential integrity choice would be made unavailable? Thanks, Tina From stuart at lexacorp.com.pg Sat Feb 28 17:13:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 29 Feb 2004 09:13:34 +1000 Subject: [AccessD] Cannot Enforce Referential Integrity In-Reply-To: <4040FA06.1030500@torchlake.com> Message-ID: <4041AD3E.8580.9188D@localhost> On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > A student of mine is trying to remodel a database for her employer. I > think the database was converted from A97 to AXP (A2K format). She was > reviewing the relationships and wanted to enforce referential integrity > on one or more relationships. She reports that the checkbox for > enforcing referential integrity was dimmed and unavailable. I don't > know much more about this particular database. Any ideas as to why the > enforce referential integrity choice would be made unavailable? > Thanks, > Tina > Usually this happens if there is no unique index on the joined fields in the parent table. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Sat Feb 28 18:51:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 19:51:45 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity In-Reply-To: <4041AD3E.8580.9188D@localhost> Message-ID: Actually if the field in the parent is not designated the PK and / or no index on the child FK. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, February 28, 2004 6:14 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Cannot Enforce Referential Integrity On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > A student of mine is trying to remodel a database for her employer. I > think the database was converted from A97 to AXP (A2K format). She was > reviewing the relationships and wanted to enforce referential integrity > on one or more relationships. She reports that the checkbox for > enforcing referential integrity was dimmed and unavailable. I don't > know much more about this particular database. Any ideas as to why the > enforce referential integrity choice would be made unavailable? > Thanks, > Tina > Usually this happens if there is no unique index on the joined fields in the parent table. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sat Feb 28 19:30:05 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 28 Feb 2004 18:30:05 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: Given that there were a few methods for returning a fixed end of week date, I rewrote a few of the procedures to speed up the procedures. Mine was written several years ago during my first month of experimenting with VBA so that is my excuse for calling the Date function three times in a single line of code. I started with a timeGetTime declare and ran a million calls to each revised procedure: Public Declare Function timeGetTime Lib "Winmm" () As Long Function EndsOfWeek() As Date Dim datLastOfWeek As Date datLastOfWeek = Date EndsOfWeek = datLastOfWeek + (7 - WeekDay(datLastOfWeek)) End Function Function fnLastOfThisWeek() As Date Dim dt As Date dt = Date fnLastOfThisWeek = DateSerial(Year(dt), Month(dt), Day(dt) + 7 - WeekDay(dt)) End Function Function WeekEndDate() As Date Dim dt As Date dt = Date WeekEndDate = DateAdd("d", 1 + WeekDay(dt), dt) End Function The test driver procedure was run by commenting out two of the three calls. Each was run in sequence several times. The results are shown as a comment immediately after the call: Sub timetest() Dim dt As Date Dim lng As Long Dim lngt As Long lngt = timeGetTime For lng = 0 To 1000000 'dt = EndsOfWeek() '1.79 'dt = fnLastOfThisWeek '3.56 dt = WeekEndDate '4.37 Next MsgBox timeGetTime - lngt End Sub Looks like DateAdd is slower than the DateSerial, but both can be skipped as demonstrated by Don Mcgillivray. There is little to choose between the approaches on an occasional call, but used in a query with calculated field returning a few million records, I'd go with a variation on Don's method as it's nearly twice as fast as the next fastest. As always, kudos to Gustav for providing an appropriately globalized approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From jwcolby at colbyconsulting.com Sat Feb 28 22:29:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 23:29:10 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 mastercafe at ctv.es Sun Feb 29 00:53:51 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sun, 29 Feb 2004 07:53:51 +0100 Subject: [AccessD] Office 2003 Developer? In-Reply-To: Message-ID: <002601c3fe90$d7f7c1b0$0200a8c0@mastercaserver> We are looking for Ms Office 2003 developer, or a similar version than Office XP Dev. Is there any version?? We ask to our distributor and they don't know this. Thanks Juan Menendez ======================================== MASTERCAFE S.L. B-82.617.614 info at mastercafe.com Pi?eres 4, 1?D (Candas-Asturias) Tel. 627.531.764 Fax 627.500.205 MASTERCAFE MADRID S.L. c/ Elfo 72 (Madrid) cecilia at mastercafe.com 627.474.285 ======================================== From stephen at bondsoftware.co.nz Sun Feb 29 01:21:34 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 29 Feb 2004 20:21:34 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F2908867A@server.bondsoftware.co.nz> Didn't see this come thru, so trying again ... I am sending one e-mail to each person on file. Each e-mail has that person's individual details. Here is the code snippet ... ======= If Not rs.BOF And Not rs.EOF Then rs.MoveFirst Do Until rs.EOF GoSub BuildBodyOfEmail ' build field 'eMailBody' MsgBox "email for " & rs!pId & " " & rs!pSurname DoCmd.SendObject acSendNoObject, , , _ "mytest at mydomain.co.nz", _ , , "Subject Test", _ eMailBody, True rs.MoveNext DoEvents Loop End If ======== The problem is the first record in the recordset pops up as a new mail message OK, but subsequent records don't. The debugging MsgBox comes up for each record so I know the loop is getting the right records. Changing the SendObject's 'editmessage' flag from True to False doesn't make any difference. Eventually I want to change the SendObject's 'editmessage' flag from True to False so the e-mails go straight out without visual verification. The False is for testing purposes meantime. Weird. Any thoughts ..... Stephen Bond From stuart at lexacorp.com.pg Sun Feb 29 01:57:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 29 Feb 2004 17:57:12 +1000 Subject: [AccessD] Sending multiple e-mails In-Reply-To: <70F3D727890C784291D8433E9C418F2908867A@server.bondsoftware.co.nz> Message-ID: <404227F8.25997.1E87D87@localhost> On 29 Feb 2004 at 20:21, Stephen Bond wrote: > The problem is the first record in the recordset pops up as a > new mail message OK, but subsequent records don't. The > debugging MsgBox comes up for each record so I know the loop > is getting the right records. Changing the SendObject's > 'editmessage' flag from True to False doesn't make any difference. > Eventually I want to change the SendObject's 'editmessage' > flag from True to False so the e-mails go straight out > without visual verification. The False is for testing > purposes meantime. > What's the mail client? I'd suspect a problem with the client accepting a second new message when the first one is open. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stephen at bondsoftware.co.nz Sun Feb 29 02:07:55 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 29 Feb 2004 21:07:55 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F298F68@server.bondsoftware.co.nz> Outlook 2000 on the development box, connecting to Windows2000 Server (Exchange Server) on the server box. All e-mail addresses at present are local, on the customer's computer they won't be. I hope this is what you're asking for, I'm no expert in this area :< Stephen Bond > -----Original Message----- > From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] > Sent: Sunday, 29 February 2004 8:57 p.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sending multiple e-mails > > > On 29 Feb 2004 at 20:21, Stephen Bond wrote: > > > The problem is the first record in the recordset pops up as a > > new mail message OK, but subsequent records don't. The > > debugging MsgBox comes up for each record so I know the loop > > is getting the right records. Changing the SendObject's > > 'editmessage' flag from True to False doesn't make any difference. > > Eventually I want to change the SendObject's 'editmessage' > > flag from True to False so the e-mails go straight out > > without visual verification. The False is for testing > > purposes meantime. > > > > What's the mail client? I'd suspect a problem with the client > accepting a second new message when the first one is open. > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Sun Feb 29 03:10:16 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 29 Feb 2004 04:10:16 -0500 Subject: [AccessD] Office 2003 Developer? References: <002601c3fe90$d7f7c1b0$0200a8c0@mastercaserver> Message-ID: <000501c3fea3$d8d97480$6101a8c0@dejpolsys> ...afaik "Microsoft Office Access 2003 Developer Extensions" is used to create Access 2003 runtime packages and is a component of "Microsoft Visual Studio? Tools for the Microsoft Office System" ...VS Tools supports C# and VB in addition to VBA ...I've not seen a distinct ODE as in XP. William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 29, 2004 1:53 AM Subject: [AccessD] Office 2003 Developer? > We are looking for Ms Office 2003 developer, or a similar version than Office XP > Dev. Is there any version?? We ask to our distributor and they don't know this. > > Thanks > > Juan Menendez > > ======================================== > MASTERCAFE S.L. > B-82.617.614 > info at mastercafe.com > Pi?eres 4, 1?D (Candas-Asturias) > Tel. 627.531.764 > Fax 627.500.205 > > MASTERCAFE MADRID S.L. > c/ Elfo 72 (Madrid) > cecilia at mastercafe.com > 627.474.285 > ======================================== > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 29 03:49:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 29 Feb 2004 10:49:33 +0100 Subject: [AccessD] Getting the start and end dates of the current week In-Reply-To: References: Message-ID: <73645421.20040229104933@cactus.dk> Hi J?rgen Hey, nothing has changed - J?rgen is still haunting the last microsecond! But you are right, of course - every second counts when retrieving and manipulation a million records. However, in most cases functions like these are used for data entry validation, report grouping and the like where a microsecond or ten is as close to "nothing" as it doesn't matter - it is more important to have a selection of proved functions in your toolbox you can pick when needed knowing that they'll do the job without further testing. That's why I have made it a habit to use and recommend the built in date/time functions which actually are quite fast and won't let you down (except for an ISO week number bug I have documented previously). Also, it is often easier to document or comment what a function does when you use the date/time functions. Then you can concentrate on speed optimizing for large recordset using SQL-only code in the few cases where it is worth the trouble and testing. /gustav > Given that there were a few methods for returning a fixed end of week date, > I rewrote a few of the procedures to speed up the procedures. Mine was > written several years ago during my first month of experimenting with VBA so > that is my excuse for calling the Date function three times in a single line > of code. I started with a timeGetTime declare and ran a million calls to > each revised procedure: > Public Declare Function timeGetTime Lib "Winmm" () As Long > Function EndsOfWeek() As Date > Dim datLastOfWeek As Date > datLastOfWeek = Date > EndsOfWeek = datLastOfWeek + (7 - WeekDay(datLastOfWeek)) > End Function > Function fnLastOfThisWeek() As Date > Dim dt As Date > dt = Date > fnLastOfThisWeek = DateSerial(Year(dt), Month(dt), Day(dt) + 7 - > WeekDay(dt)) > End Function > Function WeekEndDate() As Date > Dim dt As Date > dt = Date > WeekEndDate = DateAdd("d", 1 + WeekDay(dt), dt) > End Function > The test driver procedure was run by commenting out two of the three calls. > Each was run in sequence several times. The results are shown as a comment > immediately after the call: > Sub timetest() > Dim dt As Date > Dim lng As Long > Dim lngt As Long > lngt = timeGetTime > For lng = 0 To 1000000 > 'dt = EndsOfWeek() '1.79 > 'dt = fnLastOfThisWeek '3.56 > dt = WeekEndDate '4.37 > Next > MsgBox timeGetTime - lngt > End Sub > Looks like DateAdd is slower than the DateSerial, but both can be skipped as > demonstrated by Don Mcgillivray. There is little to choose between the > approaches on an occasional call, but used in a query with calculated field > returning a few million records, I'd go with a variation on Don's method as > it's nearly twice as fast as the next fastest. > As always, kudos to Gustav for providing an appropriately globalized > approach. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From stuart at pacific.net.hk Sun Feb 29 04:29:18 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Sun, 29 Feb 2004 18:29:18 +0800 Subject: [AccessD] Watching data In-Reply-To: Message-ID: <000701c3feae$e3d38280$0400a8c0@nbbits01> Having worked only recently with your classes, I don't see why it couldn't be done. In fact, if you use a separate table to name form and control/field name it should be possible to be dynamic such that the user can specify which fields they want logged. Much as you were doing with the security controls. On form load, it checks to see whether the form needs to be logged, and if so checks which fields. Use the before update event of the form to record before and after values but make sure it is after all validation has passed. Stuart -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, 29 February 2004 12:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 barbara.march at surveyrisk.co.uk Sun Feb 29 06:30:42 2004 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Sun, 29 Feb 2004 12:30:42 -0000 Subject: [AccessD] activex control refire On Entry Message-ID: <000201c3febf$dc2ab1a0$0801a8c0@barbaranew> HYPERLINK "http://skins.hotbar.com/skins/mailskins/st/042102/042102email_2.gif" HYPERLINK "http://skins.hotbar.com/skins/mailskins/st/042102/042102email_2.gif"Hi There Is anyone available to give advice on a Sunday (well, it's Sunday where I am and cold and grey outside)? If so, I would appreciate some help please. I have an activex control on a form which I use, via the On Entry property, to open a message box where the user can either click OK or cancel. It all works fine except if you click cancel, the On Entry property does not seem to be ready to refire unless you have click on another control first. So you click cancel on the message box that it opens, the message box closes, then immediately click the activex control again and nothing happens. Is there code which will make the control ready to refire immediately? Thanks in advance for your help. Barbara (^-^)/ UK _____ HYPERLINK "http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=hotbar%5feleme nt%3bst%3b&SG=&RAND=80508&partner=hotbar"Upgrade Your Email - Click here! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003 From deanellis at iprimus.com.au Sun Feb 29 06:43:01 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Sun, 29 Feb 2004 23:13:01 +1030 (Cen. Australia Daylight Time) Subject: [AccessD] BEU Database Message-ID: <4041DE55.000003.97011@jedel> Hi guys, Thanks for your help with the BEU Database earlier. I do have one problem with it that I have noticed. I use Hyperlinks in my database and there is no Hyperlink property in the DataType when I create a field in a table. Any Reason for this? Is there any chance of getting it put in? Cheers Dean From carbonnb at sympatico.ca Sun Feb 29 07:30:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 29 Feb 2004 08:30:19 -0500 Subject: [AccessD] BEU Database In-Reply-To: <4041DE55.000003.97011@jedel> Message-ID: <4041A31B.983.3CBEE0@localhost> On 29 Feb 2004 at 23:13, Dean Ellis wrote: > Thanks for your help with the BEU Database earlier. I do have one > problem with it that I have noticed. I use Hyperlinks in my database > and there is no Hyperlink property in the DataType when I create a > field in a table. Any Reason for this? Is there any chance of getting > it put in? Oversight on our part I would think. We'll add it to the list. -- Bryan Carbonnell - carbonnb at sympatico.ca (SELECT * FROM users WHERE clue > 0) From ssharkins at bellsouth.net Sun Feb 29 08:14:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 29 Feb 2004 09:14:30 -0500 Subject: [AccessD] Office 2003 Developer? In-Reply-To: <000501c3fea3$d8d97480$6101a8c0@dejpolsys> Message-ID: <20040229141430.VELL1830.imf16aec.mail.bellsouth.net@SUSANONE> Developer was dropped for 2003. Susan H. ...afaik "Microsoft Office Access 2003 Developer Extensions" is used to create Access 2003 runtime packages and is a component of "Microsoft Visual StudioR Tools for the Microsoft Office System" ...VS Tools supports C# and VB in addition to VBA ...I've not seen a distinct ODE as in XP. From iggy at nanaimo.ark.com Sun Feb 29 09:18:26 2004 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 29 Feb 2004 07:18:26 -0800 Subject: [AccessD] Watching data References: Message-ID: <404202C0.EBF739BC@nanaimo.ark.com> Hey John I have just started to follow this thread. I don't know if this will help. " Even in the case of a clean save, by the time AfterUpdate occurs the previous value isn't available." I assign the current text box value to a variable in OnEnter. Then compare the variable to the contents in the text box in BeforeUpdate. That way you check to see if anything was truly changed. eg. The user edits the contents, but then changes their mind and retypes in the original entry - do a compare, no change even though it was edited. If it passes as a true edit, then do whatever checks/run a procedure to do something and reassign the new value to the variable. Even works with validation. "John W. Colby" wrote: > Arthur, > > It's never easy and this is especially not easy. ;-) A user can start to > edit a record and hit escape. A user can start to edit a record and have > validation fail to allow the save, or the user can have a nice clean edit / > save. Even in the case of a clean save, by the time AfterUpdate occurs the > previous value isn't available. Thus you have to save the old value to a > temp location in BeforeUpdate and then save the old and new value to the log > table in AfterUpdate. > > Now, what about forms where the form has more than one editable table > represented? I have very few of those but I have one in particular where > the user wanted data from about 4 different (related) tables all available > in one screen and all editable. So what is the PK? In fact, what is the > table? What about controls bound to queries with aliased fields where the > name was changed by the developer in the underlying query? I HATE "one of a > kind, do it with code in this specific form, for this specific form" > solutions. I prefer to take the time to figure out how to make it work > across a broad spectrum of situations if possible. > > I asked awhile back if it was possible to "drill down" through a bound > control to find the table / field name of the field that a control is bound > to and was told it is indeed possible. It seems that to do it right, any > changed CONTROLS would have to be "drilled down" to discover their source, > then that info (table / field name) as well as old/new values recorded in > the log file. > > It just so happens that I have a form class and a control class for every > data aware control so I could have my form class' form events poll the > control classes to see which controls have changed, do the "drill down" > however that may occur, and record the results. Or, every control class > could be taught how to record changes in the Change Log and then the form > would poll all the control classes telling them to LogChanges (if any). I > think it would be easier to teach the control classes to automatically > record changes, then have the form just poll the control classes for old/new > values if they have changed, and have the form class do the logging. In > either case, if I could figure out the drill down thing and get this > working, in essence I could turn on logging with a switch as the form loads. > In it's Open even tell the form class to turn on logging for this specific > form. > > If you don't have a framework such as mine how do you do this? For that > matter, if you DO have a framework such as mine, how do you do this? ;-) > Curious minds want to know. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller > Sent: Saturday, February 28, 2004 5:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Watching data > > How interesting and convenient that you should raise this issue, as I am > facing a similar problem on an inherited app. While I am free to > restructure it, I also don't want to destroy everything done by previous > developers (not least for political reasons, but also because I want to > deliver the solution as inexpensively as possible). So... > > The table of interest contains several fields which can be changed, and > parallel fields recording the date they were last changed. Obviously I > can add some code to each of the first set's AfterUpdate event and > record the date. But I'm thinking that it would be way cooler to do it > all in the form's AfterUpdate event instead. IIRC I don't think that I > have ever used this event in all my years of Access programming. > > >From this event, can you determine which fields have changed? For > example, the user changes five fields. Can I somehow obtain a list of > the changed fields? Maybe I want the BeforeUpdate event instead? Ideally > what I would like to do is let the user change anything, then write the > changes to an AuditTrail table or somesuch, having a structure something > like this: > > Table > PK > FieldName > PreviousValue > NewValue > DateTime > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Saturday, February 28, 2004 4:04 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me > that the claimant table had changed, not that the address portion of the > table had changed. Maybe she got married and changed her name? The > Date of Birth was corrected? The name was mis-spelled and the > mis-spelling was corrected? > > John W. Colby > www.ColbyConsulting.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Sun Feb 29 10:14:56 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 11:14:56 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 11:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 11:37:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 12:37:56 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From jimdettman at earthlink.net Sun Feb 29 13:37:26 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 14:37:26 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 14:18:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 15:18:18 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: >I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. AFAIK this isn't possible in A2K. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 2:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sun Feb 29 14:19:21 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 29 Feb 2004 15:19:21 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity References: Message-ID: <40424949.8030600@torchlake.com> Thanks John and Stuart. She indicated that the joined fields were PK in parent table and FK in child table - but, I will double check. Thanks for the thoughts. Tina John W. Colby wrote: >Actually if the field in the parent is not designated the PK and / or no >index on the child FK. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart >McLachlan >Sent: Saturday, February 28, 2004 6:14 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] Cannot Enforce Referential Integrity > > >On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > > > >>A student of mine is trying to remodel a database for her employer. I >>think the database was converted from A97 to AXP (A2K format). She was >>reviewing the relationships and wanted to enforce referential integrity >>on one or more relationships. She reports that the checkbox for >>enforcing referential integrity was dimmed and unavailable. I don't >>know much more about this particular database. Any ideas as to why the >>enforce referential integrity choice would be made unavailable? >>Thanks, >>Tina >> >> >> >Usually this happens if there is no unique index on the joined fields >in the parent table. > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > From iggy at nanaimo.ark.com Sun Feb 29 14:22:02 2004 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 29 Feb 2004 12:22:02 -0800 Subject: [AccessD] Watching data References: Message-ID: <404249E9.82F4661E@nanaimo.ark.com> Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record. "John W. Colby" wrote: > >I just thought of another one; what if you assign the forms recordsource to > a recordset variable in code so you can do transactions? I've never looked > at runtime to see what that looks like to a form object. > > AFAIK this isn't possible in A2K. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 2:37 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from.>> > > Thought I had missed the boat on that one. > > < new val" how do we discover the Tablename / Fieldname portion?>> > > I used the brute force approach in the past; I coded the table and field > name that I wanted logged in the tag property for each control. > > Without doing that, you'd need to grab the form's recordsource and figure > out what it is. It could be a table name, query def, or SQL statement. The > first would be easy, as from that point you'd only need the controls record > source. The second you can figure out easy enough, but parsing it would be > a problem, especially if it in itself is based on sub queries. That applies > to querydef's as well. > > I'm not sure what Drew was thinking of, but I don't see any easy answers > there. > > I just thought of another one; what if you assign the forms recordsource > to a recordset variable in code so you can do transactions? I've never > looked at runtime to see what that looks like to a form object. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 29, 2004 12:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > >but I'm assuming what you mean by "drilling down" is looping through all > the controls > > I do control collection iteration collection all the time, starting with my > form class which has a control scanner (as I call it) which iterates the > controls collection loading classes for each control found. > > No, by "drilling down" I mean discovering what the SOURCE of the data is by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from. > > When a form / field is bound to data, what the data is can be non-trivial to > discover. For example the form could be bound to a query. The developer > decides that rather than leaving the field names of that query alone, he is > going to rename CL_Addr1 to Address1 using field name aliases. Further the > query could be two or more tables linked together in the query (and still > editable) so that fields from the claimant and a specific claim are all > bound to controls on a form. Now when the data logger tries to log the > data, what table is the data coming from, the claimant or the claim? > Further is Address1 the actual field name in the table or is it an alias? > > Thus when it's time to log data and we want "table / field name / oldval / > new val" how do we discover the Tablename / Fieldname portion? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 11:15 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < believe > that Drew was the one that assured me that it is possible. I just have to > see if I can find the hints of how. It had to do with opening the query and > inspecting the properties of the fields.>> > > I missed earlier parts of this discussion, but I'm assuming what you mean > by "drilling down" is looping through all the controls, then yes it > certainly can be done. Any of the code floating out there to resize forms > contains the logic required. If you don't have access to something like > that, it's a pretty straight forward matter. > > Starting at the form level, you'd use the controls collection to iterate > through all the controls for an object. Just be aware that you'll need to > handle container controls (i.e. page frames and subforms), so it will be a > series of nested loops. You might want to try and make it a recursive > procedure. Performance wise, you also might want to restrict which controls > are looked at. For example, if you don't place controls in anything other > then the detail section of forms, then no need to check the header and > footer. > > Once you locate a control, you use the TypeOf function to figure out what > it is and if you need to deal with it. I would not bother checking the > .enabled or .locked properties, but simply check .oldvalue vs .value, as it > should be faster that way. > > This would all be done in the BeforeUpdate event after your sure your not > going to cancel for any reason. > > As far as the change log, I've always used the approach of one record per > field change: > > tblLogID - Autonumber -PK > LogDateTime - D/T > LogType - String - "A"dd, "D"elete, "U"pdate > TableName - String > RecordPK - String > FieldName - String > TypeOf - Numeric - Indicates where "NewValue" is stored > NewValue1 - String > NewValue2 - Integer > NewValue3 - Long > NewValue4 - Single > etc.... > > I don't bother to hold the .oldvalue because you'd be duplicating it in > the table. You can also see that I don't bother to try and convert the > .oldvalue into a common type (i.e. a string), but rather store the actual > value. If I had access to the raw binary data, then I'd do so, but without > that, this seemed to be the cleanest way. > > I've used two different types of logic in working with the log file: > > Roll forward - used to recreate a database at a specific point in time. > 1. Check point (backup) > 2. Apply log changes in a "roll forward" to a specific date and time. > > Auditing: > 1. Log file records are maintained as long as possible. > > I've primarily used this in HR type apps or others where it was required > to recreate the data at a specific point in time. I haven't had to use > logging/auditing in quite some time, but it was workable. I went with > strings for the table name and field names, but I suppose you could come up > with some type of internal tracking system to use a numeric ID of some type, > but that is probably overkill. The only gotcha there is if you rename a > table or field. Generally, that doesn't happen too often for me. > > HTH, > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Sun Feb 29 15:12:11 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 16:12:11 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, << AFAIK this isn't possible in A2K. >> It sure is. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. AFAIK this isn't possible in A2K. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 2:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 18:50:00 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 19:50:00 -0500 Subject: [AccessD] Watching data In-Reply-To: <404249E9.82F4661E@nanaimo.ark.com> Message-ID: Tony, > Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField That is awesome and exactly what I need to do. I have to wonder though whether the form's RecordsetClone couldn't be assigned to the rst and do exactly the same thing. I just tested and: Dim rst As DAO.Recordset Set rst = Me.RecordsetClone Debug.Print rst(txtCat.ControlSource).SourceTable Debug.Print rst(txtCat.ControlSource).SourceField (actual controls on a form) produces: tblCatWrk CW_Cat My form class has a function that iterates the form's control collection instantiating a control class for each control found. In the form class (in this FindControls function) I can do this process, then as each control is found, have the form class look up the tablename / fieldname and pass that in to the control class as it instantiates the control's class. Thus each control "knows" what table / field it is bound to and can report that back later. This is starting to look easy! I'll keep you informed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tony Septav Sent: Sunday, February 29, 2004 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record. "John W. Colby" wrote: > >I just thought of another one; what if you assign the forms recordsource to > a recordset variable in code so you can do transactions? I've never looked > at runtime to see what that looks like to a form object. > > AFAIK this isn't possible in A2K. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 2:37 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from.>> > > Thought I had missed the boat on that one. > > < new val" how do we discover the Tablename / Fieldname portion?>> > > I used the brute force approach in the past; I coded the table and field > name that I wanted logged in the tag property for each control. > > Without doing that, you'd need to grab the form's recordsource and figure > out what it is. It could be a table name, query def, or SQL statement. The > first would be easy, as from that point you'd only need the controls record > source. The second you can figure out easy enough, but parsing it would be > a problem, especially if it in itself is based on sub queries. That applies > to querydef's as well. > > I'm not sure what Drew was thinking of, but I don't see any easy answers > there. > > I just thought of another one; what if you assign the forms recordsource > to a recordset variable in code so you can do transactions? I've never > looked at runtime to see what that looks like to a form object. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 29, 2004 12:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > >but I'm assuming what you mean by "drilling down" is looping through all > the controls > > I do control collection iteration collection all the time, starting with my > form class which has a control scanner (as I call it) which iterates the > controls collection loading classes for each control found. > > No, by "drilling down" I mean discovering what the SOURCE of the data is by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from. > > When a form / field is bound to data, what the data is can be non-trivial to > discover. For example the form could be bound to a query. The developer > decides that rather than leaving the field names of that query alone, he is > going to rename CL_Addr1 to Address1 using field name aliases. Further the > query could be two or more tables linked together in the query (and still > editable) so that fields from the claimant and a specific claim are all > bound to controls on a form. Now when the data logger tries to log the > data, what table is the data coming from, the claimant or the claim? > Further is Address1 the actual field name in the table or is it an alias? > > Thus when it's time to log data and we want "table / field name / oldval / > new val" how do we discover the Tablename / Fieldname portion? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 11:15 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < believe > that Drew was the one that assured me that it is possible. I just have to > see if I can find the hints of how. It had to do with opening the query and > inspecting the properties of the fields.>> > > I missed earlier parts of this discussion, but I'm assuming what you mean > by "drilling down" is looping through all the controls, then yes it > certainly can be done. Any of the code floating out there to resize forms > contains the logic required. If you don't have access to something like > that, it's a pretty straight forward matter. > > Starting at the form level, you'd use the controls collection to iterate > through all the controls for an object. Just be aware that you'll need to > handle container controls (i.e. page frames and subforms), so it will be a > series of nested loops. You might want to try and make it a recursive > procedure. Performance wise, you also might want to restrict which controls > are looked at. For example, if you don't place controls in anything other > then the detail section of forms, then no need to check the header and > footer. > > Once you locate a control, you use the TypeOf function to figure out what > it is and if you need to deal with it. I would not bother checking the > .enabled or .locked properties, but simply check .oldvalue vs .value, as it > should be faster that way. > > This would all be done in the BeforeUpdate event after your sure your not > going to cancel for any reason. > > As far as the change log, I've always used the approach of one record per > field change: > > tblLogID - Autonumber -PK > LogDateTime - D/T > LogType - String - "A"dd, "D"elete, "U"pdate > TableName - String > RecordPK - String > FieldName - String > TypeOf - Numeric - Indicates where "NewValue" is stored > NewValue1 - String > NewValue2 - Integer > NewValue3 - Long > NewValue4 - Single > etc.... > > I don't bother to hold the .oldvalue because you'd be duplicating it in > the table. You can also see that I don't bother to try and convert the > .oldvalue into a common type (i.e. a string), but rather store the actual > value. If I had access to the raw binary data, then I'd do so, but without > that, this seemed to be the cleanest way. > > I've used two different types of logic in working with the log file: > > Roll forward - used to recreate a database at a specific point in time. > 1. Check point (backup) > 2. Apply log changes in a "roll forward" to a specific date and time. > > Auditing: > 1. Log file records are maintained as long as possible. > > I've primarily used this in HR type apps or others where it was required > to recreate the data at a specific point in time. I haven't had to use > logging/auditing in quite some time, but it was workable. I went with > strings for the table name and field names, but I suppose you could come up > with some type of internal tracking system to use a numeric ID of some type, > but that is probably overkill. The only gotcha there is if you rename a > table or field. Generally, that doesn't happen too often for me. > > HTH, > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 19:58:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 20:58:51 -0500 Subject: [AccessD] Watching data In-Reply-To: <404249E9.82F4661E@nanaimo.ark.com> Message-ID: Tony, The following is what I ended up with: ' 'This function iterates the mfrm's control collection looking up the control's table and field names ' 'Since I sometimes open the form unbound, I need to do all this in a separate function after binding the form 'to a table. ' Public Function CtlDataSrc() On Error GoTo Err_CtlDataSrc Dim rst As DAO.Recordset Dim ctl As Control Dim strSrcTbl As String Dim strSrcFld As String 'Get a copy of the form's Recordset Set rst = mfrm.RecordsetClone 'Iterate the controls collection for the form For Each ctl In mfrm.Controls Debug.Print ctl.Name 'attempt tp get the source table name for the field the control is bound to. err.Clear On Error Resume Next strSrcTbl = rst(ctl.ControlSource).SourceTable If err = 0 Then 'If there is no error (the field is bound to a field and the source table is found) mobjChildren(ctl.Name).BoundTbl = strSrcTbl 'look up the class in mobjChildren collection and pass the class the table name End If 'Do the same stuff for the source field name strSrcFld = rst(ctl.ControlSource).SourceField If err = 0 Then mobjChildren(ctl.Name).BoundFld = strSrcFld End If Next ctl Exit_CtlDataSrc: On Error Resume Next If Not (rst Is Nothing) Then rst.Close: Set rst = Nothing Exit Function Err_CtlDataSrc: MsgBox err.Description, , "Error in Function dclsFrm.CtlDataSrc" Resume Exit_CtlDataSrc Resume 0 '.FOR TROUBLESHOOTING End Function This assumes a pair of private string variables in each data aware class: ' 'Used for change logging ' Private mstrBoundTbl As String 'The Table that this control is bound to Private mstrBoundFld As String 'The field in the table that this control is bound to and corresponding property get/let statements to access the variables: ' 'Properties for the bound field / table (properties of the control class) ' Public Property Get BoundTbl() As String BoundTbl = mstrBoundTbl End Property Public Property Let BoundTbl(strTblName As String) mstrBoundTbl = strTblName End Property Public Property Get BoundFld() As String BoundFld = mstrBoundFld End Property Public Property Let BoundFld(strFldName As String) mstrBoundFld = strFldName End Property So far it all appears to be working flawlessly. I added the variables and properties to all of my control classes that are for bound controls and I'm off and running. That takes care of each control knowing it's table / field. Next I have to do the code to tell each such control to store the old value and return the various old / new values. I do think I'll write a DataLogger class to handle the issue of storing sets of controls to log data for as well as the logic of when to save the old values, when to return the various pieces for logging, handling the log table etc. I think this is going to work nicely though. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tony Septav Sent: Sunday, February 29, 2004 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record. From stephen at bondsoftware.co.nz Sun Feb 1 00:35:51 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 01 Feb 2004 19:35:51 +1300 Subject: [AccessD] Office 2002 and Office 2003 on the same computer Message-ID: <70F3D727890C784291D8433E9C418F290885C6@server.bondsoftware.co.nz> I have Office 97 and 2000 co-existing peacefully on one of my development boxes, under Windows 2000 Pro. I have Office XP on another box, under Windows XP Professional, and have Office 2003 in shrink-wrap, begging for a home. Should I try loading it on the box with Office XP /Win XP? Stephen Bond Otatara, New Zealand From my.lists at verizon.net Sun Feb 1 00:40:22 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Sat, 31 Jan 2004 22:40:22 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <401C9F56.6010809@verizon.net> John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco From my.lists at verizon.net Sun Feb 1 00:40:22 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Sat, 31 Jan 2004 22:40:22 -0800 Subject: [dba-SQLServer] Re: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <401C9F56.6010809@verizon.net> John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tuxedo_man at hotmail.com Sun Feb 1 01:05:03 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sun, 01 Feb 2004 07:05:03 +0000 Subject: [AccessD] RE: [dba-SQLServer]SQL Server queries - appending strings Message-ID: SELECT LASTNAME + ', ' + FIRSTNAME from employees........... HTH Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "SQLServer" , "AccessD" > >Subject: [dba-SQLServer]SQL Server queries - appending strings >Date: Sat, 31 Jan 2004 20:44:31 -0500 > >In Access I often do things in queries like: [LastName] & ", " & >[FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby >www.ColbyConsulting.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From tuxedo_man at hotmail.com Sun Feb 1 01:05:03 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sun, 01 Feb 2004 07:05:03 +0000 Subject: [AccessD] RE: [dba-SQLServer]SQL Server queries - appending strings Message-ID: SELECT LASTNAME + ', ' + FIRSTNAME from employees........... HTH Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "SQLServer" , "AccessD" > >Subject: [dba-SQLServer]SQL Server queries - appending strings >Date: Sat, 31 Jan 2004 20:44:31 -0500 > >In Access I often do things in queries like: [LastName] & ", " & >[FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby >www.ColbyConsulting.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 1 01:42:04 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Feb 2004 17:42:04 +1000 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: <401CEA1B.21659.8E078E@localhost> Message-ID: <401D3A6C.28842.1302CD5@localhost> On 31 Jan 2004 at 21:27, John W. Colby wrote: > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? > No, but you can modify views using "ALTER VIEW" to change the parameters. Not a good option with multiple users though :-( > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. > > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. > What are my options here? Do I have any? > I hate to say this, but you could go unbound with a SProc and update statements :-) One off the top of my head: Create a control table containing LoginName and ClaimID fields. Create the view of your data which includes a join on the control table and a constraint of LoginName = SYSTEM_USER. Before you pull the view, update the control table with the users LoginName and the relevant ClaimID. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sun Feb 1 03:06:43 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 10:06:43 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <1252035827.20040201100643@cactus.dk> Hi John > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. [snip] > What are my options here? Do I have any? An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it works; your efforts will minimize to moving only the tables to SQL Server and walking through your code adding some dBSeeChanges ... Of course, this depends on the client and his priorities. Does he wish quickly to move the data to SQL Server? Does he pay for your time turning the current app into an ADP (which is the "right" thing) or is that in his eyes just a "learning experience" for you? /gustav From stuart at lexacorp.com.pg Sun Feb 1 04:57:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Feb 2004 20:57:10 +1000 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <1252035827.20040201100643@cactus.dk> References: Message-ID: <401D6826.5325.1E2C8A6@localhost> On 1 Feb 2004 at 10:06, Gustav Brock wrote: > > > What are my options here? Do I have any? > > An alternative to the other suggestions - which very quickly will turn > your job into a major project - you can connect to the server via > ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it > works; your efforts will minimize to moving only the tables to SQL > Server and walking through your code adding some dBSeeChanges ... > But that doesn't solve the original problem of trying to avoid pulling a large recordset from joined tables and filtering locally :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sun Feb 1 05:54:31 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 12:54:31 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <401D6826.5325.1E2C8A6@localhost> References: <401D6826.5325.1E2C8A6@localhost> Message-ID: <9512104034.20040201125431@cactus.dk> Hi Stuart >> > What are my options here? Do I have any? >> >> An alternative to the other suggestions - which very quickly will turn >> your job into a major project - you can connect to the server via >> ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it >> works; your efforts will minimize to moving only the tables to SQL >> Server and walking through your code adding some dBSeeChanges ... >> > But that doesn't solve the original problem of trying to avoid > pulling a large recordset from joined tables and filtering locally > :-( That's right - but there is a big difference between an app that is not working and an app that works pretty much the same as before even though the backend has moved from Jet to SQL Server. A working app leaves you in peace from an impatient client out of business, freeing you to proceed with optimization work (stored procedures, views, pass through queries etc.) at your own speed. It all depends. If John's client picked SQL Server to force an ADP from John, ODBC is of course no solution. /gustav From jwcolby at colbyconsulting.com Sun Feb 1 07:20:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 08:20:25 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <401C9F56.6010809@verizon.net> Message-ID: >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 1 07:27:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 08:27:39 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <1252035827.20040201100643@cactus.dk> Message-ID: >An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. And that is exactly what is going to happen. There are enough reasons to move the data store to SQL Server to justify doing that much. As for moving to an ADP, I have a framework that implements hundreds of behaviors that are totally "automated" and allowed me to build the FE and it's functionality in 1/10th the time it would take to do it form by form implementing the same functionality. Because of this, the framework has to be modified to be modified to be ADP friendly. I do things like: SELECT [Somefield] from Sometable WHERE SomeColumn LIKE SomeForm!SomeControl. These statements return EDITABLE recordsets in Access. I use these EDITABLE recordsets EVERYWHERE. As we all know, this simply doesn't work in SQL Server. Until I can get around that obstacle in SQL Server, moving ANY project to SQL Server will be non-trivial. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 4:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi John > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. [snip] > What are my options here? Do I have any? An alternative to the other suggestions - which very quickly will turn your job into a major project - you can connect to the server via ODBC. Not fancy neither sexy and lacking "MS coolness", I know, but it works; your efforts will minimize to moving only the tables to SQL Server and walking through your code adding some dBSeeChanges ... Of course, this depends on the client and his priorities. Does he wish quickly to move the data to SQL Server? Does he pay for your time turning the current app into an ADP (which is the "right" thing) or is that in his eyes just a "learning experience" for you? /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Feb 1 10:00:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 01 Feb 2004 08:00:38 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: Hi John: There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE is the only option (ODBC is too slow....) Stored Procedures are programs, subroutines and functions more than just queries. No 'query' import tools can work because though SQL SP work similar they are really quite different in concept. I suspect that everything will have to be completely hand coded at the query/recordset backend but your frame-work should basically be able remain in place. Another thing to note is that the MSSQL license may not be 'unlimited' but scaled on 'connections' not users. One user of a 'bound' application could grab as many as 20 plus connection or the whole license. The licensing may have changed (I have been working with Oracle for the last year or so) but some of our SQL Gurus may know the finer points. Hope you are being paid by the hour. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 5:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 1 10:15:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 17:15:34 +0100 Subject: [AccessD] Using Dates In-Reply-To: References: Message-ID: <7727766756.20040201171534@cactus.dk> Hi Robert et all Maybe Ralph Kimball is a lurker here? I guess not - then he wouldn't suggest fiddling with a spreadsheet to create the table ... Anyway, here is his latest design tip. It is not on-line so I cannot pass a link. /gustav ======================================================== KIMBALL UNIVERSITY DESIGN TIP #51 ======================================================== LATEST THINKING ON TIME DIMENSION TABLES Virtually every fact table has one or more time related dimension foreign keys. Measurements are defined at specific points of time and most measurements are repeated over time. The most common and useful time dimension is the calendar date dimension with the granularity of a single day. This dimension has surprisingly many attributes. Only a few of these attributes (such as month name and year) can be generated directly from an SQL date-time expression. Holidays, work days, fiscal periods, week numbers, last day of month flags, and other navigational attributes must be embedded in the calendar date dimension and all date navigation should be implemented in applications by using the dimensional attributes. The calendar date dimension has some very unusual properties. It is one of the only dimensions that is completely specified at the beginning of the data warehouse project. It also doesn't have a conventional source. The best way to generate the calendar date dimension is to spend an afternoon with a spreadsheet and build it by hand. Ten years worth of days is less than 4000 rows. Every calendar date dimension needs a Date Type attribute and a Full Date attribute. These two fields comprise the natural key of the dimension table. The Date Type attribute almost always has the value "date" but there must be at least one record that handles the special non-applicable date situation where the recorded date is inapplicable, corrupted, or hasn't happened yet. The foreign key references in the fact table in these cases must point to a non-date date in the calendar date table! You need at least one of these special records in the calendar date table, but you may want to distinguish several of these unusual conditions. For the inapplicable date case, the value of the Date Type is "inapplicable" or "NA". The Full Date attribute is a full relational date stamp, and it takes on the legitimate value of null for the special cases described above. Remember that the foreign key in a fact table can never be null, since by definition that violates referential integrity. The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. In some fact tables time is measured below the level of calendar day, down to minute or even second. One cannot build a time dimension with every minute second of every day represented. There are more than 31 million seconds in a year! We want to preserve the powerful calendar date dimension and simultaneously support precise querying down to the minute or second. We may also want to compute very precise time intervals by comparing the exact time of two fact table records. For these reasons we recommend a design with a calendar date dimension foreign key and a full SQL date-time stamp, both in the fact table. The calendar day component of the precise time remains as a foreign key reference to our familiar calendar day dimension. But we also embed a full SQL date-time stamp directly in the fact table for all queries requiring the extra precision. Think of this as special kind of fact, not a dimension. In this interesting case, it is not useful to make a dimension with the minutes or seconds component of the precise time stamp, because the calculation of time intervals across fact table records becomes too messy when trying to deal with separate day and time-of-day dimensions. In previous Toolkit books, we have recommended building such a dimension with the minutes or seconds component of time as an offset from midnight of each day, but we have come to realize that the resulting end user applications became too difficult, especially when trying to compute time spans. Also, unlike the calendar day dimension, there are very few descriptive attributes for the specific minute or second within a day. If the enterprise has well defined attributes for time slices within a day, such as shift names, or advertising time slots, an additional time-of-day dimension can be added to the design where this dimension is defined as the number of minutes (or even seconds) past midnight. Thus this time-of-day dimension would either have 1440 records if the grain were minutes or 86,400 records if the grain were seconds. The presence of such a time-of-day dimension does not remove the need for the SQL date-time stamp described above. Ralph Kimball Ralph at ralphkimball.com (c) Copyright Ralph Kimball Group, 2004. ===================================================== If you have colleagues and friends who would also like to receive Kimball University Design Tips, please have them email Nancy (nancy at ralphkimball.com) with "add" in the subject line. When you join, you will automatically be sent the 2003 Design Tips to date. The Design Tips published during 2000 through 2002 are available at www.ralphkimball.com. --- From jwcolby at colbyconsulting.com Sun Feb 1 10:27:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 11:27:55 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: I am being paid by the hour, but they are never going to go for that kind of massive rewrite. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Sunday, February 01, 2004 11:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE is the only option (ODBC is too slow....) Stored Procedures are programs, subroutines and functions more than just queries. No 'query' import tools can work because though SQL SP work similar they are really quite different in concept. I suspect that everything will have to be completely hand coded at the query/recordset backend but your frame-work should basically be able remain in place. Another thing to note is that the MSSQL license may not be 'unlimited' but scaled on 'connections' not users. One user of a 'bound' application could grab as many as 20 plus connection or the whole license. The licensing may have changed (I have been working with Oracle for the last year or so) but some of our SQL Gurus may know the finer points. Hope you are being paid by the hour. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 5:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings >It's really about the right tool for the job, although speculation would deem that an ADP would be better suited. Converting to an ADP may or may not even be possible. The system uses my framework which does a TON of rather fancy stuff like swapping combo / form row/recordsources out on the fly, assigning the recordsource after the framework class instantiates etc. Not to mention linked spreadsheets that feed queries for data importation. LOTS of reasons why ADPs may never be possible. >No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. Yes, but Stored procedures are non-editable, correct? Remember, these are bound forms needing editable recordsets. >you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which means I can't assign a recordset to the recordsource. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Sunday, February 01, 2004 1:40 AM To: Access Developers discussion and problem solving; dba-SQLServer at databaseadvisors.com Subject: Re: [AccessD] was SQL Server queries - appending strings John W. Colby wrote: > Thanks both of you. > > I have a client that purchased SQL Server and so it's time to get off the > dime and learn this stuff. > > The client uses A2K. > > Now that I am changing to SQL Server I have to get the server doing more of > the work - the whole point is of course to speed things up. For technical > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time > in the near future, if at all. It's really about the right tool for the job, altho speculation would deem that an ADP would be better suited. > I have a main tabbed form which uses a multi-table join to get live data > from a client / claim . The client wanted it that way so that the user > could edit fields in either table. > > Views appear to be similar to tables, i.e. I can link to them and they show > up in the table window. Is there a way to pass parameters to them? "Where > LastName like col*" etc? No, Views do not take parameters, that's what Stored Procedures (aka sprocs) are for.. > ATM, I pull the whole recordset and then filter down to a single record. > Not fast, but after the initial pull the filter proceeds at a reasonable > rate. I can then "filter" to a specific claim reasonably fast. I would > like to change this to actually ask SQL Server for a view of exactly one > record each time they want to see a claim. Thus avoiding the "pull the > entire recordset across the net, now pull the index, etc. That would be effective.. again... Sprocs, think Pass-Through Queries.. generally you'd just type into the SQL window (technically not the qbe window), EXEC stp_MyFavoriteSproc Param1, Param2 I'll take this quote from David McAfee's post over on Access-L on exactly this issue /QUOTE/ I couldn't get it working that way after all. I cant remember how I used to do that. but... In one of my samples (A97 db connected to A97 BE with an ODBC link to SQL 2K) I created a pass-through query called "_BrettsPassThru" The SQL inside the query is: EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' So I created a command button and placed the following code behind it: CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL DoCmd.OpenQuery "_BrettsPassThru" Let me know how it works for you. David /END QUOTE/ > This must be editable so AFAIK I cannot use stored procedures which would > allow passing parameters. Because this is A2K AFAIK I cannot assign a > recordset to the form's recordsource property. you are mistaken. you can assign the recordset to the recordsource, but because the data is from sql server (in an mdb) it becomes read only. > What are my options here? Do I have any? Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you do :) -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 1 11:07:16 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 1 Feb 2004 18:07:16 +0100 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: References: Message-ID: <9330868626.20040201180716@cactus.dk> Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav From jwcolby at colbyconsulting.com Sun Feb 1 11:37:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 12:37:54 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <9330868626.20040201180716@cactus.dk> Message-ID: In fact there are valid reasons for going to SQL Server, without expecting a massive speedup. Things like: BE expansions, compactions not happening because users still in the db, lock files that don't clear even when every one is out of the db, lock files that can't be cleared at ALL without resetting the server, compacts fail as a result. Backups not happening because of open MDB files (SEE ABOVE). Memo fields causing locks on adjacent records preventing users from saving their memo records. MDB Database corruptions due to the well known problems with memo fields, causing maintenance for someone to clean up these corrupted memo fields. The ever present possibility of MDB corruptions due to NIC problems, power outages at workstations as they write to the MDB etc. Limits on the numbers of indexes available in Access due to referential integrity using indexes for foreign keys, reducing the remaining indexes available for dates, strings etc. And finally, there will be parts of the app that can be sped up (I think) even using ODBC, things like a "claim find" search screen that doesn't need updateable recordsets, where the entire thing may be able to be pushed out to the server. This client is climbing past 50 concurrent users where when I started they had about 25. They are doing the obvious, buying a new dual proc server to run this thing, putting the data store into SQL Server (assuming I say 'go'), splitting their LAN into segments, with gigabit links to the routers, etc. This client has a massive amount of data that they want available "instantly", thus the tabbed metaphor. They kept asking for more and more things, some of which required some time consuming things like "TOP 1" from child tables, available at a glance. I explained that each of these slowed the app down, but they wanted them. Over time, a dozen of these kinds of things, each slowing the whole down only a bit, the whole lot slowed the app down a lot. They wanted it, they asked for it, they were informed that it would cause slowdowns, they insisted, they got it. The biggest issue I have at the moment is that (in A2K which is what they have) recordsets cannot be set as the recordsource without making the result uneditable. If I could do that, I'd be in much better shape than I am. There appears to be no real alternatives (in A2K) to use much of the capabilities of SQL Server to offload processing to the server, yet still end up with editable recordsets / forms. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Feb 1 11:35:56 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 1 Feb 2004 17:35:56 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <003b01c3e8ea$10166400$09f66e51@martin1> John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 01, 2004 4:27 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > I am being paid by the hour, but they are never going to go for that kind of > massive rewrite. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Sunday, February 01, 2004 11:01 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. > > I suspect that everything will have to be completely hand coded at the > query/recordset backend but your frame-work should basically be able remain > in place. > > Another thing to note is that the MSSQL license may not be 'unlimited' but > scaled on 'connections' not users. One user of a 'bound' application could > grab as many as 20 plus connection or the whole license. The licensing may > have changed (I have been working with Oracle for the last year or so) but > some of our SQL Gurus may know the finer points. > > Hope you are being paid by the hour. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 01, 2004 5:20 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >It's really about the right tool for the job, although speculation would > deem that an ADP would be better suited. > > Converting to an ADP may or may not even be possible. The system uses my > framework which does a TON of rather fancy stuff like swapping combo / form > row/recordsources out on the fly, assigning the recordsource after the > framework class instantiates etc. Not to mention linked spreadsheets that > feed queries for data importation. LOTS of reasons why ADPs may never be > possible. > > >No, Views do not take parameters, that's what Stored Procedures (aka > sprocs) are for.. > > Yes, but Stored procedures are non-editable, correct? Remember, these are > bound forms needing editable recordsets. > > >you are mistaken. you can assign the recordset to the recordsource, but > because the data is from sql server (in an mdb) it becomes read only. > > Yes, but as I said in the sentence before, this MUST BE EDITABLE! Which > means I can't assign a recordset to the recordsource. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H > Tapia > Sent: Sunday, February 01, 2004 1:40 AM > To: Access Developers discussion and problem solving; > dba-SQLServer at databaseadvisors.com > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > John W. Colby wrote: > > Thanks both of you. > > > > I have a client that purchased SQL Server and so it's time to get off the > > dime and learn this stuff. > > > > The client uses A2K. > > > > Now that I am changing to SQL Server I have to get the server doing more > of > > the work - the whole point is of course to speed things up. For technical > > reasons (a whole SLEW of reasons) going to an ADP is NOT an option any > time > > in the near future, if at all. > > It's really about the right tool for the job, altho speculation would > deem that an ADP would be better suited. > > > I have a main tabbed form which uses a multi-table join to get live data > > from a client / claim . The client wanted it that way so that the user > > could edit fields in either table. > > > > Views appear to be similar to tables, i.e. I can link to them and they > show > > up in the table window. Is there a way to pass parameters to them? > "Where > > LastName like col*" etc? > > No, Views do not take parameters, that's what Stored Procedures (aka > sprocs) are for.. > > > ATM, I pull the whole recordset and then filter down to a single record. > > Not fast, but after the initial pull the filter proceeds at a reasonable > > rate. I can then "filter" to a specific claim reasonably fast. I would > > like to change this to actually ask SQL Server for a view of exactly one > > record each time they want to see a claim. Thus avoiding the "pull the > > entire recordset across the net, now pull the index, etc. > > That would be effective.. again... Sprocs, think Pass-Through Queries.. > generally you'd just type into the SQL window (technically not the qbe > window), EXEC stp_MyFavoriteSproc Param1, Param2 > > I'll take this quote from David McAfee's post over on Access-L on > exactly this issue > > /QUOTE/ > I couldn't get it working that way after all. I cant remember how I used > to do that. > > but... > > In one of my samples (A97 db connected to A97 BE with an ODBC link to > SQL 2K) > > I created a pass-through query called "_BrettsPassThru" > > The SQL inside the query is: > > EXEC devREDe.dbo.BrettsPOQuery '1/1/2004', '1/22/2004' > > > So I created a command button and placed the following code behind it: > > CurrentDb.QueryDefs("_BrettsPassThru").SQL = "EXEC > devREDe.dbo.BrettsPOQuery '" & Forms![Monthlyreport]![StartDate] & "', > '" & Forms![Monthlyreport]![EndDate] & "'" 'strSQL > DoCmd.OpenQuery "_BrettsPassThru" > > Let me know how it works for you. > > David > /END QUOTE/ > > > This must be editable so AFAIK I cannot use stored procedures which would > > allow passing parameters. Because this is A2K AFAIK I cannot assign a > > recordset to the form's recordsource property. > > you are mistaken. you can assign the recordset to the recordsource, but > because the data is from sql server (in an mdb) it becomes read only. > > > What are my options here? Do I have any? > > Pass Through, convert the mdb to an ADP, Stored procedures. and Yes you > do :) > > > -- > -Francisco > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 1 12:31:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 1 Feb 2004 13:31:17 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <003b01c3e8ea$10166400$09f66e51@martin1> Message-ID: Martin, I long ago modified my framework to use only ADO >The framework you use is I assume dictating the path you can take?? Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and see what happens. However I am a programmer at heart. In my apps I do things like setting up a query, then opening the query and changing the SQL statement. There are instances where this is a very useful trick. Try that with an SQL Server BE! It may be possible, but not just using DAO and the queries collection! I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased fields in queries. I write my own functions and use them in aliased fields in queries. ALL of these things will cause massive headaches porting to SQL Server, and referencing controls on a form simply can't be ported. A2K, even in an ADP (by my understanding) can't hook a stored procedure to the recordsource of a form and end up with an editable form. So the answer to your question is yes, my framework is a limitation, but a tiny one compared to my free usage of Access "goodies" that just kill you using SQL Server. This is an application with over a hundred forms, thousands of controls, tabs with JIT subforms set up, combos that swap out their SQL to allow on-the-fly filtering, and so forth. All this is entirely legal and encouraged in an Access only app. !!!!!!!!!!!!*********** Did you know that NO code runs in a form until after the data loads for the form? So if you want to run code that in any way modifies the actual SQL statement of the form, you will either: Load all your data, then reload using the modified SQL or... not have a recordsource and assign one from the code that runs after the form's class finally gets around to loading. !!!!!!!!!!!!*********** Did you know that subforms load before the main form code runs? Did you know that subforms expect the parent data to be loaded so that the Link Child Field / Master Field works? !!!!!!!!!!!!*********** All of this means that if you want to use bound subforms / forms, the parent data must load, then the child forms load (with their data), THEN the parent form's CODE finally runs. I noticed that all of my data was loading twice. Why is that? Because I use code to set a control which is used in the where clause of the form's SQL statement. The first time, the data loads, but the CODE hasn't started running yet. So... I have to set the control and requery the form. Hmmm.... So you could just not set the Recordsource at all (leave it blank) until the code runs, then set the control, then set the recordsource RIGHT? Well... yea, EXCEPT the subforms expect data to be there when they load or you get the stupid pop up dialog asking you for the PK for the Master Field. THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO data, it's code runs, it loads ITS data, then it loads any subforms which, by that time, have valid data in the parent form and can load without asking the user for the PK. Holy @#$% Batman! Now WHY oh WHY didn't MS just allow the code to run in the parent form before loading its data? Because lots of code expect to go looking at (already loaded) data. Oh the joys of Access. !!!!!!!!!!!!*********** My framework is CAPABLE of doing exactly this stuff, automagically. If the parent form's Recordsource is not set (is blank), AND (of course) the subform controls are not bound to a subform, then my form's class looks for a query named 'q' & Thisform.name. If found, the class set the form's recordsource to that query name, which causes that data to load (after setting the above mentioned control which is used in the Where clause). The form's class has a control scanner that finds all subform controls and drops a pointer to them into a collection. Once the main form's recordsource is set, each subform is able to be bound to a subform. USUALLY this is done when a specific tab of the tab control is clicked. i.e. JIT. However if the subform is on the FIRST tab, then it is bound by the main form's class so that the subform loads and is populated. So now my forms only load their data once, JIT works as expected, I can filter using controls on the form etc. Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. !!!!!!!!!!!!*********** SQL Server MAY be the holy grail, but it is far holier if you are just pulling one record from one table RE 1970s style terminal based apps. It isn't very holy at all if you have already used all of Access' built in TRICKS to the max in your apps and now want to move that app to SQL Server! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 01, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin From Oleg_123 at xuppa.com Sun Feb 1 18:44:18 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 1 Feb 2004 19:44:18 -0500 (EST) Subject: [AccessD] macro can't find function In-Reply-To: <01ad01c3e80c$19312a90$b274d0d5@minster33c3r25> References: <41912.12.3.132.98.1075481192.squirrel@heck.bay9.com> <01ad01c3e80c$19312a90$b274d0d5@minster33c3r25> Message-ID: <3560.24.187.36.171.1075682658.squirrel@heck.bay9.com> hmm, the function when run by itself works fine. Could the problem possibly bee that the module in which it is located is called the same name as function ? > Well all I can think is a) rename the function (could BreakName possibly > be a reserved word?) and/or b) decompile, repair etc to be sure it isn't > just glitchy. Other than that I cn't see what the problem is. > > Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: 30 January 2004 16:47 >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] macro can't find function >> >> >> still gives me the same error :--( >> >> >> >> > Beat me to it Lambert :-) >> > >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> >> Sent: 29 January 2004 17:08 >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: RE: [AccessD] macro can't find function >> >> >> >> >> >> I'd suggest you get rid of the space between "BreakName" and the >> opening parentheses. >> >> >> >> Lambert >> >> >> >> > -----Original Message----- >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> >> > Sent: Thursday, January 29, 2004 11:52 AM >> >> > To: accessd at databaseadvisors.com >> >> > Subject: RE: [AccessD] macro can't find function >> >> > >> >> > it's public (of course ;-) >> >> > and this is how it looks -- BreakName () >> >> > >> >> > i decided to try to make that macro call another macro >> >> which contains >> >> > the function >> >> > >> >> > > Oleg >> >> > > >> >> > > In a macro the function has to be expressed as fn(), ie. >> >> no = sign >> >> > > before it but must have the parentheses. May be worth >> >> checking. Oh >> >> > > and the function must of course be Public. >> >> > > >> >> > > Andy Lacey >> >> > > http://www.minstersystems.co.uk >> >> > > >> >> > >> -----Original Message----- >> >> > >> From: accessd-bounces at databaseadvisors.com >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> Oleg_123 at xuppa.com >> >> > >> Sent: 29 January 2004 16:12 >> >> > >> To: accessd at databaseadvisors.com >> >> > >> Subject: RE: [AccessD] macro can't find function >> >> > >> >> >> > >> >> >> > >> Group, >> >> > >> >> >> > >> I have a long macro that opens several queries, at the end its >> >> suppose to RunCode - function, however it gives me an message "The >> >> > >> expression you entered has a function name that xxx >> can't find". >> >> When I run that function separetely it works fine, and >> >> the name is >> >> > >> spelled correctly since i didn't type it but selected it using >> >> their device what should i do ? >> >> > >> >> >> > >> >> >> > >> ----------------------------------------- >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > >> http://www.xuppa.com/news/?link=webmail >> >> > >> >> >> > >> >> >> > >> >> >> > >> _______________________________________________ >> >> > >> AccessD mailing list >> >> > >> AccessD at databaseadvisors.com >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> > >> Website: >> >> > >> http://www.databaseadvisors.com >> >> > >> >> >> > >> >> >> > > >> >> > > _______________________________________________ >> >> > > AccessD mailing list >> >> > > AccessD at databaseadvisors.com >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > > Website: http://www.databaseadvisors.com >> >> > >> >> > >> >> > >> >> > ----------------------------------------- >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > http://www.xuppa.com/news/?link=webmail >> >> > >> >> > >> >> > _______________________________________________ >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> Website: >> >> http://www.databaseadvisors.com >> >> >> >> >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> Website: >> http://www.databaseadvisors.com >> >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Sun Feb 1 18:53:49 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sun, 01 Feb 2004 18:53:49 -0600 Subject: [AccessD] Re: SQL Server queries - appending strings In-Reply-To: <200402011618.i11GI7m22479@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040201185240.019384b0@pop3.highstream.net> John, LastName + ', ' + FirstName SQL Server uses single quotes and + instead of & Robert At 10:18 AM 2/1/2004 -0600, you wrote: >From: "John W. Colby" >Subject: [AccessD] SQL Server queries - appending strings >To: "SQLServer" , "AccessD" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >In Access I often do things in queries like: [LastName] & ", " & [FirstName] > >This appears to be bad syntax in SQL Server. Is there an equivalent? > >John W. Colby From Oleg_123 at xuppa.com Sun Feb 1 18:56:42 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 1 Feb 2004 19:56:42 -0500 (EST) Subject: [AccessD] Opening report on desired record II In-Reply-To: <01ab01c3e80c$18b85110$b274d0d5@minster33c3r25> References: <42162.12.3.132.98.1075496340.squirrel@heck.bay9.com> <01ab01c3e80c$18b85110$b274d0d5@minster33c3r25> Message-ID: <3570.24.187.36.171.1075683402.squirrel@heck.bay9.com> one more question. On the form that lets user select on what record to open report, and opens it (done thanks to Andy) there should be a a combo (or anything else) that lets user select managers name to put on the report. i select the valaue selected in the combo -- Dim xo as string xo = cmbManager.Value --- then i put text value on the report Manager. Is there now way to let manager = xo ? I tried making 'strr = "[manager] = " & xo & "" and placing it in Open Args, i am possibly on the right track since i do not get any errors, but it places 0 instead of xo value. Is there a way to fix it ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Sun Feb 1 18:57:09 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sun, 01 Feb 2004 18:57:09 -0600 Subject: [AccessD] Re: Office 2002 and Office 2003 on the same computer In-Reply-To: <200402011618.i11GI7m22479@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040201185620.0193bfe8@pop3.highstream.net> Stephen, I have 97, 2000, XP and 2003 all on the same machine with no problems. Robert At 10:18 AM 2/1/2004 -0600, you wrote: >Date: Sun, 01 Feb 2004 19:35:51 +1300 >From: Stephen Bond >Subject: [AccessD] Office 2002 and Office 2003 on the same computer >To: accessd at databaseadvisors.com >Message-ID: > <70F3D727890C784291D8433E9C418F290885C6 at server.bondsoftware.co.nz> >Content-Type: text/plain; charset=iso-8859-1 > >I have Office 97 and 2000 co-existing peacefully on one of my development >boxes, under Windows 2000 Pro. >I have Office XP on another box, under Windows XP Professional, and have >Office 2003 in shrink-wrap, begging for a home. Should I try loading it >on the box with Office XP /Win XP? > > > >Stephen Bond >Otatara, New Zealand From kathryn at bassett.net Sun Feb 1 22:01:45 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 1 Feb 2004 20:01:45 -0800 Subject: [AccessD] Merging photos from Access to Word Message-ID: I'm pretty proficient at using WordPerfect to set up documents that pull information from an Access query. But I'm not sure how to do what I want to do, and figure that I'm more likely to get some help if I ask how to do it in Word instead. I'm not having success with making a report *that will print the way I want* in Access for a variety of reasons, so please don't suggest that. http://www.ourmailinglist.org/abcmerge/whatiwant.jpg shows you in general what I want (no table lines). However, I did this by hand, by putting each graphic into a cell and making a caption for it. So, everytime I need to insert someone, I have to add a row, and copy/paste some contents to ... well, details are beside the point. And complicating things is that I need to print this in booklet format so that it prints like this: 8 1 2 7 6 3 4 5 then when they are printed double side, it's like a book - landscape 8.5x11 folded in half. Now, in WordPerfect, if I code like this: http://www.ourmailinglist.org/abcmerge/wpmergcodes.jpg then when I merge I get: http://www.ourmailinglist.org/abcmerge/wpmergcodesresult.jpg (I didn't yet put in the columns, or landscape the page for the examples) Here's the query it's based on: http://www.ourmailinglist.org/abcmerge/theaccessquery.JPG Now, if someone knows how to insert the picture into WordPerfect, that would be great (I've got WP11)! But since I imagine there are more of you who know Word Macros/Merges, then I've got Word2000. BTW, I want the graphics to be max of 2" wide or 2" high, proportional - they aren't all exactly the same size, some are vertical some horizontal. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Erwin.Craps at ithelps.be Mon Feb 2 01:17:46 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 2 Feb 2004 08:17:46 +0100 Subject: [AccessD] macro can't find function Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D1CC@stekelbes.ithelps.local> Are you sure its a function and not a sub? Sub's can not be run from Marco. As already specified below the function must be calle with () at the end, even when no parameters Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 1:44 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] macro can't find function hmm, the function when run by itself works fine. Could the problem possibly bee that the module in which it is located is called the same name as function ? > Well all I can think is a) rename the function (could BreakName > possibly be a reserved word?) and/or b) decompile, repair etc to be > sure it isn't just glitchy. Other than that I cn't see what the problem is. > > Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: 30 January 2004 16:47 >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] macro can't find function >> >> >> still gives me the same error :--( >> >> >> >> > Beat me to it Lambert :-) >> > >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> >> Sent: 29 January 2004 17:08 >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: RE: [AccessD] macro can't find function >> >> >> >> >> >> I'd suggest you get rid of the space between "BreakName" and the >> opening parentheses. >> >> >> >> Lambert >> >> >> >> > -----Original Message----- >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> >> > Sent: Thursday, January 29, 2004 11:52 AM >> >> > To: accessd at databaseadvisors.com >> >> > Subject: RE: [AccessD] macro can't find function >> >> > >> >> > it's public (of course ;-) >> >> > and this is how it looks -- BreakName () >> >> > >> >> > i decided to try to make that macro call another macro >> >> which contains >> >> > the function >> >> > >> >> > > Oleg >> >> > > >> >> > > In a macro the function has to be expressed as fn(), ie. >> >> no = sign >> >> > > before it but must have the parentheses. May be worth >> >> checking. Oh >> >> > > and the function must of course be Public. >> >> > > >> >> > > Andy Lacey >> >> > > http://www.minstersystems.co.uk >> >> > > >> >> > >> -----Original Message----- >> >> > >> From: accessd-bounces at databaseadvisors.com >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> Oleg_123 at xuppa.com >> >> > >> Sent: 29 January 2004 16:12 >> >> > >> To: accessd at databaseadvisors.com >> >> > >> Subject: RE: [AccessD] macro can't find function >> >> > >> >> >> > >> >> >> > >> Group, >> >> > >> >> >> > >> I have a long macro that opens several queries, at the end >> >> > >> its >> >> suppose to RunCode - function, however it gives me an message "The >> >> > >> expression you entered has a function name that xxx >> can't find". >> >> When I run that function separetely it works fine, and the name is >> >> > >> spelled correctly since i didn't type it but selected it >> >> > >> using >> >> their device what should i do ? >> >> > >> >> >> > >> >> >> > >> ----------------------------------------- >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > >> http://www.xuppa.com/news/?link=webmail >> >> > >> >> >> > >> >> >> > >> >> >> > >> _______________________________________________ >> >> > >> AccessD mailing list >> >> > >> AccessD at databaseadvisors.com >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> > >> Website: >> >> > >> http://www.databaseadvisors.com >> >> > >> >> >> > >> >> >> > > >> >> > > _______________________________________________ >> >> > > AccessD mailing list >> >> > > AccessD at databaseadvisors.com >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > > Website: http://www.databaseadvisors.com >> >> > >> >> > >> >> > >> >> > ----------------------------------------- >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > http://www.xuppa.com/news/?link=webmail >> >> > >> >> > >> >> > _______________________________________________ >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> >> Website: >> >> http://www.databaseadvisors.com >> >> >> >> >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/a> ccessd >> Website: >> http://www.databaseadvisors.com >> >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 2 07:12:34 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 2 Feb 2004 13:12:34 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <000901c3e98e$38c0e7a0$9111758f@aine> Have you tried using a stored procedure as the recordsource of a form. Try it and see what happens!! Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 01, 2004 6:31 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > Martin, > > I long ago modified my framework to use only ADO > > >The framework you use is I assume dictating the path you can take?? > > Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and > see what happens. However I am a programmer at heart. In my apps I do > things like setting up a query, then opening the query and changing the SQL > statement. There are instances where this is a very useful trick. Try that > with an SQL Server BE! It may be possible, but not just using DAO and the > queries collection! > > I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased > fields in queries. I write my own functions and use them in aliased fields > in queries. > > ALL of these things will cause massive headaches porting to SQL Server, and > referencing controls on a form simply can't be ported. > > A2K, even in an ADP (by my understanding) can't hook a stored procedure to > the recordsource of a form and end up with an editable form. > > So the answer to your question is yes, my framework is a limitation, but a > tiny one compared to my free usage of Access "goodies" that just kill you > using SQL Server. > > This is an application with over a hundred forms, thousands of controls, > tabs with JIT subforms set up, combos that swap out their SQL to allow > on-the-fly filtering, and so forth. All this is entirely legal and > encouraged in an Access only app. > > !!!!!!!!!!!!*********** > > Did you know that NO code runs in a form until after the data loads for the > form? So if you want to run code that in any way modifies the actual SQL > statement of the form, you will either: > > Load all your data, then reload using the modified SQL > > or... not have a recordsource and assign one from the code that runs after > the form's class finally gets around to loading. > > !!!!!!!!!!!!*********** > > Did you know that subforms load before the main form code runs? > > Did you know that subforms expect the parent data to be loaded so that the > Link Child Field / Master Field works? > > !!!!!!!!!!!!*********** > > All of this means that if you want to use bound subforms / forms, the parent > data must load, then the child forms load (with their data), THEN the parent > form's CODE finally runs. > > > I noticed that all of my data was loading twice. Why is that? Because I > use code to set a control which is used in the where clause of the form's > SQL statement. The first time, the data loads, but the CODE hasn't started > running yet. So... I have to set the control and requery the form. > Hmmm.... > > So you could just not set the Recordsource at all (leave it blank) until the > code runs, then set the control, then set the recordsource RIGHT? > > Well... yea, EXCEPT the subforms expect data to be there when they load or > you get the stupid pop up dialog asking you for the PK for the Master Field. > THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO > data, it's code runs, it loads ITS data, then it loads any subforms which, > by that time, have valid data in the parent form and can load without asking > the user for the PK. > > Holy @#$% Batman! > > Now WHY oh WHY didn't MS just allow the code to run in the parent form > before loading its data? Because lots of code expect to go looking at > (already loaded) data. Oh the joys of Access. > > !!!!!!!!!!!!*********** > > My framework is CAPABLE of doing exactly this stuff, automagically. If the > parent form's Recordsource is not set (is blank), AND (of course) the > subform controls are not bound to a subform, then my form's class looks for > a query named 'q' & Thisform.name. If found, the class set the form's > recordsource to that query name, which causes that data to load (after > setting the above mentioned control which is used in the Where clause). The > form's class has a control scanner that finds all subform controls and drops > a pointer to them into a collection. Once the main form's recordsource is > set, each subform is able to be bound to a subform. USUALLY this is done > when a specific tab of the tab control is clicked. i.e. JIT. However if the > subform is on the FIRST tab, then it is bound by the main form's class so > that the subform loads and is populated. > > So now my forms only load their data once, JIT works as expected, I can > filter using controls on the form etc. > > Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. > > !!!!!!!!!!!!*********** > > SQL Server MAY be the holy grail, but it is far holier if you are just > pulling one record from one table RE 1970s style terminal based apps. It > isn't very holy at all if you have already used all of Access' built in > TRICKS to the max in your apps and now want to move that app to SQL Server! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 01, 2004 12:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > John > > Tha main drawback you face moving to SQL Server is your use of the > framework. Continued reliance of this tool will place you at a disadvantage > when working with for example an ADP file. > > Of course you could consider over time rewriting the tool for use with SQL > Server. > > Moving to an SQL Server backend generally gives you a few options > > Use ODBC and stay with DAO > Rewrite from DAO to ADO using OLEDB > Use an ADP > USee Pass Through > > etc etc > > You could also consider bring the data local on login , work with it local > and then update the server with changes. > > I am currently working on rewriting a complex app from DAO to ADO. Taking a > lot longer than I assumed but almost done now. > > The licence issue is OK. Usually licenced on a per processor basis now so > connections dont matter. > > The framework you use is I assume dictating the path you can take?? > > > > Martin > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Feb 2 09:51:53 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 02 Feb 2004 07:51:53 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <9330868626.20040201180716@cactus.dk> Message-ID: Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 10:16:30 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 11:16:30 -0500 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD21@DISABILITYINS01> >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav From cfoust at infostatsystems.com Mon Feb 2 10:31:00 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:31:00 -0800 Subject: [AccessD] Using Dates Message-ID: I prefer not to spend a day fiddling with a spreadsheet to get the job done, so I built code to create the date dimension tables I use. I tweak the code for the particular application because not everyone uses the same Fiscal year, for instance, and some have other date divisions peculiar to that client. OK, so it took a day to build the code, but it doesn't take a day for each date dimension table I ever create. :-} Ralph, of course, is the datawarehouse guru, and I swear by his books. I just happen to disagree with him on this particular issue ... Not exactly a first for me and the experts. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Sunday, February 01, 2004 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using Dates Hi Robert et all Maybe Ralph Kimball is a lurker here? I guess not - then he wouldn't suggest fiddling with a spreadsheet to create the table ... Anyway, here is his latest design tip. It is not on-line so I cannot pass a link. /gustav ======================================================== KIMBALL UNIVERSITY DESIGN TIP #51 ======================================================== LATEST THINKING ON TIME DIMENSION TABLES Virtually every fact table has one or more time related dimension foreign keys. Measurements are defined at specific points of time and most measurements are repeated over time. The most common and useful time dimension is the calendar date dimension with the granularity of a single day. This dimension has surprisingly many attributes. Only a few of these attributes (such as month name and year) can be generated directly from an SQL date-time expression. Holidays, work days, fiscal periods, week numbers, last day of month flags, and other navigational attributes must be embedded in the calendar date dimension and all date navigation should be implemented in applications by using the dimensional attributes. The calendar date dimension has some very unusual properties. It is one of the only dimensions that is completely specified at the beginning of the data warehouse project. It also doesn't have a conventional source. The best way to generate the calendar date dimension is to spend an afternoon with a spreadsheet and build it by hand. Ten years worth of days is less than 4000 rows. Every calendar date dimension needs a Date Type attribute and a Full Date attribute. These two fields comprise the natural key of the dimension table. The Date Type attribute almost always has the value "date" but there must be at least one record that handles the special non-applicable date situation where the recorded date is inapplicable, corrupted, or hasn't happened yet. The foreign key references in the fact table in these cases must point to a non-date date in the calendar date table! You need at least one of these special records in the calendar date table, but you may want to distinguish several of these unusual conditions. For the inapplicable date case, the value of the Date Type is "inapplicable" or "NA". The Full Date attribute is a full relational date stamp, and it takes on the legitimate value of null for the special cases described above. Remember that the foreign key in a fact table can never be null, since by definition that violates referential integrity. The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. In some fact tables time is measured below the level of calendar day, down to minute or even second. One cannot build a time dimension with every minute second of every day represented. There are more than 31 million seconds in a year! We want to preserve the powerful calendar date dimension and simultaneously support precise querying down to the minute or second. We may also want to compute very precise time intervals by comparing the exact time of two fact table records. For these reasons we recommend a design with a calendar date dimension foreign key and a full SQL date-time stamp, both in the fact table. The calendar day component of the precise time remains as a foreign key reference to our familiar calendar day dimension. But we also embed a full SQL date-time stamp directly in the fact table for all queries requiring the extra precision. Think of this as special kind of fact, not a dimension. In this interesting case, it is not useful to make a dimension with the minutes or seconds component of the precise time stamp, because the calculation of time intervals across fact table records becomes too messy when trying to deal with separate day and time-of-day dimensions. In previous Toolkit books, we have recommended building such a dimension with the minutes or seconds component of time as an offset from midnight of each day, but we have come to realize that the resulting end user applications became too difficult, especially when trying to compute time spans. Also, unlike the calendar day dimension, there are very few descriptive attributes for the specific minute or second within a day. If the enterprise has well defined attributes for time slices within a day, such as shift names, or advertising time slots, an additional time-of-day dimension can be added to the design where this dimension is defined as the number of minutes (or even seconds) past midnight. Thus this time-of-day dimension would either have 1440 records if the grain were minutes or 86,400 records if the grain were seconds. The presence of such a time-of-day dimension does not remove the need for the SQL date-time stamp described above. Ralph Kimball Ralph at ralphkimball.com (c) Copyright Ralph Kimball Group, 2004. ===================================================== If you have colleagues and friends who would also like to receive Kimball University Design Tips, please have them email Nancy (nancy at ralphkimball.com) with "add" in the subject line. When you join, you will automatically be sent the 2003 Design Tips to date. The Design Tips published during 2000 through 2002 are available at www.ralphkimball.com. --- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Mon Feb 2 10:33:45 2004 From: pharold at proftesting.com (Perry Harold) Date: Mon, 2 Feb 2004 11:33:45 -0500 Subject: [AccessD] Code Not Working in XP In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0CFE0@cntexchange.pgdp.usec.com> Message-ID: <007501c3e9aa$53c30df0$082da8c0@D58BT131> We're using Server 2003 and AXP. When I set up the share I had to give individual permission (in addition to having them as members of a group like Authorized Users) to each user that needed access to the share before everything ran smoothly. Those permissions are on the server side not the user side. I can't say that's the definitive solution because as a small shop we usually make settings that when they work that's what we use and there might be a much better way but no one has the time research it. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Friday, January 30, 2004 12:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP Do you know what needed to be changed with the permissions? I talked to IT about the problem and they do not know what I am talking about. They said they need specifics. I do not know enough about XP or how they have the permissions set up to give them an answer. Virginia -----Original Message----- From: Perry Harold [mailto:pharold at proftesting.com] Sent: Thursday, January 29, 2004 6:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP Maybe something with the permission settings on the XP boxes. Had something similar that worked great with 98 & did the same thing as yours when switching to XP until some permissions were set to allow them access to the shared resources. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Thursday, January 29, 2004 11:29 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Code Not Working in XP I have been using the code shown below to access data on our Intranet. The code matches a field entry in the database and looks up the details. In this example it finds a stock number. Problem: The code does not work for users that are running XP. It does not do anything, it will not even try to access the web. They click the button and nothing happens. What can I do to correct this for users of XP? Virginia _____ strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber If Dir(strFile) = "" Then strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 10:43:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:43:48 -0800 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: >>There's no way these features aren't offered in Access. ROTFL Sorry, but those are famous last words! In fact, many of the things you can do in VB aren't available in Access forms ... And vice versa. Access controls are often more like ActiveX controls than the ones used in VB. Have you tried using a product like IrfanView to get a transparent background? I'm just blue-skying here because I've never seriously tried to play with buton icons in Access. It's simply been too much work for the result. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Friday, January 30, 2004 8:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2003: Masked bitmaps as button images? All, I'm trying to create some pretty navigation buttons for a client. I have a great set of icons to use, but cannot figure out how to tell Access to render each icon's mask color as transparant. This works like a chamr in VB, of course - but I need it to work in Access as well! I thought that the ImageList controls might work, but then I discovered that although I can put my icons into the ImageList, I cannot assign those images to any of my buttons. I've got to be doing something wrong. There's no way these features aren't offered in Access. Heeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 10:56:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 08:56:38 -0800 Subject: [AccessD] RE: Using Dates Message-ID: Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >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 AIG.com Mon Feb 2 11:06:37 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 2 Feb 2004 12:06:37 -0500 Subject: [AccessD] Code Not Working in XP Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7D91@xlivmbx12.aig.com> What is this code supposed to be doing? See my comment within it... strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber ' This next line is feeding a URL for a web page to the Dir() function ??? ' Surely it always returns "" or errors out? If Dir(strFile) = "" Then ' The effect of the next line is to set strFile equal to what it was already set to two lines of code earlier. strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) So, as the If Then part of this code does not actually do anything, the problem must be either in the fHandleFile routine or in you error handler (if there is one). Have you tried stepping through the code so see what is failing to run? Also, if you use fHandleFile() as the function that it actually is, you'll be able to see any error message it returns. e.g. MsgBox fHandleFile(strFile, WIN_MAX) Lambert > -----Original Message----- > From: Perry Harold [SMTP:pharold at proftesting.com] > Sent: Monday, February 02, 2004 11:34 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > We're using Server 2003 and AXP. When I set up the share I had to give > individual permission (in addition to having them as members of a group > like > Authorized Users) to each user that needed access to the share before > everything ran smoothly. Those permissions are on the server side not the > user side. I can't say that's the definitive solution because as a small > shop we usually make settings that when they work that's what we use and > there might be a much better way but no one has the time research it. > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Friday, January 30, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > > Do you know what needed to be changed with the permissions? I talked to IT > about the problem and they do not know what I am talking about. They said > they need specifics. I do not know enough about XP or how they have the > permissions set up to give them an answer. > > Virginia > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Thursday, January 29, 2004 6:35 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Code Not Working in XP > > > Maybe something with the permission settings on the XP boxes. Had > something > similar that worked great with 98 & did the same thing as yours when > switching to XP until some permissions were set to allow them access to > the > shared resources. > > Perry Harold > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Thursday, January 29, 2004 11:29 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Code Not Working in XP > > > I have been using the code shown below to access data on our Intranet. The > code matches a field entry in the database and looks up the details. In > this > example it finds a stock number. > > Problem: The code does not work for users that are running XP. It does not > do anything, it will not even try to access the web. They click the button > and nothing happens. > > What can I do to correct this for users of XP? > > Virginia > _____ > > > strPath = " http://web.com/vr.asp?xml=orafin%2Stock= > > strFile = strPath & Me.StockNumber > > If Dir(strFile) = "" Then > strFile = strPath & Me.StockNumber > End If > > Call fHandleFile(strFile, WIN_MAX) > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 2 11:10:48 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 11:10:48 -0600 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <4AE733BBEEE72647A9F950F7275F262E112774@nt04.karta.com> Another alternative is FMS Total Access Components. Graphics for buttons are available, as well as changing background colors. Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Masked bitmaps as button images? >>There's no way these features aren't offered in Access. ROTFL Sorry, but those are famous last words! In fact, many of the things you can do in VB aren't available in Access forms ... And vice versa. Access controls are often more like ActiveX controls than the ones used in VB. Have you tried using a product like IrfanView to get a transparent background? I'm just blue-skying here because I've never seriously tried to play with buton icons in Access. It's simply been too much work for the result. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Friday, January 30, 2004 8:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2003: Masked bitmaps as button images? All, I'm trying to create some pretty navigation buttons for a client. I have a great set of icons to use, but cannot figure out how to tell Access to render each icon's mask color as transparant. This works like a chamr in VB, of course - but I need it to work in Access as well! I thought that the ImageList controls might work, but then I discovered that although I can put my icons into the ImageList, I cannot assign those images to any of my buttons. I've got to be doing something wrong. There's no way these features aren't offered in Access. Heeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:18:56 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:18:56 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD22@DISABILITYINS01> lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 2 11:21:57 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 2 Feb 2004 10:21:57 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <184670-22004212172157830@christopherhawkins.com> Get ready, Charlotte...I DID IT!! Just not with the native Access command buttons. ;) I got myself a copy of the SoftBttn.ocx control - it gives you one of those Access 97-style toolbar buttons that appears flat until you float over it; then it pops up. It has properties that allow you do define a mask color; you tell it what color should be transparant, and the control takes care of it for you. It's nice. I've actually used the control before, just not since 2000 or so, when I switched over to doing ASP 3.0 exclusively. I'd forgotten all about it. I put a SoftBttn.ocx demo out on my website; this is probably old news to most of you, but I'm happy to have re-discovered this control. Anyone who wants to play with the SoftBttn control can find the sample file at http://www.christopherhawkins.com/softbttndemoA2003.zip. And yes, I did the crappy button icons myself. :P -Christopher- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] A2003: Masked bitmaps as button images? Date: Mon, 2 Feb 2004 08:43:48 -0800 >>>There's no way these features aren't offered in Access. > >ROTFL > >Sorry, but those are famous last words! In fact, many of the things >you >can do in VB aren't available in Access forms ... And vice versa. >Access controls are often more like ActiveX controls than the ones >used >in VB. Have you tried using a product like IrfanView to get a >transparent background? I'm just blue-skying here because I've never >seriously tried to play with buton icons in Access. It's simply been >too much work for the result. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Friday, January 30, 2004 8:42 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A2003: Masked bitmaps as button images? > > >All, > >I'm trying to create some pretty navigation buttons for a client. I >have a great set of icons to use, but cannot figure out how to tell >Access to render each icon's mask color as transparant. > >This works like a chamr in VB, of course - but I need it to work in >Access as well! > >I thought that the ImageList controls might work, but then I >discovered >that although I can put my icons into the ImageList, I cannot assign >those images to any of my buttons. > >I've got to be doing something wrong. There's no way these features >aren't offered in Access. > >Heeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 2 11:35:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 09:35:36 -0800 Subject: [AccessD] RE: Using Dates Message-ID: The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:55:35 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:55:35 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD23@DISABILITYINS01> Charlotte, >I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. Per the quoted text from Gustav: (Ralph Kimball?) The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Feb 2 11:57:19 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 2 Feb 2004 12:57:19 -0500 Subject: [AccessD] RE: Using Dates Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD24@DISABILITYINS01> Charlotte, >The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. Yes, but many people use a single field to hold a date / time, which wouldn't index cleanly into the date table. The time would have to be stripped off before the join. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Mon Feb 2 12:12:19 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Mon, 02 Feb 2004 12:12:19 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: Thanks to you and to Gustav for giving me more good ideas. I guess your question kind of goes back to my original one. If it looks at the whole date before giving me the "1" for the month, then I'll get Jan 05 data rather than Jan 04 data. I guess the question is senseless since both Joe and Gustav have given me good alternatives, but I may still have to plug some fake data just to see what I get back. I have been following the dates table discussion and I've got another (stupid) question. Except for fiscal years and holiday schedule modifications, is this not the type of table that one of the people who has already spent the time to create it could just put out for everyone to use? I'm afraid I started following the discussion a bit late, so maybe I missed something. It's not that I mind a day spent creating something really useful, it just seems a bit like re-inventing the wheel. Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Fri, 30 Jan 2004 23:39:52 -0600 Gina, What are you going to do when the year changes and you have data for 2 January's in 2 years? The year has to be part of what you us in the query. Try using the date dimension table technique I have been talking about and it will smooth things out for you and dates (well dates in the database anyway ;-)) ). Robert At 02:27 PM 1/30/2004 -0600, you wrote: >From: Gina Hoopes >To: AccessD at databaseadvisors.com >Date: Friday, January 30, 2004 1:26 PM >Subject: [AccessD] DatePart Question > > >This may be a dumb question, but here goes. I have a table full of data >that I need to query, and what I need returned is the data from last month. >If I query the Max on DatePart("m",PeriodEnd) on the data that's there now, >I get a 12 which is correct (from 12/31/03). But, next month we will have >added January '04 data, so the latest data in the PeriodEnd field will be >1/31/04, but when I query for just the month, am I going to get a 1? I >guess I'm asking if the Max function is still going to look at the whole >date and return just the DatePart of "m", or will 12 be considered alone, >and therefore greater than 1? > >I'm always open to an easier method, if you've got any ideas. > >Thanks, >Gina Thanks, Gina _________________________________________________________________ Scope out the new MSN Plus Internet Software ? optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 From HollisVJ at pgdp.usec.com Mon Feb 2 12:17:44 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 02 Feb 2004 12:17:44 -0600 Subject: [AccessD] Code Not Working in XP Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D00A@cntexchange.pgdp.usec.com> Ok, I took out the "If..." and you're right it works fine without it. In fact it now works in XP. It would stop at the If statement with the error "bad file name or number". It seems funny I have been using it all this time in Win98 & it has worked. Thank you very much! I am glad it was such a simple fix too. Va. -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, February 02, 2004 11:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code Not Working in XP What is this code supposed to be doing? See my comment within it... strPath = " http://web.com/vr.asp?xml=orafin%2Stock= strFile = strPath & Me.StockNumber ' This next line is feeding a URL for a web page to the Dir() function ??? ' Surely it always returns "" or errors out? If Dir(strFile) = "" Then ' The effect of the next line is to set strFile equal to what it was already set to two lines of code earlier. strFile = strPath & Me.StockNumber End If Call fHandleFile(strFile, WIN_MAX) So, as the If Then part of this code does not actually do anything, the problem must be either in the fHandleFile routine or in you error handler (if there is one). Have you tried stepping through the code so see what is failing to run? Also, if you use fHandleFile() as the function that it actually is, you'll be able to see any error message it returns. e.g. MsgBox fHandleFile(strFile, WIN_MAX) Lambert From andy at minstersystems.co.uk Mon Feb 2 12:29:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 2 Feb 2004 18:29:34 -0000 Subject: [AccessD] macro can't find function In-Reply-To: <3560.24.187.36.171.1075682658.squirrel@heck.bay9.com> Message-ID: <051501c3e9ba$85429cf0$b274d0d5@minster33c3r25> Oleg, I think that may be it. Seem, to recall having seen that before. Try renaming module to basXXXX, which is a standard naming convention, or mdlxxxx Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: 02 February 2004 00:44 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] macro can't find function > > > hmm, the function when run by itself works fine. Could the > problem possibly bee that the module in which it is located > is called the same name as function ? > > > Well all I can think is a) rename the function (could BreakName > > possibly be a reserved word?) and/or b) decompile, repair etc to be > > sure it isn't just glitchy. Other than that I cn't see what the > > problem is. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> Oleg_123 at xuppa.com > >> Sent: 30 January 2004 16:47 > >> To: accessd at databaseadvisors.com > >> Subject: RE: [AccessD] macro can't find function > >> > >> > >> still gives me the same error :--( > >> > >> > >> > >> > Beat me to it Lambert :-) > >> > > >> > Andy Lacey > >> > http://www.minstersystems.co.uk > >> > > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Heenan, > >> Lambert > >> >> Sent: 29 January 2004 17:08 > >> >> To: 'Access Developers discussion and problem solving' > >> >> Subject: RE: [AccessD] macro can't find function > >> >> > >> >> > >> >> I'd suggest you get rid of the space between "BreakName" and the > >> opening parentheses. > >> >> > >> >> Lambert > >> >> > >> >> > -----Original Message----- > >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > >> >> > Sent: Thursday, January 29, 2004 11:52 AM > >> >> > To: accessd at databaseadvisors.com > >> >> > Subject: RE: [AccessD] macro can't find function > >> >> > > >> >> > it's public (of course ;-) > >> >> > and this is how it looks -- BreakName () > >> >> > > >> >> > i decided to try to make that macro call another macro > >> >> which contains > >> >> > the function > >> >> > > >> >> > > Oleg > >> >> > > > >> >> > > In a macro the function has to be expressed as fn(), ie. > >> >> no = sign > >> >> > > before it but must have the parentheses. May be worth > >> >> checking. Oh > >> >> > > and the function must of course be Public. > >> >> > > > >> >> > > Andy Lacey > >> >> > > http://www.minstersystems.co.uk > >> >> > > > >> >> > >> -----Original Message----- > >> >> > >> From: accessd-bounces at databaseadvisors.com > >> >> > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >> >> Oleg_123 at xuppa.com > >> >> > >> Sent: 29 January 2004 16:12 > >> >> > >> To: accessd at databaseadvisors.com > >> >> > >> Subject: RE: [AccessD] macro can't find function > >> >> > >> > >> >> > >> > >> >> > >> Group, > >> >> > >> > >> >> > >> I have a long macro that opens several queries, at the end > >> >> > >> its > >> >> suppose to RunCode - function, however it gives me an > message "The > >> >> > >> expression you entered has a function name that xxx > >> can't find". > >> >> When I run that function separetely it works fine, and > the name is > >> >> > >> spelled correctly since i didn't type it but selected it > >> >> > >> using > >> >> their device what should i do ? > >> >> > >> > >> >> > >> > >> >> > >> ----------------------------------------- > >> >> > >> Get Breaking News from CNN, ABC, NBC, CBS Now. > >> >> > >> http://www.xuppa.com/news/?link=webmail > >> >> > >> > >> >> > >> > >> >> > >> > >> >> > >> _______________________________________________ > >> >> > >> AccessD mailing list > >> >> > >> AccessD at databaseadvisors.com > >> >> > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> >> > >> Website: > >> >> > >> http://www.databaseadvisors.com > >> >> > >> > >> >> > >> > >> >> > > > >> >> > > _______________________________________________ > >> >> > > AccessD mailing list > >> >> > > AccessD at databaseadvisors.com > >> >> > > http://databaseadvisors.com/mailman/listinfo/accessd > >> >> > > Website: http://www.databaseadvisors.com > >> >> > > >> >> > > >> >> > > >> >> > ----------------------------------------- > >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. > >> >> > http://www.xuppa.com/news/?link=webmail > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > AccessD mailing list > >> >> > AccessD at databaseadvisors.com > >> >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> >> > Website: http://www.databaseadvisors.com > >> >> _______________________________________________ > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> >> Website: > >> >> http://www.databaseadvisors.com > >> >> > >> >> > >> > > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > >> > >> > >> ----------------------------------------- > >> Get Breaking News from CNN, ABC, NBC, CBS Now. > >> http://www.xuppa.com/news/?link=webmail > >> > >> > >> > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> Website: > >> http://www.databaseadvisors.com > >> > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From serbach at new.rr.com Mon Feb 2 13:00:47 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 2 Feb 2004 13:00:47 -0600 Subject: [AccessD] Merging photos from Access to Word Message-ID: <20040202130047.1598301221.serbach@new.rr.com> Kathryn, I understand what you're doing. I'm more of a WordPerfect guy myself. In looking through the WordPerfect Merge commands I found EMBEDMACRO. Now, I've not played with this sort of thing myself. I tried a quick macro that inserted a graphic into a document and then went back and edited the macro and I could see the file name. It seems to me that you could use EMBEDMACRO in your Merge codes to insert the graphic given in the file name in your Photo column. It's a start anyway. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. From cfoust at infostatsystems.com Mon Feb 2 13:17:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 11:17:29 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: I use code to create them and to append to them, but I modify that code to meet the particular needs of a client, and I don't bother with holidays, since that has never been part of the specification. If you want a copy of the module that contains the routines I use, I'll be glad to send it to you to play with if you email me. I haven't looked at it in about 4 years, so I make no guarantees. Charlotte Foust -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Monday, February 02, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: DatePart Question Thanks to you and to Gustav for giving me more good ideas. I guess your question kind of goes back to my original one. If it looks at the whole date before giving me the "1" for the month, then I'll get Jan 05 data rather than Jan 04 data. I guess the question is senseless since both Joe and Gustav have given me good alternatives, but I may still have to plug some fake data just to see what I get back. I have been following the dates table discussion and I've got another (stupid) question. Except for fiscal years and holiday schedule modifications, is this not the type of table that one of the people who has already spent the time to create it could just put out for everyone to use? I'm afraid I started following the discussion a bit late, so maybe I missed something. It's not that I mind a day spent creating something really useful, it just seems a bit like re-inventing the wheel. Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Fri, 30 Jan 2004 23:39:52 -0600 Gina, What are you going to do when the year changes and you have data for 2 January's in 2 years? The year has to be part of what you us in the query. Try using the date dimension table technique I have been talking about and it will smooth things out for you and dates (well dates in the database anyway ;-)) ). Robert At 02:27 PM 1/30/2004 -0600, you wrote: >From: Gina Hoopes >To: AccessD at databaseadvisors.com >Date: Friday, January 30, 2004 1:26 PM >Subject: [AccessD] DatePart Question > > >This may be a dumb question, but here goes. I have a table full of >data that I need to query, and what I need returned is the data from >last month. If I query the Max on DatePart("m",PeriodEnd) on the data >that's there now, I get a 12 which is correct (from 12/31/03). But, >next month we will have added January '04 data, so the latest data in >the PeriodEnd field will be 1/31/04, but when I query for just the >month, am I going to get a 1? I guess I'm asking if the Max function >is still going to look at the whole date and return just the DatePart >of "m", or will 12 be considered alone, and therefore greater than 1? > >I'm always open to an easier method, if you've got any ideas. > >Thanks, >Gina Thanks, Gina _________________________________________________________________ Scope out the new MSN Plus Internet Software - optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 13:17:37 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 14:17:37 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <20040202130047.1598301221.serbach@new.rr.com> References: <20040202130047.1598301221.serbach@new.rr.com> Message-ID: <48791.12.3.132.98.1075749457.squirrel@heck.bay9.com> Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Mark.Mitsules at ngc.com Mon Feb 2 13:22:43 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 2 Feb 2004 14:22:43 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark From lists at theopg.com Mon Feb 2 13:31:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 19:31:54 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <184670-22004212172157830@christopherhawkins.com> Message-ID: <000001c3e9c3$411b5270$b00d6bd5@netboxxp> Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark From Mark.Mitsules at ngc.com Mon Feb 2 13:35:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 2 Feb 2004 14:35:18 -0500 Subject: [AccessD] [OT] Maximum length of a string value in the Regist ry Message-ID: http://support.microsoft.com/default.aspx?scid=kb;EN-US;256986 This may help...watch for wrap. Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Monday, February 02, 2004 2:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] [OT] Maximum length of a string value in the Registry Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 14:17:06 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 15:17:06 -0500 (EST) Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <000001c3e9c3$411b5270$b00d6bd5@netboxxp> References: <184670-22004212172157830@christopherhawkins.com> <000001c3e9c3$411b5270$b00d6bd5@netboxxp> Message-ID: <48862.12.3.132.98.1075753026.squirrel@heck.bay9.com> You mean how many characters ? Thereotically about 2 billion, but it obviously depends on your computer & its memory constraints integer is from -32,768 to 32,767 > Hello... > > Does anyone know how many characters can safely be stored as s string in > the registry? > > Cheers > > Mark > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From lists at theopg.com Mon Feb 2 14:24:48 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 20:24:48 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: Message-ID: <000801c3e9ca$a66e06c0$b00d6bd5@netboxxp> Perfect... Thanks Mark Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark S. (Newport News) Sent: 02 February 2004 19:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] [OT] Maximum length of a string value in the Registry http://support.microsoft.com/default.aspx?scid=kb;EN-US;256986 This may help...watch for wrap. Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Monday, February 02, 2004 2:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] [OT] Maximum length of a string value in the Registry Hello... Does anyone know how many characters can safely be stored as s string in the registry? Cheers Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 14:29:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 12:29:49 -0800 Subject: [AccessD] RE: Using Dates Message-ID: I'm not even sure what Ralph is saying there, and it flies in the face of what he does in some of his books, so I have no answer for you, John. Keep in mind, though, that datawarehouses are indexed somewhat differently from transactional databases, so that may be where the confusion is coming in. If you were using surrogate keys and meaningless values as the PK, the dates in the main records would need to be inserted *from* the date table, and that isn't generally the way the thing is used. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates Charlotte, >I'm not sure what you mean about the meaningless pk in this regard. >You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. Per the quoted text from Gustav: (Ralph Kimball?) The calendar date primary key ideally should be a meaningless surrogate key but many ETL teams can't resist the urge to make the key a readable quantity such as 20040718 meaning July 18, 2004. However as with all smart keys, the few special records in the calendar date dimension will make the designer play tricks with the smart key. For instance, the smart key for the inapplicable date would have to be some nonsensical value like 99999999, and applications that tried to interpret the date key directly without using the dimension table would always have to test against this value because it is not a valid date. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates The PK of the dimension table is the date itself. I'm not sure what you mean about the meaningless pk in this regard. You could use an autonumber and make the date field a unique key, but I don't know what that would buy you. You wouldn't ever join a date time like that. The calendar date table is for dates, not time, although I suppose it could be extended if you were into pain. This kind of table is typically used where the user may want to slice and dice data on the fly. In that case, the date fields in the data tables are already indexed for that purpose. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, February 02, 2004 9:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: Using Dates lol. All I needed to know is that you join any date (use the date as the PK in the date table). I notice that the proponent whazizname doesn't recommend this though, rather using a "meaningless" pk (autonumber?). When it comes back to this it becomes less obvious how to use it. I can easily build a date() as a default value for a field for example. However having to lookup that date and get the PK of the record matching that date... a little less obvious. I will no doubt look at this though. I can see just thinking about it that it isn't the end all / be all, even speed wise. For queries that only return 1 or a handful of records, using direct functions to build some piece of the date would be MUCH faster than doing a join on this table, pulling the index for 10,000 date records etc. And there is always the issue of joining a date directly when it has a time component - now() instead of date(). Interesting none the less. John W. Colby The database guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] RE: Using Dates Ah, a convert! Charlottet Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, January 30, 2004 11:06 AM To: 'Robert L. Stewart'; accessd at databaseadvisors.com Cc: Colby, John Subject: [AccessD] RE: Using Dates I think I finally "got it". This is joined to any date to pull out the various pieces needed? Then you build a function to populate this thing for the dates that your app needs? I think I might just appreciate this one! ;-) John W. Colby The database guy -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Friday, January 30, 2004 1:58 PM To: accessd at databaseadvisors.com Cc: JColby at dispec.com Subject: Re: Using Dates Actually, you have a "standard" date dimension table that everyone uses and the overhead is minimal. At 12:00 PM 1/30/2004 -0600, you wrote: >Date: Fri, 30 Jan 2004 12:58:44 -0500 >From: "Colby, John" >Subject: RE: [AccessD] Using Dates >To: "'Access Developers discussion and problem solving'" > >Message-ID: <05C61C52D7CAD211A7830008C7DF6F1079BD12 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >I have to assume though that you only create these as required for >reporting? The overhead would be enormous otherwise. > >John W. Colby _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Mon Feb 2 14:34:06 2004 From: pharold at proftesting.com (Perry Harold) Date: Mon, 2 Feb 2004 15:34:06 -0500 Subject: [AccessD] passing a value from report to form In-Reply-To: <48791.12.3.132.98.1075749457.squirrel@heck.bay9.com> Message-ID: <007e01c3e9cb$e790b840$082da8c0@D58BT131> How about ReportField=Forms![FormName]![FormField] Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] passing a value from report to form Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Feb 2 14:35:35 2004 From: lists at theopg.com (MarkH) Date: Mon, 2 Feb 2004 20:35:35 -0000 Subject: [AccessD] [OT] Maximum length of a string value in the Registry In-Reply-To: <48862.12.3.132.98.1075753026.squirrel@heck.bay9.com> Message-ID: <000901c3e9cc$23e8b7c0$b00d6bd5@netboxxp> Thanks Oleg Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: 02 February 2004 20:17 To: accessd at databaseadvisors.com Subject: Re: [AccessD] [OT] Maximum length of a string value in the Registry You mean how many characters ? Thereotically about 2 billion, but it obviously depends on your computer & its memory constraints integer is from -32,768 to 32,767 > Hello... > > Does anyone know how many characters can safely be stored as s string > in the registry? > > Cheers > > Mark > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Feb 2 15:23:20 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 2 Feb 2004 16:23:20 -0500 Subject: [AccessD] passing a value from report to form References: <007e01c3e9cb$e790b840$082da8c0@D58BT131> Message-ID: <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> Are you opening the report from the form? If so, you can use OpenArgs -- 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs in reports came later than the form's version. Susan H. > How about ReportField=Forms![FormName]![FormField] > > Perry From Oleg_123 at xuppa.com Mon Feb 2 15:41:46 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:41:46 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> References: <007e01c3e9cb$e790b840$082da8c0@D58BT131> <004b01c3e9d3$aec0fb80$210110ac@SUSANONE> Message-ID: <48984.12.3.132.98.1075758106.squirrel@heck.bay9.com> in 2000 yes, in 97 - no :--( no way to do it without that ? > Are you opening the report from the form? If so, you can use OpenArgs -- > 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs > in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Mon Feb 2 15:43:25 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 13:43:25 -0800 Subject: [AccessD] passing a value from report to form Message-ID: AXP was the first version that had an OpenArgs for reports. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, February 02, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] passing a value from report to form Are you opening the report from the form? If so, you can use OpenArgs -- 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs in reports came later than the form's version. Susan H. > How about ReportField=Forms![FormName]![FormField] > > Perry _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 2 15:49:56 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 15:49:56 -0600 Subject: [AccessD] passing a value from report to form Message-ID: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> Perry is correct. I do this all the time. This is especially useful to put the "To" and "From" dates for the report. Jim -----Original Message----- From: Perry Harold [mailto:pharold at proftesting.com] Sent: Monday, February 02, 2004 2:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] passing a value from report to form How about ReportField=Forms![FormName]![FormField] Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 02, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] passing a value from report to form Still can't figure out how to pass a value (not related to any table) user selects on a form to a report. Any suggestions ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 2 15:52:55 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:52:55 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: References: Message-ID: <48813.12.3.132.98.1075758775.squirrel@heck.bay9.com> well at home I have OpenArgs, but.. I don't really need this appl at home. can this be done using where ? in this fashion -- Dim stDocName As String Dim ddd As String stDocName = "Carol2" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , ddd > AXP was the first version that had an OpenArgs for reports. > > Charlotte Foust > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, February 02, 2004 1:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] passing a value from report to form > > > Are you opening the report from the form? If so, you can use OpenArgs -- > 2002 I think -- I really can't remember if it's in 2000 or not. OpenArgs > in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Mon Feb 2 15:59:17 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 2 Feb 2004 16:59:17 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E112780@nt04.karta.com> Message-ID: <48760.12.3.132.98.1075759157.squirrel@heck.bay9.com> what version are we talking about ? and where should I put it. OpenArgs is not available.. stDocName = "Carol2" strSQL = "[employee number] = '" & Me!employeenumber & "'" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , strSQL > > Perry is correct. > I do this all the time. > This is especially useful to put the "To" and "From" dates for the > report. > > Jim > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Monday, February 02, 2004 2:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] passing a value from report to form > > > How about ReportField=Forms![FormName]![FormField] > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 02, 2004 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] passing a value from report to form > > > Still can't figure out how to pass a value (not related to any table) > user selects on a form to a report. Any suggestions ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 2 16:06:26 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 2 Feb 2004 16:06:26 -0600 Subject: [AccessD] passing a value from report to form Message-ID: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> I've done it for A97 and A2K. Put it directly into the Control Source of the Object in the report. For example: I have a form with three date fields. Begin Date, End Date and Annual (picks the entire year) I have one control at the top of the report for dates. Below is what's in the control source: =IIf(IsNull([Forms]![frmRosterDatesSelect].[BeginDate]),"Calendar Year: "+Str([Forms]![frmRosterDatesSelect].[AnnualYear]),"Between: "+Str([Forms]![frmRosterDatesSelect].[BeginDate])+" - "+Str([Forms]![frmRosterDatesSelect].[EndDate])) HTH Jim -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 02, 2004 3:59 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] passing a value from report to form what version are we talking about ? and where should I put it. OpenArgs is not available.. stDocName = "Carol2" strSQL = "[employee number] = '" & Me!employeenumber & "'" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , strSQL > > Perry is correct. > I do this all the time. > This is especially useful to put the "To" and "From" dates for the > report. > > Jim > > -----Original Message----- > From: Perry Harold [mailto:pharold at proftesting.com] > Sent: Monday, February 02, 2004 2:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] passing a value from report to form > > > How about ReportField=Forms![FormName]![FormField] > > Perry > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 02, 2004 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] passing a value from report to form > > > Still can't figure out how to pass a value (not related to any table) > user selects on a form to a report. Any suggestions ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 2 16:12:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Feb 2004 14:12:45 -0800 Subject: [AccessD] passing a value from report to form Message-ID: No. The WhereCondition filters the records in the report, and that isn't what you're trying to do. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 02, 2004 1:53 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] passing a value from report to form well at home I have OpenArgs, but.. I don't really need this appl at home. can this be done using where ? in this fashion -- Dim stDocName As String Dim ddd As String stDocName = "Carol2" ddd = "[namee] = " & Me!Combo14.Value DoCmd.OpenReport stDocName, acPreview, , ddd > AXP was the first version that had an OpenArgs for reports. > > Charlotte Foust > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, February 02, 2004 1:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] passing a value from report to form > > > Are you opening the report from the form? If so, you can use OpenArgs > -- 2002 I think -- I really can't remember if it's in 2000 or not. > OpenArgs in reports came later than the form's version. > > Susan H. > > >> How about ReportField=Forms![FormName]![FormField] >> >> Perry > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Tue Feb 3 01:07:19 2004 From: viner at eunet.yu (Ervin Brindza) Date: Tue, 3 Feb 2004 08:07:19 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <184670-22004212172157830@christopherhawkins.com> Message-ID: <00e501c3ea24$6fd10f40$0100a8c0@razvoj> > I put a SoftBttn.ocx demo out on my website; this is probably old > news to most of you, but I'm happy to have re-discovered this > control. Anyone who wants to play with the SoftBttn control can find > the sample file at > http://www.christopherhawkins.com/softbttndemoA2003.zip. Can somebody provide a good address where the whole wisdom about custom navigation buttons, background images, splash screens, design tricks etc. are collected? Like Jerry Whittle did for Fixing Corrupt Databases. Or is this a right moment for a team work :) TIA, Ervin From mastercafe at ctv.es Tue Feb 3 01:11:41 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 3 Feb 2004 08:11:41 +0100 Subject: [AccessD] Printer control In-Reply-To: <00e501c3ea24$6fd10f40$0100a8c0@razvoj> Message-ID: <000301c3ea24$f9d8c0c0$0200a8c0@servercafe> Anyone knows how put params to a report. We are using this code, but there are no difference in the final print. Set Application.Printer = Application.Printers(TmpImpresora) With Application.Printer .BottomMargin = sngBot .Copies = Me.InfCopias .TopMargin = sngTop .LeftMargin = sngLft .RightMargin = sngRgt If Me.InfOrienta = 1 Then .Orientation = acPRORLandscape Else .Orientation = acPRORPortrait End If End With We are looking if the sngTop, sngBot, etc... Are in TWIPS unit or milimeters... But don't know the problem. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Feb 3 01:23:19 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 3 Feb 2004 08:23:19 +0100 Subject: [AccessD] Printer control In-Reply-To: <000301c3ea24$f9d8c0c0$0200a8c0@servercafe> Message-ID: <000401c3ea26$a5a3fb30$0200a8c0@servercafe> Finally our problem was twips conversion.... 567 twips= 1 centimeter or 1440 twips= 1 inch or 20 twips=1 point. The next problem is COPIES that don't apply the number, only 1 each time. Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: martes, 03 de febrero de 2004 8:12 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Printer control Anyone knows how put params to a report. We are using this code, but there are no difference in the final print. Set Application.Printer = Application.Printers(TmpImpresora) With Application.Printer .BottomMargin = sngBot .Copies = Me.InfCopias .TopMargin = sngTop .LeftMargin = sngLft .RightMargin = sngRgt If Me.InfOrienta = 1 Then .Orientation = acPRORLandscape Else .Orientation = acPRORPortrait End If End With We are looking if the sngTop, sngBot, etc... Are in TWIPS unit or milimeters... But don't know the problem. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Tue Feb 3 03:48:24 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 3 Feb 2004 09:48:24 -0000 Subject: FW: [AccessD] Charts Message-ID: <61F915314798D311A2F800A0C9C83188047C6A4B@dibble.observatory.donnslaw.co.uk> Stephen I have finally had a go at this and I can't really see how you're making it work - yes I am sleepy and slow today. I can get my select query showing a row for each month; the trouble is, the row is blank apart from the month. To get the correct interpretation for the chart (i.e. for months where there is no data the value for each category axis should = 0) I am somehow going to have to create a row that contains the category and a value of 0 for each category for each month. I think I might go back to working out why getting data into Excel is so difficult :/ Roz -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: 30 January 2004 09:18 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Charts I don't know about sledgehammer but it sounds like it could do the job... :) -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: 29 January 2004 19:44 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Charts I see what you're up against - I've never been a fan of Access charts ..... Excel always excels .... I had a bit of a play, I'm afraid my approach has overtones of sledgehammer, but tell me what you think: I created a new local table called tblMasterMonths, one field called MM, type number (byte). Filled the table with 12 records, values 1, 2, 3, ... 12. To build the query underlying the Chart, I took the select query I had (the one that only shows me January) and altered it to include tblMasterMonths, with a Left Join from tblmasterMonths to the query that contains the raw data. This forces months with no data to still have an entry in the output. Use the output from this into the Chart. Stephen Bond > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Friday, 30 January 2004 7:04 a.m. > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > Sorry Stephen, I guess I wasn't clear enough > > I have the column headings set in my cross-tab query and that works > just fine. The problem is when I try to base a line graph on that > data... I just > can't see a way to do it. > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 17:34 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > Making an assumption here that you have a Cross-tab Q with the month > column header formatted MM ... > > * go to Query Properties, and put something like this in the 'Column > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > This will force a column heading for each month. > > Stephen Bond > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 5:54 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Charts > > > > > > Hi all. Hope everyone is well. > > > > I have a problem with a chart I need to display in Access. I used to > > do this by exporting data to Excel but the connection to Excel has > > been so slow and > > unstable that I am now trying to bring it within Access. > > > > The data I need to display is in a cross-tab query, where I have > > categories as the row header and months of the year as the column > > header. I need to > > show all the months even though we currently have data only > > for January. > > > > If I base the chart on the cross-tab, I cannot see a way to tell it > > that each column should be an axis entry. If I base the chart on a > > select query, > > it correctly allows me to set 'month' as an axis, but only > > shows me January. > > > > Can anyone help? > > > > TIA > > > > Roz > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Feb 3 04:21:11 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 3 Feb 2004 03:21:11 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <184670-22004223102111824@christopherhawkins.com> Well...there is this: http://www.activ8.com.au/interface/ But that mainly has pretty interfaces, which are not the same as "good" interfaces. -Christopher Hawkins- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Tue, 3 Feb 2004 08:07:19 +0100 >> I put a SoftBttn.ocx demo out on my website; this is probably old >> news to most of you, but I'm happy to have re-discovered this >> control. Anyone who wants to play with the SoftBttn control can >find >> the sample file at >> http://www.christopherhawkins.com/softbttndemoA2003.zip. > >Can somebody provide a good address where the whole wisdom about >custom >navigation buttons, background images, splash screens, design tricks >etc. >are collected? Like Jerry Whittle did for Fixing Corrupt Databases. >Or is >this a right moment for a team work :) >TIA, > Ervin > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From subs1847 at solution-providers.ie Tue Feb 3 06:42:00 2004 From: subs1847 at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Feb 2004 12:42:00 -0000 Subject: [AccessD] 80/20 and request for data Message-ID: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> Hello All, I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably I got no replies! So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be sales orders and products, items purchased by department, voters and the geographic region they came from, patients and their final bill, auto parts in inventory and the stock movements, financial stocks and their values over time, horses win / loses by jockey / racecourse or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. Thanks in advance for your help, Mark Breen Ireland From Mark.Mitsules at ngc.com Tue Feb 3 07:22:10 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 3 Feb 2004 08:22:10 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Group, I realize that my question yesterday was rather long-winded, but I am in search of someone who has experience in customizing report page numbers. I'm not talking about just changing the starting page number...I mean custom page numbering based on report grouping. No one has done this? Can anyone point out an online reference? Mark From jimdettman at earthlink.net Tue Feb 3 07:27:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 3 Feb 2004 08:27:06 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Feb 3 07:50:49 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 3 Feb 2004 07:50:49 -0600 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA2B@natexch.jenkens.com> One method I have used is to have a stored procedure with parameters. I can make a query that calls the stored procedure and gives the parameter. (This is not ADP compatible) I use the pass through query builder off of Dev Ashish's site to put the correct parameter into the query. This just builds the query I want with the correct parameter each time I use it. Debbie -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, January 31, 2004 8:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] was SQL Server queries - appending strings Thanks both of you. I have a client that purchased SQL Server and so it's time to get off the dime and learn this stuff. The client uses A2K. Now that I am changing to SQL Server I have to get the server doing more of the work - the whole point is of course to speed things up. For technical reasons (a whole SLEW of reasons) going to an ADP is NOT an option any time in the near future, if at all. I have a main tabbed form which uses a multi-table join to get live data from a client / claim . The client wanted it that way so that the user could edit fields in either table. Views appear to be similar to tables, i.e. I can link to them and they show up in the table window. Is there a way to pass parameters to them? "Where LastName like col*" etc? ATM, I pull the whole recordset and then filter down to a single record. Not fast, but after the initial pull the filter proceeds at a reasonable rate. I can then "filter" to a specific claim reasonably fast. I would like to change this to actually ask SQL Server for a view of exactly one record each time they want to see a claim. Thus avoiding the "pull the entire recordset across the net, now pull the index, etc. This must be editable so AFAIK I cannot use stored procedures which would allow passing parameters. Because this is A2K AFAIK I cannot assign a recordset to the form's recordsource property. What are my options here? Do I have any? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, January 31, 2004 8:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server queries - appending strings On 31 Jan 2004 at 20:44, John W. Colby wrote: > In Access I often do things in queries like: [LastName] & ", " & [FirstName] > > This appears to be bad syntax in SQL Server. Is there an equivalent? > Lastname + ', ' + FirstName Text delimiters are single quotes. String concatenation uses "+". "&" performs an AND logical bitwise comparison. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From gustav at cactus.dk Tue Feb 3 07:57:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2004 14:57:34 +0100 Subject: [AccessD] 80/20 and request for data In-Reply-To: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> References: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> Message-ID: <7221800006.20040203145734@cactus.dk> Hi Mark I have anonymized a 15.000 record table covering some nationwide statistics and "cab'ed" it to your e-mail address. As I don't join the OT list I would be pleased if you bring your observations here - if the moderators allow? /gustav > Hello All, > I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those > of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. > Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic > regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. > I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably > I got no replies! > So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be > sales orders and products, > items purchased by department, > voters and the geographic region they came from, > patients and their final bill, > auto parts in inventory and the stock movements, > financial stocks and their values over time, > horses win / loses by jockey / racecourse > or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. > Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? > If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. > Thanks in advance for your help, > Mark Breen > Ireland > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From subs1847 at solution-providers.ie Tue Feb 3 09:13:44 2004 From: subs1847 at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Feb 2004 15:13:44 -0000 Subject: [AccessD] 80/20 and request for data References: <006201c3ea53$215cc960$0101a8c0@D8TZHN0J> <7221800006.20040203145734@cactus.dk> Message-ID: <00cd01c3ea68$5b7860e0$0101a8c0@D8TZHN0J> Hello Gustav, Thank you. I will post the results back onto AccessD, at least there is some MS Access code behind what I am doing. If the other listers are then annoyed, we can take it off line, if there is any other interest related to Access, so be it. Thanks for the file, I will look at it over the next couple of days and get back to you soon, Mark ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 03, 2004 1:57 PM Subject: Re: [AccessD] 80/20 and request for data > Hi Mark > > I have anonymized a 15.000 record table covering some nationwide > statistics and "cab'ed" it to your e-mail address. > > As I don't join the OT list I would be pleased if you bring your > observations here - if the moderators allow? > > /gustav > > > > Hello All, > > > I am currently doing a project around the 80 / 20 principle. Specifically, I am looking at ways to utilise the phenomenon of the 80 / 20 principle (also know as the Pareto Principle). For those > > of you that have not heard of it, is states that 80 of the results achieved are usually attained by 20% of the inputs. There is loads of info on Google if you want more. > > > Anyway, in the work that I wish to do, I need some decent sets of data. Obviously I can synthesise a set of sales figures for a company, with multiple sales people / departments / geographic > > regions / products etc. But what I really need is real world data, as the analysis I wish to complete has to be based on real data that occurred in normal day to day life. > > > I am fully aware that most people do not want to release their private data, hence my difficulty in acquiring working material. I posted the request to the list a few weeks ago, but understandably > > I got no replies! > > > So this is just another request for the same thing. I am looking for any old sets of data that you may have. They can be > > > sales orders and products, > > items purchased by department, > > voters and the geographic region they came from, > > patients and their final bill, > > auto parts in inventory and the stock movements, > > financial stocks and their values over time, > > horses win / loses by jockey / racecourse > > > or any such data. I will not disclose the data to anyone other than myself, but I guess that should go without saying. I do not need to know the actual products, or company that sold them. > > > Secondly, I would be very interested in any opinions or experience that you have on the 80 20 phenomenon ? > > > If you want father details email me back, I do not mind posting anything on either list, but I think that further discussions should probably be on the OT list. > > > Thanks in advance for your help, > > > Mark Breen > > Ireland > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 3 09:19:55 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:19:55 -0500 (EST) Subject: [AccessD] passing a value from report to form In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E112781@nt04.karta.com> Message-ID: <50445.12.3.132.98.1075821595.squirrel@heck.bay9.com> thanks a lot Jim , it seems to be working :--) > I've done it for A97 and A2K. > Put it directly into the Control Source of the Object in the report. For > example: > I have a form with three date fields. Begin Date, End Date and Annual > (picks the entire year) > I have one control at the top of the report for dates. Below is what's > in the control source: > > =IIf(IsNull([Forms]![frmRosterDatesSelect].[BeginDate]),"Calendar Year: > "+Str([Forms]![frmRosterDatesSelect].[AnnualYear]),"Between: > "+Str([Forms]![frmRosterDatesSelect].[BeginDate])+" - > "+Str([Forms]![frmRosterDatesSelect].[EndDate])) > > HTH > Jim > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 02, 2004 3:59 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] passing a value from report to form > > > what version are we talking about ? and where should I put it. OpenArgs > is not available.. > > stDocName = "Carol2" > strSQL = "[employee number] = '" & Me!employeenumber & "'" > ddd = "[namee] = " & Me!Combo14.Value > > DoCmd.OpenReport stDocName, acPreview, , strSQL > > > > > > > >> >> Perry is correct. >> I do this all the time. >> This is especially useful to put the "To" and "From" dates for the >> report. >> >> Jim >> >> -----Original Message----- >> From: Perry Harold [mailto:pharold at proftesting.com] >> Sent: Monday, February 02, 2004 2:34 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] passing a value from report to form >> >> >> How about ReportField=Forms![FormName]![FormField] >> >> Perry >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Oleg_123 at xuppa.com >> Sent: Monday, February 02, 2004 2:18 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] passing a value from report to form >> >> >> Still can't figure out how to pass a value (not related to any table) >> user selects on a form to a report. Any suggestions ? >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Tue Feb 3 09:21:57 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:21:57 -0500 (EST) Subject: [AccessD] referencing form control In-Reply-To: References: Message-ID: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> I can never remember this -- how do I reference a control ? on VB6 it would have been this way -- If Me.state.Text = "CA" Then stDocName = "screeningCA" Else stDocName = "screening49" End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Tue Feb 3 09:34:04 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 10:34:04 -0500 (EST) Subject: [AccessD] getting the value from list box In-Reply-To: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> References: <50508.12.3.132.98.1075821717.squirrel@heck.bay9.com> Message-ID: <50328.12.3.132.98.1075822444.squirrel@heck.bay9.com> another question, to get the value selected in combo box I do comboname.value. How do I get the value selected in list box value ? there is no such option. Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Tue Feb 3 10:16:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 08:16:44 -0800 Subject: [AccessD] getting the value from list box Message-ID: ListboxName.Value works unless you're using a multiselect. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 7:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] getting the value from list box another question, to get the value selected in combo box I do comboname.value. How do I get the value selected in list box value ? there is no such option. Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 3 10:17:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 08:17:51 -0800 Subject: [AccessD] referencing form control Message-ID: Just drop the .Text property and use Me.state or Me.state.Value. You can only refer to the Text property of a control that has the focus in Access. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 7:22 AM To: accessd at databaseadvisors.com Subject: [AccessD] referencing form control I can never remember this -- how do I reference a control ? on VB6 it would have been this way -- If Me.state.Text = "CA" Then stDocName = "screeningCA" Else stDocName = "screening49" End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 3 10:35:26 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 3 Feb 2004 11:35:26 -0500 (EST) Subject: [AccessD] referencing form control In-Reply-To: References: Message-ID: <50438.12.3.132.98.1075826126.squirrel@heck.bay9.com> thank you, in vb6 i had to put .text > Just drop the .Text property and use Me.state or Me.state.Value. You > can only refer to the Text property of a control that has the focus in > Access. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Tuesday, February 03, 2004 7:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] referencing form control > > > I can never remember this -- how do I reference a control ? on VB6 it > would have been this way -- > > If Me.state.Text = "CA" Then > stDocName = "screeningCA" > Else > stDocName = "screening49" > End If > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Tue Feb 3 10:47:04 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 3 Feb 2004 10:47:04 -0600 Subject: [AccessD] referencing form control Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE311@TAPPEEXCH01> FYI, there is a Text property, but it is only available when focus is on the control. It represents what was just typed into the control, which is not committed to the buffer (Value property) until the control loses focus. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, February 03, 2004 10:35 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] referencing form control thank you, in vb6 i had to put .text > Just drop the .Text property and use Me.state or Me.state.Value. You > can only refer to the Text property of a control that has the focus in > Access. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Tuesday, February 03, 2004 7:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] referencing form control > > > I can never remember this -- how do I reference a control ? on VB6 it > would have been this way -- > > If Me.state.Text = "CA" Then > stDocName = "screeningCA" > Else > stDocName = "screening49" > End If > -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Mark.Mitsules at ngc.com Tue Feb 3 11:29:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 3 Feb 2004 12:29:51 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Message-ID: Jim, Thank you so much for your help. After a bit of massaging, I was able to get exactly what I wanted. I can post the resulting code if anyone's interested. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, February 03, 2004 8:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 3 13:23:36 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 13:23:36 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402030946.i139kem11082@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203125932.029901b0@pop3.highstream.net> Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina From rl_stewart at highstream.net Tue Feb 3 13:31:42 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 13:31:42 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402030946.i139kem11082@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> Charlotte, What I think he is saying is that in 99% of the cases, the regular date dimension table will work. In a few cases, where the date may be missing and you want to get some kind of value for it, you cannot use the date itself as the key, thus the surrogate. The surrogate would be stored in the fact tables (another data warehousing concept, for those that do not know about them). That way when you hit an invalid or null date value, the date dimension table would be able to handle it in a predefined way. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 2 Feb 2004 12:29:49 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] RE: Using Dates >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I'm not even sure what Ralph is saying there, and it flies in the face >of what he does in some of his books, so I have no answer for you, John. >Keep in mind, though, that datawarehouses are indexed somewhat >differently from transactional databases, so that may be where the >confusion is coming in. If you were using surrogate keys and >meaningless values as the PK, the dates in the main records would need >to be inserted *from* the date table, and that isn't generally the way >the thing is used. > >Charlotte Foust From stephen at bondsoftware.co.nz Tue Feb 3 13:30:28 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 04 Feb 2004 08:30:28 +1300 Subject: [AccessD] Charts Message-ID: <70F3D727890C784291D8433E9C418F290885D8@server.bondsoftware.co.nz> Roz, I have sent you something off line. Stephen > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Tuesday, 3 February 2004 10:48 p.m. > To: AccessD (AccessD at databaseadvisors.com) > Subject: FW: [AccessD] Charts > > > Stephen > > I have finally had a go at this and I can't really see how > you're making it > work - yes I am sleepy and slow today. > > I can get my select query showing a row for each month; the > trouble is, the > row is blank apart from the month. To get the correct > interpretation for the > chart (i.e. for months where there is no data the value for > each category > axis should = 0) I am somehow going to have to create a row > that contains > the category and a value of 0 for each category for each month. > > I think I might go back to working out why getting data into > Excel is so > difficult :/ > > Roz > > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: 30 January 2004 09:18 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > I don't know about sledgehammer but it sounds like it could > do the job... :) > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 19:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > I see what you're up against - I've never been a fan of > Access charts ..... > Excel always excels .... > > I had a bit of a play, I'm afraid my approach has overtones > of sledgehammer, > but tell me what you think: > > I created a new local table called tblMasterMonths, one field > called MM, > type number (byte). Filled the table with 12 records, values > 1, 2, 3, ... > 12. > > To build the query underlying the Chart, I took the select > query I had (the > one that only shows me January) and altered it to include > tblMasterMonths, > with a Left Join from tblmasterMonths to the query that > contains the raw > data. This forces months with no data to still have an entry > in the output. > > Use the output from this into the Chart. > > Stephen Bond > > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 7:04 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Charts > > > > > > Sorry Stephen, I guess I wasn't clear enough > > > > I have the column headings set in my cross-tab query and that works > > just fine. The problem is when I try to base a line graph on that > > data... I just > > can't see a way to do it. > > > > -----Original Message----- > > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > > Sent: 29 January 2004 17:34 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Charts > > > > > > Making an assumption here that you have a Cross-tab Q with > the month > > column header formatted MM ... > > > > * go to Query Properties, and put something like this in the 'Column > > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > > > This will force a column heading for each month. > > > > Stephen Bond > > > > > -----Original Message----- > > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > > Sent: Friday, 30 January 2004 5:54 a.m. > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Charts > > > > > > > > > Hi all. Hope everyone is well. > > > > > > I have a problem with a chart I need to display in > Access. I used to > > > do this by exporting data to Excel but the connection to Excel has > > > been so slow and > > > unstable that I am now trying to bring it within Access. > > > > > > The data I need to display is in a cross-tab query, where I have > > > categories as the row header and months of the year as the column > > > header. I need to > > > show all the months even though we currently have data only > > > for January. > > > > > > If I base the chart on the cross-tab, I cannot see a way > to tell it > > > that each column should be an axis entry. If I base the chart on a > > > select query, > > > it correctly allows me to set 'month' as an axis, but only > > > shows me January. > > > > > > Can anyone help? > > > > > > TIA > > > > > > Roz > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 3 13:42:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2004 20:42:30 +0100 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> References: <5.1.0.14.2.20040203132823.028f3758@pop3.highstream.net> Message-ID: <542496076.20040203204230@cactus.dk> Hi Robert > What I think he is saying is that in 99% of the cases, the regular date > dimension table will work. In a few cases, where the date may be missing > and you want to get some kind of value for it, you cannot use the date > itself as the key, thus the surrogate. The surrogate would be stored in > the fact tables (another data warehousing concept, for those that do not > know about them). That way when you hit an invalid or null date value, the > date dimension table would be able to handle it in a predefined way. I noticed this too and wondered. How can one "hit an invalid date"? Do dataware house people not validate data before storing them? A missing date may, of course, be accepted, but an invalid? Where would that come from? /gustav >>I'm not even sure what Ralph is saying there, and it flies in the face >>of what he does in some of his books, so I have no answer for you, John. >>Keep in mind, though, that datawarehouses are indexed somewhat >>differently from transactional databases, so that may be where the >>confusion is coming in. If you were using surrogate keys and >>meaningless values as the PK, the dates in the main records would need >>to be inserted *from* the date table, and that isn't generally the way >>the thing is used. >> >>Charlotte Foust From hoopesg at hotmail.com Tue Feb 3 14:33:06 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 03 Feb 2004 14:33:06 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: I understand your logic. I made the assumption that it was a "one size fits all" data table. Thanks for explaining it. As to the original issue, the process I'm creating is an automatic one, so there is no opportunity for the user to choose anything. It simply needs to take last month's data and process it, and I think I'll be able to accomplish that quite well with what I've learned in the last few days. Thanks again, Gina From: "Robert L. Stewart" To: accessd at databaseadvisors.com CC: hoopesg at hotmail.com Subject: Re: DatePart Question Date: Tue, 03 Feb 2004 13:23:36 -0600 Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina Thanks, Gina _________________________________________________________________ There are now three new levels of MSN Hotmail Extra Storage! Learn more. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1 From jimdettman at earthlink.net Tue Feb 3 14:34:02 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 3 Feb 2004 15:34:02 -0500 Subject: [AccessD] A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, Glad to hear your on your way! Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Tuesday, February 03, 2004 12:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Jim, Thank you so much for your help. After a bit of massaging, I was able to get exactly what I wanted. I can post the resulting code if anyone's interested. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, February 03, 2004 8:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering Mark, <> It's really not as bad as it sounds. What you'll need is two variables to track the page numbers. One for the "major" number and one for the "minor" So: 1. Declare lngMajor and lngMinor in the modules declaration section. 2. In the reports OnOpen event, set the major starting page number (pull it from a dialog form or popup a msgbox asking for the number), and lngMinor to 0. 3. In the page footers OnFormat event, you need to fill a text control with the current page number. Me![txtMyPageNumber] = Format$(lngMajor,"000") & Mid$(" ABCDEFGHIJKLMNOPQRSTUVWXYZ",lngMinor+1,1) 4. In the page headers OnPrint event, increment the page number minor variable: If PrintCount = 1 then lngMinor = lngMinor + 1 If lngMinor > 26 then what? - Not sure what you want to do here. End if 5. In the Groups Header OnPrint event, reset the page number variables: If PrintCount = 1 then lngMajor = lngMajor + 1 lngMinor = 0 End If Give that a try. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, February 02, 2004 2:23 PM To: '[AccessD]' Subject: [AccessD] A2K2 - Report Grouping - Page Numbering Importance: High Group, I am a neophyte in the use of "On Format", "On Print", "On Retreat", etc. when it comes to Access reports. I have a report in the format: Page Header (has no controls and is set to zero height) Group Header Detail Group Footer Page Footer This report has a rather unique page numbering scheme. Until recently, this report has been rather manageable in size and the page numbers were entered manually (please don't ask how). Now, the report size has grown to a point where I must automate the page numbering. I need your help. I originally asked related questions back in December, but didn't make any headway. Here are the requirements: I must be able to manually input the starting page number. At each change in the group header, the page number will increment by one. Now, here comes the tricky part. If a group spans more than one page (i.e. three pages), then an alpha character must be concatenated onto the page number (i.e. using the above three page example... 5, 5A, 5B). So, if the starting page number was "5" the example below would produce 5, 5A, 5B with the next page being 6. And, yes, a group footer can be pushed onto a page with no detail records. Example 2: Page 1 Page 2 Page 3 **************** **************** **************** * Page Header * * Page Header * * Page Header * **************** **************** **************** * Group Header * * Group Header * * Group Footer * **************** **************** **************** * Detail 1 * * Detail 1 * * Page Footer * * Detail 2 * * Detail 2 * **************** * Detail 3 * * Detail 3 * * Detail... * * Detail... * **************** **************** * Page Footer * * Page Footer * **************** **************** Honestly, at the moment, I can't even come up with understandable pseudo code. Basically, number the first page, see if it continues, add an alpha if necessary, see if it continues again, increment alpha if necessary, if not, start next page, increment page number ...loop. Boy...do I need help with this...both with the nested loop code logic and where to put it. TIA, Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 3 15:09:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 03 Feb 2004 15:09:44 -0600 Subject: [AccessD] Re: A2K2 - Report Grouping - Page Numbering In-Reply-To: <200402031800.i13I0Km21608@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040203150056.02979708@pop3.highstream.net> Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am in >search of someone who has experience in customizing report page numbers. >I'm not talking about just changing the starting page number...I mean custom >page numbering based on report grouping. No one has done this? Can anyone >point out an online reference? > >Mark From conny at qad.se Tue Feb 3 15:22:33 2004 From: conny at qad.se (Conny Johansson) Date: Tue, 3 Feb 2004 22:22:33 +0100 Subject: [AccessD] MSO.dll ? hints please Message-ID: <002501c3ea9b$d6dffda0$0400a8c0@QAD> Hi I have a small Access XP Runtime. Development machine = WinXP, Office97 DevEd, O2K Pro, OXP DevEd, O2003 Beta All SP's and uppdates OK Client running Win2K and Office 2K standard edition. App connect's to a SQL-server to collect some data (never write to server) App have been working earlier without problems but after minor changes an new Runtime I get the following error Running installed app on clients mahcine I get random errors and starts MS error-reporting tool. It says that mso.dll generated an error. I can't figure this out though I think I heard it mentionded somewhere. I tried konverting the app to previous version, didn't help Tried different config's in install--program, didn't help Mso.dll version is 10.0.4219.0 It says it's an Microsoft Office XP component. Should this matter in a Runtime install? Thank you Conny J --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-03 Tested on: 2004-02-03 22:22:33 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From DWUTKA at marlow.com Tue Feb 3 16:05:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 16:05:16 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227824@main2.marlow.com> Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess your >question kind of goes back to my original one. If it looks at the whole >date before giving me the "1" for the month, then I'll get Jan 05 data >rather than Jan 04 data. I guess the question is senseless since both Joe >and Gustav have given me good alternatives, but I may still have to plug >some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who has >already spent the time to create it could just put out for everyone to use? >I'm afraid I started following the discussion a bit late, so maybe I missed >something. It's not that I mind a day spent creating something really >useful, it just seems a bit like re-inventing the wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 3 16:38:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 14:38:05 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at afsweb.com Tue Feb 3 18:08:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 3 Feb 2004 16:08:36 -0800 Subject: [AccessD] Code Not Working in XP In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7D91@xlivmbx12.aig.com> Message-ID: Virginia, This may or may not be related to your issue but I came across an application that stopped working when the OS was upgraded (via clean install) from Windows 2000 to Windows XP. This was an app that did an HTTP post to a remote server with a VB front end and an Access MDB back end. The solution that worked for me today after many hours of messing around... Open IE and go to Tools, Internet Options and then click the Advanced tab and then check the box that says Use HTTP 1.1 through proxy connections Again this may or may not solve your issues but it's something you may want to look into. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia > Sent: Thursday, January 29, 2004 11:29 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Code Not Working in XP > > > I have been using the code shown below to access data on our Intranet. The > code matches a field entry in the database and looks up the details. In > this > example it finds a stock number. > > Problem: The code does not work for users that are running XP. It does not > do anything, it will not even try to access the web. They click the button > and nothing happens. > > What can I do to correct this for users of XP? > > Virginia > _____ > > > strPath = " http://web.com/vr.asp?xml=orafin%2Stock= > > strFile = strPath & Me.StockNumber > > If Dir(strFile) = "" Then > strFile = strPath & Me.StockNumber > End If > > Call fHandleFile(strFile, WIN_MAX) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 From d.dick at uws.edu.au Tue Feb 3 19:09:37 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 12:09:37 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <004201c3eabb$8f0fd7f0$48619a89@DDICK> Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With From cfoust at infostatsystems.com Tue Feb 3 19:39:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Feb 2004 17:39:03 -0800 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: Try specifying the CommandType for the Open. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Tuesday, February 03, 2004 5:10 PM To: AccessD List Subject: [AccessD] A2K: Can't update (ADO) Recordset Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 3 19:49:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 12:49:00 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: Message-ID: <009f01c3eac1$0fcc70b0$48619a89@DDICK> Hi Charlotte Many thanks for the response Sorry but I am a real luddite What does that mean ? CommandType gives me nothing in the help (Rarely ever does though) Darren ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 12:39 PM Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset > Try specifying the CommandType for the Open. > > Charlotte Foust > > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Tuesday, February 03, 2004 5:10 PM > To: AccessD List > Subject: [AccessD] A2K: Can't update (ADO) Recordset > > > Hello all > > Can anyone tell me why I get the following Error message when I try and > update the following record set? > ================================================= > Error Number 3251 > Current Recordset does not support updating. > This may be a limitation of the provider, or of the > selected locktype ================================================= > > Code... > Dim con As Object > Dim rs As Object > Dim sel_SQL As String > > Set con = Application.CurrentProject.Connection > > Set rs = CreateObject("ADODB.Recordset") > > > sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM > tblMyTable" _ > & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); > > rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks > > With rs > While Not .EOF > !FieldToBeUpdated = -1 > .MoveNext > Wend > End With > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 20:16:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 20:16:14 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF802227829@main2.marlow.com> Um, you'll need rs.Open sel_SQL, con, 1, 512 That 512 is Optimistic record locking. I think the default is 1, which is read-only. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, February 03, 2004 7:10 PM To: AccessD List Subject: [AccessD] A2K: Can't update (ADO) Recordset Hello all Can anyone tell me why I get the following Error message when I try and update the following record set? ================================================= Error Number 3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype ================================================= Code... Dim con As Object Dim rs As Object Dim sel_SQL As String Set con = Application.CurrentProject.Connection Set rs = CreateObject("ADODB.Recordset") sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" _ & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks With rs While Not .EOF !FieldToBeUpdated = -1 .MoveNext Wend End With _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 3 20:44:16 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 13:44:16 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: <2F8793082E00D4119A1700B0D0216BF802227829@main2.marlow.com> Message-ID: <00d701c3eac8$c81edb10$48619a89@DDICK> Sigh Still don't work Now I get runtime error 3001 Arguments are of the wrong Type, are out of acceptable range, or are in conflict with one another. The the debug highlights the line... rs.Open sel_SQL, con, 1, 512 The field in the underlying table does exist. And is named correctly I dunno Darren ----- Original Message ----- From: To: Sent: Wednesday, February 04, 2004 1:16 PM Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset > Um, you'll need > > rs.Open sel_SQL, con, 1, 512 > > That 512 is Optimistic record locking. I think the default is 1, which is > read-only. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, February 03, 2004 7:10 PM > To: AccessD List > Subject: [AccessD] A2K: Can't update (ADO) Recordset > > > Hello all > > Can anyone tell me why I get the following Error message when I try > and update the following record set? > ================================================= > Error Number 3251 > Current Recordset does not support updating. > This may be a limitation of the provider, or of the > selected locktype > ================================================= > > Code... > Dim con As Object > Dim rs As Object > Dim sel_SQL As String > > Set con = Application.CurrentProject.Connection > > Set rs = CreateObject("ADODB.Recordset") > > > sel_SQL = "SELECT tblMyTable.*, tblMyTable.FieldToBeUpdated FROM tblMyTable" > _ > & "WHERE (((tblMyTable.FieldToBeUpdated ) Is Not Null)); > > rs.Open sel_SQL, con, 1 '<====Error line is here somewhere me thinks > > With rs > While Not .EOF > !FieldToBeUpdated = -1 > .MoveNext > Wend > End With > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Feb 3 20:58:27 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 03 Feb 2004 18:58:27 -0800 Subject: [AccessD] MSO.dll ? hints please References: <002501c3ea9b$d6dffda0$0400a8c0@QAD> Message-ID: <40205FD3.1010301@shaw.ca> If you go to the DLL Hell er Help database you will see that version number comes from Office XP SP-2 http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion%2fdefault.asp%3fvartarget%3dmsdn Also some version of Visio have older versions of this dll.Perhaps a Visio install has overwritten it. This Dll also seems to handle office command bars. There are different versions of this dll for each version of office like mso97.dll Conny Johansson wrote: >Hi >I have a small Access XP Runtime. >Development machine = WinXP, Office97 DevEd, O2K Pro, OXP DevEd, O2003 Beta >All SP's and uppdates OK > >Client running Win2K and Office 2K standard edition. >App connect's to a SQL-server to collect some data (never write to server) > >App have been working earlier without problems but after minor changes an >new Runtime I get the following error >Running installed app on clients mahcine I get random errors and starts MS >error-reporting tool. >It says that mso.dll generated an error. I can't figure this out though I >think I heard it mentionded somewhere. >I tried konverting the app to previous version, didn't help >Tried different config's in install--program, didn't help >Mso.dll version is 10.0.4219.0 >It says it's an Microsoft Office XP component. Should this matter in a >Runtime install? >Thank you >Conny J > >--- >avast! Antivirus: Outbound message clean. >Virus Database (VPS): 2004-02-03 >Tested on: 2004-02-03 22:22:33 >avast! is copyright (c) 2000-2003 ALWIL Software. >http://www.avast.com > > > > > >------------------------------------------------------------------------ > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Feb 3 21:23:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 13:23:31 +1000 Subject: [AccessD] A2K: Can't update (ADO) Recordset In-Reply-To: <00d701c3eac8$c81edb10$48619a89@DDICK> Message-ID: <4020F253.23538.540007@localhost> On 4 Feb 2004 at 13:44, Darren DICK wrote: > Sigh > Still don't work > Now I get runtime error 3001 > Arguments are of the wrong Type, are out of acceptable range, > or are in conflict with one another. > The the debug highlights the line... > > rs.Open sel_SQL, con, 1, 512 > > The field in the underlying table does exist. And is named correctly > I dunno > 512 is *way* out of acceptable range ADBOB locktype constants are: adLockBatchOptistic = 1 adLockOptimistic = 3 (the one you want) adLockPessimistic = 2 AdLockReadOnly = 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From d.dick at uws.edu.au Tue Feb 3 21:46:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 4 Feb 2004 14:46:42 +1100 Subject: [AccessD] A2K: Can't update (ADO) Recordset References: <4020F253.23538.540007@localhost> Message-ID: <00e701c3ead1$80d31f10$48619a89@DDICK> Thank Stuart yes 3 was the answer Have a great day and many many thanks Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 2:23 PM Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 22:19:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 22:19:42 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF80222782D@main2.marlow.com> YIKES! sorry about that. I knew that. Sorry, been a little brain fried lately. Personal life is going somewhere decidedly down, in a hurry, and in a nice wicker handbasket. If you know what I mean. For future reference, the 512 I was thinking of, is the LAST argument, and it is for adCmdTableDirect. I usually use VB, and in doing so, the first option I use is keyset (which is 1), the second is either Read only or dynamic (1 and 3 respectively), and if I open a table directly, I have to tack on adCmdTableDirect. Now, when writing raw ASP, I use the numeric values, which is 1, 1 or 3, and nothing or 512. Unfortunately, since I do 99% of my db work in ASP with VB .dll's, I don't use the numeric values very often, in fact, had to look them up 2 months ago, cause it had been so long since I used them last. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, February 03, 2004 9:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset Thank Stuart yes 3 was the answer Have a great day and many many thanks Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 2:23 PM Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 3 22:20:11 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 3 Feb 2004 22:20:11 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF80222782E@main2.marlow.com> Thanks for catching that Stuart! Massive brain fart! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, February 03, 2004 9:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset On 4 Feb 2004 at 13:44, Darren DICK wrote: > Sigh > Still don't work > Now I get runtime error 3001 > Arguments are of the wrong Type, are out of acceptable range, > or are in conflict with one another. > The the debug highlights the line... > > rs.Open sel_SQL, con, 1, 512 > > The field in the underlying table does exist. And is named correctly > I dunno > 512 is *way* out of acceptable range ADBOB locktype constants are: adLockBatchOptistic = 1 adLockOptimistic = 3 (the one you want) adLockPessimistic = 2 AdLockReadOnly = 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Feb 3 22:41:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 14:41:28 +1000 Subject: [AccessD] A2K: Can't update (ADO) Recordset In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222782E@main2.marlow.com> Message-ID: <40210498.7596.9B5C47@localhost> A little brain fart myself. The last one should be: AdLockReadOnly = 4 On 3 Feb 2004 at 22:20, DWUTKA at marlow.com wrote: > Thanks for catching that Stuart! Massive brain fart! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Tuesday, February 03, 2004 9:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > > > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From viner at eunet.yu Wed Feb 4 00:41:45 2004 From: viner at eunet.yu (Ervin Brindza) Date: Wed, 4 Feb 2004 07:41:45 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <184670-22004223102111824@christopherhawkins.com> Message-ID: <005b01c3eaea$1ea3bd40$0100a8c0@razvoj> ----- Original Message ----- From: "Christopher Hawkins" To: Sent: 03 February, 2004 11:21 AM Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > Well...there is this: > > http://www.activ8.com.au/interface/ > > But that mainly has pretty interfaces, which are not the same as > "good" interfaces. > > -Christopher Hawkins- > Nobody is unsatisfied with his own interface and need no new idea? What about gliding subforms, bouncing(animated) images etc.?! Ervin From accessd667 at yahoo.com Wed Feb 4 00:46:33 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 3 Feb 2004 22:46:33 -0800 (PST) Subject: [AccessD] OT: New mail account... Message-ID: <20040204064633.87340.qmail@web61102.mail.yahoo.com> blablabla if this gets through unsubscribe accessd666... --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From accessd667 at yahoo.com Wed Feb 4 01:00:57 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 3 Feb 2004 23:00:57 -0800 (PST) Subject: [AccessD] OT: OO? Message-ID: <20040204070057.30555.qmail@web61103.mail.yahoo.com> Hi group, I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From accessd at shaw.ca Wed Feb 4 01:15:31 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 03 Feb 2004 23:15:31 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F1079BD21@DISABILITYINS01> Message-ID: Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundRepor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Feb 4 02:43:19 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 4 Feb 2004 01:43:19 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <257900-2200423484319659@christopherhawkins.com> Why would you add a gliding subform or animated image to a database app? Graphic elements are supposed to enhance the usability of an application, not distract from it. This is not ot say that UIs should be battleship gray and plain; from from it. But be careful how much glitz you put into things. -C- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Wed, 4 Feb 2004 07:41:45 +0100 > >----- Original Message ----- >From: "Christopher Hawkins" >To: >Sent: 03 February, 2004 11:21 AM >Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > > >> Well...there is this: >> >> http://www.activ8.com.au/interface/ >> >> But that mainly has pretty interfaces, which are not the same as >> "good" interfaces. >> >> -Christopher Hawkins- >> > >Nobody is unsatisfied with his own interface and need no new idea? >What >about gliding subforms, bouncing(animated) images etc.?! >Ervin > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From viner at eunet.yu Wed Feb 4 03:02:19 2004 From: viner at eunet.yu (Ervin Brindza) Date: Wed, 4 Feb 2004 10:02:19 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: <257900-2200423484319659@christopherhawkins.com> Message-ID: <005301c3eafd$b4c76de0$0100a8c0@razvoj> > Why would you add a gliding subform or animated image to a database > app? Graphic elements are supposed to enhance the usability of an > application, not distract from it. This is not ot say that UIs > should be battleship gray and plain; from from it. But be careful > how much glitz you put into things. > That is matter of taste! If you take a look at www.medela.co.yu the jumping cookies are very effective. The visitors noticed that first, and memorize too. And I have a situation where the form contains two subforms, the first of them contain a subform, the second subform contains two subforms! So, there are 5 subforms on the main form. And there is a need only for 1 "thread", so I displace the unnecessary "thread" with a little animation with gliding move to the very left or right side of the form. And, trust me, that is my most popular application! Ervin From accessd667 at yahoo.com Wed Feb 4 04:00:49 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 4 Feb 2004 02:00:49 -0800 (PST) Subject: [AccessD] Export to Excel URGENT! Message-ID: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From jwcolby at colbyconsulting.com Wed Feb 4 05:59:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 06:59:30 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: I was under the impression that, using A2K, regardless of anything else, binding a recordsource to a form made it read only. AND that this changes with AXP. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Wednesday, February 04, 2004 2:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundRepor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are programs, > subroutines and functions more than just queries. No 'query' import tools > can work because though SQL SP work similar they are really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 4 06:04:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Feb 2004 22:04:19 +1000 Subject: [AccessD] Export to Excel URGENT! In-Reply-To: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Message-ID: <40216C63.32763.14DA4B8@localhost> What format is the ID in your Access table? Does the number need to be treated as a number in Excel? If not, just leave the initial single quote there. On 4 Feb 2004 at 2:00, S D wrote: > Hi group, > > i've got a big problem. I exporting 18 digit numbers to Excel. > Like 123456789012345678. This is an ID. > The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 > > I've tried reformating the column/row to TEXT but it didn't work. When > I directly type the number into Excel it works. The 18 digit number > doesn't reformat. When I export it to Excel using a ' (quote?) sign > and then manually remove the ' it also works. When i use Find & > replace the number is reformatted to 8.72E+17?! > > Please help me with this one. > > Sander > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From rl_stewart at highstream.net Wed Feb 4 06:41:15 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 06:41:15 -0600 Subject: [AccessD] RE: Using Dates In-Reply-To: Message-ID: <5.1.0.14.2.20040204063949.00b83048@pop3.highstream.net> Charlotte, Correct, it would be taken care of in the ETL (Extract, Transform, and Load) process for the fact tables. Robert At 01:27 PM 2/3/2004 -0800, you wrote: >I see. But in that case, you would probably massage the data when it >went into the data warehouse, wouldn't you? You would have to in order >to introduce the surrogate key. It isn't like this is transactional >data. > >Charlotte > >-----Original Message----- >From: Robert L. Stewart [mailto:rl_stewart at highstream.net] >Sent: Tuesday, February 03, 2004 11:32 AM >To: accessd at databaseadvisors.com >Cc: Charlotte Foust >Subject: Re: Using Dates > > >Charlotte, > >What I think he is saying is that in 99% of the cases, the regular date >dimension table will work. In a few cases, where the date may be >missing >and you want to get some kind of value for it, you cannot use the date >itself as the key, thus the surrogate. The surrogate would be stored in > >the fact tables (another data warehousing concept, for those that do not > >know about them). That way when you hit an invalid or null date value, >the >date dimension table would be able to handle it in a predefined way. > >Robert > >At 03:46 AM 2/3/2004 -0600, you wrote: > >Date: Mon, 2 Feb 2004 12:29:49 -0800 > >From: "Charlotte Foust" > >Subject: RE: [AccessD] RE: Using Dates > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >I'm not even sure what Ralph is saying there, and it flies in the face > >of what he does in some of his books, so I have no answer for you, > >John. Keep in mind, though, that datawarehouses are indexed somewhat > >differently from transactional databases, so that may be where the > >confusion is coming in. If you were using surrogate keys and > >meaningless values as the PK, the dates in the main records would need > >to be inserted *from* the date table, and that isn't generally the way > >the thing is used. > > > >Charlotte Foust From jarus at amerinet-gpo.com Wed Feb 4 06:46:04 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Wed, 04 Feb 2004 06:46:04 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: Can't you reformat the column to Number with 0 decimal places? Works for me. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> stuart at lexacorp.com.pg 02/04/04 06:04AM >>> What format is the ID in your Access table? Does the number need to be treated as a number in Excel? If not, just leave the initial single quote there. On 4 Feb 2004 at 2:00, S D wrote: > Hi group, > > i've got a big problem. I exporting 18 digit numbers to Excel. > Like 123456789012345678. This is an ID. > The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 > > I've tried reformating the column/row to TEXT but it didn't work. When > I directly type the number into Excel it works. The 18 digit number > doesn't reformat. When I export it to Excel using a ' (quote?) sign > and then manually remove the ' it also works. When i use Find & > replace the number is reformatted to 8.72E+17?! > > Please help me with this one. > > Sander > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From garykjos at hotmail.com Wed Feb 4 07:31:32 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Wed, 04 Feb 2004 07:31:32 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: It's Excel trying to be to smart I think. It thinks it's a number and that you want to look at it as a number, but it's really not a number it's an ID. And don't be messin with my ID's ! Did you make an OUTPUT Specification? Define the field as text there? Or how about if you make a query with a format([fieldname],"00000000000000000") and then export the query instead of the table? Or concatinate a space to make it into an alpha. Adding a dummy first record with XXXXXXXXXXXXXXX in the field so that Excel sees the field as a text field has worked for me too. Then you delete or ignore the dummy on the Excel side Good luck. Gary Kjos garykjos at hotmail.com >From: "Terri Jarus" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Export to Excel URGENT! >Date: Wed, 04 Feb 2004 06:46:04 -0600 > >Can't you reformat the column to Number with 0 decimal places? Works for >me. > >Terri Jarus >Director, Contract Support Services >jarus at amerinet-gpo.com >314-542-1902 > > >>> stuart at lexacorp.com.pg 02/04/04 06:04AM >>> >What format is the ID in your Access table? > >Does the number need to be treated as a number in Excel? If not, just >leave the initial single quote there. > > >On 4 Feb 2004 at 2:00, S D wrote: > > > Hi group, > > > > i've got a big problem. I exporting 18 digit numbers to Excel. > > Like 123456789012345678. This is an ID. > > The ID's are copied to Excel. When I open Excel I see numbers >like:8.72E+17 > > > > I've tried reformating the column/row to TEXT but it didn't work. When > > I directly type the number into Excel it works. The 18 digit number > > doesn't reformat. When I export it to Excel using a ' (quote?) sign > > and then manually remove the ' it also works. When i use Find & > > replace the number is reformatted to 8.72E+17?! > > > > Please help me with this one. > > > > Sander > > > > PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to >suggest "Do it manually" > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. Try it! > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System Support. > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >--------------------------------------------------------------------------- >This email and any files transmitted with it are confidential and >intended solely for the use of the individuals or entities to whom they >are addressed. If you have received this email in error please return >it to the sender, and erase any copies thereof. >Copyright 2004 Amerinet 1nc. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From JHewson at karta.com Wed Feb 4 07:41:48 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 4 Feb 2004 07:41:48 -0600 Subject: [AccessD] Export to Excel URGENT! Message-ID: <4AE733BBEEE72647A9F950F7275F262E112790@nt04.karta.com> Excel is treating formatting the number in scientific notation. Check the format of the ID number when exporting. HTH Jim -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, February 04, 2004 4:01 AM To: accessd Subject: [AccessD] Export to Excel URGENT! Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Wed Feb 4 08:07:23 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 4 Feb 2004 06:07:23 -0800 (PST) Subject: [AccessD] Export to Excel URGENT! In-Reply-To: <20040204100049.49832.qmail@web61104.mail.yahoo.com> Message-ID: <20040204140723.20823.qmail@web61108.mail.yahoo.com> Hi group, thnx for all tips/tricks/idea's. I've implemented a workaround using a csv file. The user imports this into Excel. Works like a charm. SD S D wrote: Hi group, i've got a big problem. I exporting 18 digit numbers to Excel. Like 123456789012345678. This is an ID. The ID's are copied to Excel. When I open Excel I see numbers like:8.72E+17 I've tried reformating the column/row to TEXT but it didn't work. When I directly type the number into Excel it works. The 18 digit number doesn't reformat. When I export it to Excel using a ' (quote?) sign and then manually remove the ' it also works. When i use Find & replace the number is reformatted to 8.72E+17?! Please help me with this one. Sander PS: I'm exporting thousands of ID's every 5 minutes....I do NOT want to suggest "Do it manually" --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From rl_stewart at highstream.net Wed Feb 4 08:15:22 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 08:15:22 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402040442.i144g0m09380@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> Hi Gustav, The best that I can think of is something like processing and ETL (extract,transform,load) routine you run into a date 2/1/1003 that was technically correct, but invalid because it should have been 2/1/2003. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 20:42:30 +0100 >From: Gustav Brock >Subject: Re: [AccessD] Re: Using Dates >To: Access Developers discussion and problem solving > >Message-ID: <542496076.20040203204230 at cactus.dk> >Content-Type: text/plain; charset=us-ascii > >Hi Robert > > > What I think he is saying is that in 99% of the cases, the regular date > > dimension table will work. In a few cases, where the date may be missing > > and you want to get some kind of value for it, you cannot use the date > > itself as the key, thus the surrogate. The surrogate would be stored in > > the fact tables (another data warehousing concept, for those that do not > > know about them). That way when you hit an invalid or null date value, > the > > date dimension table would be able to handle it in a predefined way. > >I noticed this too and wondered. How can one "hit an invalid date"? Do >dataware house people not validate data before storing them? A missing >date may, of course, be accepted, but an invalid? Where would that >come from? > >/gustav From Mark.Mitsules at ngc.com Wed Feb 4 08:17:08 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 09:17:08 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark From rl_stewart at highstream.net Wed Feb 4 08:30:16 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 08:30:16 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402040442.i144g0m09380@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204082329.02980460@pop3.highstream.net> Charlotte, You are quite correct. A date dimension table becomes useful in a transactional system only when you have users that need to create their own queries against the data and they are not at the level to learn how to do date math. Then, they are wonderful. Since I primarily work with large transactional systems and data warehouses, I taught my Developer's Workshop how to use warehousing techniques to create data marts to speed up reporting in Access. Once they learn the techniques, they can be applied to any back-end database. I do not know the bound/unbound issue, but unless we get exposure to different techniques for doing things, we will stagnate as developers. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 14:38:05 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >The essential difference is that the date dimension table is generally >used in data warehouse applications, not in regular data entry >databases. They can be useful in the latter for reporting purposes >only, but you can get by nicely if you've never had to slice and dice >very large tables based on a bunch of date criteria. Note that fact >tables in a datawarehouse are usually not normalized in the same way as >regular database tables either (they are commonly 1NF), so dimension >tables give you flexibility that it's hard to get any other way. Data >warehousing may be slightly off-topic, but only because Access >developers don't have to deal with it very often. I have, so I can >appreciate both sides of the discussion. > >Charlotte Foust > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Tuesday, February 03, 2004 2:05 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Re: DatePart Question > > >Nothing personal, but I have to agree with Gustav's point of view. I >can see (and I believe he does too), where a table would help certain >situations. However, I know first hand, the extreme lack of >understanding on how a date works. I'm not saying you don't understand >that, however, to a computer, it is MUCH faster for many functions, to >just let the processor do a logic operation on a number, then to have it >pull other data up, and compare that. Holidays, etc, those require >heavier logic, so a table could be faster (depending on the amount of >data). > >I'm not knocking your approach. But in my experience, I have never >needed to do anything like that. > >We better be careful that this doesn't turn into another bound/unbound >issue. > >Drew From jimdettman at earthlink.net Wed Feb 4 08:39:15 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 4 Feb 2004 09:39:15 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering In-Reply-To: Message-ID: Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Feb 4 08:55:32 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 09:55:32 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: > You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. Jim, I had read about the two-pass method in the ADH ("printing the page range anywhere"), but didn't make the extrapolation...thanks again. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 4 08:56:26 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 4 Feb 2004 06:56:26 -0800 (PST) Subject: [AccessD] Access XP and Outlook Security Message-ID: <20040204145627.52362.qmail@web20416.mail.yahoo.com> I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From gustav at cactus.dk Wed Feb 4 09:09:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 4 Feb 2004 16:09:07 +0100 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> References: <5.1.0.14.2.20040204081313.029788c0@pop3.highstream.net> Message-ID: <16528903901.20040204160907@cactus.dk> Hi Robert Again, I wonder which system, say accounting system, should generate a date of year 1003. A user might, of course, type something like that, but the application should have validation rules to determine which date range is allowed to input. If not, any date can be input by mistake, and you will have no chance later to determine what it "should have been". As for your data warehouse and such dates, a join between the date field and your date table will rule out such entries as - for a business application - no join will exist - which to me would be the proper way to deal with it. /gustav > Hi Gustav, > The best that I can think of is something like processing and ETL > (extract,transform,load) routine you run into a date 2/1/1003 that > was technically correct, but invalid because it should have been > 2/1/2003. > Robert > At 10:42 PM 2/3/2004 -0600, you wrote: >>Date: Tue, 3 Feb 2004 20:42:30 +0100 >>From: Gustav Brock >>Subject: Re: [AccessD] Re: Using Dates >>To: Access Developers discussion and problem solving >> >>Message-ID: <542496076.20040203204230 at cactus.dk> >>Content-Type: text/plain; charset=us-ascii >> >>Hi Robert >> >> > What I think he is saying is that in 99% of the cases, the regular date >> > dimension table will work. In a few cases, where the date may be missing >> > and you want to get some kind of value for it, you cannot use the date >> > itself as the key, thus the surrogate. The surrogate would be stored in >> > the fact tables (another data warehousing concept, for those that do not >> > know about them). That way when you hit an invalid or null date value, the >> > date dimension table would be able to handle it in a predefined way. >> >>I noticed this too and wondered. How can one "hit an invalid date"? Do >>dataware house people not validate data before storing them? A missing >>date may, of course, be accepted, but an invalid? Where would that >>come from? From Mark.Mitsules at ngc.com Wed Feb 4 09:10:30 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 4 Feb 2004 10:10:30 -0500 Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and Outlook Security Message-ID: To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Feb 4 16:14:13 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:14:13 (MET) Subject: [AccessD] lowercase Message-ID: <200402041514.i14FEDNA010209@mailhostC.plex.net> From pedro at plex.nl Wed Feb 4 16:18:21 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:18:21 (MET) Subject: [AccessD] lowercase Message-ID: <200402041518.i14FILNA010431@mailhostC.plex.net> Hello group, what is the quickest way to set al caracters in all fields in all Tables in a database to lowercase. I can make a query an do all the fields with an LCase expression, but that costs a lot of time. Any idea's TIA Pedro Janssen From BBarabash at TappeConstruction.com Wed Feb 4 09:22:23 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 09:22:23 -0600 Subject: FAQ-BestPractices? Was: RE: [AccessD] Access XP and Outlook Security Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE31C@TAPPEEXCH01> My way: Use the Redemption DLL (www.dimastr.com/redemption). It uses extended MAPI calls to bypass the foul security dialog. Another way: Install the Express ClickYes utility, that will automatically click the Yes button when the dialog appears. http://www.express-soft.com/mailmate/clickyes.html Yet another way: Don't install SP3, or any other service pack/security update that includes the Outlook security dialog. (I only listed the third method because another list member became quite irate when I dismissed it as dangerous. Apparently he uses it and advises his clients to do so as well. Personally, I don't advise it.) -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From pedro at plex.nl Wed Feb 4 16:27:56 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 04 Feb 2004 16:27:56 (MET) Subject: [AccessD] Code Librarian 2 Message-ID: <200402041527.i14FRuNA010908@mailhostC.plex.net> Hello Group, about 10 months ago i expressed an idea to this group to make a code Librarian. Some groupmembers found it a great idea and would participate to this project. Is this project ever started and with what result? Pedro Janssen From markamatte at hotmail.com Wed Feb 4 09:53:00 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 04 Feb 2004 15:53:00 +0000 Subject: [AccessD] lowercase Message-ID: Pedro, Just off the top of my head...I would use vba to do it...combining the following functions: I would Start with LISTALLTABLES and loop FIELDNAMES after each table and run the sql(using LCase for each field found) inside the FIELDNAMES loop. I just copied these functions from MSKnowledgeBase and A97 Help. Good luck. Thanks, Mark ******************************************** Function ListAllTables (fld As Control, id As Long, row As _ Long, col As Long, code As Integer) Dim db As Database Dim tbdf As TableDef Static tbls(256) As String Static Entries As Integer Dim i As Integer Dim ReturnVal ReturnVal = Null Select Case code Case LB_INITIALIZE ' Initialize database. Set db = DBEngine.Workspaces(0).databases(0) Entries = 0 For i = 0 To db.tabledefs.count - 1 tbls(Entries) = db.tabledefs(i).name Entries = Entries + 1 Next i ReturnVal = Entries Case LB_OPEN ' Open. ReturnVal = Timer ' Unique ID number for control. Case LB_GETROWCOUNT ' Number of rows. ReturnVal = Entries Case LB_GETCOLUMNCOUNT ' Number of columns. ReturnVal = 1 Case LB_GETCOLUMNWIDTH ' Column width. ReturnVal = -1 ' Use the default width. Case LB_GETVALUE ' Get the data. ReturnVal = tbls(row) Case LB_END ' End. For Entries = 0 To 256 tbls(Entries) = "" Next End Select ListAllTables = ReturnVal End Function ******************************************************* Sub FieldNames() Dim dbs As Database, tdf As TableDef Dim fld As Field ' Return reference to current database. Set dbs = CurrentDb ' Return reference to Employees table. Set tdf = dbs.TableDefs!Employees ' Enumerate all fields in Fields collection of TableDef object. For Each fld in tdf.Fields Debug.Print fld.Name Next fld Set dbs = Nothing End Sub ********************************************************************* >From: pedro at plex.nl >Reply-To: Access Developers discussion and problem >solving >To: AccessD at databaseadvisors.com >Subject: [AccessD] lowercase >Date: Wed, 04 Feb 2004 16:18:21 (MET) > >Hello group, > >what is the quickest way to set al caracters in all fields in all Tables in >a database to lowercase. >I can make a query an do all the fields with an LCase expression, but that >costs a lot of time. > >Any idea's > >TIA > >Pedro Janssen >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From BBarabash at TappeConstruction.com Wed Feb 4 10:01:19 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 10:01:19 -0600 Subject: [AccessD] lowercase Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE31F@TAPPEEXCH01> Hi Pedro, This should do what you want (make sure your project has a DAO reference set): Sub ConvertAllFieldsToLowercase() Dim db As DAO.Database Dim tdf As DAO.TableDef Dim fld As DAO.Field Dim strSQL As String 'Loop through all tables in the current database Set db = CurrentDb() For Each tdf In db.TableDefs 'Exclude system tables If Not (tdf.Name Like "MSys*") Then 'Build an update query, adding all text/memo fields Debug.Print tdf.Name strSQL = "" For Each fld In tdf.Fields If fld.Type = dbText Or fld.Type = dbMemo Then If strSQL <> "" Then strSQL = strSQL & ", " End If strSQL = strSQL & "[" & fld.Name & "]=LCase([" & fld.Name & "])" End If Next fld 'Are there any text fields in this table? If strSQL <> "" Then 'Execute the update query strSQL = "UPDATE [" & tdf.Name & "] SET " & strSQL & ";" db.Execute strSQL End If End If Next tdf Set fld = Nothing Set tdf = Nothing Set db = Nothing End Sub -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Wednesday, February 04, 2004 10:18 AM To: AccessD at databaseadvisors.com Subject: [AccessD] lowercase Hello group, what is the quickest way to set al caracters in all fields in all Tables in a database to lowercase. I can make a query an do all the fields with an LCase expression, but that costs a lot of time. Any idea's TIA Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From cfoust at infostatsystems.com Wed Feb 4 10:28:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:28:51 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: >>I do not know the bound/unbound issue Stick around a while and you'll get to know it quite well, along with surrogate vs natural keys, the distinction between primary and unique keys, and a few other topics that can get very ... Er, heated? Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Wednesday, February 04, 2004 6:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: DatePart Question Charlotte, You are quite correct. A date dimension table becomes useful in a transactional system only when you have users that need to create their own queries against the data and they are not at the level to learn how to do date math. Then, they are wonderful. Since I primarily work with large transactional systems and data warehouses, I taught my Developer's Workshop how to use warehousing techniques to create data marts to speed up reporting in Access. Once they learn the techniques, they can be applied to any back-end database. I do not know the bound/unbound issue, but unless we get exposure to different techniques for doing things, we will stagnate as developers. Robert At 10:42 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 14:38:05 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >The essential difference is that the date dimension table is generally >used in data warehouse applications, not in regular data entry >databases. They can be useful in the latter for reporting purposes >only, but you can get by nicely if you've never had to slice and dice >very large tables based on a bunch of date criteria. Note that fact >tables in a datawarehouse are usually not normalized in the same way as >regular database tables either (they are commonly 1NF), so dimension >tables give you flexibility that it's hard to get any other way. Data >warehousing may be slightly off-topic, but only because Access >developers don't have to deal with it very often. I have, so I can >appreciate both sides of the discussion. > >Charlotte Foust > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Tuesday, February 03, 2004 2:05 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Re: DatePart Question > > >Nothing personal, but I have to agree with Gustav's point of view. I >can see (and I believe he does too), where a table would help certain >situations. However, I know first hand, the extreme lack of >understanding on how a date works. I'm not saying you don't understand >that, however, to a computer, it is MUCH faster for many functions, to >just let the processor do a logic operation on a number, then to have >it pull other data up, and compare that. Holidays, etc, those require >heavier logic, so a table could be faster (depending on the amount of >data). > >I'm not knocking your approach. But in my experience, I have never >needed to do anything like that. > >We better be careful that this doesn't turn into another bound/unbound >issue. > >Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 4 10:38:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:38:45 -0800 Subject: [AccessD] was SQL Server queries - appending strings Message-ID: In both A2k and XP, when a *form* with controls bound to an ADO recordset in an MDB is read only regardless of recordset type. It isn't exactly the recordset that is read-only, it's the form interface to it that is restricted. That didn't change in AXP, but I believe you can bind a recordset to the form and use unbound controls, using code to read and write the controls and update the recordset. I can't recall whether I've tried that or not. Generally, bound forms (with bound controls) means DAO recordsets, even in AXP. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 04, 2004 4:00 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings I was under the impression that, using A2K, regardless of anything else, binding a recordsource to a form made it read only. AND that this changes with AXP. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Wednesday, February 04, 2004 2:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi John: I have a sample of code that was used in demonstrating a method at populating a report and it is at the DBA site: http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR epor ts.htm (watch for wrap). All the code is not shown but it is all in the ZIP file is a full source set. It only demos the connection between two MDBs but it should give enough of an idea. By simply changing the recordset type from 'adOpenStatic, adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved not by pages and then does all/most of the internal record management.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, February 02, 2004 8:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] was SQL Server queries - appending strings >In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. What is this, and can I use it to get an editable bound form? John W. Colby The database guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, February 02, 2004 10:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Hi Gustav: I must reluctantly agree with your business assessment. As for saying ODBC is slow, it works well with up to twenty or thirty records but any larger amount... In a number of cases I have used the conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Sunday, February 01, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings Hi Jim > There is a lot of work in creating the 'data-interface' to MSSQL and ADO-OLE > is the only option (ODBC is too slow....) Stored Procedures are > programs, subroutines and functions more than just queries. No 'query' > import tools can work because though SQL SP work similar they are > really quite different > in concept. Too slow compared to what? Of course, ADP is the way to go for Access/SQL Server, but - assuming a high quality LAN - speed of ODBC compared to Jet and to the client's current needs may be fully acceptable. If John couldn't speak for himself, he would only need to quote the messages on this thread to justify for the client that a total rebuild of the app is too expensive - either it would kill the client's budget or it would consume an unreasonable part of John's valuable time. Now, we don't know why the client has obtained this SQL Server. Is it an idea originated at the client without consulting John about the consequences, or did John talk the client into it? In the first case we have a classic example of a situation where the client may be a fool but no one wins by stressing that point. Hooking the client's data up via ODBC may quickly set his SQL Server into action with little effort and within his budget, and he will be happy about his decision; then later John can prepare a demo showing the advantages of moving the app to an ADP but, if agreed to do so, at the costs of the client. This could very well be an example where (continued) business is more important then technical excellence. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 4 10:43:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 08:43:41 -0800 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: Popular with whom? I generally dislike additional animation on forms, although I can tolerate a limited amount of it on web pages. Database applications aren't generally meant to be entertaining, they're meant to be useful and usable. While colorful and active applications might have video appeal for those with short attention spans, they get wearing fast when you have to do down and dirty data entry in them IMO. Charlotte Foust -----Original Message----- From: Ervin Brindza [mailto:viner at eunet.yu] Sent: Wednesday, February 04, 2004 1:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Masked bitmaps as button images? > Why would you add a gliding subform or animated image to a database > app? Graphic elements are supposed to enhance the usability of an > application, not distract from it. This is not ot say that UIs should > be battleship gray and plain; from from it. But be careful how much > glitz you put into things. > That is matter of taste! If you take a look at www.medela.co.yu the jumping cookies are very effective. The visitors noticed that first, and memorize too. And I have a situation where the form contains two subforms, the first of them contain a subform, the second subform contains two subforms! So, there are 5 subforms on the main form. And there is a need only for 1 "thread", so I displace the unnecessary "thread" with a little animation with gliding move to the very left or right side of the form. And, trust me, that is my most popular application! Ervin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 4 10:47:32 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 10:47:32 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE321@TAPPEEXCH01> Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From rl_stewart at highstream.net Wed Feb 4 10:52:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 10:52:44 -0600 Subject: [AccessD] Re: Using Dates In-Reply-To: <200402041513.i14FDum32478@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204105025.02a79c50@pop3.highstream.net> Gustav, You are totally correct, that is why I personally do not use a surrogate key and use the date itself for the key. Data entry validation for the date should be a part of the business rule layer of the program. Robert At 09:13 AM 2/4/2004 -0600, you wrote: > From gustav at cactus.dk Wed Feb 4 09:09:18 2004 >Subject: Re: [AccessD] Re: Using Dates > >Hi Robert > >Again, I wonder which system, say accounting system, should generate a >date of year 1003. A user might, of course, type something like that, >but the application should have validation rules to determine which >date range is allowed to input. If not, any date can be input by >mistake, and you will have no chance later to determine what it >"should have been". >As for your data warehouse and such dates, a join between the date >field and your date table will rule out such entries as - for a >business application - no join will exist - which to me would be the >proper way to deal with it. > >/gustav From Oleg_123 at xuppa.com Wed Feb 4 11:08:11 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 12:08:11 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <52958.12.3.132.98.1075914491.squirrel@heck.bay9.com> =Date() if i put that on report (or formatted)=Format(Date(),"mmmm dd"", ""yyyy") it opens fine on my machine and on several others. There are however couple of ppl who have both Access 97 and 2000 on their machines, they get errors at this part. All the other references to tables and forms works fine. What could be the problem ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DElam at jenkens.com Wed Feb 4 11:21:29 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 4 Feb 2004 11:21:29 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA41@natexch.jenkens.com> We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From cfoust at infostatsystems.com Wed Feb 4 11:37:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 09:37:47 -0800 Subject: [AccessD] Date Message-ID: Check for broken references on their machines. Date() is one of the built-in functions that breaks when a reference is flaky. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 9:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date =Date() if i put that on report (or formatted)=Format(Date(),"mmmm dd"", ""yyyy") it opens fine on my machine and on several others. There are however couple of ppl who have both Access 97 and 2000 on their machines, they get errors at this part. All the other references to tables and forms works fine. What could be the problem ? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 4 11:55:44 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 4 Feb 2004 17:55:44 -0000 Subject: [AccessD] was SQL Server queries - appending strings References: Message-ID: <02aa01c3eb48$1c4480d0$9111758f@aine> http://support.microsoft.com/default.aspx?scid=kb;EN-US;281998 Have a read at that Martin ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 4:38 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > In both A2k and XP, when a *form* with controls bound to an ADO > recordset in an MDB is read only regardless of recordset type. It isn't > exactly the recordset that is read-only, it's the form interface to it > that is restricted. That didn't change in AXP, but I believe you can > bind a recordset to the form and use unbound controls, using code to > read and write the controls and update the recordset. I can't recall > whether I've tried that or not. Generally, bound forms (with bound > controls) means DAO recordsets, even in AXP. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, February 04, 2004 4:00 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > I was under the impression that, using A2K, regardless of anything else, > binding a recordsource to a form made it read only. AND that this > changes with AXP. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Wednesday, February 04, 2004 2:16 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > I have a sample of code that was used in demonstrating a method at > populating a report and it is at the DBA site: > http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR > epor > ts.htm (watch for wrap). All the code is not shown but it is all in the > ZIP file is a full source set. It only demos the connection between two > MDBs but it should give enough of an idea. > > By simply changing the recordset type from 'adOpenStatic, > adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle > 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved > not by pages and then does all/most of the internal record management.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John > Sent: Monday, February 02, 2004 8:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >In a number of cases I have used the conversion from ODBC to ADO-OLE to > resolve client bottle-necks issues. > > What is this, and can I use it to get an editable bound form? > > John W. Colby > The database guy > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Monday, February 02, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi Gustav: > > I must reluctantly agree with your business assessment. > > As for saying ODBC is slow, it works well with up to twenty or thirty > records but any larger amount... In a number of cases I have used the > conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Sunday, February 01, 2004 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > Hi Jim > > > There is a lot of work in creating the 'data-interface' to MSSQL and > ADO-OLE > > is the only option (ODBC is too slow....) Stored Procedures are > > programs, subroutines and functions more than just queries. No 'query' > > > import tools can work because though SQL SP work similar they are > > really quite > different > > in concept. > > Too slow compared to what? Of course, ADP is the way to go for > Access/SQL Server, but - assuming a high quality LAN - speed of ODBC > compared to Jet and to the client's current needs may be fully > acceptable. > > If John couldn't speak for himself, he would only need to quote the > messages on this thread to justify for the client that a total rebuild > of the app is too expensive - either it would kill the client's budget > or it would consume an unreasonable part of John's valuable time. > > Now, we don't know why the client has obtained this SQL Server. Is it an > idea originated at the client without consulting John about the > consequences, or did John talk the client into it? In the first case we > have a classic example of a situation where the client may be a fool but > no one wins by stressing that point. Hooking the client's data up via > ODBC may quickly set his SQL Server into action with little effort and > within his budget, and he will be happy about his decision; then later > John can prepare a demo showing the advantages of moving the app to an > ADP but, if agreed to do so, at the costs of the client. > > This could very well be an example where (continued) business is more > important then technical excellence. > > /gustav > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Feb 4 11:59:33 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 12:59:33 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <52956.12.3.132.98.1075917573.squirrel@heck.bay9.com> i checked on of the problematic ppl's references right now me and him have all the same exsept I have Word 8.0 Object Library and he has 9.0 donn't think it makes any difference > Check for broken references on their machines. Date() is one of the > built-in functions that breaks when a reference is flaky. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 9:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Date > > > =Date() > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > ""yyyy") it opens fine on my machine and on several others. There are > however couple of ppl who have both Access 97 and 2000 on their > machines, they get errors at this part. All the other references to > tables and forms works fine. What could be the problem ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From artful at rogers.com Wed Feb 4 12:00:37 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 4 Feb 2004 13:00:37 -0500 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: Message-ID: Use views not sprocs for this sort of thing. Or alternatively, use table UDFs that accept a parameter so you can scope them to your needs. You might think that the performance hit of views will be huge, but not so. For example, I have a form that I call the Sales Browser, which defaults to sales of the past month by date descending. An option group on the form footer offers various selections: 30, 60, 90 and All. Each of these corresponds to a view that SELECTs * FROM Sales WHERE DateEntered >= GetDate()- x, where x is one of those values. The All button uses a view that skips the WHERE clause. (That's an oversimplification. There's one view corresponding to ALL and then 3 other views that select from that view and apply the GetDate() thing.) I realize that this answer does not correspond exactly to your question. However, it offers a solution that works, and has been tested with loads of data and a large number of users. HTH, Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 01, 2004 1:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] was SQL Server queries - appending strings Martin, I long ago modified my framework to use only ADO >The framework you use is I assume dictating the path you can take?? Not entirely. To be honest, I haven't yet tried to hook it up to an ADP and see what happens. However I am a programmer at heart. In my apps I do things like setting up a query, then opening the query and changing the SQL statement. There are instances where this is a very useful trick. Try that with an SQL Server BE! It may be possible, but not just using DAO and the queries collection! I use the "LIKE MyForm!MyControl" a LOT. I use VB functions in aliased fields in queries. I write my own functions and use them in aliased fields in queries. ALL of these things will cause massive headaches porting to SQL Server, and referencing controls on a form simply can't be ported. A2K, even in an ADP (by my understanding) can't hook a stored procedure to the recordsource of a form and end up with an editable form. So the answer to your question is yes, my framework is a limitation, but a tiny one compared to my free usage of Access "goodies" that just kill you using SQL Server. This is an application with over a hundred forms, thousands of controls, tabs with JIT subforms set up, combos that swap out their SQL to allow on-the-fly filtering, and so forth. All this is entirely legal and encouraged in an Access only app. !!!!!!!!!!!!*********** Did you know that NO code runs in a form until after the data loads for the form? So if you want to run code that in any way modifies the actual SQL statement of the form, you will either: Load all your data, then reload using the modified SQL or... not have a recordsource and assign one from the code that runs after the form's class finally gets around to loading. !!!!!!!!!!!!*********** Did you know that subforms load before the main form code runs? Did you know that subforms expect the parent data to be loaded so that the Link Child Field / Master Field works? !!!!!!!!!!!!*********** All of this means that if you want to use bound subforms / forms, the parent data must load, then the child forms load (with their data), THEN the parent form's CODE finally runs. I noticed that all of my data was loading twice. Why is that? Because I use code to set a control which is used in the where clause of the form's SQL statement. The first time, the data loads, but the CODE hasn't started running yet. So... I have to set the control and requery the form. Hmmm.... So you could just not set the Recordsource at all (leave it blank) until the code runs, then set the control, then set the recordsource RIGHT? Well... yea, EXCEPT the subforms expect data to be there when they load or you get the stupid pop up dialog asking you for the PK for the Master Field. THAT MEANS that JIT Subforms are REQUIRED so that the parent form has NO data, it's code runs, it loads ITS data, then it loads any subforms which, by that time, have valid data in the parent form and can load without asking the user for the PK. Holy @#$% Batman! Now WHY oh WHY didn't MS just allow the code to run in the parent form before loading its data? Because lots of code expect to go looking at (already loaded) data. Oh the joys of Access. !!!!!!!!!!!!*********** My framework is CAPABLE of doing exactly this stuff, automagically. If the parent form's Recordsource is not set (is blank), AND (of course) the subform controls are not bound to a subform, then my form's class looks for a query named 'q' & Thisform.name. If found, the class set the form's recordsource to that query name, which causes that data to load (after setting the above mentioned control which is used in the Where clause). The form's class has a control scanner that finds all subform controls and drops a pointer to them into a collection. Once the main form's recordsource is set, each subform is able to be bound to a subform. USUALLY this is done when a specific tab of the tab control is clicked. i.e. JIT. However if the subform is on the FIRST tab, then it is bound by the main form's class so that the subform loads and is populated. So now my forms only load their data once, JIT works as expected, I can filter using controls on the form etc. Will ANY of that work in A2K using SQL Server as a BE? DAMNED DOUBTFUL. !!!!!!!!!!!!*********** SQL Server MAY be the holy grail, but it is far holier if you are just pulling one record from one table RE 1970s style terminal based apps. It isn't very holy at all if you have already used all of Access' built in TRICKS to the max in your apps and now want to move that app to SQL Server! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 01, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings John Tha main drawback you face moving to SQL Server is your use of the framework. Continued reliance of this tool will place you at a disadvantage when working with for example an ADP file. Of course you could consider over time rewriting the tool for use with SQL Server. Moving to an SQL Server backend generally gives you a few options Use ODBC and stay with DAO Rewrite from DAO to ADO using OLEDB Use an ADP USee Pass Through etc etc You could also consider bring the data local on login , work with it local and then update the server with changes. I am currently working on rewriting a complex app from DAO to ADO. Taking a lot longer than I assumed but almost done now. The licence issue is OK. Usually licenced on a per processor basis now so connections dont matter. The framework you use is I assume dictating the path you can take?? Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From cfoust at infostatsystems.com Wed Feb 4 12:12:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 10:12:49 -0800 Subject: [AccessD] Date Message-ID: Yes, it does make a difference. If you aren't using the Word library, uncheck it on his machine, otherwise, reset it on his machine. If you have a reference to Word 8, that reference may not resolve properly on a machine without the Word 8 library. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 10:00 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date i checked on of the problematic ppl's references right now me and him have all the same exsept I have Word 8.0 Object Library and he has 9.0 donn't think it makes any difference > Check for broken references on their machines. Date() is one of the > built-in functions that breaks when a reference is flaky. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 9:08 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Date > > > =Date() > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > ""yyyy") it opens fine on my machine and on several others. There are > however couple of ppl who have both Access 97 and 2000 on their > machines, they get errors at this part. All the other references to > tables and forms works fine. What could be the problem ? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 4 12:14:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Feb 2004 12:14:58 -0600 Subject: [AccessD] A2K: Can't update (ADO) Recordset Message-ID: <2F8793082E00D4119A1700B0D0216BF802227830@main2.marlow.com> Actually, that was a double brain fart, because adLockReadOnly is 1. adLockBatchOptimistic is 4. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, February 03, 2004 10:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Can't update (ADO) Recordset A little brain fart myself. The last one should be: AdLockReadOnly = 4 On 3 Feb 2004 at 22:20, DWUTKA at marlow.com wrote: > Thanks for catching that Stuart! Massive brain fart! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Tuesday, February 03, 2004 9:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Can't update (ADO) Recordset > > > On 4 Feb 2004 at 13:44, Darren DICK wrote: > > > Sigh > > Still don't work > > Now I get runtime error 3001 > > Arguments are of the wrong Type, are out of acceptable range, > > or are in conflict with one another. > > The the debug highlights the line... > > > > rs.Open sel_SQL, con, 1, 512 > > > > The field in the underlying table does exist. And is named correctly > > I dunno > > > > 512 is *way* out of acceptable range > > ADBOB locktype constants are: > adLockBatchOptistic = 1 > adLockOptimistic = 3 (the one you want) > adLockPessimistic = 2 > AdLockReadOnly = 1 > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Feb 4 12:34:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 12:34:56 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402041800.i14I0Im06383@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Pedro, I am putting the final touches on a web based one now. Any one will be able to add entries to it. Send me what you would like to see as fields and I will see how well I have designed it. When I get it finished, I will post a link to it to the different Access lists that I am on. Robert At 12:00 PM 2/4/2004 -0600, you wrote: >Date: Wed, 04 Feb 2004 16:27:56 (MET) >From: pedro at plex.nl >Subject: [AccessD] Code Librarian 2 >To: AccessD at databaseadvisors.com >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > >Hello Group, > >about 10 months ago i expressed an idea to this group to make a code >Librarian. Some groupmembers found it a great idea and would participate >to this project. Is this project ever started and with what result? > >Pedro Janssen From rl_stewart at highstream.net Wed Feb 4 12:37:46 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 04 Feb 2004 12:37:46 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402041800.i14I0Im06383@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040204123603.028ec7b8@pop3.highstream.net> Charlotte, I guess that I am a bound, surrogate primary key, unique business key, index most everything, SQL Server kind of guy. ;-)) Robert At 12:00 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 08:28:51 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: DatePart Question >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > > >>I do not know the bound/unbound issue >Stick around a while and you'll get to know it quite well, along with >surrogate vs natural keys, the distinction between primary and unique >keys, and a few other topics that can get very ... Er, heated? > >Charlotte Foust From DWUTKA at marlow.com Wed Feb 4 12:45:07 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Feb 2004 12:45:07 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227832@main2.marlow.com> I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Feb 4 12:58:17 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 4 Feb 2004 11:58:17 -0700 Subject: [AccessD] A2003: Masked bitmaps as button images? Message-ID: <221640-22004234185817999@christopherhawkins.com> I was talking about your typical corporate-utility database apps, not websites. The site you linked is just animated enough without being distracting. Try those cute animations in a corporate app, though. ;) Bad news! -C- ---- Original Message ---- From: viner at eunet.yu To: accessd at databaseadvisors.com, Subject: Re: [AccessD] A2003: Masked bitmaps as button images? Date: Wed, 4 Feb 2004 10:02:19 +0100 >> Why would you add a gliding subform or animated image to a database >> app? Graphic elements are supposed to enhance the usability of an >> application, not distract from it. This is not ot say that UIs >> should be battleship gray and plain; from from it. But be careful >> how much glitz you put into things. >> >That is matter of taste! If you take a look at www.medela.co.yu the >jumping >cookies are very effective. The visitors noticed that first, and >memorize >too. And I have a situation where the form contains two subforms, >the first >of them contain a subform, the second subform contains two subforms! >So, >there are 5 subforms on the main form. And there is a need only for 1 >"thread", so I displace the unnecessary "thread" with a little >animation >with gliding move to the very left or right side of the form. And, >trust me, >that is my most popular application! >Ervin > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From kathryn at bassett.net Wed Feb 4 12:57:28 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 4 Feb 2004 10:57:28 -0800 Subject: [AccessD] OT (sorta) - looking for a font Message-ID: I have a word processed document that I did a long time ago, and used the "Uppercrust Regular". It's no longer on my system and I can't find it. Anybody know who did it or where to get it? Later today, I'll scan an existing page to show what it looks like, but I'm hoping I'll have an answer before that needs doing. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From cfoust at infostatsystems.com Wed Feb 4 13:22:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 11:22:51 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 4 13:44:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 4 Feb 2004 20:44:04 +0100 Subject: [AccessD] Re: DatePart Question In-Reply-To: References: Message-ID: <3945400171.20040204204404@cactus.dk> Hi Charlotte > You're way off, Drew. The reason for those divisions is because > data warehouses are used to query data, period. So the user wants to > see all fact records within a particular month for the past 5 years. > The point of a dimension table is that you don't need to do any date > calculations in the query. All you need do is specify the month number > (no function required), and the year number. The join filters out the > appropriate records. You need do no date math at all to filter the > records because any date math was done when the dimension table was > created. Since SQL is much faster than code, why would you expect this > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > And Year(Now()) > to be faster than this > [MonthNo]=5 And YearNo Between 5 And 10 Because of the missing inner join, of course. Also, for this example, you could state: [MyDateField] Between #5/1/1999# And #5/31/1999 or ... [MyDateField] Between #5/1/2004# And #5/31/2004 But I'm guessing. I neither have a huge set of data to test with nor - as Drew - the time at the moment to play with it. So I'll have to rely on the opinion from people having experience in this area. /gustav > I understand more 'complex' date 'info', such as holidays, fiscal > period, etc. I still don't understand the reason for basic date > information, such as day, month, year, day of week, etc. I have never > actually run any tests, but my gut says that a query where I wanted all > records in the month of May (ANY year), that if I put > Month([MyDateField])=5 in the Where clause, that it would be faster then > having a relationship to a date dimension table. > Data entry, or data warehousing, the speed should still be a factor, > correct? Or am I way off on my gut feeling (really too busy to build an > appropriate test.) > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 03, 2004 4:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: DatePart Question > The essential difference is that the date dimension table is generally > used in data warehouse applications, not in regular data entry > databases. They can be useful in the latter for reporting purposes > only, but you can get by nicely if you've never had to slice and dice > very large tables based on a bunch of date criteria. Note that fact > tables in a datawarehouse are usually not normalized in the same way as > regular database tables either (they are commonly 1NF), so dimension > tables give you flexibility that it's hard to get any other way. Data > warehousing may be slightly off-topic, but only because Access > developers don't have to deal with it very often. I have, so I can > appreciate both sides of the discussion. > Charlotte Foust > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Tuesday, February 03, 2004 2:05 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Re: DatePart Question > Nothing personal, but I have to agree with Gustav's point of view. I > can see (and I believe he does too), where a table would help certain > situations. However, I know first hand, the extreme lack of > understanding on how a date works. I'm not saying you don't understand > that, however, to a computer, it is MUCH faster for many functions, to > just let the processor do a logic operation on a number, then to have it > pull other data up, and compare that. Holidays, etc, those require > heavier logic, so a table could be faster (depending on the amount of > data). > I'm not knocking your approach. But in my experience, I have never > needed to do anything like that. > We better be careful that this doesn't turn into another bound/unbound > issue. > Drew From pedro at plex.nl Wed Feb 4 13:25:39 2004 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 4 Feb 2004 20:25:39 +0100 Subject: [AccessD] lowercase References: <426071E0B0A6D311B3C0006008B0AB23AFE31F@TAPPEEXCH01> Message-ID: <002401c3eb57$6e19e9e0$f9c581d5@pedro> Hello Brett and Mark, thanks for the code you both shaired with me. This will save me a lott of time. Pedro Janssen ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 04, 2004 5:01 PM Subject: RE: [AccessD] lowercase > Hi Pedro, > This should do what you want (make sure your project has a DAO reference > set): > > Sub ConvertAllFieldsToLowercase() > > Dim db As DAO.Database > Dim tdf As DAO.TableDef > Dim fld As DAO.Field > Dim strSQL As String > > 'Loop through all tables in the current database > Set db = CurrentDb() > > For Each tdf In db.TableDefs > 'Exclude system tables > If Not (tdf.Name Like "MSys*") Then > 'Build an update query, adding all text/memo fields > Debug.Print tdf.Name > strSQL = "" > > For Each fld In tdf.Fields > If fld.Type = dbText Or fld.Type = dbMemo Then > If strSQL <> "" Then > strSQL = strSQL & ", " > End If > > strSQL = strSQL & "[" & fld.Name & "]=LCase([" & > fld.Name & "])" > End If > Next fld > > 'Are there any text fields in this table? > If strSQL <> "" Then > 'Execute the update query > strSQL = "UPDATE [" & tdf.Name & "] SET " & strSQL & ";" > db.Execute strSQL > End If > End If > Next tdf > > Set fld = Nothing > Set tdf = Nothing > Set db = Nothing > > End Sub > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Wednesday, February 04, 2004 10:18 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] lowercase > > > Hello group, > > what is the quickest way to set al caracters in all fields in all Tables in > a database to lowercase. > I can make a query an do all the fields with an LCase expression, but that > costs a lot of time. > > Any idea's > > TIA > > Pedro Janssen > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------- ------------------------------------------ > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Feb 4 13:44:20 2004 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 4 Feb 2004 20:44:20 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Message-ID: <002601c3eb57$7338f2e0$f9c581d5@pedro> Hello Robert, this is good news. I believe that your design will be perfect, so i don't send in any fields. For such a design i think the problem lies in how to find the code that one needs. How are the search options for the codes and its titles. Pedro Janssen ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Wednesday, February 04, 2004 7:34 PM Subject: [AccessD] Re: Code Librarian 2 > Pedro, > > I am putting the final touches on a web based one now. > Any one will be able to add entries to it. Send me > what you would like to see as fields and I will see > how well I have designed it. > > When I get it finished, I will post a link to it to > the different Access lists that I am on. > > Robert > > At 12:00 PM 2/4/2004 -0600, you wrote: > >Date: Wed, 04 Feb 2004 16:27:56 (MET) > >From: pedro at plex.nl > >Subject: [AccessD] Code Librarian 2 > >To: AccessD at databaseadvisors.com > >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > > > >Hello Group, > > > >about 10 months ago i expressed an idea to this group to make a code > >Librarian. Some groupmembers found it a great idea and would participate > >to this project. Is this project ever started and with what result? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Wed Feb 4 13:54:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 04 Feb 2004 11:54:57 -0800 Subject: [AccessD] Access XP and Outlook Security References: <20040204145627.52362.qmail@web20416.mail.yahoo.com> Message-ID: <40214E11.9020406@shaw.ca> Without using Redemption extended mapi code, this free method is best for quick and dirty It sits in the Systray when in use and traps message Express ClickYes 1.0.7 http://www.express-soft.com/mailmate/clickyes.html Lonnie Johnson wrote: >I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. > >I was wondering if any of the Gurus out there had code to either.... > >1. Bypass the Outlook Security > >or > >2. Send maild directly to a receipiant without going through Outlook. > >Thanks in advance. > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Wed Feb 4 15:16:17 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 4 Feb 2004 13:16:17 -0800 Subject: [AccessD] Jumping Forms Message-ID: <031201c3eb64$20f10830$6601a8c0@HAL9002> John Colby: I finally tracked down why my forms are jumping and flashing when I open them. It's your error trapper code. When I turn it off, the forms stop jumping. Can you think of a reason why this should happen? TIA and Regards, Rocky From cfoust at infostatsystems.com Wed Feb 4 15:22:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 13:22:27 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: I think you guys are missing the point. You're dealing with specific dates in [MyDateField] Between #5/1/1999# And #5/31/1999. But if someone just wants to see a particular month's data, you can specify MonthNumberSinceStart and immediately filter out all the records where their date values have the same MonthNumberSinceStart value in the Date dimension table. You don't have to compare [MyDateField] to anything because it's already joined to the dimension table. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 04, 2004 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: DatePart Question Hi Charlotte > You're way off, Drew. The reason for those divisions is because > data warehouses are used to query data, period. So the user wants to > see all fact records within a particular month for the past 5 years. > The point of a dimension table is that you don't need to do any date > calculations in the query. All you need do is specify the month > number (no function required), and the year number. The join filters > out the appropriate records. You need do no date math at all to > filter the records because any date math was done when the dimension > table was created. Since SQL is much faster than code, why would you > expect this > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > And Year(Now()) > to be faster than this > [MonthNo]=5 And YearNo Between 5 And 10 Because of the missing inner join, of course. Also, for this example, you could state: [MyDateField] Between #5/1/1999# And #5/31/1999 or ... [MyDateField] Between #5/1/2004# And #5/31/2004 But I'm guessing. I neither have a huge set of data to test with nor - as Drew - the time at the moment to play with it. So I'll have to rely on the opinion from people having experience in this area. /gustav > I understand more 'complex' date 'info', such as holidays, fiscal > period, etc. I still don't understand the reason for basic date > information, such as day, month, year, day of week, etc. I have never > actually run any tests, but my gut says that a query where I wanted > all records in the month of May (ANY year), that if I put > Month([MyDateField])=5 in the Where clause, that it would be faster > then having a relationship to a date dimension table. > Data entry, or data warehousing, the speed should still be a factor, > correct? Or am I way off on my gut feeling (really too busy to build > an appropriate test.) > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 03, 2004 4:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: DatePart Question > The essential difference is that the date dimension table is generally > used in data warehouse applications, not in regular data entry > databases. They can be useful in the latter for reporting purposes > only, but you can get by nicely if you've never had to slice and dice > very large tables based on a bunch of date criteria. Note that fact > tables in a datawarehouse are usually not normalized in the same way > as regular database tables either (they are commonly 1NF), so > dimension tables give you flexibility that it's hard to get any other > way. Data warehousing may be slightly off-topic, but only because > Access developers don't have to deal with it very often. I have, so I > can appreciate both sides of the discussion. > Charlotte Foust > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Tuesday, February 03, 2004 2:05 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Re: DatePart Question > Nothing personal, but I have to agree with Gustav's point of view. I > can see (and I believe he does too), where a table would help certain > situations. However, I know first hand, the extreme lack of > understanding on how a date works. I'm not saying you don't understand > that, however, to a computer, it is MUCH faster for many functions, to > just let the processor do a logic operation on a number, then to have it > pull other data up, and compare that. Holidays, etc, those require > heavier logic, so a table could be faster (depending on the amount of > data). > I'm not knocking your approach. But in my experience, I have never > needed to do anything like that. > We better be careful that this doesn't turn into another bound/unbound > issue. > Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 4 15:43:49 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 4 Feb 2004 13:43:49 -0800 (PST) Subject: [AccessD] Access XP and Outlook Security In-Reply-To: <40214E11.9020406@shaw.ca> Message-ID: <20040204214349.90332.qmail@web20420.mail.yahoo.com> Thanks Marty, I've already adapted that and also became aquinted with Redemtion. I was trying to avoid putting ClickYes on all the user computers because there are some user apps that send automatic emails. I was trying to see if there was a free fix for this. I may have to go with Redemption. It's not that expensive considering the company will be paying for it. Thanks again. MartyConnelly wrote: Without using Redemption extended mapi code, this free method is best for quick and dirty It sits in the Systray when in use and traps message Express ClickYes 1.0.7 http://www.express-soft.com/mailmate/clickyes.html Lonnie Johnson wrote: >I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. > >I was wondering if any of the Gurus out there had code to either.... > >1. Bypass the Outlook Security > >or > >2. Send maild directly to a receipiant without going through Outlook. > >Thanks in advance. > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! From jwcolby at colbyconsulting.com Wed Feb 4 15:57:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 16:57:41 -0500 Subject: [AccessD] Jumping Forms In-Reply-To: <031201c3eb64$20f10830$6601a8c0@HAL9002> Message-ID: Rocky, No, no idea. I assume you mean when an error is trapped? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, February 04, 2004 4:16 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Jumping Forms John Colby: I finally tracked down why my forms are jumping and flashing when I open them. It's your error trapper code. When I turn it off, the forms stop jumping. Can you think of a reason why this should happen? TIA and Regards, Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 4 16:15:40 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 4 Feb 2004 16:15:40 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE325@TAPPEEXCH01> Thanks Debbie, One thing confuses me, though: >From what I've seen, it looks like when you issue a BACKUP LOG statement in SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE option available). However, our DB Maintenance plan that backs up the log file doesn't seem to truncate it. There isn't even a truncate option. I was thinking about adding a step to the job, to execute a BACKUP LOG WITH TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the log and reclaim unused space. Am I going about this the right way? Thanks again for all your help. Brett -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Wednesday, February 04, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From DElam at jenkens.com Wed Feb 4 16:26:35 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 4 Feb 2004 16:26:35 -0600 Subject: [AccessD] OT - SQL Server transaction log size Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BA46@natexch.jenkens.com> Yes, that should work. There are several very nice wizards that can set up a maintenance plan too. See database eminence under Management. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 4:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size Thanks Debbie, One thing confuses me, though: >From what I've seen, it looks like when you issue a BACKUP LOG statement in SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE option available). However, our DB Maintenance plan that backs up the log file doesn't seem to truncate it. There isn't even a truncate option. I was thinking about adding a step to the job, to execute a BACKUP LOG WITH TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the log and reclaim unused space. Am I going about this the right way? Thanks again for all your help. Brett -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Wednesday, February 04, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - SQL Server transaction log size We do incremental backups several times during the day. After these backups we truncate the log. The log actually gets erased during truncation. It is a temporary storage spot only. Once the backup is complete, the log is superfluous. Time your backups based on how small you want your log file to stay. Once a week is not sufficient for the type of activity you see. At least once a day is what I would run. We run four times a day as a default. Once a week is probably better for full backups. Debbie -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 04, 2004 10:48 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - SQL Server transaction log size Forgive me for not posting this to the other list. However, my hunch is that there are many like myself who only subscribe to AccessD. For those of you in charge of the care & feeding of your SQL Server databases, how are you managing the transaction log file size? We have a very active system that has generated log files in excess of 6 GB (even bigger than the data file!). We have a weekly shrink database job that runs on data and log files, but my impression was that it just rearranges fragmented data and truncates unused pages. Is this correct? In Enterprise Manager, if I select the Restrict file growth option, will it automatically truncate old entries, or does it act like SS 6.5 and halt all new transactions until the log file is dumped? Ideally, we would like to retain any transactions that occured between nightly backups. Are there any utilities that can assist in this? If not, what is an appropriate log file size for a 5 GB database? The reluctant dba, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From andy at minstersystems.co.uk Wed Feb 4 16:48:26 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 4 Feb 2004 22:48:26 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <005c01c3eb71$01134de0$b274d0d5@minster33c3r25> Another problem is calling a field on a table Date. Causes mayhem when you use the Date function. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 04 February 2004 18:13 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > Yes, it does make a difference. If you aren't using the Word > library, uncheck it on his machine, otherwise, reset it on > his machine. If you have a reference to Word 8, that > reference may not resolve properly on a machine without the > Word 8 library. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 04, 2004 10:00 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Date > > > i checked on of the problematic ppl's references right now > me and him have all the same exsept I have Word 8.0 Object > Library and he has 9.0 donn't think it makes any difference > > > Check for broken references on their machines. Date() is one of the > > built-in functions that breaks when a reference is flaky. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > > Sent: Wednesday, February 04, 2004 9:08 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Date > > > > > > =Date() > > > > if i put that on report (or formatted)=Format(Date(),"mmmm dd"", > > ""yyyy") it opens fine on my machine and on several others. > There are > > however couple of ppl who have both Access 97 and 2000 on their > > machines, they get errors at this part. All the other references to > > tables and forms works fine. What could be the problem ? > > > > > > ----------------------------------------- > > Get Breaking News from CNN, ABC, NBC, CBS Now. > > http://www.xuppa.com/news/?link=webmail > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bruce_bruen at mlc.com.au Wed Feb 4 16:58:11 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 5 Feb 2004 09:58:11 +1100 Subject: [AccessD] Date Message-ID: You betcha! and how many times have we all fell for that one :-) In fact, there are several intrinsic functions that cause the same problem. BBB Another problem is calling a field on a table Date. Causes mayhem when you use the Date function. Andy Lacey http://www.minstersystems.co.uk From stuart at lexacorp.com.pg Wed Feb 4 17:16:26 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 09:16:26 +1000 Subject: [AccessD] Re: Using Dates In-Reply-To: <5.1.0.14.2.20040204105025.02a79c50@pop3.highstream.net> References: <200402041513.i14FDum32478@databaseadvisors.com> Message-ID: <402209EA.27761.52E139@localhost> On 4 Feb 2004 at 10:52, Robert L. Stewart wrote: > Gustav, > > You are totally correct, that is why I personally do not use a surrogate > key and use the date itself for the key. Ah sh*t - Quick, where's my flak jacket and steel helmet :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Wed Feb 4 17:27:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 15:27:27 -0800 Subject: [AccessD] Re: Using Dates Message-ID: NO ARCHIVE ROTFL Relax, Stuart. Maybe it will slip by under the radar this time! :-} Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, February 04, 2004 3:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Using Dates On 4 Feb 2004 at 10:52, Robert L. Stewart wrote: > Gustav, > > You are totally correct, that is why I personally do not use a > surrogate > key and use the date itself for the key. Ah sh*t - Quick, where's my flak jacket and steel helmet :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Feb 4 17:39:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 4 Feb 2004 15:39:14 -0800 Subject: [AccessD] Jumping Forms References: Message-ID: <034c01c3eb78$19666650$6601a8c0@HAL9002> John: No. I have an opening screen. Displays OK. Goes to Main Menu. Displays OK. To switch users you go back to the opening screen. Opening screen jumps. Or from the main menu if you go to any sub menu, when you return to the main menu, the screen jumps. Very weird. If I turn off error trapping (global Boolean variable) it stops jumping. Not a clue. Been puzzling over it for weeks. Finally commented out pieces of code until I found the culprit. I thought it was the ADH resizing code. But it wasn't. Rocky Rocky ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 1:57 PM Subject: RE: [AccessD] Jumping Forms > Rocky, > > No, no idea. I assume you mean when an error is trapped? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, February 04, 2004 4:16 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Jumping Forms > > > John Colby: > > I finally tracked down why my forms are jumping and flashing when I open > them. It's your error trapper code. When I turn it off, the forms stop > jumping. > > Can you think of a reason why this should happen? > > TIA and Regards, > > 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 Oleg_123 at xuppa.com Wed Feb 4 17:45:04 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 4 Feb 2004 18:45:04 -0500 (EST) Subject: [AccessD] Date In-Reply-To: References: Message-ID: <3183.24.187.36.171.1075938304.squirrel@heck.bay9.com> nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Wed Feb 4 18:12:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 4 Feb 2004 16:12:19 -0800 Subject: [AccessD] Date Message-ID: The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ 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 Feb 4 18:48:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 10:48:34 +1000 Subject: [AccessD] Date In-Reply-To: <3183.24.187.36.171.1075938304.squirrel@heck.bay9.com> References: Message-ID: <40221F82.22785.1EE55E70@localhost> On 4 Feb 2004 at 18:45, Oleg_123 at xuppa.com wrote: > nee, I know that one. > it worked fine after i took of reference to MS Word 9 on 2 ppl machines, > but i can't do it for everybody, caz one of the secretaries needs it for > something. I dunno why Format(date) worked on some machines but not > others, i just wrote function myself that reformats it from 2/2/04 (or > with leading zeros) February 2, 2004. > Trouble is, if the Date() function is broken because of a broken reference, a number of other functions will be as well -including several string manipulation functions (including Format$). You need to treat the cause, not just a single symptom. Otherwise, you are going to keep on finding problems: or worse, you will not find them - but they will be giving you incorrect outputs. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From jscott at mchsi.com Wed Feb 4 19:23:01 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Wed, 4 Feb 2004 19:23:01 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can?t find out how to build it without a dsn. It is not an option for me to use a dsn and I don?t want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I?ve included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From jwcolby at colbyconsulting.com Wed Feb 4 19:30:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 20:30:33 -0500 Subject: [AccessD] Date In-Reply-To: Message-ID: Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Feb 4 19:38:38 2004 From: Developer at UltraDNT.com (Developer) Date: Wed, 4 Feb 2004 20:38:38 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Message-ID: <000001c3eb88$c78d1f20$7001a8c0@COA3> Try qryDef.Connect = gOcon.Connection Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Wednesday, February 04, 2004 8:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] HELP! Access97 passthrough query to SQL Importance: High Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can't find out how to build it without a dsn. It is not an option for me to use a dsn and I don't want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I've included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Feb 4 19:42:27 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 4 Feb 2004 19:42:27 -0600 Subject: [AccessD] Using Modified Julian Days In-Reply-To: Message-ID: <00a301c3eb89$50175860$2a3ca8c0@TEXASSYSTEMS.COM> Charlotte, Robert, Gustav and all, This regards the date fact table, and Kimball's discussion of it, as quoted by Gustav. I'll start with a quote from Charlotte: >If you were using surrogate keys and >meaningless values as the PK, the dates in the main records would need >to be inserted *from* the date table, and that isn't generally the way >the thing is used. The tricky thing is, it is far harder to make a 'meaningless' PK in this situation than it might appear. Take the most commonly used surrogate key: the autonumber. You would typically order your Date fact table from the least recent date to the most recent, i.e. in ascending order. If your table creation routine runs flawlessly, your default autonumber PK would generate values: 1, 2, 3, ... n, with n being the number of records. Meaningless? Hardly. Its the number of days since 'Day 0' in your fact table, which is the day before the first date in the table. I suppose, if you were truly nihilistic, you could use a random autonumber and make it truly meaningless, but I can't see any sense in that. My point is, with any common sense ordering and keying of dates, your PK has meaning. So, if your key has a meaning, namely the number of days since an arbitrary day 0, why not take advantage of it? What if there was a widely recognized standard for numbering days in this manner? Enter the Modified Julian Day. The MJD is a standard day numbering system based on the old Julian Day count. The MJD was introduced in the 1950's by space scientists, and is recognized by several international standards bodies. It is used by the US Naval Observatory and the National Institute of Standards in their timekeeping duties. My proposal is: Key your date fact table using MJDs ====================================== This has several advantages: * MJDs can be easily stored as a Short integer. This makes indexing the date fact table efficient. * MJDs are easy to calculate (see below) * Date fact tables generated in different locales using different date ranges would match if keyed using MJDs. * The MJD foreign key values in the main records would not have to be looked up using the date fact table. When the main record is created or modified, the MJD values can be calculated on the fly, with perfect assurance that they will match the primary key in the date fact table. * You can do a number of date related calculations on the main records themselves, without having to resort to the date fact table. Examples: beginning and end date ranges, and days elapsed Here is code I wrote for converting Dates to MJDs and vice versa: ' 0 Hours, 17 November 1858 AD Private Const mcDte_MJD_Day0 As Date = #11/17/1858# ' Returns the Modified Julian Date for a specified Date Public Function Date_MJD(dteUDdate As Date) As Long ' Calculate the number of days since Day 0 Date_MJD = CLng(DateDiff("d", mcDte_MJD_Day0, dteUDdate)) End Function ' Returns the Date for a specified Modified Julian Date Public Function MJD_Date(lngMJD As Long) As Date ' Add MJD to Day 0 to find the Date equivalent MJD_Date = CDate(DateAdd("d", lngMJD, mcDte_MJD_Day0)) End Function If you agree that a meaningless PK doesn't make sense in this instance, you may find that using MJDs gives you extra versatility, while preserving the advantages of the date fact table. -Ken From stuart at lexacorp.com.pg Wed Feb 4 19:41:08 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Feb 2004 11:41:08 +1000 Subject: [AccessD] Date In-Reply-To: References: Message-ID: <40222BD4.28096.1F1580D0@localhost> On 4 Feb 2004 at 20:30, John W. Colby wrote: > Charlotte, > > What is the answer to this? It isn't so much "a reference to a specific > version" as it is "a reference to a lib" and that lib unfortunately includes > a "version". I have this problem myself. I use outlook and word both, one > of which requires an actual reference to an OLB. That OLB is a specific > file in a specific location. > Late binding. From http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From jwcolby at colbyconsulting.com Wed Feb 4 19:58:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 4 Feb 2004 20:58:50 -0500 Subject: [AccessD] Date In-Reply-To: <40222BD4.28096.1F1580D0@localhost> Message-ID: oh, ok. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, February 04, 2004 8:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date On 4 Feb 2004 at 20:30, John W. Colby wrote: > Charlotte, > > What is the answer to this? It isn't so much "a reference to a specific > version" as it is "a reference to a lib" and that lib unfortunately includes > a "version". I have this problem myself. I use outlook and word both, one > of which requires an actual reference to an OLB. That OLB is a specific > file in a specific location. > Late binding. From http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Wed Feb 4 19:59:46 2004 From: demulling at centurytel.net (Demulling Family) Date: Wed, 04 Feb 2004 19:59:46 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> References: <000501c3eb86$989c21e0$d62ed70c@JeanineScott> Message-ID: <4021A392.7080503@centurytel.net> > > >Jeanine, > > Here is some sample code from one of my applications: Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim mysql As String ' Create a QueryDef object to retrieve data from a Microsoft SQL Server database. Set db = DBEngine(0)(0) Set qdf = db.CreateQueryDef("qryTemp") With qdf .Connect = "ODBC;Description=<>;DRIVER=SQL Server;SERVER=<>;UID=<>;PWD=< > > > From rjhjr at cox.net Wed Feb 4 20:09:29 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 4 Feb 2004 21:09:29 -0500 Subject: [AccessD] OT: OO? In-Reply-To: <20040204070057.30555.qmail@web61103.mail.yahoo.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> Message-ID: <20040205020928.GA5422@kongemord.krig.net> On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > Hi group, > > I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). > > C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. > > I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! "The Little OO Book" gives an introduction to OO without being tied to any language. I can't remember the author. My brother borrowed my copy and lost it. Bob Hall From ebarro at afsweb.com Wed Feb 4 20:41:06 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 4 Feb 2004 18:41:06 -0800 Subject: [AccessD] Date In-Reply-To: Message-ID: Declare it like this... VB.Date() --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 04, 2004 5:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 From accessd at shaw.ca Wed Feb 4 21:21:09 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 04 Feb 2004 19:21:09 -0800 Subject: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity In-Reply-To: Message-ID: Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 4 21:31:14 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 04 Feb 2004 19:31:14 -0800 Subject: [AccessD] was SQL Server queries - appending strings In-Reply-To: <02aa01c3eb48$1c4480d0$9111758f@aine> Message-ID: Well, that answers a couple of questions that I had. For major projects, (with SQL BE), I have never used bound forms and have handled all the connections, error checking, locking, feeding the forms and reports, behind the scenes, using ADO-OLE recordsets. The first application was an effort and a half but now it is second nature. For smaller centralized projects, with DBs under a 2 GB, bound forms are just fine. Thanks Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Wednesday, February 04, 2004 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] was SQL Server queries - appending strings http://support.microsoft.com/default.aspx?scid=kb;EN-US;281998 Have a read at that Martin ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 04, 2004 4:38 PM Subject: RE: [AccessD] was SQL Server queries - appending strings > In both A2k and XP, when a *form* with controls bound to an ADO > recordset in an MDB is read only regardless of recordset type. It isn't > exactly the recordset that is read-only, it's the form interface to it > that is restricted. That didn't change in AXP, but I believe you can > bind a recordset to the form and use unbound controls, using code to > read and write the controls and update the recordset. I can't recall > whether I've tried that or not. Generally, bound forms (with bound > controls) means DAO recordsets, even in AXP. > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, February 04, 2004 4:00 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > I was under the impression that, using A2K, regardless of anything else, > binding a recordsource to a form made it read only. AND that this > changes with AXP. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Wednesday, February 04, 2004 2:16 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi John: > > I have a sample of code that was used in demonstrating a method at > populating a report and it is at the DBA site: > http://www.databaseadvisors.com/newletters/newsletter112003/0311UnboundR > epor > ts.htm (watch for wrap). All the code is not shown but it is all in the > ZIP file is a full source set. It only demos the connection between two > MDBs but it should give enough of an idea. > > By simply changing the recordset type from 'adOpenStatic, > adLockReadOnly' to 'adOpenDynamic, adLockOptimistic' it should handle > 'similar to' a bound recordsource. (MSQSQL locks only the rows retrieved > not by pages and then does all/most of the internal record management.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John > Sent: Monday, February 02, 2004 8:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > >In a number of cases I have used the conversion from ODBC to ADO-OLE to > resolve client bottle-necks issues. > > What is this, and can I use it to get an editable bound form? > > John W. Colby > The database guy > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Monday, February 02, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] was SQL Server queries - appending strings > > > Hi Gustav: > > I must reluctantly agree with your business assessment. > > As for saying ODBC is slow, it works well with up to twenty or thirty > records but any larger amount... In a number of cases I have used the > conversion from ODBC to ADO-OLE to resolve client bottle-necks issues. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Sunday, February 01, 2004 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] was SQL Server queries - appending strings > > > Hi Jim > > > There is a lot of work in creating the 'data-interface' to MSSQL and > ADO-OLE > > is the only option (ODBC is too slow....) Stored Procedures are > > programs, subroutines and functions more than just queries. No 'query' > > > import tools can work because though SQL SP work similar they are > > really quite > different > > in concept. > > Too slow compared to what? Of course, ADP is the way to go for > Access/SQL Server, but - assuming a high quality LAN - speed of ODBC > compared to Jet and to the client's current needs may be fully > acceptable. > > If John couldn't speak for himself, he would only need to quote the > messages on this thread to justify for the client that a total rebuild > of the app is too expensive - either it would kill the client's budget > or it would consume an unreasonable part of John's valuable time. > > Now, we don't know why the client has obtained this SQL Server. Is it an > idea originated at the client without consulting John about the > consequences, or did John talk the client into it? In the first case we > have a classic example of a situation where the client may be a fool but > no one wins by stressing that point. Hooking the client's data up via > ODBC may quickly set his SQL Server into action with little effort and > within his budget, and he will be happy about his decision; then later > John can prepare a demo showing the advantages of moving the app to an > ADP but, if agreed to do so, at the costs of the client. > > This could very well be an example where (continued) business is more > important then technical excellence. > > /gustav > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Thu Feb 5 00:37:07 2004 From: viner at eunet.yu (Ervin Brindza) Date: Thu, 5 Feb 2004 07:37:07 +0100 Subject: [AccessD] A2003: Masked bitmaps as button images? References: Message-ID: <009901c3ebb2$8200c360$0100a8c0@razvoj> > Popular with whom? I generally dislike additional animation on forms, To my customers, the like motley forms. I'm developing only, and they watching the screen all day long :) I heard a wisdom: if you wath to catch a fish you have to put worm on the hook because the fish will taste it, not the fisher :) > although I can tolerate a limited amount of it on web pages. Database > applications aren't generally meant to be entertaining, they're meant to > be useful and usable. While colorful and active applications might have > video appeal for those with short attention spans, they get wearing fast > when you have to do down and dirty data entry in them IMO. > Ok, you two beat me :) Sorry for increasing the traffic on the List! Best regards, Ervin From andy at minstersystems.co.uk Thu Feb 5 03:49:49 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 09:49:49 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <00e501c3ebcd$66108e90$b274d0d5@minster33c3r25> PITA not being able to use the intrinsic constants though. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 05 February 2004 01:59 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > oh, ok. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Stuart McLachlan > Sent: Wednesday, February 04, 2004 8:41 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Date > > > On 4 Feb 2004 at 20:30, John W. Colby wrote: > > > Charlotte, > > > > What is the answer to this? It isn't so much "a reference to a > > specific version" as it is "a reference to a lib" and that lib > > unfortunately > includes > > a "version". I have this problem myself. I use outlook and word > > both, > one > > of which requires an actual reference to an OLB. That OLB is a > > specific file in a specific location. > > > Late binding. > > From > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 'No reference to a type library is needed to use late binding. 'As long as the object supports IDispatch, the method can be dynamically 'located and invoked at run-time. ' Declare the object as a late-bound object Dim oExcel As Object Set oExcel = CreateObject("Excel.Application") -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 5 04:04:28 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 5 Feb 2004 11:04:28 +0100 (CET) Subject: =?iso-8859-1?Q?Re:_RE:_FAQ-BestPractices=3F_=A0Was:_RE:_[?= =?iso-8859-1?Q?AccessD]_Access_XP_and_OutlookSecurity?= Message-ID: <4893960.1075975468090.JavaMail.www@wwinf3001> Lonnie, Did you get you r XP and Oultook security question answered ? Paul Message date : Feb 05 2004, 03:28 AM >From : "Jim Lawrence (AccessD)" To : "Access Developers discussion and problem solving" Copy to : Subject : RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 04, 2004 9:56 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Access XP and Outlook Security I am sending emails programmatically from AccessXP and Outlook is giving me the message that someone is trying to send a message. It is the security feature that is looking for spam and viruses. I was wondering if any of the Gurus out there had code to either.... 1. Bypass the Outlook Security or 2. Send maild directly to a receipiant without going through Outlook. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Mark.Mitsules at ngc.com Thu Feb 5 06:56:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 07:56:18 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark From Bryan_Carbonnell at cbc.ca Thu Feb 5 07:11:21 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 08:11:21 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: Well, I can say with certainty there is currently no list setup for this. It may have existed before we switched hosts about a year ago, but it's not currently there. Bryan Carbonnell bryan_carbonnell at cbc.ca Your Friendly Neighbourhood Listmaster >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 5 07:25:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 08:25:29 -0500 Subject: [AccessD] Date Message-ID: Yea, but if you use early binding for the dev work, you can see what the intrinsic constant values are and roll your own constants and then switch to late binding for deployment. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> andy at minstersystems.co.uk 05-Feb-04 4:49:49 AM >>> PITA not being able to use the intrinsic constants though. Andy Lacey > > of which requires an actual reference to an OLB. That OLB is a > > specific file in a specific location. > > > Late binding. > > From > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 From andy at minstersystems.co.uk Thu Feb 5 07:33:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 13:33:45 -0000 Subject: [AccessD] RE: FAQ-BestPractices? In-Reply-To: Message-ID: <000801c3ebec$ae158140$b274d0d5@minster33c3r25> I can shed some light on this. A team, and indeed a list as you see, was created way back when. Our team leader, however, went awol. Nothing happened other than some basic ideas being thrown around, so it never erached first base. What did emerge, however, was just how much would need to go into it, which is perhaps why it foundered. If someone does want to have a crack at it they need to think about who looks after the kb, who submits KB articles, who vets them, who edits them, who tests any code examples, how the searching works (full text? Keywords?), etc. I'm not trying to dampen anyone's enthusiasm, just don't want anyone to imagine this'd be a walk in the park. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:11 > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: FAQ-BestPractices? > > > Well, I can say with certainty there is currently no list > setup for this. > > It may have existed before we switched hosts about a year > ago, but it's not currently there. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > Your Friendly Neighbourhood Listmaster > > > >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> > Jim, > > I was under the impression that a team already existed. I'm > quoting the > website: > http://www.databaseadvisors.com/lists.htm > >> Dev-kb * restricted to members of the Engineering Development > department, > specifically concerning the Knowledgebase << > > I can certainly suggest topics and help coordinate responses > as time allows, but I honestly don't feel qualified enough to > do a code review prior to publication. > > Mark > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, February 04, 2004 10:21 PM > To: Access Developers discussion and problem solving > Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > Hi Mark: > > That is a wonderful idea...definitely one worth pursuing. If > you and/or some others could assemble the information I would > assemble the web pages. > > ...and I am serious... > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. (Newport News) > Sent: Wednesday, February 04, 2004 7:11 AM > To: 'Access Developers discussion and problem solving' > Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > To whom it may concern... > > Database Advisors have done such a wonderful job on the > downloads section of the website that questions such as the > one below remind me that I haven't seen any discussions on > the development of a "FAQ", "Best Practices", or > "Knowledgebase" area. Honestly, I'm not complaining...just curious... > > > Mark > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Thu Feb 5 07:35:45 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 13:35:45 -0000 Subject: [AccessD] Date In-Reply-To: Message-ID: <000b01c3ebec$f594e150$b274d0d5@minster33c3r25> I know, Bryan. I've been there. But support of that isn't easy. Yes you can add comments about the intrinsic constants, but if you're toing and froing between dev't, handobver to live, more dev't and so on it gets to be, as I said before, a PITA. Of course it may be a PITA that just has to be borne. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:25 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Date > > > Yea, but if you use early binding for the dev work, you can > see what the intrinsic constant values are and roll your own > constants and then switch to late binding for deployment. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > > >>> andy at minstersystems.co.uk 05-Feb-04 4:49:49 AM >>> > PITA not being able to use the intrinsic constants though. > > Andy Lacey > > > > of which requires an actual reference to an OLB. That OLB is a > > > specific file in a specific location. > > > > > Late binding. > > > > From > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From tinanfields at torchlake.com Thu Feb 5 07:46:20 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 05 Feb 2004 08:46:20 -0500 Subject: [AccessD] OT: OO? References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> Message-ID: <4022492C.3060505@torchlake.com> Is this the book you are talking about? THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, 1943- , University of Toledo Publisher : Prentice Hall - Englewood Cliffs, N.J. Bibliographic : * Paperback * ISBN: 0-13-396342-X * October 1995, ? 1996 * viii, 181 p. ; 23 cm. * Dewey No.: 005.13 20 * Object-oriented programming (Computer science) * Computer Programming: Object-Oriented Programming DESCRIPTION: Based on the premise that there is much needless confusion about OOP, this mini-book offers a very simple, clear explanation of the truly fundamental issues in OOP that can be read by any programmer. CONTENTS: 1. Introduction. 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and Exercises. 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further Reading and Exercises. 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and Exercises. 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 Smalltalk and Eiffel. Further Reading and Exercises. 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. Appendix 3: Glossary. References (p. 172-178). * Index. ======== It sure looks good to me. Think I will go buy a copy. Tina Bob Hall wrote: >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > >>Hi group, >> >>I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). >> >>C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. >> >>I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! >> >> > >"The Little OO Book" gives an introduction to OO without being tied to >any language. I can't remember the author. My brother borrowed my copy >and lost it. > >Bob Hall >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From Mark.Mitsules at ngc.com Thu Feb 5 08:04:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 09:04:22 -0500 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: If the "powers that be" consider this as an appropriate time to begin development of such a project, then as a catalyst, I offer my earlier statement, and research skills. I will be more than willing to help research web-published code. But in fairness to the eventual published content (code), I shouldn't write it;) To answer Andy's concerns, I honestly wasn't envisioning a database (knowledgebase) approach to this project. To keep it simple, thereby promoting actual progress;) I would suggest an "FAQ" type approach. A simple list of frequently asked questions and dbAdvisors suggested approach(es). And realistically, we needn't re-invent the wheel on every occasion. If Helen Feddema, Dev Ashish, Stephen Lebans, et. al. already have an accepted method, than a simple link will suffice. To recap, I think we need more than just a list of links to the established FAQs. I was thinking more along the lines of a "Best Practice" FAQ where we research alternative solutions to a particular problem, and provide dbAdvisors' "suggested approach". And, as background, I am not qualified to make those types of decisions. My applications, to date, have not been subject to driving concerns such as tight security, or heavy optimization. I am way to deep into the school of... "If it works, go with it". Mark -----Original Message----- From: Bryan Carbonnell [mailto:Bryan_Carbonnell at cbc.ca] Sent: Thursday, February 05, 2004 8:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] RE: FAQ-BestPractices? Well, I can say with certainty there is currently no list setup for this. It may have existed before we switched hosts about a year ago, but it's not currently there. Bryan Carbonnell bryan_carbonnell at cbc.ca Your Friendly Neighbourhood Listmaster >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> Jim, I was under the impression that a team already existed. I'm quoting the website: http://www.databaseadvisors.com/lists.htm >> Dev-kb * restricted to members of the Engineering Development department, specifically concerning the Knowledgebase << I can certainly suggest topics and help coordinate responses as time allows, but I honestly don't feel qualified enough to do a code review prior to publication. Mark -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 04, 2004 10:21 PM To: Access Developers discussion and problem solving Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity Hi Mark: That is a wonderful idea...definitely one worth pursuing. If you and/or some others could assemble the information I would assemble the web pages. ...and I am serious... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 7:11 AM To: 'Access Developers discussion and problem solving' Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP and OutlookSecurity To whom it may concern... Database Advisors have done such a wonderful job on the downloads section of the website that questions such as the one below remind me that I haven't seen any discussions on the development of a "FAQ", "Best Practices", or "Knowledgebase" area. Honestly, I'm not complaining...just curious... Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 5 08:19:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:19:20 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205081432.02998738@pop3.highstream.net> Drew, Actually you are way off. ;-) The data warehouses I deal with are multi terrabyte. Think about performing a function on 200 million rows, one row at a time, versus joining to a table that has it done already. Sorry guy, but it is a no-brainer in warehousing. Now, for creating a simplified interface for end users that want to do queries and not learn VBA, it is also great. Other than those two uses, it is a personal preference. My preference is to create the function to populate the data and not do date math. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 12:45:07 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF802227832 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >I understand more 'complex' date 'info', such as holidays, fiscal period, >etc. I still don't understand the reason for basic date information, such >as day, month, year, day of week, etc. I have never actually run any tests, >but my gut says that a query where I wanted all records in the month of May >(ANY year), that if I put Month([MyDateField])=5 in the Where clause, that >it would be faster then having a relationship to a date dimension table. > >Data entry, or data warehousing, the speed should still be a factor, >correct? Or am I way off on my gut feeling (really too busy to build an >appropriate test.) > >Drew From rl_stewart at highstream.net Thu Feb 5 08:25:15 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:25:15 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> Gustav, Your example would not return the same data Charlotte's would. You would return all months. Hers would only return May of the years specified. A date and/or date/time dimension is essential in data warehousing, period. As for the use in a transactional system, personal preference. As for the use in reporting systems, it is a really good idea. That is what data warehouses and data marts are for and where the date dimension shines. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 20:44:04 +0100 >From: Gustav Brock >Subject: Re: [AccessD] Re: DatePart Question >To: Access Developers discussion and problem solving > >Message-ID: <3945400171.20040204204404 at cactus.dk> >Content-Type: text/plain; charset=us-ascii > >Hi Charlotte > > > You're way off, Drew. The reason for those divisions is because > > data warehouses are used to query data, period. So the user wants to > > see all fact records within a particular month for the past 5 years. > > The point of a dimension table is that you don't need to do any date > > calculations in the query. All you need do is specify the month number > > (no function required), and the year number. The join filters out the > > appropriate records. You need do no date math at all to filter the > > records because any date math was done when the dimension table was > > created. Since SQL is much faster than code, why would you expect this > > > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 > > And Year(Now()) > > > to be faster than this > > > [MonthNo]=5 And YearNo Between 5 And 10 > >Because of the missing inner join, of course. Also, for this example, >you could state: > > [MyDateField] Between #5/1/1999# And #5/31/1999 or > ... > [MyDateField] Between #5/1/2004# And #5/31/2004 > >But I'm guessing. I neither have a huge set of data to test with nor - >as Drew - the time at the moment to play with it. So I'll have to rely >on the opinion from people having experience in this area. > >/gustav From rl_stewart at highstream.net Thu Feb 5 08:30:13 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:30:13 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205082600.0299af58@pop3.highstream.net> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen From rl_stewart at highstream.net Thu Feb 5 08:35:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 08:35:56 -0600 Subject: [AccessD] Re: SQL Server transaction log size In-Reply-To: <200402042229.i14MT0m14714@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205083322.02972378@pop3.highstream.net> Brett and Debbie, Here is a stored procedure you can run to do what you need to do. CREATE PROCEDURE [DBO].[usp_Truncate_Log] AS BEGIN EXEC sp_dboption 'Your DB Name' , 'trunc. log on chkpt.','TRUE' END BEGIN CHECKPOINT END BEGIN EXEC sp_dboption 'Your DB Name' , 'trunc. log on chkpt.','FALSE' END BEGIN DBCC SHRINKFILE(Your Log File Name,1) END GO Note that this does not backup the log. It simple sets a checkpoint and then truncates the log and recovers the space. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >Date: Wed, 4 Feb 2004 16:15:40 -0600 >From: Brett Barabash >Subject: RE: [AccessD] OT - SQL Server transaction log size >To: "'Access Developers discussion and problem solving'" > >Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE325 at TAPPEEXCH01> >Content-Type: text/plain; charset="iso-8859-1" > >Thanks Debbie, >One thing confuses me, though: > > >From what I've seen, it looks like when you issue a BACKUP LOG statement in >SQL, it automatically truncates the log (which is why there is a NO_TRUNCATE >option available). However, our DB Maintenance plan that backs up the log >file doesn't seem to truncate it. There isn't even a truncate option. > >I was thinking about adding a step to the job, to execute a BACKUP LOG WITH >TRUNCATE_ONLY command, followed by a DBCC_SHRINKFILE command to truncate the >log and reclaim unused space. Am I going about this the right way? > >Thanks again for all your help. >Brett From Alun.Garraway at otto.de Thu Feb 5 08:38:17 2004 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Thu, 5 Feb 2004 15:38:17 +0100 Subject: [AccessD] OT: OO? Message-ID: There is really no clear format to what the author is trying to accomplish. This is not about theory or practice, just ramblings about an imaginary progamming language. First, he introduces his own language, then expects you to follow it, with no examples, just his own syntax. Then tries to make this OO. Not recommended for beg or adv. programmers. This book should be titled, "The little book of mahem." This author is clearly not an instructor or mentor, probably just some hack who is trying to cash in on OO. Save your money, and you sanity and stay away from this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris Fields Sent: Thursday, February 05, 2004 2:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: OO? Is this the book you are talking about? THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, 1943- , University of Toledo Publisher : Prentice Hall - Englewood Cliffs, N.J. Bibliographic : * Paperback * ISBN: 0-13-396342-X * October 1995, ? 1996 * viii, 181 p. ; 23 cm. * Dewey No.: 005.13 20 * Object-oriented programming (Computer science) * Computer Programming: Object-Oriented Programming DESCRIPTION: Based on the premise that there is much needless confusion about OOP, this mini-book offers a very simple, clear explanation of the truly fundamental issues in OOP that can be read by any programmer. CONTENTS: 1. Introduction. 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and Exercises. 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further Reading and Exercises. 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and Exercises. 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 Smalltalk and Eiffel. Further Reading and Exercises. 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. Appendix 3: Glossary. References (p. 172-178). * Index. ======== It sure looks good to me. Think I will go buy a copy. Tina Bob Hall wrote: >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > >>Hi group, >> >>I know how to build classes, interfaces etc. I did this in VB6 and also classes in Access. Now I want to know more about OO (object oriented) programming (C#). >> >>C# programming isn't the problem but I know very very little about OO. I worked with a very experienced Java programmer for the last 2 weeks and he showed me some very cool programming stuff using C# / OO. >> >>I need some reading stuff about OO but the books i've seen are all plunging into the deep after page 1! >> >> > >"The Little OO Book" gives an introduction to OO without being tied to >any language. I can't remember the author. My brother borrowed my copy >and lost it. > >Bob Hall >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 5 08:49:21 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2004 15:49:21 +0100 Subject: [AccessD] Re: DatePart Question In-Reply-To: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> References: <5.1.0.14.2.20040205082153.0291fdb8@pop3.highstream.net> Message-ID: <15824447093.20040205154921@cactus.dk> Hi Robert > Your example would not return the same data Charlotte's would. > You would return all months. .. Ehh (ignoring tiny typy), not here ... why do you think so?? > Hers would only return May of the years specified. Yes. > A date and/or date/time dimension is essential in data > warehousing, period. As for the use in a transactional > system, personal preference. As for the use in reporting > systems, it is a really good idea. That is what data > warehouses and data marts are for and where the date > dimension shines. OK. As I have stated, I have no experience in this area, so I believe you. /gustav >> > You're way off, Drew. The reason for those divisions is because >> > data warehouses are used to query data, period. So the user wants to >> > see all fact records within a particular month for the past 5 years. >> > The point of a dimension table is that you don't need to do any date >> > calculations in the query. All you need do is specify the month number >> > (no function required), and the year number. The join filters out the >> > appropriate records. You need do no date math at all to filter the >> > records because any date math was done when the dimension table was >> > created. Since SQL is much faster than code, why would you expect this >> >> > Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 >> > And Year(Now()) >> >> > to be faster than this >> >> > [MonthNo]=5 And YearNo Between 5 And 10 >> >>Because of the missing inner join, of course. Also, for this example, >>you could state: >> >> [MyDateField] Between #5/1/1999# And #5/31/1999 or >> ... >> [MyDateField] Between #5/1/2004# And #5/31/2004 >> >>But I'm guessing. I neither have a huge set of data to test with nor - >>as Drew - the time at the moment to play with it. So I'll have to rely >>on the opinion from people having experience in this area. From Mark.Mitsules at ngc.com Thu Feb 5 09:42:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 10:42:41 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 10:11:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 08:11:50 -0800 Subject: [AccessD] Date Message-ID: I believe that should be VBA.Date(). Charlotte Foust -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: Wednesday, February 04, 2004 6:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Declare it like this... VB.Date() --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 04, 2004 5:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date Charlotte, What is the answer to this? It isn't so much "a reference to a specific version" as it is "a reference to a lib" and that lib unfortunately includes a "version". I have this problem myself. I use outlook and word both, one of which requires an actual reference to an OLB. That OLB is a specific file in a specific location. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 7:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Date The trouble is that the breakage of the date function signals other problems, so just finding a workaround for it isn't enough. Why would a secretary need a reference to Word 9 in your Access application if the application works without it? Anytime you build an app that uses a specific version of another application library, you must take the necessary steps to insure that it doesn't break on another machine. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, February 04, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Date nee, I know that one. it worked fine after i took of reference to MS Word 9 on 2 ppl machines, but i can't do it for everybody, caz one of the secretaries needs it for something. I dunno why Format(date) worked on some machines but not others, i just wrote function myself that reformats it from 2/2/04 (or with leading zeros) February 2, 2004. > > > > > You betcha! and how many times have we all fell for that one :-) > > In fact, there are several intrinsic functions that cause the same > problem. > > BBB > > > > > > Another problem is calling a field on a table Date. Causes mayhem when > you use the Date function. > > Andy Lacey > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.567 / Virus Database: 358 - Release Date: 1/24/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Thu Feb 5 11:32:21 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 11:32:21 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D04C@cntexchange.pgdp.usec.com> I have the code shown below on a command button that closes a form. The form is a data entry form with a checkbox that will cancel the request by changing the status to 3 (canceled). If the status = canceled then the form will close. If an entry has been made on the form, there are certain required fields that must be completed before closing. Problem: Everything works fine except when I check the Cancel box. The status changes from 1 (Pending) to 3 (Canceled) & the form will close, but I get an error, "Can't find frmPermitEntry refered to in a macro of visual basic code". I tried commenting out different sections of the code, but I can't find the problem. What I don't understand, I have used this same code before without any problems. What am I missing? ******************** If PStatusID = 3 Then DoCmd.Close 'Request has been canceled If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If From John.Clark at niagaracounty.com Thu Feb 5 11:34:05 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 05 Feb 2004 12:34:05 -0500 Subject: [AccessD] Re: Code Librarian 2 Message-ID: I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 11:43:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 09:43:19 -0800 Subject: [AccessD] Re: Code Librarian 2 Message-ID: I still like the Code Librarian that comes with XP MOD. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 05, 2004 9:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Code Librarian 2 I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 5 12:05:07 2004 From: john at winhaven.net (John Bartow) Date: Thu, 5 Feb 2004 12:05:07 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <5.1.0.14.2.20040204123248.02a7b520@pop3.highstream.net> Message-ID: Robert, Pedro, etal: Originally when we started the EngLib list, it was to develop something we could use to share our code tips, etc. between AccessD members. I'm still subscribed to it but it has been pretty quite lately. Maybe you could sign up there along with the interested listers and we could pick it up. I volunteer the use of my website as a beta test site if one is needed. It has plenty of bandwidth and storage available. My hopes were that it was either a DB with import/export capabilities or a web based DB that could be hosted on the Database Advisor's site. I keep code, Reg Tweaks, bugs, articles, and valuable software (for things that I don't keep loaded but use for one thing) in my "Code and Tips DB". I keep everything in there now just because otherwise I have to search too many places to find something that doesn't fit into a category just right. Each is broken down into Category General Area of Application Description Item Details (Code, Article Text, etc) Who (or where) it came from Date Product Last modified John B. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. > Stewart > Sent: Wednesday, February 04, 2004 12:35 PM > To: accessd at databaseadvisors.com > Cc: pedro at plex.nl > Subject: [AccessD] Re: Code Librarian 2 > > > Pedro, > > I am putting the final touches on a web based one now. > Any one will be able to add entries to it. Send me > what you would like to see as fields and I will see > how well I have designed it. > > When I get it finished, I will post a link to it to > the different Access lists that I am on. > > Robert > > At 12:00 PM 2/4/2004 -0600, you wrote: > >Date: Wed, 04 Feb 2004 16:27:56 (MET) > >From: pedro at plex.nl > >Subject: [AccessD] Code Librarian 2 > >To: AccessD at databaseadvisors.com > >Message-ID: <200402041527.i14FRuNA010908 at mailhostC.plex.net> > > > >Hello Group, > > > >about 10 months ago i expressed an idea to this group to make a code > >Librarian. Some groupmembers found it a great idea and would participate > >to this project. Is this project ever started and with what result? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From adtp at touchtelindia.net Thu Feb 5 12:09:23 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 5 Feb 2004 23:39:23 +0530 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering References: Message-ID: <005901c3ec13$467e4540$e3edf73d@winxp> Mark, If it could be of any help, you might also like to take a look at my sample database named ReportGrpPgTrack at Rogers Access Library. It features a listing of group headers along with particulars of page numbers spanned by each group. This information can be printed either as an independent report or as a subreport to the main report. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Mitsules, Mark S. (Newport News) To: 'Access Developers discussion and problem solving' Sent: Thursday, February 05, 2004 21:12 Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark From DWUTKA at marlow.com Thu Feb 5 12:23:36 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 12:23:36 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227833@main2.marlow.com> I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Feb 5 12:34:07 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 5 Feb 2004 13:34:07 -0500 Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Message-ID: A.D., Thank you. I will look at it and respond later. Mark -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Thursday, February 05, 2004 1:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, If it could be of any help, you might also like to take a look at my sample database named ReportGrpPgTrack at Rogers Access Library. It features a listing of group headers along with particulars of page numbers spanned by each group. This information can be printed either as an independent report or as a subreport to the main report. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Mitsules, Mark S. (Newport News) To: 'Access Developers discussion and problem solving' Sent: Thursday, February 05, 2004 21:12 Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Jim, In order to create a more usable TOC, I tried to add the Group Header to my already existing page number printing routine. Producing something like this in my text file: "1R-RN10/ESDS(21H) 5" "1R-RN10/ESDS(22H) 6" "1R-RN11/ESDS(21H) 7" "1R-RN11/ESDS(21H) 7A" "1R-RN11/ESDS(22H) 8" "1R-RN11/ESDS(22H) 8A" I created a text box control in the page footer and set it's source to a text box control in the group header. Then set a variable equal to the text box control in the page footer. Here's the weird part...if I open the report in preview mode and manually page down through all the pages, I get exactly what I need. But, if I open the report in preview mode and try my "print to file" method, I get garbage. It's almost as if the writing to the text file can't keep up with the print routine. Is that the likely cause, or is it something else? Although currently unreliable, obviously, I would prefer to utilize the "print to file" method as it is much faster. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, February 04, 2004 9:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Mark, << Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". >> I was going to ask if you needed to do that. FWIW one technique to do that is to reference the Pages property somewhere (i.e.. a hidden text control). This forces the report engine into a 2 pass mode. On the first pass, it prints nothing so it can figure out the total pages, then goes back and prints. You can use this to your advantage by inserting code to record your custom page numbers to a table, thus building up a table of contents. It is also handy when you want to do Page x of y over a group rather then the entire report. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, February 04, 2004 9:17 AM To: '[AccessD]' Subject: [AccessD] FW: A2K2 - Report Grouping - Page Numbering Virginia, The code is posted below. Robert, Thank you for your interest. Although I am no expert, I do know how to code in VB/VBA...it was my unfamiliarity with report events and their sequence that prompted my posts. Jim Dettman was able to guide me down the right track. What prompted this unique page numbering sequence is military specifications for a drawing submittal. I maintain a database of electrical cables utilized on the Seawolf class submarines. When I need to print out a routing of these cables, each cable gets its own page number, but the route for a single cable may span several pages. Thus I needed a page numbering routine that may look something like "5, 5A, 6, 7, 7A, 7B, 8, etc.". To complicate matters further, three other circumstances had to be taken into consideration. First, the starting page number is a moving target during drawing development. Second, the following letters cannot be used "I,O,Q,S,X,Z" (A little bit of history...this is a throw-back to yesteryear when drawings were done by hand. These letters if not written correctly, could resemble numbers like 0, 1, 2, & 5, or, in the case of X, it could be mistaken for T.) Jim unwittingly handled this second problem quite nicely without even knowing it. Third, the resultant page numbers must be translated into the drawing's table of contents. For the current drawing, there are 467 cable routing pages. Since this page numbering routine only works at print time, I had to figure out a way to generate a TOC without actually wasting a ream of paper. Therefore, instead of actually printing, I utilized "Print to file" and added an On Page event to write the page number to a text file as it was "printed". All in all I'm a happy camper, primarily because it is done now, and my NEXT drawing looks to be ~60-70% bigger than this one was. The code may not be as elegant as some would like...but it works:) Mark Option Compare Database Option Explicit Dim intMajor As Integer Dim intMinor As Integer Dim strPageNumber As String Function GetPageChoice() Dim choice As String Do choice = InputBox("Enter a Starting Page Number:", _ " Number Report", "1") If Not (IsNumeric(choice)) Then MsgBox "Value Entered is not a Number." End If Loop While Not (IsNumeric(choice)) GetPageChoice = CInt(choice) End Function Private Sub Report_Open(Cancel As Integer) intMajor = GetPageChoice - 1 End Sub Private Sub GroupHeader0_Print(Cancel As Integer, _ PrintCount As Integer) If PrintCount = 1 Then intMajor = intMajor + 1 intMinor = 0 End If End Sub Private Sub PageFooterSection_Format(Cancel As Integer, _ FormatCount As Integer) intMinor = intMinor + 1 'IOQSXZ are intentionally removed from the list below. Me![txtPageNumber] = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) End Sub Private Sub Report_Page() Dim strOutputFile As String Dim strPath As String strPath = "C:\Temp2\" strOutputFile = "DA4700-3808_PageNumbers.txt" Open strPath & strOutputFile For Append As #2 'IOQSXZ are intentionally removed from the list below. strPageNumber = Trim(Format$(intMajor, "###") & _ Mid$(" ABCDEFGHJKLMNPRTUVWY", intMinor, 1)) Write #2, strPageNumber Close #2 End Sub -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Tuesday, February 03, 2004 4:10 PM To: accessd at databaseadvisors.com Cc: Mitsules, Mark S. (Newport News) Subject: Re: A2K2 - Report Grouping - Page Numbering Mark, I have been working with Access since 1.0 and have never done or had a request for something like you are wanting to do. But, here is an outline of what you are going to have to do. You cannot use the Access pages numbers for any thing except to see if you are on a different one. You will have to collect the surrogate page number that you want to start with. I would suggest a form to gather all of this. In the page footer, you will have to set a variable to the current page number. In the page header, you will have to check to see if it is different from the one in the page footer variable. If it is, then you should use the asc() function to increment and the char() function to return the next surrogate page i.e. 5A. If the grouping puts things on different real pages, then you would increment the numeric portion of your surrogate page number in the group header/footer the same way you did for the Alpha portion of the surrogate page number. I am going to take a leap here and say that it is my guess that you do not know how to code in VBA. So what you are going to have to do is find someone on list willing to write it for you based on the description above. Robert At 12:00 PM 2/3/2004 -0600, you wrote: >Date: Tue, 3 Feb 2004 08:22:10 -0500 >From: "Mitsules, Mark S. (Newport News)" >Subject: RE: [AccessD] A2K2 - Report Grouping - Page Numbering >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain > >Group, > >I realize that my question yesterday was rather long-winded, but I am >in search of someone who has experience in customizing report page >numbers. I'm not talking about just changing the starting page >number...I mean custom page numbering based on report grouping. No one >has done this? Can anyone point out an online reference? > >Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 5 12:35:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 10:35:39 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: Good grief! Are you sure you don't want to argue?? Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 05, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 5 13:56:26 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 13:56:26 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402051800.i15I0Bm04603@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205135225.02999088@pop3.highstream.net> John, What I was envisioning was a web based application that I could use as a code repository. Web based so others could get code and post code. I have my own repository in my own framework program that I import into each new DB that I create. I have looked at many programs and built a few, but this is one that I am using to learn VB.net and ASP.net, so the cost in time is nothing. I look at it as therapy. ;-)) Also, I am using the text data type in SQL Server and not an Access BE for it so the memo field is not a problem. Robert At 12:00 PM 2/5/2004 -0600, you wrote: >From: "John Clark" >Subject: [AccessD] Re: Code Librarian 2 >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >I just demoed a program simular to what I believe y'all are talking >about. It was called "Code Manager 4" and it wasn't all that bad. It has >a web site: > > http://www.vba-programmer.com/CodeManager/InfoPage.htm > >I'm not selling this program or anything, I had actually decided >against purchasing it, although I may change my mind--I'm not sure. It >just seems like I could do something just like this...but...when would I >have the time? There really isn't much to the program either, but the >cool thing is that when you look code it automatically goes to the >clipboard and is ready to be pasted into your program. And, it is only >about $25 (US) and I can't program it fast enough to beat this price. > >Just curious--in case I do get the inkling to do something like >this--would the code have to go into a memo field? I am memophobic! I >come from a FoxPro background and I have sustained too many war wounds >caused by the damn things! There was a programmer that preceded me, who >was a memo-maniac--he even used them, in one program, for the entire >address field (Street, City, State, Zip). In his defense, he really >wasn't a programmer and he is now in his own element as our Network >Admin--he is really good at this job. > >Take care! > >John W Clark From rl_stewart at highstream.net Thu Feb 5 13:57:23 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 13:57:23 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402051800.i15I0Bm04603@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205135657.0290ad88@pop3.highstream.net> It is good for individual use. At 12:00 PM 2/5/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 09:43:19 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I still like the Code Librarian that comes with XP MOD. > >Charlotte Foust From garykjos at hotmail.com Thu Feb 5 14:09:55 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 05 Feb 2004 14:09:55 -0600 Subject: [AccessD] Error Closing Form Message-ID: Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up ? fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 From rjhjr at cox.net Thu Feb 5 14:20:09 2004 From: rjhjr at cox.net (Bob Hall) Date: Thu, 5 Feb 2004 15:20:09 -0500 Subject: [AccessD] OT: OO? In-Reply-To: <4022492C.3060505@torchlake.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> Message-ID: <20040205202008.GB10477@kongemord.krig.net> On Thu, Feb 05, 2004 at 08:46:20AM -0500, Tina Norris Fields wrote: > Is this the book you are talking about? Yes. > > THE LITTLE BOOK OF OBJECT-ORIENTED PROGRAMMING, Henry LEDGARD, > 1943- , University of Toledo > > Publisher : Prentice Hall - Englewood Cliffs, > N.J. > > Bibliographic : > > * Paperback > * ISBN: 0-13-396342-X > * October 1995, ? 1996 > * viii, 181 p. ; 23 cm. > * Dewey No.: 005.13 20 > > * Object-oriented programming (Computer science) > * Computer Programming: Object-Oriented Programming > > DESCRIPTION: > > Based on the premise that there is much needless confusion about OOP, > this mini-book offers a very simple, clear explanation of the truly > fundamental issues in OOP that can be read by any programmer. > > CONTENTS: > > 1. Introduction. > > 2. Types. 2.1 Mini-language Type. 2.2 The Meaning of Type. 2.3 Primitive > Types. 2.4 Composite Types. 2.5 Type Checking. Further Reading and > Exercises. > > 3. Definition of New Types. 3.1 Mini-language Typedef. 3.2 Type > Definitions. 3.3 User-defined Operators. 3.4 A Note on Pascal. Further > Reading and Exercises. > > 4. Packages and Modules. 4.1 Mini-language Modules. 4.2 Packages and > Modules. 4.3 Encapsulation and Abstraction. 4.4 Information Hiding. 4.5 > Separate Compilation. 4.6 Modula-2 and Ada. Further Reading and Exercises. > > 5. Objects and Abstract Data Types. 5.1 Mini-language Objects. 5.2 Full > Objects. 5.3 Abstract Data Types. 5.4 Turbo Pascal. Further Reading and > Exercises. > > 6. Classes. 6.1 Mini-language Classes. 6.2 More on Objects. 6.3 > Smalltalk and Eiffel. Further Reading and Exercises. > > 7. Inheritance. 7.1 Mini-Language Inherit. 7.2 Inheritance. 7.3 > Polymorphism. 7.4 C++ and Ada 9X. Further Reading and Exercises. > > 8. Object-Oriented Programming. 8.1 What is an "Object"? 8.2 Variety of > Objects. 8.3 Questioning Object-Oriented Programming. 8.4 Program Flash. > > Appendix 1: General Exercises. Appendix 2: Flash Source Code in C++. > Appendix 3: Glossary. > > References (p. 172-178). * Index. > > > ======== It sure looks good to me. Think I will go buy a copy. > Tina > > > > Bob Hall wrote: > > >On Tue, Feb 03, 2004 at 11:00:57PM -0800, S D wrote: > > > > > >>Hi group, > >> > >>I know how to build classes, interfaces etc. I did this in VB6 and also > >>classes in Access. Now I want to know more about OO (object oriented) > >>programming (C#). > >> > >>C# programming isn't the problem but I know very very little about OO. I > >>worked with a very experienced Java programmer for the last 2 weeks and > >>he showed me some very cool programming stuff using C# / OO. > >> > >>I need some reading stuff about OO but the books i've seen are all > >>plunging into the deep after page 1! > >> > > > >"The Little OO Book" gives an introduction to OO without being tied to > >any language. I can't remember the author. My brother borrowed my copy > >and lost it. > > > >Bob Hall > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Thu Feb 5 14:26:17 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 15:26:17 -0500 (EST) Subject: [AccessD] MsysModules2 In-Reply-To: <20040205202008.GB10477@kongemord.krig.net> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> <20040205202008.GB10477@kongemord.krig.net> Message-ID: <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> What can this mean -- Table 'MsysModules2' is exclusevely locked by user 'Admin' on machine 'Lssd-xxxxx' ?? They are very unhappy about it . ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From HollisVJ at pgdp.usec.com Thu Feb 5 14:27:08 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 14:27:08 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D054@cntexchange.pgdp.usec.com> It isn't stopping, the form closes, Then I get the message so I don't know where the problem is. Is there a way I can tell? Virginia -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, February 05, 2004 2:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Error Closing Form Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 5 14:28:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:28:30 -0600 Subject: [AccessD] RE: FAQ-BestPractices? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227835@main2.marlow.com> Because we were talking a code library, for personal use, with all sorts of wamadyne search capabilities. Quite frankly, a KB site wouldn't be that hard to build. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, February 05, 2004 7:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: FAQ-BestPractices? I can shed some light on this. A team, and indeed a list as you see, was created way back when. Our team leader, however, went awol. Nothing happened other than some basic ideas being thrown around, so it never erached first base. What did emerge, however, was just how much would need to go into it, which is perhaps why it foundered. If someone does want to have a crack at it they need to think about who looks after the kb, who submits KB articles, who vets them, who edits them, who tests any code examples, how the searching works (full text? Keywords?), etc. I'm not trying to dampen anyone's enthusiasm, just don't want anyone to imagine this'd be a walk in the park. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 05 February 2004 13:11 > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: FAQ-BestPractices? > > > Well, I can say with certainty there is currently no list > setup for this. > > It may have existed before we switched hosts about a year > ago, but it's not currently there. > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > Your Friendly Neighbourhood Listmaster > > > >>> Mark.Mitsules at ngc.com 05-Feb-04 7:56:18 AM >>> > Jim, > > I was under the impression that a team already existed. I'm > quoting the > website: > http://www.databaseadvisors.com/lists.htm > >> Dev-kb * restricted to members of the Engineering Development > department, > specifically concerning the Knowledgebase << > > I can certainly suggest topics and help coordinate responses > as time allows, but I honestly don't feel qualified enough to > do a code review prior to publication. > > Mark > > > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, February 04, 2004 10:21 PM > To: Access Developers discussion and problem solving > Subject: RE: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > Hi Mark: > > That is a wonderful idea...definitely one worth pursuing. If > you and/or some others could assemble the information I would > assemble the web pages. > > ...and I am serious... > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. (Newport News) > Sent: Wednesday, February 04, 2004 7:11 AM > To: 'Access Developers discussion and problem solving' > Subject: OT: FAQ-BestPractices? Was: RE: [AccessD] Access XP > and OutlookSecurity > > > To whom it may concern... > > Database Advisors have done such a wonderful job on the > downloads section of the website that questions such as the > one below remind me that I haven't seen any discussions on > the development of a "FAQ", "Best Practices", or > "Knowledgebase" area. Honestly, I'm not complaining...just curious... > > > Mark > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Thu Feb 5 14:31:37 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 05 Feb 2004 14:31:37 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D055@cntexchange.pgdp.usec.com> Also, it only happens if I have entered some data first, then marked the checkbox to cancel the request. If I don't enter any data & check the cancel box, I do not get the error. -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, February 05, 2004 2:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Error Closing Form Did you comment out any "on error" statement so it stops an the error line? What line is it failing on? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 11:32:21 -0600 > >I have the code shown below on a command button that closes a form. The >form >is a data entry form with a checkbox that will cancel the request by >changing the status to 3 (canceled). If the status = canceled then the form >will close. If an entry has been made on the form, there are certain >required fields that must be completed before closing. > >Problem: Everything works fine except when I check the Cancel box. The >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but >I >get an error, "Can't find frmPermitEntry refered to in a macro of visual >basic code". > >I tried commenting out different sections of the code, but I can't find the >problem. What I don't understand, I have used this same code before without >any problems. What am I missing? > >******************** > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > If Len(PRequestorID & "") = 0 Then > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " >Entry >Required" > PRequestorID.SetFocus > ElseIf Len(PNeedByDate & "") = 0 Then > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " >Entry Required" > PNeedByDate.SetFocus > ElseIf Len(PTypeWork & "") = 0 Then > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " >Entry Required" > PTypeWork.SetFocus > > Else > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, >"Exit") > If Response = vbNo Then > PRequestorID.SetFocus > Else > DoCmd.RunCommand acCmdSaveRecord > DoCmd.Close acForm, "frmPermitEntry" > End If > End If > >Else > DoCmd.Close acForm, "frmPermitEntry" >End If >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 5 14:32:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:32:05 -0600 Subject: [AccessD] Re: Code Librarian 2 Message-ID: <2F8793082E00D4119A1700B0D0216BF802227836@main2.marlow.com> Did you know about the Foxpro/Access Memo bug? (That Microsoft acknowleges)? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Thursday, February 05, 2004 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Code Librarian 2 I just demoed a program simular to what I believe y'all are talking about. It was called "Code Manager 4" and it wasn't all that bad. It has a web site: http://www.vba-programmer.com/CodeManager/InfoPage.htm I'm not selling this program or anything, I had actually decided against purchasing it, although I may change my mind--I'm not sure. It just seems like I could do something just like this...but...when would I have the time? There really isn't much to the program either, but the cool thing is that when you look code it automatically goes to the clipboard and is ready to be pasted into your program. And, it is only about $25 (US) and I can't program it fast enough to beat this price. Just curious--in case I do get the inkling to do something like this--would the code have to go into a memo field? I am memophobic! I come from a FoxPro background and I have sustained too many war wounds caused by the damn things! There was a programmer that preceded me, who was a memo-maniac--he even used them, in one program, for the entire address field (Street, City, State, Zip). In his defense, he really wasn't a programmer and he is now in his own element as our Network Admin--he is really good at this job. Take care! John W Clark >>> rl_stewart at highstream.net 02/05/04 09:30AM >>> Hi, That is why I would like to get feedback on what you would like to see. Right now, I have it categorized by programming system, i.e. VB.net, Access, SQL Server, Java, etc. and then the version(s) of the programming system that it is compatible with. I also have a keyword list where the person posting the code snippet can add words to search on. I then have the code itself, in text field, as well as the ability of adding a file with a sample of the code, i.e. an mdb. Robert At 04:29 PM 2/4/2004 -0600, you wrote: >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >this is good news. >I believe that your design will be perfect, >so i don't send in any fields. >For such a design i think the problem lies in how >to find the code that one needs. How are the search >options for the codes and its titles. > >Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rjhjr at cox.net Thu Feb 5 14:33:11 2004 From: rjhjr at cox.net (Bob Hall) Date: Thu, 5 Feb 2004 15:33:11 -0500 Subject: [AccessD] OT: OO? In-Reply-To: References: Message-ID: <20040205203311.GC10477@kongemord.krig.net> On Thu, Feb 05, 2004 at 03:38:17PM +0100, Garraway, Alun wrote: > > > > There is really no clear format to what the author is trying to accomplish. This is not about theory or practice, just ramblings about an imaginary progamming language. First, he introduces his own language, then expects you to follow it, with no examples, just his own syntax. Then tries to make this OO. Not recommended for beg or adv. programmers. This book should be titled, "The little book of mahem." This author is clearly not an instructor or mentor, probably just some hack who is trying to cash in on OO. Save your money, and you sanity and stay away from this one. I don't know what the reviewer's problem was, but I found the book to be very good. The author, if I recall correctly, is a CS professor somewhere, and this is used in one of his classes. This book was my introduction to OO, and I found it to be a clear, concise introduction to a subject I had little previous exposure to. I've been using what I learned from the book ever since. The author does use his own language. I had no problems with it, and I've been able to apply the concepts to real-life languages with no difficulty. The topics are very well organized. The author starts with the most basic data types and gradually adds functionality until he's got full-blown classes and objects. If you are looking for something that will get you programming quickly, this is not it. This is an execellent intro to the concepts. Bob Hall From DWUTKA at marlow.com Thu Feb 5 14:34:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 5 Feb 2004 14:34:19 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227837@main2.marlow.com> Hey, sorry, been bogged down in a project at work, needed something to latch onto for a break. So I picked the wrong subject! How about those unbound forms..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, February 05, 2004 12:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question Good grief! Are you sure you don't want to argue?? Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 05, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I did some testing. I have a table with ~ 500k records. Using a date table to look for a specific month is definitely faster then looking for Month()=5 Using a date table to look for a month and year is about the same as Between (maybe a hair slower) Using a date table to look for a month AND another criteria within 'data' table is the same as Month() (same for Month & year) Using date table for particular month and year AND another criteria look a hair slower then Between. So yes, searching strictly for dates is faster. With an inner join (Left join changes everything, goes at about the same speed, but can't think of any instance where you would have a left join versus an inner join with a date dimension table). However, when you have criteria in the 'data' table, the VBA method is just as fast as the date dimension process. I don't have millisecond times, nor did I test it up the wazoo, but I can understand why the date dimension table is faster now. (That was my problem, understanding the speed difference). With an inner join, only having criteria in the date table forces JET to look at it's indexes first, and then only pulling up records from the indexed 'data' table. That is fast. A Left join forces it to look at the data table first, so there is no speed difference. Inner join with WHERE clause for data table negates the speed difference with the date table, because it is only looking at the dates applied for the records found from the date table. So I concede on the speed issue relating to date dimensions! (Don't get used to me conceding though....LOL.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 04, 2004 1:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question You're way off, Drew. The reason for those divisions is because data warehouses are used to query data, period. So the user wants to see all fact records within a particular month for the past 5 years. The point of a dimension table is that you don't need to do any date calculations in the query. All you need do is specify the month number (no function required), and the year number. The join filters out the appropriate records. You need do no date math at all to filter the records because any date math was done when the dimension table was created. Since SQL is much faster than code, why would you expect this Month([MyDateField]) = 5 And Year([MyDateField]) BetweenYear(Now())-5 And Year(Now()) to be faster than this [MonthNo]=5 And YearNo Between 5 And 10 Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 04, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question I understand more 'complex' date 'info', such as holidays, fiscal period, etc. I still don't understand the reason for basic date information, such as day, month, year, day of week, etc. I have never actually run any tests, but my gut says that a query where I wanted all records in the month of May (ANY year), that if I put Month([MyDateField])=5 in the Where clause, that it would be faster then having a relationship to a date dimension table. Data entry, or data warehousing, the speed should still be a factor, correct? Or am I way off on my gut feeling (really too busy to build an appropriate test.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 03, 2004 2:05 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: DatePart Question Nothing personal, but I have to agree with Gustav's point of view. I can see (and I believe he does too), where a table would help certain situations. However, I know first hand, the extreme lack of understanding on how a date works. I'm not saying you don't understand that, however, to a computer, it is MUCH faster for many functions, to just let the processor do a logic operation on a number, then to have it pull other data up, and compare that. Holidays, etc, those require heavier logic, so a table could be faster (depending on the amount of data). I'm not knocking your approach. But in my experience, I have never needed to do anything like that. We better be careful that this doesn't turn into another bound/unbound issue. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 03, 2004 1:24 PM To: accessd at databaseadvisors.com Cc: hoopesg at hotmail.com Subject: [AccessD] Re: DatePart Question Ahh Grasshopper, And how will you learn if you do not create it? I mean, I could send it to you, or post the table to the files section, but that would not help you or anyone else understand the use of the functions that went in to create it. I teach an MS Access Developer's Workshop and have been doing that for about 8 years. One of the things I do in there is come up with an idea for a function, process, etc. and have them as a group build it. And about the holiday and fiscal year "modifications," since I leave that up to the user to define after the table is created, there are not really any modifications to make to the data for me. Now, having said all of that, I did send the MDB to John Colby, but that was primarily because I know he could have created it in his sleep and because he has shared he work rather freely with us and the Access development world in general. And, it is not reinventing the wheel. It is learning how to build a wheel so you can build the cart that goes with the wheel. ;-) Besides, you may build it quite differently from the way I do it or the way John would do it. Here is another example of "thinking outside of the box." How do you do entry for addresses? Well, I use a table of Zip codes. From that, I get the city and state. So they enter the zip code first and then they may have to select the correct city but the state will always be correct. I use a data-limited combobox for the city so that, for example, they can select one of the 4 "towns" that use 77418 (my zip code). I also default each of the limited comboboxes to the first value in their list, so if there is only one city (77002, Houston) in the list, they do not have to do anything else, thus saving many keystrokes. Actually, you would get both Jan 2004 and Jan 2003, etc. data because it is looking at only the month with what you were looking at doing. What I do is give the user a form for selecting a beginning month, beginning year, ending month, and ending year for reports. If they leave the month off, I only look at the year. If they only give the beginning month and year, I do a year-to-date. And so on. Since I dynamically build the where clause of the SQL statement, I just implement it as a business rule and explain to the users how their entries will power the criteria for their reports. The end result is that the Date Dimension table will give you a lot of control and flexibility in being able to gather criteria and validating it. Robert At 03:46 AM 2/3/2004 -0600, you wrote: >Date: Mon, 02 Feb 2004 12:12:19 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks to you and to Gustav for giving me more good ideas. I guess >your question kind of goes back to my original one. If it looks at the >whole date before giving me the "1" for the month, then I'll get Jan 05 >data rather than Jan 04 data. I guess the question is senseless since >both Joe and Gustav have given me good alternatives, but I may still >have to plug some fake data just to see what I get back. > >I have been following the dates table discussion and I've got another >(stupid) question. Except for fiscal years and holiday schedule >modifications, is this not the type of table that one of the people who >has already spent the time to create it could just put out for everyone >to use? I'm afraid I started following the discussion a bit late, so >maybe I missed something. It's not that I mind a day spent creating >something really useful, it just seems a bit like re-inventing the >wheel. > >Gina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Thu Feb 5 14:42:29 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 15:42:29 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> References: <20040204070057.30555.qmail@web61103.mail.yahoo.com> <20040205020928.GA5422@kongemord.krig.net> <4022492C.3060505@torchlake.com> <20040205202008.GB10477@kongemord.krig.net> <55281.12.3.132.98.1076012777.squirrel@heck.bay9.com> Message-ID: <55486.12.3.132.98.1076013749.squirrel@heck.bay9.com> found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Thu Feb 5 14:49:09 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 5 Feb 2004 12:49:09 -0800 Subject: [AccessD] MsysModules2 II Message-ID: Are you using an MDE? http://support.microsoft.com/?id=170696 Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Thursday, February 05, 2004 12:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] MsysModules2 II found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Feb 5 14:51:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 5 Feb 2004 14:51:25 -0600 Subject: [AccessD] MsysModules2 II Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> Nope Access can theoretically have up to 255 users (according to the Jet programmers guide). Although for all practical purposes, performance takes a major hit after 20. Sounds like something has corrupted the LDB file. Just a guess, but if it is the MSysModules2 table, it may have been the result of importing an object. Is the machine name mentioned in your original message a valid one (i.e. refers to a machine that has the app open)? If so, what happens if you get them to close it? I'd try getting everyone out of the system, delete the LDB if it doesn't do so automatically, and perform a repair just for good measure. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Thursday, February 05, 2004 2:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] MsysModules2 II found this on another forumm --- I'm getting the message "Table MsysModules2 is Exclusively Locked by user X on machine Y" when attempting to access Microsoft Access Version 97 systems, with or without enforced Access system security. * What has been identified with solely self contained Access 97 systems : * With Access 97 security (MDW file), * On a Windows 2000 machine another person repplied:I saw in an other newsgroup (access newsgroup) that you can use a maximum of 7 user at one time. This IS the case at our work. But why not more than 7 ??? Where can I find this? ----- we also have Access 97 on Windows 2000 machine 7 users ???? is this true ?? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From stephen at bondsoftware.co.nz Thu Feb 5 15:00:35 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Fri, 06 Feb 2004 10:00:35 +1300 Subject: [AccessD] OT: OO? Message-ID: <70F3D727890C784291D8433E9C418F290885F2@server.bondsoftware.co.nz> > I can't remember the author. My brother borrowed my copy > >and lost it. Bob, it's $0.99 at Amazon, used. At that price what's to lose? The reviewer was so damning I got curious and ordered one. Stephen Bond > -----Original Message----- > From: Bob Hall [mailto:rjhjr at cox.net] > Sent: Friday, 6 February 2004 9:33 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: OO? > From Oleg_123 at xuppa.com Thu Feb 5 15:03:23 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 16:03:23 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE330@TAPPEEXCH01> Message-ID: <55277.12.3.132.98.1076015003.squirrel@heck.bay9.com> yeah that person had it open, after i closed it on her machine, someone else , Anthony was able to get in, and then when I tried to enter it told me that its locked under Anthony :--) > Nope > Access can theoretically have up to 255 users (according to the Jet > programmers guide). Although for all practical purposes, performance > takes a major hit after 20. > Sounds like something has corrupted the LDB file. Just a guess, but if > it is the MSysModules2 table, it may have been the result of importing > an object. Is the machine name mentioned in your original message a > valid one (i.e. refers to a machine that has the app open)? If so, what > happens if you get them to close it? > I'd try getting everyone out of the system, delete the LDB if it doesn't > do so automatically, and perform a repair just for good measure. > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Thursday, February 05, 2004 2:42 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MsysModules2 II > > > found this on another forumm --- > > I'm getting the message "Table MsysModules2 is Exclusively Locked by > user X on machine Y" when attempting to access Microsoft Access > Version 97 systems, with or without enforced Access system security. > > * What has been identified with solely self contained Access 97 > systems : > * With Access 97 security (MDW file), > * On a Windows 2000 machine > > another person repplied:I saw in an other newsgroup (access newsgroup) > that you can use a maximum of > 7 user at one time. This IS the case at our work. But why not more than > 7 ??? Where can I find this? > > > ----- > we also have Access 97 on Windows 2000 machine > 7 users ???? is this true ?? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From garykjos at hotmail.com Thu Feb 5 15:05:59 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 05 Feb 2004 15:05:59 -0600 Subject: [AccessD] Error Closing Form Message-ID: Seems like it might be trying to close it twice or again after it's already closed. Try setting a breakpoint at the beginning of this routine and when it gets to it use the F8 key to step through. Perhaps it's trying to loop back someplace. Or maybe something is contaminated in the form itself? try to create a new form and paste everything into the new form. Long shot but I've had that happen. It's worth a shot. You have the name of the form spelled right everywhere it's used right? Haven't renamed it or copied from another one? Or maybe trying to close it from another form? Gary Kjos garykjos at hotmail.com >From: "Hollis,Virginia" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem solving'" > >Subject: RE: [AccessD] Error Closing Form >Date: Thu, 05 Feb 2004 14:27:08 -0600 > >It isn't stopping, the form closes, Then I get the message so I don't know >where the problem is. Is there a way I can tell? > >Virginia > >-----Original Message----- >From: Gary Kjos [mailto:garykjos at hotmail.com] >Sent: Thursday, February 05, 2004 2:10 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Error Closing Form > > >Did you comment out any "on error" statement so it stops an the error line? >What line is it failing on? > > > >Gary Kjos >garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = canceled then the >form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form will close, >but > >I > >get an error, "Can't find frmPermitEntry refered to in a macro of visual > >basic code". > > > >I tried commenting out different sections of the code, but I can't find >the > >problem. What I don't understand, I have used this same code before >without > >any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, >" > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, >" > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Check out the new MSN 9 Dial-up - fast & reliable Internet access with >prime > >features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Scope out the new MSN Plus Internet Software ? optimizes dial-up to the max! http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1 From stuart at lexacorp.com.pg Thu Feb 5 15:10:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 07:10:11 +1000 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D055@cntexchange.pgdp.usec.com> Message-ID: <40233DD3.21987.1643B5@localhost> Try: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Exit Sub End If If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes On 5 Feb 2004 at 14:31, Hollis,Virginia wrote: > Also, it only happens if I have entered some data first, then marked the > checkbox to cancel the request. If I don't enter any data & check the cancel > box, I do not get the error. > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form will close, but > >I > >get an error, "Can't find frmPermitEntry refered to in a macro of visual > >basic code". > > > >I tried commenting out different sections of the code, but I can't find the > >problem. What I don't understand, I have used this same code before without > >any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Oleg_123 at xuppa.com Thu Feb 5 15:37:00 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 5 Feb 2004 16:37:00 -0500 (EST) Subject: [AccessD] MsysModules2 II In-Reply-To: References: Message-ID: <55392.12.3.132.98.1076017020.squirrel@heck.bay9.com> hey Charlotte, that seems to be a different error -- Record(s) can't be read; no read permissions on 'MsysModules2', I got -- "Table MsysModules2 is Exclusively Locked by user X on machine Y" when i enter Table MsysModules2 in search for 97 thats I do not get my error, only the one you pointed out > Are you using an MDE? http://support.microsoft.com/?id=170696 > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Thursday, February 05, 2004 12:42 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MsysModules2 II > > > found this on another forumm --- > > I'm getting the message "Table MsysModules2 is Exclusively Locked by > user X on machine Y" when attempting to access Microsoft Access Version > 97 systems, with or without enforced Access system security. > > * What has been identified with solely self contained Access 97 systems > : > * With Access 97 security (MDW file), > * On a Windows 2000 machine > > another person repplied:I saw in an other newsgroup (access newsgroup) > that you can use a maximum of 7 user at one time. This IS the case at > our work. But why not more than 7 ??? Where can I find this? > > > ----- > we also have Access 97 on Windows 2000 machine > 7 users ???? is this true ?? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mikedorism at adelphia.net Thu Feb 5 15:40:57 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 5 Feb 2004 16:40:57 -0500 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D04C@cntexchange.pgdp.usec.com> Message-ID: <000001c3ec30$bd9b1af0$8b194244@hargrove.internal> It can't find frmPermitEntry because the form has closed and all references to the form's controls have been destroyed. I would set a boolean variable to true if the cancel status is met. Then just before asking them if they want to exit, I would look at the value of the boolean. If it is true, go ahead and exit...otherwise ask if they want to exit. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Thursday, February 05, 2004 12:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error Closing Form I have the code shown below on a command button that closes a form. The form is a data entry form with a checkbox that will cancel the request by changing the status to 3 (canceled). If the status = canceled then the form will close. If an entry has been made on the form, there are certain required fields that must be completed before closing. Problem: Everything works fine except when I check the Cancel box. The status changes from 1 (Pending) to 3 (Canceled) & the form will close, but I get an error, "Can't find frmPermitEntry refered to in a macro of visual basic code". I tried commenting out different sections of the code, but I can't find the problem. What I don't understand, I have used this same code before without any problems. What am I missing? ******************** If PStatusID = 3 Then DoCmd.Close 'Request has been canceled If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Feb 5 15:25:03 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 5 Feb 2004 22:25:03 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040205082600.0299af58@pop3.highstream.net> Message-ID: <000c01c3ec31$b8e6ec40$f3c581d5@pedro> Hello, The fields that you mentioned and the fields that John Bartow suggested are ok with me. Other fields that i would recomment are: references (that are needed), expected problems, Contributor, Email. Greetings Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Thursday, February 05, 2004 3:30 PM Subject: [AccessD] Re: Code Librarian 2 > Hi, > > That is why I would like to get feedback on > what you would like to see. Right now, I > have it categorized by programming system, > i.e. VB.net, Access, SQL Server, Java, etc. > and then the version(s) of the programming > system that it is compatible with. I also > have a keyword list where the person posting > the code snippet can add words to search on. > I then have the code itself, in text field, > as well as the ability of adding a file with > a sample of the code, i.e. an mdb. > > Robert > > At 04:29 PM 2/4/2004 -0600, you wrote: > >From: "Pedro Janssen" > >Subject: Re: [AccessD] Re: Code Librarian 2 > >To: "Access Developers discussion and problem solving" > > > >Message-ID: <002601c3eb57$7338f2e0$f9c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Robert, > > > >this is good news. > >I believe that your design will be perfect, > >so i don't send in any fields. > >For such a design i think the problem lies in how > >to find the code that one needs. How are the search > >options for the codes and its titles. > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Thu Feb 5 15:46:55 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 5 Feb 2004 22:46:55 +0100 Subject: [AccessD] problem with DoCmd.OpenReport Message-ID: <000d01c3ec31$ba498980$f3c581d5@pedro> Hello group, i have problems with a code that i use to open a report with the value of field Code of the current record. I would like to use the following code: Private Sub cmdDymoEtiket_Click() Dim stDocName as String Dim strExp as string strExp = "[code] =" & Me![Code] stDocName = "EtiketqryDymo" DoCmd.OpenReport, acViewPreview, , strExp End sub When i use this i get an error: Syntax error (operator missing). How is this possible, i used this code many times before with forms. Pedro Janssen From stuart at lexacorp.com.pg Thu Feb 5 15:58:40 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 07:58:40 +1000 Subject: [AccessD] problem with DoCmd.OpenReport In-Reply-To: <000d01c3ec31$ba498980$f3c581d5@pedro> Message-ID: <40234930.15924.42A6DD@localhost> On 5 Feb 2004 at 22:46, Pedro Janssen wrote: > strExp = "[code] =" & Me![Code] > stDocName = "EtiketqryDymo" > DoCmd.OpenReport, acViewPreview, , strExp > > End sub > > When i use this i get an error: > Syntax error (operator missing). > > How is this possible, i used this code many times before with forms. > You forgot to tell it which report to open : DoCmd.OpenReport stDocName, acViewPreview, , strExp -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From andy at minstersystems.co.uk Thu Feb 5 16:16:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2004 22:16:43 -0000 Subject: [AccessD] Error Closing Form In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D054@cntexchange.pgdp.usec.com> Message-ID: <009801c3ec35$bcd5dce0$b274d0d5@minster33c3r25> Virginia Once you've closed the form you can't refer to it. It's closed. I'm not totally clear what you're doinmg but I 'think' you need to change it to an IF...ELSEIF construct. At the moment you're issuing the close but the rest of the code is running, then failing because the form can no longer be referenced. Try making it: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Else If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 February 2004 20:27 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Error Closing Form > > > It isn't stopping, the form closes, Then I get the message so > I don't know where the problem is. Is there a way I can tell? > > Virginia > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an > the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes > a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = > canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the > Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form > will close, > >but I get an error, "Can't find frmPermitEntry refered to in > a macro of > >visual basic code". > > > >I tried commenting out different sections of the code, but I > can't find > >the problem. What I don't understand, I have used this same > code before > >without any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, > vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, > vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & > vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + > >vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet > access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From rl_stewart at highstream.net Thu Feb 5 16:19:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 05 Feb 2004 16:19:44 -0600 Subject: [AccessD] Re: DatePart Question In-Reply-To: <200402052033.i15KXZm26311@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040205161811.0292f4b0@pop3.highstream.net> Drew, If you want to see a real speed difference, take the join out completely and place a.datefield = b.datefield in the WHERE clause. From the tests I have done it is about twice as fast. Robert At 02:33 PM 2/5/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 12:23:36 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: DatePart Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF802227833 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >I did some testing. I have a table with ~ 500k records. > >Using a date table to look for a specific month is definitely faster then >looking for Month()=5 > >Using a date table to look for a month and year is about the same as Between >(maybe a hair slower) > >Using a date table to look for a month AND another criteria within 'data' >table is the same as Month() (same for Month & year) > >Using date table for particular month and year AND another criteria look a >hair slower then Between. > >So yes, searching strictly for dates is faster. With an inner join (Left >join changes everything, goes at about the same speed, but can't think of >any instance where you would have a left join versus an inner join with a >date dimension table). However, when you have criteria in the 'data' table, >the VBA method is just as fast as the date dimension process. > >I don't have millisecond times, nor did I test it up the wazoo, but I can >understand why the date dimension table is faster now. (That was my problem, >understanding the speed difference). With an inner join, only having >criteria in the date table forces JET to look at it's indexes first, and >then only pulling up records from the indexed 'data' table. That is fast. >A Left join forces it to look at the data table first, so there is no speed >difference. Inner join with WHERE clause for data table negates the speed >difference with the date table, because it is only looking at the dates >applied for the records found from the date table. > >So I concede on the speed issue relating to date dimensions! (Don't >get used to me conceding though....LOL.) > >Drew From john at winhaven.net Thu Feb 5 16:27:29 2004 From: john at winhaven.net (John Bartow) Date: Thu, 5 Feb 2004 16:27:29 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <000c01c3ec31$b8e6ec40$f3c581d5@pedro> Message-ID: Pedro, References needed is a good one. Right now I put it into the details and it isn't easy to find there. Contributor is a better description for what I listed as "Who (or where) it came from" John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, February 05, 2004 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Re: Code Librarian 2 > > > Hello, > > The fields that you mentioned and the fields that > John Bartow suggested are ok with me. > Other fields that i would recomment are: > references (that are needed), expected problems, > Contributor, Email. > > Greetings > > Pedro From MPorter at acsalaska.com Thu Feb 5 17:04:23 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Thu, 5 Feb 2004 14:04:23 -0900 Subject: [AccessD] OT: OO? Message-ID: I have not seen this book, but by the author using his 'own' language he abstracts the OO concepts from any particular implementation. It seems to be a conceptual book rather than one geared for a specific implementation, and this review seems to verify that. Sometimes even damning testimony about a product can be a selling point for me. Mark > -----Original Message----- > From: Bob Hall [mailto:rjhjr at cox.net] > Sent: Thursday, February 05, 2004 11:33 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: OO? > > > On Thu, Feb 05, 2004 at 03:38:17PM +0100, Garraway, Alun wrote: > > > > > > > > There is really no clear format to what the author is > trying to accomplish. This is not about theory or practice, > just ramblings about an imaginary progamming language. First, > he introduces his own language, then expects you to follow > it, with no examples, just his own syntax. Then tries to make > this OO. Not recommended for beg or adv. programmers. This > book should be titled, "The little book of mahem." This > author is clearly not an instructor or mentor, probably just > some hack who is trying to cash in on OO. Save your money, > and you sanity and stay away from this one. > > I don't know what the reviewer's problem was, but I found the > book to be > very good. The author, if I recall correctly, is a CS > professor somewhere, > and this is used in one of his classes. This book was my > introduction to > OO, and I found it to be a clear, concise introduction to a > subject I had > little previous exposure to. I've been using what I learned > from the book > ever since. > > The author does use his own language. I had no problems with > it, and I've > been able to apply the concepts to real-life languages with > no difficulty. > The topics are very well organized. The author starts with > the most basic > data types and gradually adds functionality until he's got full-blown > classes and objects. > > If you are looking for something that will get you > programming quickly, > this is not it. This is an execellent intro to the concepts. > > Bob Hall > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > *********************************************************************************** 5/2/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From pedro at plex.nl Thu Feb 5 17:03:30 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 6 Feb 2004 00:03:30 +0100 Subject: [AccessD] problem with DoCmd.OpenReport References: <40234930.15924.42A6DD@localhost> Message-ID: <005001c3ec3c$88951390$f3c581d5@pedro> Hello Stuart and others, Sorry i mistyped in that mail. In my code the report (stDocName) is there, like in your line of code you mentioned. Sorry for this. When i use the code i get the Syntax error(operator missing)????? Pedro Private Sub cmdDymoEtiket_Click() Dim stDocName as String Dim strExp as string strExp = "[code] =" & Me![Code] stDocName = "EtiketqryDymo" DoCmd.OpenReport stDocName, acViewPreview, , strExp End sub ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, February 05, 2004 10:58 PM Subject: Re: [AccessD] problem with DoCmd.OpenReport > On 5 Feb 2004 at 22:46, Pedro Janssen wrote: > > > strExp = "[code] =" & Me![Code] > > stDocName = "EtiketqryDymo" > > DoCmd.OpenReport, acViewPreview, , strExp > > > > End sub > > > > When i use this i get an error: > > Syntax error (operator missing). > > > > How is this possible, i used this code many times before with forms. > > > > You forgot to tell it which report to open : > > DoCmd.OpenReport stDocName, acViewPreview, , strExp > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Thu Feb 5 17:49:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 Feb 2004 09:49:39 +1000 Subject: [AccessD] problem with DoCmd.OpenReport In-Reply-To: <005001c3ec3c$88951390$f3c581d5@pedro> Message-ID: <40236333.21970.23D5F979@localhost> On 6 Feb 2004 at 0:03, Pedro Janssen wrote: > Hello Stuart and others, > > Sorry i mistyped in that mail. > In my code the report (stDocName) is there, like in your line of code you > mentioned. > Sorry for this. > When i use the code i get the Syntax error(operator missing)????? > Try putting a Msgbox "Test" at the start of the report's On_Open to see where the problem really is. If you get the message box before the error, then it's something in the report or underlying query that's causing it. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From SDSSoftware at optusnet.com.au Thu Feb 5 20:16:31 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Fri, 6 Feb 2004 13:16:31 +1100 Subject: [AccessD] OT: Lotus Notes Developer Melbourne Message-ID: <000801c3ec57$3cde7e30$6401a8c0@user> If anyone on this list knows of a good Lotus Notes developer in Melbourne (Australia) could they please drop me a line off-list? Thanks Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 sdssoftware at optusnet.com.au From carbonnb at sympatico.ca Thu Feb 5 20:22:51 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 21:22:51 -0500 Subject: [AccessD] Date In-Reply-To: <000b01c3ebec$f594e150$b274d0d5@minster33c3r25> References: Message-ID: <4022B42B.13856.D126E3@localhost> On 5 Feb 2004 at 13:35, Andy Lacey wrote: > I know, Bryan. I've been there. But support of that isn't easy. Yes > you can add comments about the intrinsic constants, but if you're > toing and froing between dev't, handobver to live, more dev't and so > on it gets to be, as I said before, a PITA. Of course it may be a PITA > that just has to be borne. Yep no question it's a PITA, but less of a PITA than trying to figure out what: Application.Dialogs(45).Show means, IMHO Show the borders dialog in case you are interested :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From carbonnb at sympatico.ca Thu Feb 5 20:27:56 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 05 Feb 2004 21:27:56 -0500 Subject: [AccessD] Re: DatePart Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227837@main2.marlow.com> Message-ID: <4022B55C.6223.D5D066@localhost> On 5 Feb 2004 at 14:34, DWUTKA at marlow.com wrote: > Hey, sorry, been bogged down in a project at work, needed something to > latch onto for a break. So I picked the wrong subject! > > How about those unbound forms..... And you were doing SO well Drew. :( ;))) -- Bryan Carbonnell - carbonnb at sympatico.ca I DON'T HAVE AN ATTITUDE PROBLEM. YOU HAVE A PERCEPTION PROBLEM. From accessd667 at yahoo.com Fri Feb 6 02:03:36 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 6 Feb 2004 00:03:36 -0800 (PST) Subject: [AccessD] Function Return array? Message-ID: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From andy at minstersystems.co.uk Fri Feb 6 02:12:34 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 6 Feb 2004 08:12:34 -0000 Subject: [AccessD] Function Return array? In-Reply-To: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <014701c3ec88$f9ec34a0$b274d0d5@minster33c3r25> Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From accessd667 at yahoo.com Fri Feb 6 03:19:37 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 6 Feb 2004 01:19:37 -0800 (PST) Subject: [AccessD] Function Return array? In-Reply-To: <014701c3ec88$f9ec34a0$b274d0d5@minster33c3r25> Message-ID: <20040206091937.25733.qmail@web61101.mail.yahoo.com> Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd at shaw.ca Fri Feb 6 06:14:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 06 Feb 2004 04:14:51 -0800 Subject: [AccessD] Function Return array? In-Reply-To: <20040206091937.25733.qmail@web61101.mail.yahoo.com> Message-ID: Hi Sander: Can you not just pass the array, by name through the function call? I have not done so, with an array but have been passing types/collections/objects for years and can see no reason why an array is different. Why not send the whole Listbox? Private Function MyFunction(MyComboBox As Control, typHardlyMyType as MyType) As Control ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, February 06, 2004 1:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Fri Feb 6 06:18:03 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Fri, 06 Feb 2004 06:18:03 -0600 Subject: [AccessD] Error Closing Form Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D05A@cntexchange.pgdp.usec.com> This works thanks! Since this is a data entry form requesting services, they do not control the status of the request, the Engineer does. So I added a checkbox they could use if they entered data and half way through the entry, decide it isn't needed. Also, if they are going to submit the request, there are certain fields that must be entered. This is where the If Len(PRequestorID & "") = 0, etc. Then comes in. I still want the form to be able to close if no entry has been made. Does that make any sense? Anyway, thanks for the help. Virginia -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Thursday, February 05, 2004 4:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error Closing Form Virginia Once you've closed the form you can't refer to it. It's closed. I'm not totally clear what you're doinmg but I 'think' you need to change it to an IF...ELSEIF construct. At the moment you're issuing the close but the rest of the code is running, then failing because the form can no longer be referenced. Try making it: If PStatusID = 3 Then DoCmd.Close 'Request has been canceled Else If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes If Len(PRequestorID & "") = 0 Then MsgBox "A requestor must be entered." & vbCrLf, vbCritical, " Entry Required" PRequestorID.SetFocus ElseIf Len(PNeedByDate & "") = 0 Then MsgBox "The date needed must be entered." & vbCrLf, vbCritical, " Entry Required" PNeedByDate.SetFocus ElseIf Len(PTypeWork & "") = 0 Then MsgBox "The type of work must be entered." & vbCrLf, vbCritical, " Entry Required" PTypeWork.SetFocus Else Response = MsgBox("Do you want to Exit?", vbYesNo + vbQuestion, "Exit") If Response = vbNo Then PRequestorID.SetFocus Else DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, "frmPermitEntry" End If End If Else DoCmd.Close acForm, "frmPermitEntry" End If End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 February 2004 20:27 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Error Closing Form > > > It isn't stopping, the form closes, Then I get the message so > I don't know where the problem is. Is there a way I can tell? > > Virginia > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at hotmail.com] > Sent: Thursday, February 05, 2004 2:10 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Error Closing Form > > > Did you comment out any "on error" statement so it stops an > the error line? > What line is it failing on? > > > > Gary Kjos > garykjos at hotmail.com > > > > > > >From: "Hollis,Virginia" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem solving'" > > > >Subject: [AccessD] Error Closing Form > >Date: Thu, 05 Feb 2004 11:32:21 -0600 > > > >I have the code shown below on a command button that closes > a form. The > >form > >is a data entry form with a checkbox that will cancel the request by > >changing the status to 3 (canceled). If the status = > canceled then the form > >will close. If an entry has been made on the form, there are certain > >required fields that must be completed before closing. > > > >Problem: Everything works fine except when I check the > Cancel box. The > >status changes from 1 (Pending) to 3 (Canceled) & the form > will close, > >but I get an error, "Can't find frmPermitEntry refered to in > a macro of > >visual basic code". > > > >I tried commenting out different sections of the code, but I > can't find > >the problem. What I don't understand, I have used this same > code before > >without any problems. What am I missing? > > > >******************** > > > >If PStatusID = 3 Then DoCmd.Close 'Request has been canceled > > > >If Forms!frmPermitEntry.Dirty = True Then 'Data Entered? Yes > > If Len(PRequestorID & "") = 0 Then > > MsgBox "A requestor must be entered." & vbCrLf, > vbCritical, " > >Entry > >Required" > > PRequestorID.SetFocus > > ElseIf Len(PNeedByDate & "") = 0 Then > > MsgBox "The date needed must be entered." & vbCrLf, > vbCritical, " > >Entry Required" > > PNeedByDate.SetFocus > > ElseIf Len(PTypeWork & "") = 0 Then > > MsgBox "The type of work must be entered." & > vbCrLf, vbCritical, " > >Entry Required" > > PTypeWork.SetFocus > > > > Else > > > > Response = MsgBox("Do you want to Exit?", vbYesNo + > >vbQuestion, > >"Exit") > > If Response = vbNo Then > > PRequestorID.SetFocus > > Else > > DoCmd.RunCommand acCmdSaveRecord > > DoCmd.Close acForm, "frmPermitEntry" > > End If > > End If > > > >Else > > DoCmd.Close acForm, "frmPermitEntry" > >End If > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check out the new MSN 9 Dial-up - fast & reliable Internet > access with prime > > features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Fri Feb 6 06:15:12 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 6 Feb 2004 17:45:12 +0530 Subject: [AccessD] Function Return array? References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <003a01c3ecab$a274c430$87edf73d@winxp> Sander, Return value for the function can be set as Variant. For a practical demonstration, you might like to have a look at my sample database BackUpManager at Rogers Access Library. Function F_FileSelect() in module Bk_FileDlg_2K of the 2K version of this sample should be relevant. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: S D To: accessd Sent: Friday, February 06, 2004 13:33 Subject: [AccessD] Function Return array? Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander From rl_stewart at highstream.net Fri Feb 6 08:36:10 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 06 Feb 2004 08:36:10 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402060812.i168CVm27237@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040206082854.0299be48@pop3.highstream.net> Here is the current SQL for the tables: CREATE TABLE [dbo].[tbl_CodeBase] ( [CodeBaseID] [int] IDENTITY (1, 1) NOT NULL , [Category] [varchar] (15) NOT NULL , [Short_Desc] [varchar] (75) NOT NULL , [Contributor_Name] [varchar] (50) NULL , [Contributor_Email] [varchar] (50) NULL , [Full_Desc] [text] NOT NULL , [Code_Text] [text] NOT NULL , [KnownIssues] [text] NULL , [Audt_Create_Dt] [datetime] NOT NULL , [Audt_Create_UID] [varchar] (20) NOT NULL , [Audt_Modify_Dt] [datetime] NULL , [Audt_Modify_UID] [varchar] (20) NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodeBaseReferences] ( [CodeBaseReferenceID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [RequiredReference] [varchar] (75) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodeBaseSoftware] ( [CodeBaseSoftwareID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [SoftwareVersionID] [int] NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodebaseFiles] ( [Code_Link_ID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [CodeFile] [binary] (50) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tbl_CodebaseKeyword] ( [CodeBaseKeywordID] [int] IDENTITY (1, 1) NOT NULL , [CodeBaseID] [int] NOT NULL , [Keyword] [varchar] (10) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_Category] ( [Category] [varchar] (15) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_SoftwareName] ( [SoftwareName] [varchar] (20) NOT NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[tlkp_SoftwareVersion] ( [SoftwareVersionID] [int] IDENTITY (1, 1) NOT NULL , [SoftwareName] [varchar] (20) NOT NULL , [SoftwareVersion] [varchar] (10) NOT NULL ) ON [PRIMARY] GO If you catch something that I forgot, drop me a note and I will get it in there. Robert At 02:12 AM 2/6/2004 -0600, you wrote: >Date: Thu, 5 Feb 2004 16:27:29 -0600 >From: "John Bartow" >Subject: RE: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Pedro, >References needed is a good one. Right now I put it into the details and it >isn't easy to find there. >Contributor is a better description for what I listed as "Who (or where) it >came from" > >John > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, February 05, 2004 3:25 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Re: Code Librarian 2 > > > > > > Hello, > > > > The fields that you mentioned and the fields that > > John Bartow suggested are ok with me. > > Other fields that i would recomment are: > > references (that are needed), expected problems, > > Contributor, Email. > > > > Greetings > > > > Pedro From cfoust at infostatsystems.com Fri Feb 6 10:03:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 6 Feb 2004 08:03:55 -0800 Subject: [AccessD] Function Return array? Message-ID: 1. Declare the variable that will hold the returned array as a variant. Dim varArray as Variant 2. Declare the return value of the function that builds the array as a variant. Build the array in the function and set the function's return value to the array, whatever datatype the array may be. Public Function ReturnArray(lst As Listbox) As Variant 3. Even though the variable in the calling routine is declared as a variant rather than as an array, it will contain an array that is returned by the function and you can use it in code as if you had built the array within that routine. varArray = ReturnArray(Me.lstSelect) If Ubound(varArray) > 0 Then ... Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Friday, February 06, 2004 1:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? Andy, I don't get it. I can indeed create an array, then call the function using the array as a paramater and then what? I need the values from the array. Correct if I'm wrong but I still need to return the values from the function to my event (form OnLoad) How do I do that? I want to achieve the following: 1 - Fill an array with items in the specified listbox. 2 - loop through the array and when the current value of the array matches with the current item in the listbox...select the item in the listbox. Hope this makes sence Regards, Sander Andy Lacey wrote: Create the array outside the function, pass it in as a parmeter and have the function fill it? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: 06 February 2004 08:04 > To: accessd > Subject: [AccessD] Function Return array? > > > Hi group, > > I have a function that builds an array. Is it possible to > let the function return the array? > > Any ideas? > > TIA > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 6 10:07:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 08:07:35 -0800 Subject: [AccessD] Re: Code Librarian 2 References: Message-ID: <4023BBC7.80404@shaw.ca> How about putting it in something simple like an RSS XML feed Something like the following using kbAlertz.com from Scott Cate or MSDN You can then put up a quick XPath query ASP page to search. or the user could dump into an mdb http://www.kbalertz.com/rss/acc.xml or http://msdn.microsoft.com/vbasic/rss.xml http://msdn.microsoft.com/rss.xml John Bartow wrote: >Pedro, >References needed is a good one. Right now I put it into the details and it >isn't easy to find there. >Contributor is a better description for what I listed as "Who (or where) it >came from" > >John > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen >>Sent: Thursday, February 05, 2004 3:25 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Re: Code Librarian 2 >> >> >>Hello, >> >>The fields that you mentioned and the fields that >>John Bartow suggested are ok with me. >>Other fields that i would recomment are: >>references (that are needed), expected problems, >>Contributor, Email. >> >>Greetings >> >>Pedro >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 6 10:22:43 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 08:22:43 -0800 Subject: [AccessD] Function Return array? References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <4023BF53.6050507@shaw.ca> Or you can pass by reference Public Sub Test1() Dim aryTest1(1 To 3) As Integer Dim i As Integer For i = 1 To 3 Step 1 aryTest1(i) = i Debug.Print aryTest1(i) Next i Call Test2(aryTest1()) For i = 1 To 3 Step 1 Debug.Print aryTest1(i) Next i End Sub Public Sub Test2(ByRef aryTest2() As Integer) Dim i As Integer Dim j As Integer Dim k As Integer j = LBound(aryTest2) k = UBound(aryTest2) For i = j To k aryTest2(i) = i * 2 Debug.Print aryTest2(i) Next i End Sub S D wrote: >Hi group, > >I have a function that builds an array. Is it possible to let the function return the array? > >Any ideas? > >TIA >Sander > > >--------------------------------- >Do you Yahoo!? >Yahoo! Finance: Get your refund fast by filing online >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From starkey at wanadoo.nl Fri Feb 6 10:45:13 2004 From: starkey at wanadoo.nl (StaRKeY) Date: Fri, 6 Feb 2004 17:45:13 +0100 Subject: [AccessD] Function Return array? In-Reply-To: <4023BF53.6050507@shaw.ca> Message-ID: Hi all, Nothing against an array but did you also consider a (class)collection? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: vrijdag 6 februari 2004 17:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Function Return array? Or you can pass by reference Public Sub Test1() Dim aryTest1(1 To 3) As Integer Dim i As Integer For i = 1 To 3 Step 1 aryTest1(i) = i Debug.Print aryTest1(i) Next i Call Test2(aryTest1()) For i = 1 To 3 Step 1 Debug.Print aryTest1(i) Next i End Sub Public Sub Test2(ByRef aryTest2() As Integer) Dim i As Integer Dim j As Integer Dim k As Integer j = LBound(aryTest2) k = UBound(aryTest2) For i = j To k aryTest2(i) = i * 2 Debug.Print aryTest2(i) Next i End Sub S D wrote: >Hi group, > >I have a function that builds an array. Is it possible to let the function return the array? > >Any ideas? > >TIA >Sander > > >--------------------------------- >Do you Yahoo!? >Yahoo! Finance: Get your refund fast by filing online >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 3-2-2004 Tested on: 6-2-2004 17:45:13 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From DWUTKA at marlow.com Fri Feb 6 11:01:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 11:01:40 -0600 Subject: [AccessD] Re: DatePart Question Message-ID: <2F8793082E00D4119A1700B0D0216BF802227841@main2.marlow.com> I think the only reason I have been doing so well, Bryan, is that I've just been to %^&^%$#@#$% swamped to do anything but peruse the list! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 05, 2004 8:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question On 5 Feb 2004 at 14:34, DWUTKA at marlow.com wrote: > Hey, sorry, been bogged down in a project at work, needed something to > latch onto for a break. So I picked the wrong subject! > > How about those unbound forms..... And you were doing SO well Drew. :( ;))) -- Bryan Carbonnell - carbonnb at sympatico.ca I DON'T HAVE AN ATTITUDE PROBLEM. YOU HAVE A PERCEPTION PROBLEM. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 11:05:45 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 11:05:45 -0600 Subject: [AccessD] Function Return array? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227842@main2.marlow.com> Yes. Function BuildArray() As Variant Dim tmpArray(1 To 6) tmpArray(1) = "This" tmpArray(2) = "is" tmpArray(3) = "how" tmpArray(4) = "to" tmpArray(5) = "do" tmpArray(6) = "it." BuildArray = tmpArray End Function Private Sub Command0_Click() Dim tmp As Variant Dim i As Long Dim strTemp As String tmp = BuildArray For i = LBound(tmp) To UBound(tmp) strTemp = strTemp & tmp(i) & " " Next i strTemp = Trim(strTemp) MsgBox strTemp End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, February 06, 2004 2:04 AM To: accessd Subject: [AccessD] Function Return array? Hi group, I have a function that builds an array. Is it possible to let the function return the array? Any ideas? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Feb 6 11:11:39 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 6 Feb 2004 12:11:39 -0500 Subject: [Fwd: [AccessD] AXP - Create HTML Document] Message-ID: <20040206171203.QDH4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> > From: "Terri Jarus" > Date: Fri, 06 Feb 2004 07:54:39 -0600 > To: > Subject: [AccessD] AXP - Create HTML Document > > I have a report that is created dynamically in Word, however, we now want it to be created in HTML. > > Does anyone have sample code to do something like this? > > Here is a sample (shortened version) of what we use for the Word doc - how can I change it to HTML. Or is there a better way? > > Private Sub CreateCDS_Click() > DoCmd.Save > Dim objWord As Word.Application > Dim filename As String > > Set objWord = New Word.Application > > filename = "U:\Suppliers\Reports\Contract Sales\EForm\cds.dot" > > With objWord > > On Error GoTo MsgInfo > .Visible = True > > .Documents.Add _ > Template:=filename, _ > NewTemplate:=False > > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="ContractNumber" > > .Selection.TypeText _ > Text:=ContractNumber > > If HubSupplier <> "" Then > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Hub" > > .Selection.TypeText _ > Text:="Hub Supplier: " & Nz([HubSupplier]) > Else > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="ContUpd" > > .Selection.TypeText _ > Text:=ContUpd > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="InternalNum" > > .Selection.TypeText _ > Text:=Nz([VendorInternal]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="PDU" > > .Selection.TypeText _ > Text:=Prog > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Category" > > .Selection.TypeText _ > Text:=IndexCategory > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="SupplierName" > > .Selection.TypeText _ > Text:=UCase([SupplierPrintName]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Address1" > > .Selection.TypeText _ > Text:=SupplierAddress1 > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Address2" > > .Selection.TypeText _ > Text:=Nz([SupplierAddress2]) > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="CityStateZip" > > .Selection.TypeText _ > Text:=CityStateZip > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Phone" > > .Selection.TypeText _ > Text:=Nz([SupplierPhone]) > > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="Fax" > > If Nz(SupplierFax, "") = "" Then > .Selection.Expand wdWord > .Selection.Delete > Else > > .Selection.TypeText _ > Text:="FAX: " & Nz([SupplierFax]) > > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="TollFree" > > If Nz(SupplierTollFree, "") = "" Then > .Selection.Expand wdParagraph > .Selection.Delete > Else > > .Selection.TypeText _ > Text:="TOLL FREE: " & Nz([SupplierTollFree]) > > End If > > .Selection.GoTo _ > What:=wdGoToBookmark, _ > Name:="WebAddress" > > .Selection.TypeText _ > Text:="Website: " & Nz([VendorWeb]) > > objWord.Selection.TypeParagraph > objWord.Selection.MoveDown Unit:=wdLine > > > .Quit > > End With > > Set objWord = Nothing > > MsgInfo: > On Error Resume Next > 'MsgBox "There is a required field missing information, please recheck your CDS data. Enter any required data into the Contract Info database." > Exit Sub > End Sub > > Please advise. > > Thanks for any help. > > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From jscott at mchsi.com Fri Feb 6 11:18:59 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Fri, 6 Feb 2004 11:18:59 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3eb88$c78d1f20$7001a8c0@COA3> Message-ID: <000b01c3ecd5$4f4d6fd0$d62ed70c@JeanineScott> Thanks for both responses. They were helpful! However, I am still having issues with this. When I set my .connect to the gOcon.connectionstring I get an error message stating the connection string is too long. It's the same connection string used in all my ado recordsets. CONNECTION STRING: Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use Encryption for Data=False;Tag with column collation when possible=False Any ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Wednesday, February 04, 2004 7:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Try qryDef.Connect = gOcon.Connection Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Wednesday, February 04, 2004 8:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] HELP! Access97 passthrough query to SQL Importance: High Anyone know how to set a connection string for a passthrough query in code? I can easily run my passthrough using a dsn but I can't find out how to build it without a dsn. It is not an option for me to use a dsn and I don't want to hardcode the connection string because I want to easily switch databases (test to production, etc). I am using a dsnless connection with NT Authentication. I've included the connection code below. Thank you!!!! If gOcon.State = adStateOpen Then Exit Sub End If If IsEmpty(gvarSQLDataLocation) Then gvarSQLDataLocation = GetLocationINI("PathTestHome") End If 'open the sql connection With gOcon .ConnectionTimeout = 5000 .CommandTimeout = 5000 .CursorLocation = adUseServer '.Provider = "Microsoft.Jet.OLEDB.3.51" .Provider = "SQLOLEDB" 'NT Authentication '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "Integrated Security=SSPIPersist Security Info=False" 'with .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ "Integrated Security=SSPI;Persist Security Info=False" 'CMK End 'Works with SQL Auth '.ConnectionString = "Provider=SQLOLEDB " & _ "Data Source=" & gvarSQLDataLocation & " " & _ "Initial Catalog=" & gstrDBName & " " & _ "User ID=Paruser " & _ "Password=Paruser" .Open .DefaultDatabase = gstrDBName End With --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 11:30:37 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 12:30:37 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: try this - it is using ado in access 2000, it might work in 97 but I haven't tried it Dim cnn As New ADODB.Connection cnn.Open fWrtConnect() fWrtConnect is a function I have that builds the connection string and returns it to the calling routine Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > Thanks for both responses. They were helpful! However, I am > still having > issues with this. > > When I set my .connect to the gOcon.connectionstring I get an error > message stating the connection string is too long. It's the same > connection string used in all my ado recordsets. > > > CONNECTION STRING: > Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security > Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto > Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use > Encryption for Data=False;Tag with column collation when > possible=False > > Any ideas? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer > Sent: Wednesday, February 04, 2004 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > Try qryDef.Connect = gOcon.Connection > > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jeanine Scott > Sent: Wednesday, February 04, 2004 8:23 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] HELP! Access97 passthrough query to SQL > Importance: High > > > Anyone know how to set a connection string for a passthrough query in > code? I can easily run my passthrough using a dsn but I can't find out > how to build it without a dsn. It is not an option for me to use a dsn > and I don't want to hardcode the connection string because I want to > easily switch databases (test to production, etc). > > I am using a dsnless connection with NT Authentication. I've included > the connection code below. > > > Thank you!!!! > > > > If gOcon.State = adStateOpen Then > Exit Sub > End If > > If IsEmpty(gvarSQLDataLocation) Then > gvarSQLDataLocation = GetLocationINI("PathTestHome") > End If > > 'open the sql connection > With gOcon > > .ConnectionTimeout = 5000 > .CommandTimeout = 5000 > .CursorLocation = adUseServer > '.Provider = "Microsoft.Jet.OLEDB.3.51" > .Provider = "SQLOLEDB" > > 'NT Authentication > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "Integrated Security=SSPIPersist Security > Info=False" > 'with > .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ > "Integrated Security=SSPI;Persist Security > Info=False" > 'CMK End > 'Works with SQL Auth > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "User ID=Paruser " & _ > "Password=Paruser" > > .Open > > .DefaultDatabase = gstrDBName > End With > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jscott at mchsi.com Fri Feb 6 11:51:32 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Fri, 6 Feb 2004 11:51:32 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: Message-ID: <001601c3ecd9$db381550$d62ed70c@JeanineScott> This is essentially what I'm doing since my connection function sets a global that holds the connections string. I keep getting the string too long error. Do you use it in pass through queries? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 11:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL try this - it is using ado in access 2000, it might work in 97 but I haven't tried it Dim cnn As New ADODB.Connection cnn.Open fWrtConnect() fWrtConnect is a function I have that builds the connection string and returns it to the calling routine Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > Thanks for both responses. They were helpful! However, I am > still having > issues with this. > > When I set my .connect to the gOcon.connectionstring I get an error > message stating the connection string is too long. It's the same > connection string used in all my ado recordsets. > > > CONNECTION STRING: > Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security > Info=False;Data Source=xxx;Use Procedure for Prepare=1;Auto > Translate=True;Packet Size=4096;Workstation ID=JEANINESCOTT;Use > Encryption for Data=False;Tag with column collation when > possible=False > > Any ideas? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer > Sent: Wednesday, February 04, 2004 7:39 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > Try qryDef.Connect = gOcon.Connection > > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jeanine Scott > Sent: Wednesday, February 04, 2004 8:23 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] HELP! Access97 passthrough query to SQL > Importance: High > > > Anyone know how to set a connection string for a passthrough query in > code? I can easily run my passthrough using a dsn but I can't find out > how to build it without a dsn. It is not an option for me to use a dsn > and I don't want to hardcode the connection string because I want to > easily switch databases (test to production, etc). > > I am using a dsnless connection with NT Authentication. I've included > the connection code below. > > > Thank you!!!! > > > > If gOcon.State = adStateOpen Then > Exit Sub > End If > > If IsEmpty(gvarSQLDataLocation) Then > gvarSQLDataLocation = GetLocationINI("PathTestHome") > End If > > 'open the sql connection > With gOcon > > .ConnectionTimeout = 5000 > .CommandTimeout = 5000 > .CursorLocation = adUseServer > '.Provider = "Microsoft.Jet.OLEDB.3.51" > .Provider = "SQLOLEDB" > > 'NT Authentication > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "Integrated Security=SSPIPersist Security > Info=False" > 'with > .ConnectionString = "Data Source=" & gvarSQLDataLocation & ";" & _ > "Integrated Security=SSPI;Persist Security > Info=False" > 'CMK End > 'Works with SQL Auth > '.ConnectionString = "Provider=SQLOLEDB " & _ > "Data Source=" & gvarSQLDataLocation & " " & _ > "Initial Catalog=" & gstrDBName & " " & _ > "User ID=Paruser " & _ > "Password=Paruser" > > .Open > > .DefaultDatabase = gstrDBName > End With > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From ranthony at wrsystems.com Fri Feb 6 11:56:58 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Fri, 6 Feb 2004 12:56:58 -0500 Subject: [AccessD] Update table with update query Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A40@mail2.wrsystems.com> Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 From rl_stewart at highstream.net Fri Feb 6 12:15:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 06 Feb 2004 12:15:41 -0600 Subject: [AccessD] Re: Update table with update query In-Reply-To: <200402061800.i16I0Gm18547@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040206121511.029900f0@pop3.highstream.net> Yes it is. You will probably need to do it in code. Robert At 12:00 PM 2/6/2004 -0600, you wrote: >Date: Fri, 6 Feb 2004 12:56:58 -0500 >From: Randall Anthony >Subject: [AccessD] Update table with update query >To: accessd at databaseadvisors.com >Message-ID: > <5F21A4E8B8DD734992EF9E70AC9D3064128A40 at mail2.wrsystems.com> >Content-Type: text/plain > >Hey group, >I have a problem that seems a no-brainer. I use a select groupby query to >get a recordset. I then use a second query with the first query and the >target table in order to update the target table. I thought this should >work no problem, however I get an "Operation must use an updatable query" >error. Is this one of those you can't get there from here things? Using >A97. From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 12:26:49 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 13:26:49 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL Message-ID: yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ---------------------------------------------------------------------------- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the > string too > long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't > tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > From martyconnelly at shaw.ca Fri Feb 6 12:43:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Feb 2004 10:43:03 -0800 Subject: [Fwd: [AccessD] AXP - Create HTML Document] References: <20040206171203.QDH4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <4023E037.8040401@shaw.ca> This might get you started but constants vary for each version of Word This worked for 2000. Also it generates a lot of excess html see for other methods or use word macro recorder to see code generated by SaveAs HTML http://word.mvps.org/FAQs/General/SaveAsWebWithoutXML.htm Public Sub ConvertWordToHTML(strPath, strDocName) On Error Resume Next Dim lenDocname As Integer Dim intStart As Integer Dim bolStarted As Boolean Dim newDocName As String Dim oldDocName As String Dim strContents As String Dim WordApp As Word.Application Dim wordDoc As Word.Document Dim noneDoc As Word.Document Set noneDoc = Nothing Set WordApp = GetObject(, "Word.Application") If Err <> 0 Then 'word wasn't running, start it from code Set WordApp = CreateObject("Word.Application") End If 'get old document name oldDocName = Trim(strDocName) ' get length lenDocname = Len(Trim(strDocName)) 'remove last 4 characters and replace with .htm extension newDocName = Left(Trim(strDocName), lenDocname - 4) & ".htm" 'delete new file just in case strContents = strPath & newDocName 'Kill (strContents) 'open and display document strContents = strPath & oldDocName Set wordDoc = Documents.Open(FileName:=strContents, _ ConfirmConversions:=False, _ ReadOnly:=False, _ AddToRecentFiles:=False, _ Revert:=False, _ Format:=wdOpenFormatAuto) ' Visible:=True) ' Format:=wdDocument, ' no idea why but i sometimes get err 53 file not found yet the file still opens If Err <> 0 And Err <> 53 Then GoTo Quit_Conversion End If Err.Clear 'save as html wordDoc.SaveAs FileName:=strPath & newDocName, _ FileFormat:=wdFormatHTML, _ LockComments:=False, _ Password:="", _ AddToRecentFiles:=False, _ WritePassword:="", _ ReadOnlyRecommended:=False, _ EmbedTrueTypeFonts:=False, _ SaveNativePictureFormat:=False, _ SaveFormsData:=False, _ SaveAsAOCELetter:=False If Err <> 0 Then GoTo Quit_Conversion End If Debug.Print newDocName 'cmdConvert.Enabled = False 'cmdConvert.Visible = False Debug.print "Document Converted successfully" Quit_Conversion: If Err <> 0 Then Debug.Print Err.Number & " " & Err.Description _ & ", " & Err.Source, "e" End If If wordDoc <> noneDoc Then wordDoc.Close SaveChanges:=False End If Set wordDoc = Nothing If bolStarted = True Then WordApp.Quit End If Set WordApp = Nothing End Sub Bryan Carbonnell wrote: >>From: "Terri Jarus" >>Date: Fri, 06 Feb 2004 07:54:39 -0600 >>To: >>Subject: [AccessD] AXP - Create HTML Document >> >>I have a report that is created dynamically in Word, however, we now want it to be created in HTML. >> >>Does anyone have sample code to do something like this? >> >>Here is a sample (shortened version) of what we use for the Word doc - how can I change it to HTML. Or is there a better way? >> >>Private Sub CreateCDS_Click() >>DoCmd.Save >> Dim objWord As Word.Application >> Dim filename As String >> >> Set objWord = New Word.Application >> >> filename = "U:\Suppliers\Reports\Contract Sales\EForm\cds.dot" >> >> With objWord >> >> On Error GoTo MsgInfo >> .Visible = True >> >> .Documents.Add _ >> Template:=filename, _ >> NewTemplate:=False >> >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="ContractNumber" >> >> .Selection.TypeText _ >> Text:=ContractNumber >> >> If HubSupplier <> "" Then >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Hub" >> >> .Selection.TypeText _ >> Text:="Hub Supplier: " & Nz([HubSupplier]) >> Else >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="ContUpd" >> >> .Selection.TypeText _ >> Text:=ContUpd >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="InternalNum" >> >> .Selection.TypeText _ >> Text:=Nz([VendorInternal]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="PDU" >> >> .Selection.TypeText _ >> Text:=Prog >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Category" >> >> .Selection.TypeText _ >> Text:=IndexCategory >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="SupplierName" >> >> .Selection.TypeText _ >> Text:=UCase([SupplierPrintName]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Address1" >> >> .Selection.TypeText _ >> Text:=SupplierAddress1 >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Address2" >> >> .Selection.TypeText _ >> Text:=Nz([SupplierAddress2]) >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="CityStateZip" >> >> .Selection.TypeText _ >> Text:=CityStateZip >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Phone" >> >> .Selection.TypeText _ >> Text:=Nz([SupplierPhone]) >> >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="Fax" >> >> If Nz(SupplierFax, "") = "" Then >> .Selection.Expand wdWord >> .Selection.Delete >> Else >> >> .Selection.TypeText _ >> Text:="FAX: " & Nz([SupplierFax]) >> >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="TollFree" >> >> If Nz(SupplierTollFree, "") = "" Then >> .Selection.Expand wdParagraph >> .Selection.Delete >> Else >> >> .Selection.TypeText _ >> Text:="TOLL FREE: " & Nz([SupplierTollFree]) >> >> End If >> >> .Selection.GoTo _ >> What:=wdGoToBookmark, _ >> Name:="WebAddress" >> >> .Selection.TypeText _ >> Text:="Website: " & Nz([VendorWeb]) >> >> objWord.Selection.TypeParagraph >> objWord.Selection.MoveDown Unit:=wdLine >> >> >> .Quit >> >> End With >> >> Set objWord = Nothing >> >>MsgInfo: >> On Error Resume Next >> 'MsgBox "There is a required field missing information, please recheck your CDS data. Enter any required data into the Contract Info database." >> Exit Sub >>End Sub >> >>Please advise. >> >>Thanks for any help. >> >> >>Terri Jarus >>Director, Contract Support Services >>jarus at amerinet-gpo.com >>314-542-1902 >> >> >>--------------------------------------------------------------------------- >>This email and any files transmitted with it are confidential and >>intended solely for the use of the individuals or entities to whom they >>are addressed. If you have received this email in error please return >>it to the sender, and erase any copies thereof. >>Copyright 2004 Amerinet 1nc. >> >> >> > >-- >Bryan Carbonnell - carbonnb at sympatico.ca >Unfortunately common sense isn't so common! > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From John.Clark at niagaracounty.com Fri Feb 6 13:24:54 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Feb 2004 14:24:54 -0500 Subject: [AccessD] How to do an Admin Table Message-ID: Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing From KIsmert at TexasSystems.com Fri Feb 6 13:29:12 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 6 Feb 2004 13:29:12 -0600 Subject: [AccessD] Function Return array? In-Reply-To: Message-ID: <008901c3ece7$809ba3b0$2a3ca8c0@TEXASSYSTEMS.COM> Alternately, Private Function fnsArray() As String() Dim sArray() As String ' Contstruct your array.... ' Return fnsArray = sArray End Function To use: Dim sArray() As String sArray = fnsArray -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 06, 2004 10:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function Return array? 1. Declare the variable that will hold the returned array as a variant. Dim varArray as Variant 2. Declare the return value of the function that builds the array as a variant. Build the array in the function and set the function's return value to the array, whatever datatype the array may be. Public Function ReturnArray(lst As Listbox) As Variant 3. Even though the variable in the calling routine is declared as a variant rather than as an array, it will contain an array that is returned by the function and you can use it in code as if you had built the array within that routine. varArray = ReturnArray(Me.lstSelect) If Ubound(varArray) > 0 Then ... Charlotte Foust From KIsmert at TexasSystems.com Fri Feb 6 13:38:28 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 6 Feb 2004 13:38:28 -0600 Subject: [AccessD] Update table with update query In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128A40@mail2.wrsystems.com> Message-ID: <00a201c3ece8$cc372640$2a3ca8c0@TEXASSYSTEMS.COM> Randall, Welcome to the unnecessarily restricted world of Jet SQL ;) Summary queries aren't updatable. Jet requires ALL parts of the query to be updatable, even the source query that you explicitly aren't updating. This limitation chaps my hide regularly. Three ways around it: 1. Open the source query in code. Loop through the query, construct and issue individual UPDATEs for each target record affected. 2. Append the source to a temp table, then update the target using the temp 3. Move to SQL Server or some other REAL data server that's smart enough to do this in the obvious way -Ken -----Original Message----- From: Randall Anthony [mailto:ranthony at wrsystems.com] Sent: Friday, February 06, 2004 11:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Update table with update query Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 From jeffrey.demulling at usbank.com Fri Feb 6 13:44:43 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 6 Feb 2004 13:44:43 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: I have a table in my databases that is called tblProperty and it has the following structure: - PropertyInternalNumber (Autonumber) -PropertyName (Text:255) -PropertyValue (Text:255) Then I have functions that can retrieve and update the values as needed. Function GetPropertyValue(myPropertyName As String, myconnection As String) As String Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String Dim mymessage As String On Error GoTo GetPropertyValueError con = myconnection con.Open cmdtext = "SELECT tblProperty.PropertyValue" cmdtext = cmdtext & " FROM tblProperty" cmdtext = cmdtext & " WHERE tblProperty.PropertyName = '" & myPropertyName & "';" rs.Open cmdtext, con If Not rs.EOF And Not rs.BOF Then 'Property is present rs.MoveFirst GetPropertyValue = rs.Fields("PropertyValue") con.Close Else con.Close GetPropertyValue = "Unknown" End If Exit Function GetPropertyValueError: GetPropertyValue = "Unknown" End Function Function SetPropertyValue(myPropertyName As String, mypropertyvalue As String, myconnection As String) Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String Dim mymessage As String On Error GoTo GetPropertyValueError con = myconnection con.Open cmdtext = "UPDATE" cmdtext = cmdtext & " tblProperty" cmdtext = cmdtext & " SET" cmdtext = cmdtext & " tblProperty.PropertyValue =" & Chr(34) & mypropertyvalue & Chr(34) cmdtext = cmdtext & " WHERE" cmdtext = cmdtext & " tblProperty.PropertyName=" & Chr(34) & myPropertyName & Chr(34) & ";" rs.Open cmdtext, con con.Close Exit Function GetPropertyValueError: SetPropertyValue = "Unknown" End Function I can store an custom "property" and change it. For example I have the version of the program, the program name, last time interest was caluculated, etc.. I believe I saw the idea orginally from John Colby. -Jeff "John Clark" cc: Sent by: Subject: [AccessD] How to do an Admin Table accessd-bounces at databasead visors.com 02/06/2004 01:24 PM Please respond to "Access Developers discussion and problem solving" Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Feb 6 13:53:01 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 6 Feb 2004 13:53:01 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127B1@nt04.karta.com> Think of it as a lookup table. For the directors names, addresses, etc. You can use domain functions to glean the values. Use the table for the splash screen. In your case, I would have at least two tables, one for directors and another for mileage. The mileage table would have rates and effective dates. Add a row for the next effective date range. That way, a person can recalculate for any given period. HTH Jim -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 06, 2004 1:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Fri Feb 6 13:55:10 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Fri, 6 Feb 2004 14:55:10 -0500 Subject: [AccessD] Update table with update query Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A42@mail2.wrsystems.com> Thanks, Ken, I think I had encountered this before, but like most bad memories, I chose to ignore it. What threw me is exactly what you wrote, "even the source query that you explicitly aren't updating". So, I've gone with Door #2, create a temp table. And the table I'm updating is a temp table (sheesh). Thanks for the replies everyone. Have a nice weekend. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Friday, February 06, 2004 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Update table with update query Randall, Welcome to the unnecessarily restricted world of Jet SQL ;) Summary queries aren't updatable. Jet requires ALL parts of the query to be updatable, even the source query that you explicitly aren't updating. This limitation chaps my hide regularly. Three ways around it: 1. Open the source query in code. Loop through the query, construct and issue individual UPDATEs for each target record affected. 2. Append the source to a temp table, then update the target using the temp 3. Move to SQL Server or some other REAL data server that's smart enough to do this in the obvious way -Ken -----Original Message----- From: Randall Anthony [mailto:ranthony at wrsystems.com] Sent: Friday, February 06, 2004 11:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Update table with update query Hey group, I have a problem that seems a no-brainer. I use a select groupby query to get a recordset. I then use a second query with the first query and the target table in order to update the target table. I thought this should work no problem, however I get an "Operation must use an updatable query" error. Is this one of those you can't get there from here things? Using A97. Here's the sqls. Get the dates. SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Try to put the dates in the table SELECT tblInstall_7B_Navcert_Mams.Hull, Max(dbo_tblNavcert.NavcertDate) AS NDate FROM tblInstall_7B_Navcert_Mams INNER JOIN (dbo_tblLocation INNER JOIN dbo_tblNavcert ON dbo_tblLocation.LocID = dbo_tblNavcert.LocID) ON tblInstall_7B_Navcert_Mams.Hull = dbo_tblLocation.Hull WHERE (((dbo_tblNavcert.EquipTypeName)="rlg")) GROUP BY tblInstall_7B_Navcert_Mams.Hull; Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 6 14:09:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 6 Feb 2004 15:09:54 -0500 Subject: [AccessD] How to do an Admin Table In-Reply-To: Message-ID: John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From MPorter at acsalaska.com Fri Feb 6 14:09:02 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Fri, 6 Feb 2004 11:09:02 -0900 Subject: [AccessD] How to do an Admin Table Message-ID: I utilize a similar structure, and I've seen large scale List of Value tables which work well. Value group Value name Display value Value (property can be visiblility, order, active/inactive, etc.) Value I've seen this get really complex, the Siebel system I work with has an LOV table with about 2 dozen attributes including display language. In Access my structure is pretty simple, mainly the top three on that list. This can also be used to translate values from a business value (High, Med, Low) to something more usable (5, 3, 1) or measurable. Mark > -----Original Message----- > From: jeffrey.demulling at usbank.com > [mailto:jeffrey.demulling at usbank.com] > Sent: Friday, February 06, 2004 10:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to do an Admin Table > > > > I have a table in my databases that is called tblProperty and > it has the > following structure: > > - PropertyInternalNumber (Autonumber) > -PropertyName (Text:255) > -PropertyValue (Text:255) > > Then I have functions that can retrieve and update the values > as needed. > > Function GetPropertyValue(myPropertyName As String, > myconnection As String) > As String > Dim con As New ADODB.Connection > Dim rs As New ADODB.Recordset > Dim cmdtext As String > Dim mymessage As String > > On Error GoTo GetPropertyValueError > > con = myconnection > con.Open > > cmdtext = "SELECT tblProperty.PropertyValue" > cmdtext = cmdtext & " FROM tblProperty" > cmdtext = cmdtext & " WHERE tblProperty.PropertyName = '" & > myPropertyName > & "';" > > rs.Open cmdtext, con > > If Not rs.EOF And Not rs.BOF Then 'Property is present > rs.MoveFirst > GetPropertyValue = rs.Fields("PropertyValue") > con.Close > Else > con.Close > GetPropertyValue = "Unknown" > End If > > Exit Function > > GetPropertyValueError: > GetPropertyValue = "Unknown" > End Function > > Function SetPropertyValue(myPropertyName As String, mypropertyvalue As > String, myconnection As String) > Dim con As New ADODB.Connection > Dim rs As New ADODB.Recordset > Dim cmdtext As String > Dim mymessage As String > > On Error GoTo GetPropertyValueError > > con = myconnection > con.Open > > cmdtext = "UPDATE" > cmdtext = cmdtext & " tblProperty" > cmdtext = cmdtext & " SET" > cmdtext = cmdtext & " tblProperty.PropertyValue =" & Chr(34) & > mypropertyvalue & Chr(34) > cmdtext = cmdtext & " WHERE" > cmdtext = cmdtext & " tblProperty.PropertyName=" & Chr(34) & > myPropertyName > & Chr(34) & ";" > > rs.Open cmdtext, con > > con.Close > > Exit Function > > GetPropertyValueError: > SetPropertyValue = "Unknown" > End Function > > I can store an custom "property" and change it. For example > I have the > version of the program, the program name, last time interest was > caluculated, etc.. > > I believe I saw the idea orginally from John Colby. > > -Jeff > > > > > > "John Clark" > > > accessd at databaseadvisors.com > > com> cc: > > > Sent by: Subject: > [AccessD] How to do an Admin Table > > accessd-bounces at databasead > > > visors.com > > > > > > > > > 02/06/2004 01:24 PM > > > Please respond to "Access > > > Developers discussion and > > > problem solving" > > > > > > > > > > > > > Forgive me, if this is an easy one, but I've even asked someone that > teaches the Microsoft Access certification classes, and they > didn't know > how to do this either--or maybe I wasn't clear, when I asked. > > I have had many programs where it would be useful to have an "admin" > table. This table would contain one single record with information > referenced in other parts of the program. For instance, I > have a program > that figures monthly mileage for our county legislators, but it is > currently setup so that the rates are hard-coded and I have to alter > them everytime they are changed. I would like the user to alter this > themselves. > > I have also thought about using this for programs--maybe in their > splash screens--to list the current directors names, and > other info that > may or may not change in the future. > > Any ideas how? > > Thanks ahead of time...because I know if it can be done, somebody on > this list knows how to do it!!! > > John W Clark > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > *********************************************************************************** 6/2/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From kost36 at otenet.gr Fri Feb 6 14:28:16 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Fri, 6 Feb 2004 22:28:16 +0200 Subject: [AccessD] Something too hard for me... References: <5033688681.20040108174145@cactus.dk> Message-ID: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis From Oleg_123 at xuppa.com Fri Feb 6 14:49:51 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 6 Feb 2004 15:49:51 -0500 (EST) Subject: [AccessD] = NULL In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: <57492.12.3.132.98.1076100591.squirrel@heck.bay9.com> I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Fri Feb 6 14:55:29 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 6 Feb 2004 14:55:29 -0600 Subject: [AccessD] = NULL Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE336@TAPPEEXCH01> IsNull(txtStartDate) -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 2:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From jeffrey.demulling at usbank.com Fri Feb 6 14:59:06 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 6 Feb 2004 14:59:06 -0600 Subject: [AccessD] = NULL Message-ID: try If isnull(txtStartDate) Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If Oleg_123 at xuppa.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasead cc: visors.com Subject: [AccessD] = NULL 02/06/2004 02:49 PM Please respond to "Access Developers discussion and problem solving" I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Fri Feb 6 15:00:17 2004 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 06 Feb 2004 13:00:17 -0800 Subject: [AccessD] = NULL Message-ID: <249C1CB246997C48BB74963CCD361C1B014A0462@pnlmse28.pnl.gov> How about trying this: If IsNull(txtStartDate.Value) = TRUE Then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 12:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 6 15:04:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 6 Feb 2004 13:04:19 -0800 Subject: [AccessD] How to do an Admin Table Message-ID: That's the way I do it as well, although I structure my table a bit differently. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 06, 2004 12:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to do an Admin Table John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Fri Feb 6 15:18:01 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Fri, 6 Feb 2004 22:18:01 +0100 Subject: AW: [AccessD] Something too hard for me... In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: Hi Kostas, here's something I'd try (not tested...): Public function GetTotalPrice(lngNumberOfSpots as long) as currency Dim rst as new adodb.recordset rst.open "SELECT * FROM " & lngNumberOfSpots 'Found one? if not rst.eof 'Yes GetTotalPrice=(rst!Category-lngNumberOfSpots)*rst!Price/rst!Category 'Move one record back rst.move -1 'Not sure about the exact syntax here... GetTotalPrice=GetTotalPrice+curPriceL else 'We'll have to think about that... endif endif close rst set rst=nothing end function I am sure there is potential for optimizing that, but it should get you started. The example is based on an ADO-recordset. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Kostas Konstantinidis Gesendet: Freitag, 6. Februar 2004 21:28 An: Access Developers discussion and problem solving Betreff: [AccessD] Something too hard for me... Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 6 15:34:43 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 6 Feb 2004 14:34:43 -0700 Subject: [AccessD] Capturing SHIFT+Click? Message-ID: <16850-22004256213443893@christopherhawkins.com> All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- From Erwin.Craps at ithelps.be Fri Feb 6 15:33:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 6 Feb 2004 22:33:48 +0100 Subject: [AccessD] = NULL Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D21D@stekelbes.ithelps.local> It should be If (IsNull(me.txtStartDate) = TRUE) or (me.txtStartDate ="") then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Or more easy because it can be "" to....which is not null This covers both Don't forget to put the format of the field to date....because I supose your field is unbound. If nz(me.txtStartDate) = "" then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stoker, Kenneth E Verzonden: vrijdag 6 februari 2004 22:00 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] = NULL How about trying this: If IsNull(txtStartDate.Value) = TRUE Then MsgBox "Please fill in the required dates", , "dates missing" exit Sub End If Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, February 06, 2004 12:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] = NULL I know i am not suppose to write = Null, but is null doesn't work either, whats the correct coding ? If txtStartDate.Value = NULL Then MsgBox "Please fill in the required dates", , "dates missing" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 6 15:42:45 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 6 Feb 2004 14:42:45 -0700 Subject: [AccessD] IDIOT! Shift + Click resolved... Message-ID: <35310-22004256214245571@christopherhawkins.com> ..I was looking at the wrong event. *slaps forehead* MouseDown has a built-in check for Shift. I've been staring at the Click event for an hour, saying to myself "I know I've done this, but I can't remember how..." *sigh* Sometimes I think just writing the "ask for help" message clarifies the problem enough that the message itself becoems moot. Heh. Sorry for the traffic. -C- From mikedorism at adelphia.net Fri Feb 6 15:44:48 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Fri, 6 Feb 2004 16:44:48 -0500 Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: <16850-22004256213443893@christopherhawkins.com> Message-ID: <000101c3ecfa$714b3840$8b194244@hargrove.internal> There is... KeyDown event (if you want to do something when the keys are pressed) or KeyUp event (if you want to do something after the keys are pressed). Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 4:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 15:43:44 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:43:44 -0600 Subject: [AccessD] Something too hard for me... Message-ID: <2F8793082E00D4119A1700B0D0216BF802227847@main2.marlow.com> Okay, made a table called tblTest. Put two fields in it. Quantity and Price. I filled it with the following information: 10 55 20 80 30 90 40 95 50 97 To do this on an individual basis, I created the following SQL: SELECT [Enter Number of Spots] AS NumberOfSpots, (SELECT [Price]/[Quantity] As PerUnit FROM tblTest WHERE Quantity=(SELECT Min(Quantity) AS MinQuantity FROM tblTest WHERE Quantity>=[Enter Number of Spots])) AS NextPerUnitCost, tblTest.Quantity AS BaseQuantity, [Price]+(([Enter Number of Spots]-[BaseQuantity])*[NextPerUnitCost]) AS NewCost FROM tblTest WHERE (((tblTest.Quantity)=(SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=[Enter Number of Spots]))); Run that, and put in 25, when prompted for 'Enter Number of Spots', and you get 25 for the NumberOfSpots, 3 for NextPerUnitCost, 20 for BaseQuantity, and $95 for NewCost. Now, if you want have the SQL generate a complete table, Create a table called tblTestValues and give it one field, TestQuantity. (Long) Then, put the following SQL into a Query, and call it qryPriceMatrix SELECT T1.TestQuantity, (SELECT [Price]/[Quantity] As PerUnit FROM tblTest WHERE Quantity=(SELECT Min(Quantity) AS MinQuantity FROM tblTest WHERE Quantity>=T1.TestQuantity)) AS NextPerUnitCost, (SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=T1.TestQuantity) AS BaseQuantity, (SELECT Price FROM tblTest WHERE Quantity=(SELECT Max(Quantity) AS MaxQuantity FROM tblTest WHERE Quantity<=T1.TestQuantity))+(([TestQuantity]-[BaseQuantity])*[NextPerUnitCos t]) AS NewCost FROM tblTestValues AS T1 LEFT JOIN tblTest ON T1.TestQuantity = tblTest.Quantity; Then create a form, and put a command button on it, and put the following code behind the OnClick Event: Dim rsTest As Recordset Dim rs As Recordset Dim i As Long CurrentDb.Execute "DELETE * FROM tblTestValues" Set rsTest = CurrentDb.OpenRecordset("tblTestValues", dbOpenTable) Set rs = CurrentDb.OpenRecordset("Select Min(Quantity) As Minimum, Max(Quantity) As Maximum FROM tblTest") For i = rs.Fields(0).Value To rs.Fields(1).Value rsTest.AddNew rsTest.Fields(0).Value = i rsTest.Update Next i rsTest.Close rs.Close Set rsTest = Nothing Set rs = Nothing DoCmd.OpenQuery "qryPriceMatrix" (Note, this code was written in Access 97, so it uses DAO by default. If you are using A2k or up, set a reference to DAO) Now, you can change the price matrix in tblTest, and just click the button to see the complete 'list' of quantity versus price. Enjoy. By the way, this was fun, should have posted this before I got into the Date Dimension table issue! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kostas Konstantinidis Sent: Friday, February 06, 2004 2:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Something too hard for me... Hi all, I am trying to create a little project to calculate some prices of a Radio Station advertising list In a table I keep CATEGORY and PRICE e.g. 10 --> 55,00EURO 20 --> 80,00 30 --> 90,00 bla, bla What I want to calculate is the price of an uncategorized spots between two categories. 25 SPOTS.... The calculation is: A) the 20 spots cost 80,00 B) I have to select the next category (in that case 30) to find out how much cost one spot (90,00/30 = 3,00EURO) C). the 5 spots cost 5X3,00=15,00 so, the total price for the uncategorized query must be 80,00+15,00=95,00euro Could anybody please help me? Thank's a lot Kostas Konstantinidis _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 6 15:46:07 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 6 Feb 2004 13:46:07 -0800 (PST) Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: <16850-22004256213443893@christopherhawkins.com> Message-ID: <20040206214607.67749.qmail@web20405.mail.yahoo.com> The first thing that comes to mind for me is to have a boolean in the module of your form. On the "Key Down" event of the form check to see if it is the shift key, then set the boolean to True. Then when you click the mouse you can check to see if the boolean is true and run your code. When the user lets go of the shift (On Key Up) set the boolean back to False. Just a thought. Christopher Hawkins wrote: All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From DWUTKA at marlow.com Fri Feb 6 15:46:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:46:38 -0600 Subject: [AccessD] Capturing SHIFT+Click? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227848@main2.marlow.com> Little groggy today, long night, but I'm sure there is an API call to detect the state of the shift key. I'll go look, and get back to you. You could then just 'wrap' your on-click event with the API Call/Check. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 3:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 6 15:55:38 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 6 Feb 2004 16:55:38 -0500 Subject: [AccessD] Information about Access 2003 Message-ID: We are going to be getting Access 2003 in about a month. 1. Has anyone successfully installed & used Access2003 on the same machine with 97 & 2k 2. What are the major differences/problems with A2003 compared to A97 & 2k. Are there any articles, books, etc besides MS.com to read up on these. 3. We have several Access 97 database systems in use. Should I upgrade them to A2k first then A2003. Thanks From DWUTKA at marlow.com Fri Feb 6 15:56:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 15:56:58 -0600 Subject: [AccessD] How to do an Admin Table Message-ID: <2F8793082E00D4119A1700B0D0216BF802227849@main2.marlow.com> Building a Class is the key (IMHO). On top of what you have described, I would also have the Class contain a default value, so that no values would be required in the table to begin with. In fact (and I must admit I do this a lot in VB, because I use .mdb's as my datasource, but usually use VB or ASP for FE), something I might suggest expiramenting with, just for the Heck of it, would be to use the Implements statement. Not sure how well this would work with Access, but in VB, I have had a WONDERFUL time with Implements. Just wish I had more instances where I could use it. Possible scenario...... Create a Class that calls an sets an Implements Class. Like this: Dim myClass As ImplementedClass Property Get SysValue(strName as String) On Error Resume Next Set myClass=CreateObject("MyProject." & strName) If Err Then Err.Clear Set myClass=CreateObject("MyProject.DefaultClass") End if SysValue=myClass.Value End Property Now, with that class, you would absolutely need the 'DefaultClass' Class, so that if it can't find the appropriate class, it has something to fall on. But, and this is where it gets cool (at least from a VB perspective.), not only can I change the values from the FE, or BE, but I can change how the Class works by just registering a new Class. (In VB, that would just be registering a new .dll). New Changes would automatically be taken into affect. So if I want to change a 'values' default value, or even do some type of business logic on a value, or error handling/prevention, no need to change the main project, I just send out a new .dll with the new implemented classes. I love Implements! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 06, 2004 2:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How to do an Admin Table John, For a demo see www.colbyconsulting.com . I use what I call a SysVar table. However I would suggest using a record for every variable rather than a single record with a field for each variable. The structure I use is: SV_ID - Autonumber PK - never really used but... SV_VarName - The name of the system variable - Company Name, Developer Name, whatever. SV_VarValue - The value of that SysVar SV_Memo - A text description of the variable, default values etc. There are many reasons for going this way, SysVars can be added and deleted at will, it is trivial to update values programmatically if needed etc. I have a class that I use for this. The class is fed a table name, and it opens the table and reads the SysVars into a collection, with the collection value the VarValue and the Collection key the VarName. The class then has a function that allows you to pass in a VarName and get back the VarValue. I use these EVERYWHERE. It is a very handy concept once you get the hang of it. As you know, I do a framework. I use a SysVar table right in my Framework Library that sets up default functionality for the framework. Things like: VarName gJITSFrms, VarValue True Sets up the framework to default to using JIT subforms. In my code I then do something like: If FWSysVar.VarVal(gJITSFrms) = true then 'Run the code that allows a JIT Subform else 'Run the code that turns off JIT Subforms endif IOW I can actually control program flow based on SysVars, turn on and off or otherwise modify behaviors of the program. I can then put an identical SysVar table (same name) in my FE and OVERRIDE the default values. The class has a "Merge" property that reads values out of a second table and "merges" it into the collection. If the value being read from the table is not already in the collection it is simply added in. If the value being read from the table is already in the collection, it is updated to the value being brought in. This allows me to do things like "for THIS FE set the default JIT behavior to false", i.e. don't use JIT as the default behavior. In fact I have developed a method of doing "overrides" on a form by form basis. That is a little beyond the scope of this email however. I can then build a APPSysVars table where I place application specific sysvars. This can be SysVars that modify APPLICATION BEHAVIORS based on the values in this SysVar table. Another SysVar table can be used for Application specific DATA such as Company Name, Company Tax ID etc. As you can see, SysVars are just a wonderful place to throw these things and doing it on a record basis rather than a "new field in a single record" basis allows me to just hop over to the SysVar table ad add a new SysVar record when I need to do some new thing. As I mentioned, I have a working demo up on my site. Click the C2DbSysVars button. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 06, 2004 2:25 PM To: accessd at databaseadvisors.com Subject: [AccessD] How to do an Admin Table Forgive me, if this is an easy one, but I've even asked someone that teaches the Microsoft Access certification classes, and they didn't know how to do this either--or maybe I wasn't clear, when I asked. I have had many programs where it would be useful to have an "admin" table. This table would contain one single record with information referenced in other parts of the program. For instance, I have a program that figures monthly mileage for our county legislators, but it is currently setup so that the rates are hard-coded and I have to alter them everytime they are changed. I would like the user to alter this themselves. I have also thought about using this for programs--maybe in their splash screens--to list the current directors names, and other info that may or may not change in the future. Any ideas how? Thanks ahead of time...because I know if it can be done, somebody on this list knows how to do it!!! John W Clark John W. Clark Computer Programmer Niagara County Central Data Processing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Feb 6 15:57:32 2004 From: James at fcidms.com (James Barash) Date: Fri, 6 Feb 2004 16:57:32 -0500 Subject: [AccessD] Capturing SHIFT+Click? In-Reply-To: Message-ID: You want to use the MouseDown event. That has a Shift parameter which gives the state of the Ctrl, Alt and Shift keys. I don't remember the values of each but with a little experimentation if should be easy to detect the appropriate value for the Shift key. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 4:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing SHIFT+Click? All, I'm doing a project in which I need to fire an event when a user shift+clicks on a control. I understandhow to use the keypress event, but I'm not sure it's right for this. I'm thinking that there must be a way to be in the Click event and check to see if the SHIFT key is down. But my Google-Fu and Help searches turns up nothing. I'm probably using weird keywords. This is another one of those annoying things that I'm sure I've done in the past (1998 or so), but for the life of me I just can't remember. Anyway...help? -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 6 16:13:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 6 Feb 2004 16:13:18 -0600 Subject: [AccessD] IDIOT! Shift + Click resolved... Message-ID: <2F8793082E00D4119A1700B0D0216BF80222784A@main2.marlow.com> Told you I was groggy. When I get tired, my first reaction is usually....'hey, I know there's got to be an API call for that!'. Just for the fun of it, here is how you can do this with an API call. I am posting it, because it can go beyond what you are going to get with the MouseDown event. With NT machines, the following code will detect both left and/or right shift key depression: Option Compare Database Option Explicit Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Const VK_LSHIFT = &HA0 Private Const VK_RSHIFT = &HA1 Private Sub Command1_Click() Dim intLeft As Integer Dim intRight As Integer intLeft = GetAsyncKeyState(VK_LSHIFT) intRight = GetAsyncKeyState(VK_RSHIFT) If intLeft < 0 And intRight < 0 Then 'Both Shifts are Pressed MsgBox "You are pressing both left and right shift keys." Else If intLeft < 0 Then 'Just the Left shift is pressed MsgBox "You are pressing the Left shift key." Else If intRight < 0 Then 'Just the Right Shift is pressed MsgBox "You are pressing the Right shift key." Else 'No Shifts are being pressed MsgBox "No shift keys are being pressed." End If End If End If End Sub Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Friday, February 06, 2004 3:43 PM To: accessd at databaseadvisors.com Subject: [AccessD] IDIOT! Shift + Click resolved... ..I was looking at the wrong event. *slaps forehead* MouseDown has a built-in check for Shift. I've been staring at the Click event for an hour, saying to myself "I know I've done this, but I can't remember how..." *sigh* Sometimes I think just writing the "ask for help" message clarifies the problem enough that the message itself becoems moot. Heh. Sorry for the traffic. -C- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Fri Feb 6 15:29:34 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 6 Feb 2004 16:29:34 -0500 (EST) Subject: [AccessD] = NULL In-Reply-To: References: Message-ID: <57456.12.3.132.98.1076102974.squirrel@heck.bay9.com> thank you :--) > > try > > If isnull(txtStartDate) Then > MsgBox "Please fill in the required dates", , "dates missing" > Exit Sub > End If > > > > Oleg_123 at xuppa.com > > Sent by: > To: accessd at databaseadvisors.com > > accessd-bounces at databasead cc: > > visors.com > Subject: [AccessD] = NULL > > > > 02/06/2004 02:49 PM > > Please respond to "Access > > Developers > discussion and > > problem solving" > > > > > > > > > I know i am not suppose to write = Null, but is null doesn't work > either, whats the correct coding ? > > If txtStartDate.Value = NULL Then > MsgBox "Please fill in the required dates", , "dates missing" > Exit Sub > End If > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From pedro at plex.nl Fri Feb 6 17:09:32 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:09:32 +0100 Subject: [AccessD] Re: Code Librarian 2 References: <5.1.0.14.2.20040206082854.0299be48@pop3.highstream.net> Message-ID: <003701c3ed08$172ea500$f4c581d5@pedro> Hello Robert, its Ok with me. Do you have an idea when it will be active and on which site? Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Friday, February 06, 2004 3:36 PM Subject: [AccessD] Re: Code Librarian 2 > Here is the current SQL for the tables: > > CREATE TABLE [dbo].[tbl_CodeBase] ( > [CodeBaseID] [int] IDENTITY (1, 1) NOT NULL , > [Category] [varchar] (15) NOT NULL , > [Short_Desc] [varchar] (75) NOT NULL , > [Contributor_Name] [varchar] (50) NULL , > [Contributor_Email] [varchar] (50) NULL , > [Full_Desc] [text] NOT NULL , > [Code_Text] [text] NOT NULL , > [KnownIssues] [text] NULL , > [Audt_Create_Dt] [datetime] NOT NULL , > [Audt_Create_UID] [varchar] (20) NOT NULL , > [Audt_Modify_Dt] [datetime] NULL , > [Audt_Modify_UID] [varchar] (20) NULL > ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodeBaseReferences] ( > [CodeBaseReferenceID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [RequiredReference] [varchar] (75) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodeBaseSoftware] ( > [CodeBaseSoftwareID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [SoftwareVersionID] [int] NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodebaseFiles] ( > [Code_Link_ID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [CodeFile] [binary] (50) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tbl_CodebaseKeyword] ( > [CodeBaseKeywordID] [int] IDENTITY (1, 1) NOT NULL , > [CodeBaseID] [int] NOT NULL , > [Keyword] [varchar] (10) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_Category] ( > [Category] [varchar] (15) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_SoftwareName] ( > [SoftwareName] [varchar] (20) NOT NULL > ) ON [PRIMARY] > GO > > CREATE TABLE [dbo].[tlkp_SoftwareVersion] ( > [SoftwareVersionID] [int] IDENTITY (1, 1) NOT NULL , > [SoftwareName] [varchar] (20) NOT NULL , > [SoftwareVersion] [varchar] (10) NOT NULL > ) ON [PRIMARY] > GO > > If you catch something that I forgot, drop me a note and I will > get it in there. > > Robert > > At 02:12 AM 2/6/2004 -0600, you wrote: > >Date: Thu, 5 Feb 2004 16:27:29 -0600 > >From: "John Bartow" > >Subject: RE: [AccessD] Re: Code Librarian 2 > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > > > >Pedro, > >References needed is a good one. Right now I put it into the details and it > >isn't easy to find there. > >Contributor is a better description for what I listed as "Who (or where) it > >came from" > > > >John > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > > Sent: Thursday, February 05, 2004 3:25 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Re: Code Librarian 2 > > > > > > > > > Hello, > > > > > > The fields that you mentioned and the fields that > > > John Bartow suggested are ok with me. > > > Other fields that i would recomment are: > > > references (that are needed), expected problems, > > > Contributor, Email. > > > > > > Greetings > > > > > > 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 Feb 6 17:15:27 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:15:27 +0100 Subject: [AccessD] problem with DoCmd.OpenReport References: <40236333.21970.23D5F979@localhost> Message-ID: <003801c3ed08$1a67d700$f4c581d5@pedro> Hello Stuart, the messagebox gave me the right value of field Code. Then trying again. Same Error. Then i switched field [code] in the [ID] field of the table. Voila everything worked fine. Strange, because the code field is also an Unique ID field. Thanks fot your help. Pedro Janssen ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 06, 2004 12:49 AM Subject: Re: [AccessD] problem with DoCmd.OpenReport > On 6 Feb 2004 at 0:03, Pedro Janssen wrote: > > > Hello Stuart and others, > > > > Sorry i mistyped in that mail. > > In my code the report (stDocName) is there, like in your line of code you > > mentioned. > > Sorry for this. > > When i use the code i get the Syntax error(operator missing)????? > > > > > Try putting a Msgbox "Test" at the start of the report's On_Open to see > where the problem really is. If you get the message box before the error, > then it's something in the report or underlying query that's causing it. > > > > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy > http://www.lexacorp.com.pg > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Fri Feb 6 17:21:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 7 Feb 2004 00:21:28 +0100 Subject: [AccessD] filter on more then one field Message-ID: <003901c3ed08$1b77e770$f4c581d5@pedro> Hello Group, i would like to filter a value that i have entered in a tekstbox. The filter must search for this value in more then one field on a form, and return the record in which the value is found. How can i do this? Pedro Janssen From Developer at UltraDNT.com Fri Feb 6 22:02:38 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 6 Feb 2004 23:02:38 -0500 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: Message-ID: <000001c3ed2f$3d1fdcd0$7001a8c0@COA3> Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 6 22:35:48 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 6 Feb 2004 23:35:48 -0500 Subject: [AccessD] Re: DatePart Question In-Reply-To: Message-ID: Hear, hear! There is IMO a large distinction between OLTP and OLAP apps, and what works in the former cannot be assumed to work in the latter. And vice-versa. Data-entry and modification should never be confused with data-analysis, and asking a single database to do both is IMO stupid or lazy or both. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 5:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From bchacc at san.rr.com Sat Feb 7 00:45:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 6 Feb 2004 22:45:14 -0800 Subject: [AccessD] = NULL References: <57456.12.3.132.98.1076102974.squirrel@heck.bay9.com> Message-ID: <015901c3ed45$f0db3510$6601a8c0@HAL9002> Oleg: You might also try IsDate(txtStartDate) and error message read date is missing or invalid. This would catch both missing and invalid dates. Rocky ----- Original Message ----- From: To: Sent: Friday, February 06, 2004 1:29 PM Subject: Re: [AccessD] = NULL > thank you :--) > > > > > try > > > > If isnull(txtStartDate) Then > > MsgBox "Please fill in the required dates", , "dates missing" > > Exit Sub > > End If > > > > > > > > Oleg_123 at xuppa.com > > > > Sent by: > > To: accessd at databaseadvisors.com > > > > accessd-bounces at databasead cc: > > > > visors.com > > Subject: [AccessD] = NULL > > > > > > > > 02/06/2004 02:49 PM > > > > Please respond to "Access > > > > Developers > > discussion and > > > > problem solving" > > > > > > > > > > > > > > > > > > I know i am not suppose to write = Null, but is null doesn't work > > either, whats the correct coding ? > > > > If txtStartDate.Value = NULL Then > > MsgBox "Please fill in the required dates", , "dates missing" > > Exit Sub > > End If > > > > > > > > ----------------------------------------- > > Get Breaking News from CNN, ABC, NBC, CBS Now. > > http://www.xuppa.com/news/?link=webmail > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Sat Feb 7 03:28:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Sat, 07 Feb 2004 03:28:48 -0600 Subject: [AccessD] Re: How to do an Admin Table In-Reply-To: <200402062142.i16Lgkm25127@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040207032457.018f9490@pop3.highstream.net> John, tsys_Defaults DefaultID Autonumber PK DefaultDesc text(20) Unique Key (i.e. Mileage Rate, Call Phone Rate, etc) DefaultNbrValue Number (double) DefaultTxtValue Text(10) With this, you can do a lookup for whatever value you want to use and not have to add columns to a table when you get new requirements. Robert At 03:42 PM 2/6/2004 -0600, you wrote: >Date: Fri, 06 Feb 2004 14:24:54 -0500 >From: "John Clark" >Subject: [AccessD] How to do an Admin Table >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Forgive me, if this is an easy one, but I've even asked someone that >teaches the Microsoft Access certification classes, and they didn't know >how to do this either--or maybe I wasn't clear, when I asked. > >I have had many programs where it would be useful to have an "admin" >table. This table would contain one single record with information >referenced in other parts of the program. For instance, I have a program >that figures monthly mileage for our county legislators, but it is >currently setup so that the rates are hard-coded and I have to alter >them everytime they are changed. I would like the user to alter this >themselves. > >I have also thought about using this for programs--maybe in their >splash screens--to list the current directors names, and other info that >may or may not change in the future. > >Any ideas how? > >Thanks ahead of time...because I know if it can be done, somebody on >this list knows how to do it!!! > >John W Clark > >John W. Clark >Computer Programmer >Niagara County >Central Data Processing From gustav at cactus.dk Sat Feb 7 06:56:41 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Feb 2004 13:56:41 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> Message-ID: <14915413513.20040207135641@cactus.dk> Hi Kostas > I am trying to create a little project to calculate some prices of a Radio > Station advertising list > In a table I keep CATEGORY and PRICE e.g. 10 -->> 55,00EURO 20 -->> 80,00 30 -->> 90,00 > bla, bla > What I want to calculate is the price of an uncategorized spots between two > categories. > 25 SPOTS.... > The calculation is: > A) the 20 spots cost 80,00 > B) I have to select the next category (in that case 30) to find out how much > cost one spot (90,00/30 = 3,00EURO) > C). the 5 spots cost 5X3,00=15,00 > so, the total price for the uncategorized query must be > 80,00+15,00=95,00euro You can, as an exercise in DMax(), do this with a single line of code where Q is your number of spots: curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) The limitation is that your rate table must include an entry equal to or exceeding the largest possible quantity of spots for a single order. Have fun! /gustav From jscott at mchsi.com Sat Feb 7 08:53:15 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Sat, 7 Feb 2004 08:53:15 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3ed2f$3d1fdcd0$7001a8c0@COA3> Message-ID: <000001c3ed8a$1dd2a640$d62ed70c@JeanineScott> I figured it out yesterday...finally. I could use the same connection string for my pass through query as I do for my linked table or my ADO recordset connection! This worked... .Connect = SetPassThroughConnection() With the connection string being... "ODBC;Driver={SQL Server};Server=" & gvarSQLDataLocation & ";Database=" & gstrDBName & ";Trusted_Connection=yes" Thanks to everyone for their help... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Friday, February 06, 2004 10:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From jscott at mchsi.com Sat Feb 7 08:56:58 2004 From: jscott at mchsi.com (Jeanine Scott) Date: Sat, 7 Feb 2004 08:56:58 -0600 Subject: [AccessD] HELP! Access97 passthrough query to SQL In-Reply-To: <000001c3ed8a$1dd2a640$d62ed70c@JeanineScott> Message-ID: <000101c3ed8a$a28e7260$d62ed70c@JeanineScott> Oops - could "not" use the same connection string... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeanine Scott Sent: Saturday, February 07, 2004 8:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL I figured it out yesterday...finally. I could use the same connection string for my pass through query as I do for my linked table or my ADO recordset connection! This worked... .Connect = SetPassThroughConnection() With the connection string being... "ODBC;Driver={SQL Server};Server=" & gvarSQLDataLocation & ";Database=" & gstrDBName & ";Trusted_Connection=yes" Thanks to everyone for their help... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Developer Sent: Friday, February 06, 2004 10:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL Can you use, or do you have any linked odbc tables? I have a SQL BE / Access FE system that uses a known odbc linked table to grab the connect string, as in Qdf.connect =currentdb.tabledefs("dbo_tblclient").connect Steve, Trying again :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 06, 2004 1:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL yes this connects to an oracle database - should be pretty close to how you connect to sql server Dim rs_Pay As New ADODB.Recordset Dim cnn As New ADODB.Connection Dim strSql As String '**** build SQL string strSql = "select p1.PayId, p1.CaseId, p1.PayFrDt, p1.VerInd, p1.PayType " strSql = strSql & "From ZZZ1.TBL_PAYS p1 " strSql = strSql & "Where p1.CaseId in (Select distinct p2.CaseId " strSql = strSql & "From ZZZ1.TBL_PAYS p2 " strSql = strSql & "Where p2.Verind = 'Y' )" strSql = strSql & "Order by CaseId, PayFrDt desc" cnn.Open fWrtConnect() '** connects to ORACLE database rs_Pay.Open strSql, cnn, adOpenKeyset, adLockOptimistic, adCmdText With rs_Pay If .RecordCount < 1 Then Debug.Print "Problem with record set" End End If .MoveFirst ... ... End With rs_Pay.Close Set rs_Pay = Nothing Set cnn = Nothing ------------------------------------------------------------ Public Function fWrtConnect() As String Dim strConn As String Dim strUserId As String Dim strPassword As String strUserId = InputBox("Enter your ORACLE User ID", "GET ORACLE USER ID") If strUserId = "" Then MsgBox "Missing Oracle User ID - Abort" Exit Function End If strPassword = InputBox("Enter your ORACLE PassWord", "GET ORACLE Password") If strPassword = "" Then MsgBox "Missing Oracle Password - Abort" Exit Function End If strConn = "Provider=OraOLEDB.Oracle;Data Source=XXX;" strConn = strConn & "User ID=" & strUserId & ";Password=" & strPassword & ";" fWrtConnect = strConn End Function ------------------------------------------------------------------------ ---- ----- HTH Patti > -----Original Message----- > From: Jeanine Scott [mailto:jscott at mchsi.com] > Sent: Friday, February 06, 2004 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > > This is essentially what I'm doing since my connection function sets a > global that holds the connections string. I keep getting the string > too long error. Do you use it in pass through queries? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 06, 2004 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] HELP! Access97 passthrough query to SQL > > try this - it is using ado in access 2000, it might work in 97 but I > haven't tried it > > > Dim cnn As New ADODB.Connection > > cnn.Open fWrtConnect() > > fWrtConnect is a function I have that builds the connection string and > returns it to the calling routine > > Patti > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 From kost36 at otenet.gr Sat Feb 7 12:43:10 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 7 Feb 2004 20:43:10 +0200 Subject: [AccessD] Something too hard for me... References: <5033688681.20040108174145@cactus.dk> <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <14915413513.20040207135641@cactus.dk> Message-ID: <000f01c3edaa$3d9d7b60$0100a8c0@kost36> Hi Gustav, thank's a lot for your really excellent job. It works perfect but I have another question which is very critical. we are a network of 19 Regional Greek Stations so the general advertising list incloudes common Quantities but different prices for every of them. Every Station based on its ID (from 1 to 19) I tried to put your code on but it conficts with good reason cause the same quantities are iclouding several times Michael and Drew Many thank's for your time too Be well Kostas ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 07, 2004 2:56 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > I am trying to create a little project to calculate some prices of a Radio > > Station advertising list > > In a table I keep CATEGORY and PRICE e.g. > > 10 -->> 55,00EURO > 20 -->> 80,00 > 30 -->> 90,00 > > bla, bla > > > What I want to calculate is the price of an uncategorized spots between two > > categories. > > 25 SPOTS.... > > The calculation is: > > A) the 20 spots cost 80,00 > > B) I have to select the next category (in that case 30) to find out how much > > cost one spot (90,00/30 = 3,00EURO) > > C). the 5 spots cost 5X3,00=15,00 > > so, the total price for the uncategorized query must be > > 80,00+15,00=95,00euro > > > You can, as an exercise in DMax(), do this with a single line of code > where Q is your number of spots: > > curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) > > The limitation is that your rate table must include an entry equal to > or exceeding the largest possible quantity of spots for a single > order. > > Have fun! > > /gustav > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From gustav at cactus.dk Sat Feb 7 14:08:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Feb 2004 21:08:38 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000f01c3edaa$3d9d7b60$0100a8c0@kost36> References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> Message-ID: <922182757.20040207210838@cactus.dk> Hi Kostas > Hi Gustav, > thank's a lot for your really excellent job. > It works perfect but I have another question which is very critical. > we are a network of 19 Regional Greek Stations so the general advertising > list incloudes common Quantities but different prices for every of them. > Every Station based on its ID (from 1 to 19) > I tried to put your code on but it conficts with good reason cause the same > quantities are iclouding several times > Michael and Drew Many thank's for your time too > Be well This is possible and still fun but before being slammed by my fellow listers, let me note that we are approaching the land of unreadable code. Nevertheless: curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0) In addition to the inclusion of a Station ID, please note a minor correction (<=). Your table should now as minimum read: Station: Integer Quantity: Integer Price: Currency A unique index should be applied to the fields Station and Quantity. Also, you may need to round the total: curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0), "Standard") /gustav > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 07, 2004 2:56 PM > Subject: Re: [AccessD] Something too hard for me... >> Hi Kostas >> >> > I am trying to create a little project to calculate some prices of a Radio >> > Station advertising list >> > In a table I keep CATEGORY and PRICE e.g. >> >> 10 -->> 55,00EURO >> 20 -->> 80,00 >> 30 -->> 90,00 >> > bla, bla >> >> > What I want to calculate is the price of an uncategorized spots between two >> > categories. >> > 25 SPOTS.... >> > The calculation is: >> > A) the 20 spots cost 80,00 >> > B) I have to select the next category (in that case 30) to find out how much >> > cost one spot (90,00/30 = 3,00EURO) >> > C). the 5 spots cost 5X3,00=15,00 >> > so, the total price for the uncategorized query must be >> > 80,00+15,00=95,00euro >> >> >> You can, as an exercise in DMax(), do this with a single line of code >> where Q is your number of spots: >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) >> >> The limitation is that your rate table must include an entry equal to >> or exceeding the largest possible quantity of spots for a single >> order. >> >> Have fun! From kost36 at otenet.gr Sun Feb 8 02:38:31 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sun, 8 Feb 2004 10:38:31 +0200 Subject: [AccessD] Something too hard for me... References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36> <922182757.20040207210838@cactus.dk> Message-ID: <000701c3ee1e$f16da470$0100a8c0@kost36> Hi Gustav, In my language we use to say "I have no words to thank you..." So, after two years using this access list I have to say that ADDPS is a real great help community with no date and time limits. Well, may be I couldn't manage to give you the right tips about my question. I put your code line by line into a query but it gives back the same calculation for all records. There is no need to put a filter about the S because I want to know the Q of all ID's with the same quantity. My table contains records like: ID Q PRICE 1 10 55,00 1 20 72,00 1 30 98,00 2 10 47,00 2 20 60,00 2 30 72,00 3 10 65,00 3 20 77,00 3 30 92,00 ... so, I can't use unique index to the fields Station and Quantity. Running the query e.g. for a 25 Q it must answers ID Q PRICE 1 25 88,30 2 25 62,00 3 25 92,30 ... Have a nice day Kostas --- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 07, 2004 10:08 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > Hi Gustav, > > thank's a lot for your really excellent job. > > It works perfect but I have another question which is very critical. > > > we are a network of 19 Regional Greek Stations so the general advertising > > list incloudes common Quantities but different prices for every of them. > > Every Station based on its ID (from 1 to 19) > > I tried to put your code on but it conficts with good reason cause the same > > quantities are iclouding several times > > Michael and Drew Many thank's for your time too > > > Be well > > > This is possible and still fun but before being slammed by my fellow > listers, let me note that we are approaching the land of unreadable > code. Nevertheless: > > curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0) > > In addition to the inclusion of a Station ID, please note a minor > correction (<=). > > Your table should now as minimum read: > > Station: Integer > Quantity: Integer > Price: Currency > > A unique index should be applied to the fields Station and Quantity. > Also, you may need to round the total: > > curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), 0), "Standard") > > /gustav > > > > ----- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 07, 2004 2:56 PM > > Subject: Re: [AccessD] Something too hard for me... > > > >> Hi Kostas > >> > >> > I am trying to create a little project to calculate some prices of a Radio > >> > Station advertising list > >> > In a table I keep CATEGORY and PRICE e.g. > >> > >> 10 -->> 55,00EURO > >> 20 -->> 80,00 > >> 30 -->> 90,00 > >> > bla, bla > >> > >> > What I want to calculate is the price of an uncategorized spots between two > >> > categories. > >> > 25 SPOTS.... > >> > The calculation is: > >> > A) the 20 spots cost 80,00 > >> > B) I have to select the next category (in that case 30) to find out how much > >> > cost one spot (90,00/30 = 3,00EURO) > >> > C). the 5 spots cost 5X3,00=15,00 > >> > so, the total price for the uncategorized query must be > >> > 80,00+15,00=95,00euro > >> > >> > >> You can, as an exercise in DMax(), do this with a single line of code > >> where Q is your number of spots: > >> > >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + > >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", > >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""), 0) > >> > >> The limitation is that your rate table must include an entry equal to > >> or exceeding the largest possible quantity of spots for a single > >> order. > >> > >> Have fun! > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 8 04:07:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 8 Feb 2004 11:07:17 +0100 Subject: [AccessD] Something too hard for me... In-Reply-To: <000701c3ee1e$f16da470$0100a8c0@kost36> References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> Message-ID: <1705431139.20040208110717@cactus.dk> Hi Kostas > Hi Gustav, > In my language we use to say "I have no words to thank you..." > So, after two years using this access list I have to say that ADDPS is a > real great help community with no date and time limits. You are welcome! That is was the list is for. > Well, may be I couldn't manage to give you the right tips about my question. > I put your code line by line into a query but it gives back the same > calculation for all records. > There is no need to put a filter about the S because I want to know the Q of > all ID's with the same quantity. > My table contains records like: > ID Q PRICE > 1 10 55,00 > 1 20 72,00 > 1 30 98,00 > 2 10 47,00 > 2 20 60,00 > 2 30 72,00 > 3 10 65,00 > 3 20 77,00 > 3 30 92,00 > ... > so, I can't use unique index to the fields Station and Quantity. The index was only meant to prevent duplicate entries as the combination of Station ID and Quantity must be unique. > Running the query e.g. for a 25 Q it must answers > ID Q PRICE > 1 25 88,30 > 2 25 62,00 > 3 25 92,30 > ... OK. You can include the expression in a query where it will be run record by record with the respective Station ID. Note the correction of Format() to round to one decimal: PARAMETERS Q Short; SELECT DISTINCT Station, [Q] AS Quantity, Format( Nz(DMax("Price", "tblRate", "Station = " & Station & " And " & Q & " \ Quantity > 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", "Station = " & Station & " And Quantity <= " & Q & ""), 0) & ")", "tblRate", "Station = " & Station & " And Quantity > " & Q & ""), 0), "0.0" & "\0") AS Total FROM tblRate; Copy and paste this into a new query and adjust to your naming of fields etc. However, if this - to build a list - is the purpose, and the DMax() exercise hadn't be done or your count of stations were 1900 and not 19, I would suggest to follow the approach of Drew and build a query and calculate in SQL, though - with the needed in-line or sub select queries - it wouldn't be much nicer to watch. /gustav > --- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 07, 2004 10:08 PM > Subject: Re: [AccessD] Something too hard for me... >> Hi Kostas >> >> > Hi Gustav, >> > thank's a lot for your really excellent job. >> > It works perfect but I have another question which is very critical. >> >> > we are a network of 19 Regional Greek Stations so the general advertising >> > list incloudes common Quantities but different prices for every of them. >> > Every Station based on its ID (from 1 to 19) >> > I tried to put your code on but it conficts with good reason cause the same >> > quantities are iclouding several times >> > Michael and Drew Many thank's for your time too >> >> > Be well >> >> >> This is possible and still fun but before being slammed by my fellow >> listers, let me note that we are approaching the land of unreadable >> code. Nevertheless: >> >> curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " >> \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), >> 0) >> >> In addition to the inclusion of a Station ID, please note a minor >> correction (<=). >> >> Your table should now as minimum read: >> >> Station: Integer >> Quantity: Integer >> Price: Currency >> >> A unique index should be applied to the fields Station and Quantity. >> Also, you may need to round the total: >> >> curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & >> Q & " \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), >> 0), "Standard") >> >> /gustav >> >> >> > ----- Original Message ----- >> > From: "Gustav Brock" >> > To: "Access Developers discussion and problem solving" >> > >> > Sent: Saturday, February 07, 2004 2:56 PM >> > Subject: Re: [AccessD] Something too hard for me... >> >> >> >> Hi Kostas >> >> >> >> > I am trying to create a little project to calculate some prices of a Radio >> >> > Station advertising list >> >> > In a table I keep CATEGORY and PRICE e.g. >> >> >> >> 10 -->> 55,00EURO >> >> 20 -->> 80,00 >> >> 30 -->> 90,00 >> >> > bla, bla >> >> >> >> > What I want to calculate is the price of an uncategorized spots between two >> >> > categories. >> >> > 25 SPOTS.... >> >> > The calculation is: >> >> > A) the 20 spots cost 80,00 >> >> > B) I have to select the next category (in that case 30) to find out how much >> >> > cost one spot (90,00/30 = 3,00EURO) >> >> > C). the 5 spots cost 5X3,00=15,00 >> >> > so, the total price for the uncategorized query must be >> >> > 80,00+15,00=95,00euro >> >> >> >> >> >> You can, as an exercise in DMax(), do this with a single line of code >> >> where Q is your number of spots: >> >> >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + >> >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", >> >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""),> 0) >> >> >> >> The limitation is that your rate table must include an entry equal to >> >> or exceeding the largest possible quantity of spots for a single >> >> order. >> >> >> >> Have fun! From kost36 at otenet.gr Sun Feb 8 14:32:28 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sun, 8 Feb 2004 22:32:28 +0200 Subject: [AccessD] Something too hard for me... References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36><000f01c3edaa$3d9d7b60$0100a8c0@kost36><000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> Message-ID: <001d01c3ee82$acf76740$0100a8c0@kost36> Hi Gustav, thank's a lot Everything works perfect Kostas ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 12:07 PM Subject: Re: [AccessD] Something too hard for me... > Hi Kostas > > > Hi Gustav, > > In my language we use to say "I have no words to thank you..." > > So, after two years using this access list I have to say that ADDPS is a > > real great help community with no date and time limits. > > You are welcome! That is was the list is for. > > > Well, may be I couldn't manage to give you the right tips about my question. > > I put your code line by line into a query but it gives back the same > > calculation for all records. > > There is no need to put a filter about the S because I want to know the Q of > > all ID's with the same quantity. > > My table contains records like: > > ID Q PRICE > > 1 10 55,00 > > 1 20 72,00 > > 1 30 98,00 > > 2 10 47,00 > > 2 20 60,00 > > 2 30 72,00 > > 3 10 65,00 > > 3 20 77,00 > > 3 30 92,00 > > ... > > so, I can't use unique index to the fields Station and Quantity. > > The index was only meant to prevent duplicate entries as the > combination of Station ID and Quantity must be unique. > > > Running the query e.g. for a 25 Q it must answers > > > ID Q PRICE > > 1 25 88,30 > > 2 25 62,00 > > 3 25 92,30 > > ... > > > OK. You can include the expression in a query where it will be run > record by record with the respective Station ID. > Note the correction of Format() to round to one decimal: > > > > PARAMETERS > Q Short; > SELECT DISTINCT > Station, > [Q] AS Quantity, > Format( > Nz(DMax("Price", "tblRate", "Station = " & Station & " And " & Q & " \ Quantity > 0"), 0) + > Nz(DMax("(Price / Quantity) * (" & Q - > Nz(DMax("Quantity", "tblRate", "Station = " & Station & " And Quantity <= " & Q & ""), 0) > & ")", "tblRate", "Station = " & Station & " And Quantity > " & Q & ""), 0), > "0.0" & "\0") AS Total > FROM > tblRate; > > > > Copy and paste this into a new query and adjust to your naming of > fields etc. > > However, if this - to build a list - is the purpose, and the DMax() > exercise hadn't be done or your count of stations were 1900 and not > 19, I would suggest to follow the approach of Drew and build a query > and calculate in SQL, though - with the needed in-line or sub select > queries - it wouldn't be much nicer to watch. > > /gustav > > > > --- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 07, 2004 10:08 PM > > Subject: Re: [AccessD] Something too hard for me... > > > >> Hi Kostas > >> > >> > Hi Gustav, > >> > thank's a lot for your really excellent job. > >> > It works perfect but I have another question which is very critical. > >> > >> > we are a network of 19 Regional Greek Stations so the general advertising > >> > list incloudes common Quantities but different prices for every of them. > >> > Every Station based on its ID (from 1 to 19) > >> > I tried to put your code on but it conficts with good reason cause the same > >> > quantities are iclouding several times > >> > Michael and Drew Many thank's for your time too > >> > >> > Be well > >> > >> > >> This is possible and still fun but before being slammed by my fellow > >> listers, let me note that we are approaching the land of unreadable > >> code. Nevertheless: > >> > >> curTotal = Nz(DMax("Price", "tblRate", "Station = " & S & " And " & Q & " > >> \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - > >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & > >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), > >> 0) > >> > >> In addition to the inclusion of a Station ID, please note a minor > >> correction (<=). > >> > >> Your table should now as minimum read: > >> > >> Station: Integer > >> Quantity: Integer > >> Price: Currency > >> > >> A unique index should be applied to the fields Station and Quantity. > >> Also, you may need to round the total: > >> > >> curTotal = Format(Nz(DMax("Price", "tblRate", "Station = " & S & " And " & > >> Q & " \ Quantity >> 0"), 0) + Nz(DMax("(Price / Quantity) * (" & Q - > >> Nz(DMax("Quantity", "tblRate", "Station = " & S & " And Quantity <= " & Q & > >> ""), 0) & ")", "tblRate", "Station = " & S & " And Quantity > " & Q & ""), > >> 0), "Standard") > >> > >> /gustav > >> > >> > >> > ----- Original Message ----- > >> > From: "Gustav Brock" > >> > To: "Access Developers discussion and problem solving" > >> > > >> > Sent: Saturday, February 07, 2004 2:56 PM > >> > Subject: Re: [AccessD] Something too hard for me... > >> > >> > >> >> Hi Kostas > >> >> > >> >> > I am trying to create a little project to calculate some prices of a Radio > >> >> > Station advertising list > >> >> > In a table I keep CATEGORY and PRICE e.g. > >> >> > >> >> 10 -->> 55,00EURO > >> >> 20 -->> 80,00 > >> >> 30 -->> 90,00 > >> >> > bla, bla > >> >> > >> >> > What I want to calculate is the price of an uncategorized spots between two > >> >> > categories. > >> >> > 25 SPOTS.... > >> >> > The calculation is: > >> >> > A) the 20 spots cost 80,00 > >> >> > B) I have to select the next category (in that case 30) to find out how much > >> >> > cost one spot (90,00/30 = 3,00EURO) > >> >> > C). the 5 spots cost 5X3,00=15,00 > >> >> > so, the total price for the uncategorized query must be > >> >> > 80,00+15,00=95,00euro > >> >> > >> >> > >> >> You can, as an exercise in DMax(), do this with a single line of code > >> >> where Q is your number of spots: > >> >> > >> >> curTotal = Nz(DMax("Price", "tblRate", "" & Q & " \ Quantity > 0"), 0) + > >> >> Nz(DMax("(Price / Quantity) * (" & Q - Nz(DMax("Quantity", "tblRate", > >> >> "Quantity < " & Q & ""), 0) & ")", "tblRate", "Quantity > " & Q & ""),> 0) > >> >> > >> >> The limitation is that your rate table must include an entry equal to > >> >> or exceeding the largest possible quantity of spots for a single > >> >> order. > >> >> > >> >> Have fun! > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bruce_bruen at mlc.com.au Sun Feb 8 17:13:39 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 9 Feb 2004 10:13:39 +1100 Subject: [AccessD] Something too hard for me... Message-ID: A bit late on the input but nethertheless... Kostas, Without understanding anything about the business rules of your situation, I just wanted to add the folllowing. I have seen this problem many times in distribution and sales systems. The best general solution I have seen is the use of a "margin" column in the structure table, viz |--+----+--------+----------+---------| |ID|Base| Limit | BaseCost | Margin | |--+----+--------+----------+---------| | | | | | | |--+----+--------+----------+---------| | 1| 0| 9| $0.00|$6,000.00| |--+----+--------+----------+---------| | 1| 10| 19|$55,000.00|$3,960.00| |--+----+--------+----------+---------| | 1| 20| 29|$72,000.00|$3,593.33| |--+----+--------+----------+---------| | 1| 30|99999999|$98,000.00|$3,500.00| |--+----+--------+----------+---------| | 2| 0| 9| $0.00|$5,000.00| |--+----+--------+----------+---------| | 2| 10| 19|$47,000.00|$3,300.00| |--+----+--------+----------+---------| | 2| 20| 29|$60,000.00|$2,640.00| |--+----+--------+----------+---------| | 2| 30|99999999|$72,000.00|$2,500.00| |--+----+--------+----------+---------| | 3| 0| 9| $0.00|$7,000.00| |--+----+--------+----------+---------| | 3| 10| 19|$65,000.00|$4,235.00| |--+----+--------+----------+---------| | 3| 20| 29|$77,000.00|$3,373.33| |--+----+--------+----------+---------| | 3| 30|99999999|$92,000.00|$3,300.00| |--+----+--------+----------+---------| This structure allows the marketers to fine tune the marginal costs to make higher volume sales more attractive, can be maintained by the marketers rather than having to change the margin cost calculation code everytime they want to push a particular bracket, and allows "simpler" querying of the table to get the correct pricing. SELECT tblCost.ID, tblCost.Base, tblCost.Limit, tblCost.BaseCost, tblCost.Margin, (([Enter Q]-[Base])*[Margin])+[BaseCost] AS TotalCost FROM tblCost WHERE (((tblCost.ID)=[Enter station ID]) AND ((tblCost.Base)<[Enter Q]) AND ((tblCost.Limit)>=[Enter Q])); Just thought this might be of interest. Bruce From martyconnelly at shaw.ca Sun Feb 8 17:14:45 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 08 Feb 2004 15:14:45 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> <001d01c3ee82$acf76740$0100a8c0@kost36> Message-ID: <4026C2E5.3030204@shaw.ca> Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada From bruce_bruen at mlc.com.au Sun Feb 8 17:44:40 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 9 Feb 2004 10:44:40 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen Message-ID: This isn't a case of "it aint broke so lets fix it" its more like "it aint broke, so lets throw it out". B MartyConnelly To: Access Developers discussion and problem solving Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Next Version of Access 12 Musings on what might happen 09/02/2004 10:14 Please respond to Access Developers discussion and problem solving Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [AccessD] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From martyconnelly at shaw.ca Sun Feb 8 21:02:22 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 08 Feb 2004 19:02:22 -0800 Subject: [AccessD] More Musings on what might happen MS moving away from OOPs by Don Box References: Message-ID: <4026F83E.5020707@shaw.ca> Microsoft steers away from object orientation http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sun Feb 8 21:31:37 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 09 Feb 2004 13:31:37 +1000 Subject: [AccessD] More Musings on what might happen MS moving away from OOPs by Don Box In-Reply-To: <4026F83E.5020707@shaw.ca> Message-ID: <40278BB9.23463.134404A@localhost> On 8 Feb 2004 at 19:02, MartyConnelly wrote: > Microsoft steers away from object orientation > http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm > "How do we discourage unwanted intimacy?... The metaphor we?re going to use for integrating programs [on Indigo] is service orientation. I can only interact by sending and receiving messages. Message-based comms gives more flexibility." Why don't we try to come up with some fancy new name for this. I know! How about Dynamic Data Exchange or DDE for short - that has a nice ring to it -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Sun Feb 8 22:29:55 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 8 Feb 2004 20:29:55 -0800 Subject: [AccessD] Access as Service (What is a service?) In-Reply-To: <401A12C9.60.187A9A@localhost> Message-ID: <000001c3eec5$6177e040$6501a8c0@delllaptop> What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Feb 8 23:53:38 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 9 Feb 2004 00:53:38 -0500 Subject: [AccessD] Administrivia - List Software Upgrade References: <4026A67B.1068.B05F0E@localhost> Message-ID: <002001c3eed1$1074c710$6101a8c0@dejpolsys> ...thanks for the "heads up" Bryan ...hope it goes smoothly :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Sunday, February 08, 2004 9:13 PM Subject: [AccessD] Administrivia - List Software Upgrade > On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the > software that runs the lists hosted by Database Advisors will be > upgraded. It should only take a couple of hours. > > This will bring our software upto date. Not only is it necessary for > security but it will also be a step on the road to a completely > searchable archive at http://databaseadvisors.com > > During the time it takes to run the upgrade, the server will be down. > Any post made during this time will not be accepted. It may be > rejected by the server as well. However, it will only be a temporary > situation. A notice will be posted once the server is back up and > running with the new list software. > > You can also keep an eye on > http://www.databaseadvisors.com/liststatus.htm for any changes or > notices. > > Thank you for your patience during this, and the upcoming changes and > upgrades. > > Thank You, > > -- > Bryan Carbonnell - Your Listmaster > listmaster at databaseadvisors.com > > _______________________________________________ > Administrivia mailing list > Administrivia at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/administrivia > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Mon Feb 9 01:52:58 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 08:52:58 +0100 Subject: [AccessD] More Musings on what might happen MS moving away fromOOPs by Don Box Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D225@stekelbes.ithelps.local> I'm +/- 16 year in I.T. now, I sometimes have the impression we are making rounds and putting the same old stuff into a new, but bigger, package.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 09, 2004 4:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] More Musings on what might happen MS moving away fromOOPs by Don Box On 8 Feb 2004 at 19:02, MartyConnelly wrote: > Microsoft steers away from object orientation > http://news.zdnet.co.uk/software/developer/0,39020387,39143730,00.htm > "How do we discourage unwanted intimacy?... The metaphor we're going to use for integrating programs [on Indigo] is service orientation. I can only interact by sending and receiving messages. Message-based comms gives more flexibility." Why don't we try to come up with some fancy new name for this. I know! How about Dynamic Data Exchange or DDE for short - that has a nice ring to it -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Mon Feb 9 04:22:37 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 09 Feb 2004 05:22:37 -0500 Subject: [AccessD] Administrivia - List Software Upgrade In-Reply-To: <002001c3eed1$1074c710$6101a8c0@dejpolsys> Message-ID: <4027191D.3822.11B596@localhost> On 9 Feb 2004 at 0:53, William Hindman wrote: > ...thanks for the "heads up" Bryan ...hope it goes smoothly :) No problem. You and 400+ others hope it goes smoothly too :) -- Bryan Carbonnell - carbonnb at sympatico.ca There's a fine line between a hobby and mental illness. Which side of the line are you on? From tortise at paradise.net.nz Mon Feb 9 04:23:41 2004 From: tortise at paradise.net.nz (Tortise) Date: Mon, 09 Feb 2004 23:23:41 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: <46B976F2B698FF46A4FE7636509B22DF03D225@stekelbes.ithelps.local> Message-ID: <000701c3eef6$ca0449b0$1e00a8c0@cheqsoft.local> Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards David From jimdettman at earthlink.net Mon Feb 9 06:38:57 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 9 Feb 2004 07:38:57 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: <4026C2E5.3030204@shaw.ca> Message-ID: Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 9 07:38:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 9 Feb 2004 08:38:05 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <000701c3eef6$ca0449b0$1e00a8c0@cheqsoft.local> Message-ID: Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards David _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 08:21:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 08:21:04 -0600 Subject: [AccessD] Access as Service (What is a service?) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222784F@main2.marlow.com> A service is a program that runs in the background of the OS. In Windows 9x machines, services are setup in the registry, and there is little you can do with them, other then put them in the registry, and reboot. The real key of a 'service', is that it runs no matter who is logged on, or even if anyone is logged on at all. Why would that be important? Simple. Take for example a Firewall program. You would want your firewall to be running whenever your computer is on, not just when you are logged in. In Windows NT (NT 4.0, 2k, XP), there is a 'services' panel in the control panel. This lists all of the programs that are setup as services on your machine. Each program can be set to Automatic, Manual, or Disabled. (which determines how the service is started when your OS boots). You can also stop/start the various services. There are other options available, depending on what OS you are using. I hope this answers your question. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Sunday, February 08, 2004 10:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access as Service (What is a service?) What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 08:24:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 08:24:05 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen Message-ID: <2F8793082E00D4119A1700B0D0216BF802227850@main2.marlow.com> Couldn't agree more. I still use primarily Access 97. Once in a while, I am using A2k. However, there is nothing out there yet, where Access 97 can't be used to it's full potential. Nor have I really seen anything is blows Access 97 out of the water yet (except for A2k's raiseevents capability). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Monday, February 09, 2004 6:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Mon Feb 9 08:26:10 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Mon, 9 Feb 2004 09:26:10 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen References: <000901c3ecef$c1b8d2c0$0100a8c0@kost36> <000f01c3edaa$3d9d7b60$0100a8c0@kost36> <000701c3ee1e$f16da470$0100a8c0@kost36> <1705431139.20040208110717@cactus.dk> <001d01c3ee82$acf76740$0100a8c0@kost36> <4026C2E5.3030204@shaw.ca> Message-ID: <005701c3ef18$acbcbe10$6401a8c0@default> Marty, Thank you for the links - both quite thought provoking. I hope MS will consider going back to the old .hlp format for MSDN and .Net documentation in Office 12! Michael R. Mattys www.mattysconsulting.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 6:14 PM Subject: [AccessD] Next Version of Access 12 Musings on what might happen > Thought this might be of interest. > What's Next? Microsoft hints at what the future might hold for Access. > > By Ken Getz > > > http://accessvbsql.advisor.com/doc/13516 > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Feb 9 08:32:08 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 15:32:08 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D242@stekelbes.ithelps.local> Idd, since they changed the HLP files I can't find a thing anymore.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, February 09, 2004 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Next Version of Access 12 Musings on what might happen Marty, Thank you for the links - both quite thought provoking. I hope MS will consider going back to the old .hlp format for MSDN and .Net documentation in Office 12! Michael R. Mattys www.mattysconsulting.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 08, 2004 6:14 PM Subject: [AccessD] Next Version of Access 12 Musings on what might happen > Thought this might be of interest. > What's Next? Microsoft hints at what the future might hold for Access. > > By Ken Getz > > > http://accessvbsql.advisor.com/doc/13516 > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Mon Feb 9 09:05:17 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Mon, 9 Feb 2004 15:05:17 +0000 Subject: [AccessD] Checking if a file is open Message-ID: Hi All, I am importing data from Excel into Access. The initial step in this process involves copying the data from the excel spreadsheet into a temporary copy of itself. This step fails if the file is open. Does anyone recommend a method that I could use to see if the file is already open (and then notify the user to shut it down?) TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rl_stewart at highstream.net Mon Feb 9 09:19:25 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 09 Feb 2004 09:19:25 -0600 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <200402071800.i17I0Vm07030@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> Answers below: At 12:00 PM 2/7/2004 -0600, you wrote: >Date: Fri, 6 Feb 2004 16:55:38 -0500 >From: "O'Connor, Patricia " >Subject: [AccessD] Information about Access 2003 >To: "'Access Developers discussion and problem solving'" > >Message-ID: >Content-Type: text/plain; charset="ISO-8859-1" > > >We are going to be getting Access 2003 in about a month. > >1. Has anyone successfully installed & used Access2003 on the same machine >with 97 & 2k I have 97, 2000, 2002, and 2003 installed and running quite well on a Win 2003 server machine. >2. What are the major differences/problems with A2003 compared to A97 & 2k. It is very different from 97, but close (with enhancements) to 2000 and 2002. >Are there any articles, books, etc besides MS.com to read up on these. Don't have an answer for you here. I teach a developer's workshop and I have went to 2003 exclusively for teaching it. >3. We have several Access 97 database systems in use. Should I upgrade them >to A2k first then A2003. Might not be a bad idea. It will give you a chance to get the references and anything else straightened out first. Robert From rl_stewart at highstream.net Mon Feb 9 09:23:38 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 09 Feb 2004 09:23:38 -0600 Subject: [AccessD] Re: Code Librarian 2 In-Reply-To: <200402071800.i17I0Vm07030@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040209092104.029bee98@pop3.highstream.net> Pedro, I am finishing another project now. I should be able to start it in the next week and it should not take long to get the initial site up. I was planning on have it on my business site: TheDysonGroup.com. So all in all, I would say within the next 3 weeks the basic functionality will be in place on online. Robert At 12:00 PM 2/7/2004 -0600, you wrote: >Date: Sat, 7 Feb 2004 00:09:32 +0100 >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: Code Librarian 2 >To: "Access Developers discussion and problem solving" > >Message-ID: <003701c3ed08$172ea500$f4c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert, > >its Ok with me. >Do you have an idea when it will be active and on which site? > >Pedro From Oleg_123 at xuppa.com Mon Feb 9 09:26:16 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:26:16 -0500 (EST) Subject: [AccessD] Checking if a file is open In-Reply-To: References: Message-ID: <13407.12.3.132.98.1076340376.squirrel@heck.bay9.com> the easiest (aaltough not the best) way would be to see what is the number of the error you are getting, and write code for that error prompting the user to close excel appl, and exiting the sub > Hi All, > > I am importing data from Excel into Access. The initial step in this > process involves copying the data from the excel spreadsheet into a > temporary copy of itself. This step fails if the file is open. Does > anyone recommend a method that I could use to see if the file is already > open (and then notify the user to shut it down?) > > TIA > RyanS > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rsmethurst at UK.EY.COM Mon Feb 9 09:28:26 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Mon, 9 Feb 2004 15:28:26 +0000 Subject: [AccessD] Checking if a file is open Message-ID: Thanks for the reply Oleg. That is what I have at the moment, but if at all possible I would like to work around the file being open, (like I said though - if at all possible) Cheers Ryan Sent by: accessd-bounces at databaseadvisors.com 09/02/2004 15:26 Please respond to Access Developers discussion and problem solving To: cc: Subject: Re: [AccessD] Checking if a file is open the easiest (aaltough not the best) way would be to see what is the number of the error you are getting, and write code for that error prompting the user to close excel appl, and exiting the sub > Hi All, > > I am importing data from Excel into Access. The initial step in this > process involves copying the data from the excel spreadsheet into a > temporary copy of itself. This step fails if the file is open. Does > anyone recommend a method that I could use to see if the file is already > open (and then notify the user to shut it down?) > > TIA > RyanS > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Oleg_123 at xuppa.com Mon Feb 9 09:37:15 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:37:15 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: References: Message-ID: <13582.12.3.132.98.1076341035.squirrel@heck.bay9.com> Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Erwin.Craps at ithelps.be Mon Feb 9 09:47:07 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 9 Feb 2004 16:47:07 +0100 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> Aha very simple.... The date of the computer was changed.... It is also posible to alter these dates from an API.... Think about FTP programs that set date and time equal to the one on the FTP server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 4:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Feb 9 09:51:06 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 9 Feb 2004 10:51:06 -0500 Subject: [AccessD] (OT) text file modified before created ? Message-ID: There are numerous utilities available that can modify these values at will with no regard to the accepted time-space continuum. Mark -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 09, 2004 10:37 AM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 09:52:28 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 09:52:28 -0600 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> If you copy a file from one location to another, it will maintain it's modified tag, but have a new Created date/time, because the physical file was created when you copied it, but it still rememembers the last time the original was modified. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 9:37 AM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) text file modified before created ? Created: November 16th, 2003 Modified: September 7th, 2003 Accessed: Today, February 9th, 2004 How the can it be modified BEFORE it was created???? ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 09:55:39 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 09:55:39 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com From Oleg_123 at xuppa.com Mon Feb 9 09:57:28 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 10:57:28 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D247@stekelbes.ithelps.local> Message-ID: <13379.12.3.132.98.1076342248.squirrel@heck.bay9.com> hmm, date of the computer was changed ? how > Aha very simple.... > The date of the computer was changed.... > It is also posible to alter these dates from an API.... > > Think about FTP programs that set date and time equal to the one on the > FTP server. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 4:37 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Oleg_123 at xuppa.com Mon Feb 9 10:01:37 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:01:37 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: References: Message-ID: <13497.12.3.132.98.1076342497.squirrel@heck.bay9.com> yeah, but i didn't try to do it myself, it happened without my interferance > There are numerous utilities available that can modify these values at > will with no regard to the accepted time-space continuum. > > > > Mark > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mwp.reid at qub.ac.uk Mon Feb 9 10:04:37 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:04:37 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <001601c3ef26$6acef690$9111758f@aine> Are they users or soon to be developers? Martin ----- Original Message ----- From: "Jim Hewson" To: "'AccessD'" Sent: Monday, February 09, 2004 3:55 PM Subject: [AccessD] Teaching Access Course > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > ---------------------------------------------------------------------------- ---- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 9 10:06:36 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:06:36 -0500 (EST) Subject: [AccessD] (OT) text file modified before created ? In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227851@main2.marlow.com> Message-ID: <13898.12.3.132.98.1076342796.squirrel@heck.bay9.com> thank you, this sounds understandable > If you copy a file from one location to another, it will maintain it's > modified tag, but have a new Created date/time, because the physical > file was created when you copied it, but it still rememembers the last > time the original was modified. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 9:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 9 10:10:12 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:10:12 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> All users. Jim -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Are they users or soon to be developers? Martin ----- Original Message ----- From: "Jim Hewson" To: "'AccessD'" Sent: Monday, February 09, 2004 3:55 PM Subject: [AccessD] Teaching Access Course > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > ---------------------------------------------------------------------------- ---- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 9 10:17:00 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 10:17:00 -0600 Subject: [AccessD] (OT) text file modified before created ? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227852@main2.marlow.com> It should, because it's true! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Oleg_123 at xuppa.com Sent: Monday, February 09, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] (OT) text file modified before created ? thank you, this sounds understandable > If you copy a file from one location to another, it will maintain it's > modified tag, but have a new Created date/time, because the physical > file was created when you copied it, but it still rememembers the last > time the original was modified. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Oleg_123 at xuppa.com > Sent: Monday, February 09, 2004 9:37 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) text file modified before created ? > > > Created: November 16th, 2003 > Modified: September 7th, 2003 > Accessed: Today, February 9th, 2004 > > How the can it be modified BEFORE it was created???? > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 9 10:18:40 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:18:40 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> Message-ID: <000d01c3ef28$61310a40$9111758f@aine> I run a couple of courses here Users are taught how to work with existing systems. We do teach them a little about table construction and relationships in the context of the work they do with the existing systems. We dont teach norminisation, reserved words etc which we cover in teh application development courses. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:10 PM Subject: RE: [AccessD] Teaching Access Course > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > > > > > Our customer has added a tasking on our contract. > > I have developed several Access databases for this customer on several > > different contracts. They want a two-day course to teach 6-10 people. A > > classroom with computers and Access loaded on them will be on their site. > > The student's experience ranges from someone who knows how to spell Access > > to someone who thinks they know how to use it. > > I do have experience conducting courses - just not Access. > > > > My first cut of a syllabus is below. Any suggestions? > > > > Thanks in advance. > > Jim > > > > 1. Introduction to Databases > > a. Systems [Software] Development Life Cycle (SDLC > > b. Database Nomenclature > > c. Naming Conventions > > d. Normalization > > e. Relational Database > > f. Database design concepts > > 2. Introduction to Access > > a. Access Specifications > > b. Short cut keys > > c. Reserved Words > > d. Access Objects > > e. Relationships between tables > > 3. Access Tables > > a. Primary keys > > b. Fields and records > > c. Navigate through records > > d. Enter, edit and delete records > > e. Format tables > > f. Filtering data in tables > > 4. Designing Access Tables > > a. Design view > > b. Adding and naming fields > > c. Assigning Field types > > d. Assigning Field Properties > > e. Creating Key Fields > > f. Creating relationships > > 5. Designing Access Queries > > a. Using "And" and "Or" statements > > b. "=" vs "like" > > c. Parameter Queries > > d. Auto lookup Queries > > e. Advanced Queries (Nested Queries, Sub-queries) > > f. Insert/Update/Delete/Make-Table Queries > > 6. Access Form Design > > a. Designing a Form > > b. Formatting forms > > c. Adding controls > > d. Combo boxes / list boxes > > e. Groups > > f. MS Visual Basic > > g. Using Wizards > > 7. Access Report Design > > a. Creating a report > > b. Formatting reports > > c. Using Wizards > > > > > > Jim H. Hewson > > Marketing/Proposal Support Manager > > Karta Technologies, Inc. > > 5555 Northwest Parkway > > San Antonio, Texas 78249 > > 210-582-3233 > > jhewson at karta.com > > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 9 10:20:41 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 9 Feb 2004 11:20:41 -0500 (EST) Subject: [AccessD] Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> References: <4AE733BBEEE72647A9F950F7275F262E1127BC@nt04.karta.com> Message-ID: <13383.12.3.132.98.1076343641.squirrel@heck.bay9.com> Jim, why would users ever need to know anything about field types, reserved words, and nested queries ???? > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > >> >> Our customer has added a tasking on our contract. >> I have developed several Access databases for this customer on several >> different contracts. They want a two-day course to teach 6-10 people. >> A classroom with computers and Access loaded on them will be on their >> site. The student's experience ranges from someone who knows how to >> spell Access to someone who thinks they know how to use it. >> I do have experience conducting courses - just not Access. >> >> My first cut of a syllabus is below. Any suggestions? >> >> Thanks in advance. >> Jim >> >> 1. Introduction to Databases >> a. Systems [Software] Development Life Cycle (SDLC >> b. Database Nomenclature >> c. Naming Conventions >> d. Normalization >> e. Relational Database >> f. Database design concepts >> 2. Introduction to Access >> a. Access Specifications >> b. Short cut keys >> c. Reserved Words >> d. Access Objects >> e. Relationships between tables >> 3. Access Tables >> a. Primary keys >> b. Fields and records >> c. Navigate through records >> d. Enter, edit and delete records >> e. Format tables >> f. Filtering data in tables >> 4. Designing Access Tables >> a. Design view >> b. Adding and naming fields >> c. Assigning Field types >> d. Assigning Field Properties >> e. Creating Key Fields >> f. Creating relationships >> 5. Designing Access Queries >> a. Using "And" and "Or" statements >> b. "=" vs "like" >> c. Parameter Queries >> d. Auto lookup Queries >> e. Advanced Queries (Nested Queries, Sub-queries) >> f. Insert/Update/Delete/Make-Table Queries >> 6. Access Form Design >> a. Designing a Form >> b. Formatting forms >> c. Adding controls >> d. Combo boxes / list boxes >> e. Groups >> f. MS Visual Basic >> g. Using Wizards >> 7. Access Report Design >> a. Creating a report >> b. Formatting reports >> c. Using Wizards >> >> >> Jim H. Hewson >> Marketing/Proposal Support Manager >> Karta Technologies, Inc. >> 5555 Northwest Parkway >> San Antonio, Texas 78249 >> 210-582-3233 >> jhewson at karta.com >> >> >> > > > ---------------------------------------------------------------------------- > ---- > > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From JHewson at karta.com Mon Feb 9 10:23:13 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:23:13 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BD@nt04.karta.com> In this context, my definition of users refers to those people who will "develop" databases on their computer, not for the use of others. These databases will be for personal use only. -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 09, 2004 10:21 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Teaching Access Course Jim, why would users ever need to know anything about field types, reserved words, and nested queries ???? > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > >> >> Our customer has added a tasking on our contract. >> I have developed several Access databases for this customer on several >> different contracts. They want a two-day course to teach 6-10 people. >> A classroom with computers and Access loaded on them will be on their >> site. The student's experience ranges from someone who knows how to >> spell Access to someone who thinks they know how to use it. >> I do have experience conducting courses - just not Access. >> >> My first cut of a syllabus is below. Any suggestions? >> >> Thanks in advance. >> Jim >> >> 1. Introduction to Databases >> a. Systems [Software] Development Life Cycle (SDLC >> b. Database Nomenclature >> c. Naming Conventions >> d. Normalization >> e. Relational Database >> f. Database design concepts >> 2. Introduction to Access >> a. Access Specifications >> b. Short cut keys >> c. Reserved Words >> d. Access Objects >> e. Relationships between tables >> 3. Access Tables >> a. Primary keys >> b. Fields and records >> c. Navigate through records >> d. Enter, edit and delete records >> e. Format tables >> f. Filtering data in tables >> 4. Designing Access Tables >> a. Design view >> b. Adding and naming fields >> c. Assigning Field types >> d. Assigning Field Properties >> e. Creating Key Fields >> f. Creating relationships >> 5. Designing Access Queries >> a. Using "And" and "Or" statements >> b. "=" vs "like" >> c. Parameter Queries >> d. Auto lookup Queries >> e. Advanced Queries (Nested Queries, Sub-queries) >> f. Insert/Update/Delete/Make-Table Queries >> 6. Access Form Design >> a. Designing a Form >> b. Formatting forms >> c. Adding controls >> d. Combo boxes / list boxes >> e. Groups >> f. MS Visual Basic >> g. Using Wizards >> 7. Access Report Design >> a. Creating a report >> b. Formatting reports >> c. Using Wizards >> >> >> Jim H. Hewson >> Marketing/Proposal Support Manager >> Karta Technologies, Inc. >> 5555 Northwest Parkway >> San Antonio, Texas 78249 >> 210-582-3233 >> jhewson at karta.com >> >> >> > > > ---------------------------------------------------------------------------- > ---- > > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Mon Feb 9 10:34:00 2004 From: chizotz at charter.net (chizotz at charter.net) Date: Mon, 9 Feb 2004 10:34:00 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <200402091633.i19GX383073749@mxsf05.cluster1.charter.net> Jim, >From my experience, many of the topics you're including are going to be way off the track for the vast majority of users. It depends on what the users are going to be expected to do, of course, but I can promise you that "typical users" are going to be overwhelmed and are going to come away being more dangerous than proficient. We recently implemented a basic Access skills assessment test for new hires. It consisted of a provided table and a requirement to create two very simple queries and a report using a wizard. The first take on this was deemed "too advanced" and an "unfair test", so we dumbed it down even more. It's a little scary what passes for "skills" among non-tech people, but there it is. I would cut out most of the underlying theory stuff and all of the programming. If the users are going to be expected to write simple queries, I would give the basics of how to use the query designer and an overview of how data is related. If they need to create reports, I'd show them how to use the wizard, and maybe some basic customizing tools. Also, this is jam-packed for two days. Be prepared for even what you would consider the most simple of concepts to take at least twice as much time as you'd expect to cover. Even then, you're going to have someone in the class leave without understanding the material. Our 2-day basic Access course covers the base essentials of tables (the differences between numeric, text, and date data and the mechanics of creating a table), queries (how to set up a simple select from one and two tables), and creating a report with a wizard. Our "typical users" consider it a very difficult and taxing class. We have very few people who go on to sign up for our so-called "advanced" class. If you're like me, you will be disappointed and amazed at how difficult most people think this very basic stuff is. Good luck, Ron > > From: Jim Hewson > Date: 2004/02/09 Mon AM 09:55:39 CST > To: "'AccessD'" > Subject: [AccessD] Teaching Access Course > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Feb 9 10:40:42 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 9 Feb 2004 16:40:42 -0000 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BD@nt04.karta.com> Message-ID: <001301c3ef2b$75826d60$9111758f@aine> Jim A good starting point is the Microsoft Office User Specialist Course Access Not sure of the URL but a full spec is on the MS web site. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:23 PM Subject: RE: [AccessD] Teaching Access Course > > In this context, my definition of users refers to those people who will > "develop" databases on their computer, not for the use of others. > These databases will be for personal use only. > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:21 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Teaching Access Course > > > Jim, why would users ever need to know anything about field types, > reserved words, and nested queries ???? > > > > > All users. > > Jim > > -----Original Message----- > > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > > Sent: Monday, February 09, 2004 10:05 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Teaching Access Course > > > > > > Are they users or soon to be developers? > > > > Martin > > > > > > ----- Original Message ----- > > From: "Jim Hewson" > > To: "'AccessD'" > > Sent: Monday, February 09, 2004 3:55 PM > > Subject: [AccessD] Teaching Access Course > > > > > >> > >> Our customer has added a tasking on our contract. > >> I have developed several Access databases for this customer on several > >> different contracts. They want a two-day course to teach 6-10 people. > >> A classroom with computers and Access loaded on them will be on their > >> site. The student's experience ranges from someone who knows how to > >> spell Access to someone who thinks they know how to use it. > >> I do have experience conducting courses - just not Access. > >> > >> My first cut of a syllabus is below. Any suggestions? > >> > >> Thanks in advance. > >> Jim > >> > >> 1. Introduction to Databases > >> a. Systems [Software] Development Life Cycle (SDLC > >> b. Database Nomenclature > >> c. Naming Conventions > >> d. Normalization > >> e. Relational Database > >> f. Database design concepts > >> 2. Introduction to Access > >> a. Access Specifications > >> b. Short cut keys > >> c. Reserved Words > >> d. Access Objects > >> e. Relationships between tables > >> 3. Access Tables > >> a. Primary keys > >> b. Fields and records > >> c. Navigate through records > >> d. Enter, edit and delete records > >> e. Format tables > >> f. Filtering data in tables > >> 4. Designing Access Tables > >> a. Design view > >> b. Adding and naming fields > >> c. Assigning Field types > >> d. Assigning Field Properties > >> e. Creating Key Fields > >> f. Creating relationships > >> 5. Designing Access Queries > >> a. Using "And" and "Or" statements > >> b. "=" vs "like" > >> c. Parameter Queries > >> d. Auto lookup Queries > >> e. Advanced Queries (Nested Queries, Sub-queries) > >> f. Insert/Update/Delete/Make-Table Queries > >> 6. Access Form Design > >> a. Designing a Form > >> b. Formatting forms > >> c. Adding controls > >> d. Combo boxes / list boxes > >> e. Groups > >> f. MS Visual Basic > >> g. Using Wizards > >> 7. Access Report Design > >> a. Creating a report > >> b. Formatting reports > >> c. Using Wizards > >> > >> > >> Jim H. Hewson > >> Marketing/Proposal Support Manager > >> Karta Technologies, Inc. > >> 5555 Northwest Parkway > >> San Antonio, Texas 78249 > >> 210-582-3233 > >> jhewson at karta.com > >> > >> > >> > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Mon Feb 9 10:44:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 08:44:21 -0800 Subject: [AccessD] Teaching Access Course Message-ID: Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com From DWUTKA at marlow.com Mon Feb 9 10:46:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Feb 2004 10:46:30 -0600 Subject: [AccessD] Rule Test.. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227853@main2.marlow.com> Had to change rules on my machine, testing that the AccessD one still works! Drew From JHewson at karta.com Mon Feb 9 10:45:35 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:45:35 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127BF@nt04.karta.com> Thanks, I'll take out some of the theory stuff. -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course I run a couple of courses here Users are taught how to work with existing systems. We do teach them a little about table construction and relationships in the context of the work they do with the existing systems. We dont teach norminisation, reserved words etc which we cover in teh application development courses. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:10 PM Subject: RE: [AccessD] Teaching Access Course > > All users. > Jim > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, February 09, 2004 10:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Teaching Access Course > > > Are they users or soon to be developers? > > Martin > > > ----- Original Message ----- > From: "Jim Hewson" > To: "'AccessD'" > Sent: Monday, February 09, 2004 3:55 PM > Subject: [AccessD] Teaching Access Course > > > > > > Our customer has added a tasking on our contract. > > I have developed several Access databases for this customer on several > > different contracts. They want a two-day course to teach 6-10 people. A > > classroom with computers and Access loaded on them will be on their site. > > The student's experience ranges from someone who knows how to spell Access > > to someone who thinks they know how to use it. > > I do have experience conducting courses - just not Access. > > > > My first cut of a syllabus is below. Any suggestions? > > > > Thanks in advance. > > Jim > > > > 1. Introduction to Databases > > a. Systems [Software] Development Life Cycle (SDLC > > b. Database Nomenclature > > c. Naming Conventions > > d. Normalization > > e. Relational Database > > f. Database design concepts > > 2. Introduction to Access > > a. Access Specifications > > b. Short cut keys > > c. Reserved Words > > d. Access Objects > > e. Relationships between tables > > 3. Access Tables > > a. Primary keys > > b. Fields and records > > c. Navigate through records > > d. Enter, edit and delete records > > e. Format tables > > f. Filtering data in tables > > 4. Designing Access Tables > > a. Design view > > b. Adding and naming fields > > c. Assigning Field types > > d. Assigning Field Properties > > e. Creating Key Fields > > f. Creating relationships > > 5. Designing Access Queries > > a. Using "And" and "Or" statements > > b. "=" vs "like" > > c. Parameter Queries > > d. Auto lookup Queries > > e. Advanced Queries (Nested Queries, Sub-queries) > > f. Insert/Update/Delete/Make-Table Queries > > 6. Access Form Design > > a. Designing a Form > > b. Formatting forms > > c. Adding controls > > d. Combo boxes / list boxes > > e. Groups > > f. MS Visual Basic > > g. Using Wizards > > 7. Access Report Design > > a. Creating a report > > b. Formatting reports > > c. Using Wizards > > > > > > Jim H. Hewson > > Marketing/Proposal Support Manager > > Karta Technologies, Inc. > > 5555 Northwest Parkway > > San Antonio, Texas 78249 > > 210-582-3233 > > jhewson at karta.com > > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 10:48:41 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:48:41 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C0@nt04.karta.com> Very good. Thank you. I was afraid I was looking at too much material. I'll return to the basics and hope for the best. -----Original Message----- From: chizotz at charter.net [mailto:chizotz at charter.net] Sent: Monday, February 09, 2004 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Thanks again. Jim Jim, >From my experience, many of the topics you're including are going to be way off the track for the vast majority of users. It depends on what the users are going to be expected to do, of course, but I can promise you that "typical users" are going to be overwhelmed and are going to come away being more dangerous than proficient. We recently implemented a basic Access skills assessment test for new hires. It consisted of a provided table and a requirement to create two very simple queries and a report using a wizard. The first take on this was deemed "too advanced" and an "unfair test", so we dumbed it down even more. It's a little scary what passes for "skills" among non-tech people, but there it is. I would cut out most of the underlying theory stuff and all of the programming. If the users are going to be expected to write simple queries, I would give the basics of how to use the query designer and an overview of how data is related. If they need to create reports, I'd show them how to use the wizard, and maybe some basic customizing tools. Also, this is jam-packed for two days. Be prepared for even what you would consider the most simple of concepts to take at least twice as much time as you'd expect to cover. Even then, you're going to have someone in the class leave without understanding the material. Our 2-day basic Access course covers the base essentials of tables (the differences between numeric, text, and date data and the mechanics of creating a table), queries (how to set up a simple select from one and two tables), and creating a report with a wizard. Our "typical users" consider it a very difficult and taxing class. We have very few people who go on to sign up for our so-called "advanced" class. If you're like me, you will be disappointed and amazed at how difficult most people think this very basic stuff is. Good luck, Ron > > From: Jim Hewson > Date: 2004/02/09 Mon AM 09:55:39 CST > To: "'AccessD'" > Subject: [AccessD] Teaching Access Course > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards From JHewson at karta.com Mon Feb 9 10:50:02 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:50:02 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C1@nt04.karta.com> I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 10:50:19 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 10:50:19 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C2@nt04.karta.com> thanks, I'll check it out. Jim -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, February 09, 2004 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Jim A good starting point is the Microsoft Office User Specialist Course Access Not sure of the URL but a full spec is on the MS web site. Martin ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 09, 2004 4:23 PM Subject: RE: [AccessD] Teaching Access Course > > In this context, my definition of users refers to those people who will > "develop" databases on their computer, not for the use of others. > These databases will be for personal use only. > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 09, 2004 10:21 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Teaching Access Course > > > Jim, why would users ever need to know anything about field types, > reserved words, and nested queries ???? > > > > > All users. > > Jim > > -----Original Message----- > > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > > Sent: Monday, February 09, 2004 10:05 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Teaching Access Course > > > > > > Are they users or soon to be developers? > > > > Martin > > > > > > ----- Original Message ----- > > From: "Jim Hewson" > > To: "'AccessD'" > > Sent: Monday, February 09, 2004 3:55 PM > > Subject: [AccessD] Teaching Access Course > > > > > >> > >> Our customer has added a tasking on our contract. > >> I have developed several Access databases for this customer on several > >> different contracts. They want a two-day course to teach 6-10 people. > >> A classroom with computers and Access loaded on them will be on their > >> site. The student's experience ranges from someone who knows how to > >> spell Access to someone who thinks they know how to use it. > >> I do have experience conducting courses - just not Access. > >> > >> My first cut of a syllabus is below. Any suggestions? > >> > >> Thanks in advance. > >> Jim > >> > >> 1. Introduction to Databases > >> a. Systems [Software] Development Life Cycle (SDLC > >> b. Database Nomenclature > >> c. Naming Conventions > >> d. Normalization > >> e. Relational Database > >> f. Database design concepts > >> 2. Introduction to Access > >> a. Access Specifications > >> b. Short cut keys > >> c. Reserved Words > >> d. Access Objects > >> e. Relationships between tables > >> 3. Access Tables > >> a. Primary keys > >> b. Fields and records > >> c. Navigate through records > >> d. Enter, edit and delete records > >> e. Format tables > >> f. Filtering data in tables > >> 4. Designing Access Tables > >> a. Design view > >> b. Adding and naming fields > >> c. Assigning Field types > >> d. Assigning Field Properties > >> e. Creating Key Fields > >> f. Creating relationships > >> 5. Designing Access Queries > >> a. Using "And" and "Or" statements > >> b. "=" vs "like" > >> c. Parameter Queries > >> d. Auto lookup Queries > >> e. Advanced Queries (Nested Queries, Sub-queries) > >> f. Insert/Update/Delete/Make-Table Queries > >> 6. Access Form Design > >> a. Designing a Form > >> b. Formatting forms > >> c. Adding controls > >> d. Combo boxes / list boxes > >> e. Groups > >> f. MS Visual Basic > >> g. Using Wizards > >> 7. Access Report Design > >> a. Creating a report > >> b. Formatting reports > >> c. Using Wizards > >> > >> > >> Jim H. Hewson > >> Marketing/Proposal Support Manager > >> Karta Technologies, Inc. > >> 5555 Northwest Parkway > >> San Antonio, Texas 78249 > >> 210-582-3233 > >> jhewson at karta.com > >> > >> > >> > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 9 10:52:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 9 Feb 2004 16:52:43 +0000 Subject: [AccessD] Checking if a file is open Message-ID: <20040209165240.094942766DB@smithers.nildram.co.uk> You could try renaming it and bleep if you can't. Then rename it back if all ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Checking if a file is open Date: 09/02/04 20:27 > > the easiest (aaltough not the best) way would be to see what is the > number of the error you are getting, and write code for that error > prompting the user to close excel appl, and exiting the sub > > > Hi All, > > > > I am importing data from Excel into Access. The initial step in this > > process involves copying the data from the excel spreadsheet into a > > temporary copy of itself. This step fails if the file is open. Does > > anyone recommend a method that I could use to see if the file is already > > open (and then notify the user to shut it down?) > > > > TIA > > RyanS > > > > > > > > This e-mail and any attachment are confidential and contain proprietary > > information, some or all of which may be legally privileged. It is > > intended solely for the use of the individual or entity to which it is > > addressed. If you are not the intended recipient, please notify the > > author immediately by telephone or by replying to this e-mail, and then > > delete all copies of the e-mail on your system. If you are not the > > intended recipient, you must not use, disclose, distribute, copy, print > > or rely on this e-mail. > > > > Whilst we have taken reasonable precautions to ensure that this e-mail > > and any attachment has been checked for viruses, we cannot guarantee > > that they are virus free and we cannot accept liability for any damage > > sustained as a result of software viruses. We would advise that you > > carry out your own virus checks, especially before opening an > > attachment. > > > > The UK firm Ernst & Young LLP is a limited liability partnership > > registered in England and Wales with registered number OC300001 and is a > > member practice of Ernst & Young Global. A list of members? names is > > available for inspection at 1 More London Place, London, SE1 2AF, the > > firm?s principal place of business and its registered office. > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cfoust at infostatsystems.com Mon Feb 9 10:59:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 08:59:12 -0800 Subject: [AccessD] Re: DatePart Question Message-ID: Unfortunately, sometimes you have to deal with a hybrid, particularly if the client is governmental. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, February 06, 2004 8:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question Hear, hear! There is IMO a large distinction between OLTP and OLAP apps, and what works in the former cannot be assumed to work in the latter. And vice-versa. Data-entry and modification should never be confused with data-analysis, and asking a single database to do both is IMO stupid or lazy or both. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, February 03, 2004 5:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: DatePart Question The essential difference is that the date dimension table is generally used in data warehouse applications, not in regular data entry databases. They can be useful in the latter for reporting purposes only, but you can get by nicely if you've never had to slice and dice very large tables based on a bunch of date criteria. Note that fact tables in a datawarehouse are usually not normalized in the same way as regular database tables either (they are commonly 1NF), so dimension tables give you flexibility that it's hard to get any other way. Data warehousing may be slightly off-topic, but only because Access developers don't have to deal with it very often. I have, so I can appreciate both sides of the discussion. Charlotte Foust --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tim at irwingreenhouses.com Mon Feb 9 10:59:17 2004 From: tim at irwingreenhouses.com (Tim Thiessen) Date: Mon, 9 Feb 2004 10:59:17 -0600 Subject: [AccessD] Appending to table Message-ID: <001501c3ef2e$0ec79200$7800a8c0@timt> Hi Group! I have a table with the following data: ItemNo LotNo SeqNo Weeks WkNo 2556 401 1 3 0 2556 401 2 3 0 2556 401 3 6 0 What I need to do is to append records to the table so that the WkNo is filled in starting at 1 to Weeks-1. For example: ItemNo LotNo SeqNo Weeks WkNo 2556 401 1 3 0 2556 401 1 3 1 2556 401 1 3 2 2556 401 2 3 0 2556 401 2 3 1 2556 401 2 3 2 2556 401 3 6 0 2556 401 3 6 1 2556 401 3 6 2 2556 401 3 6 3 2556 401 3 6 4 2556 401 3 6 5 What is the best way for this to be accomplished? I'm blank at the moment. Tim Thiessen From cfoust at infostatsystems.com Mon Feb 9 11:03:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 09:03:13 -0800 Subject: [AccessD] Teaching Access Course Message-ID: I always give clients a brief explanation of relational theory and normalization so they can understand the principles of what I'm doing, and you can sometimes see the light go on for them. At that point they also stop arguing about the way the data structures should be designed and get back to what they want the application to do. Unfortunately, unless they use the theory on a daily basis, it doesn't stick. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Teaching Access Course I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Mon Feb 9 11:09:28 2004 From: JHewson at karta.com (Jim Hewson) Date: Mon, 9 Feb 2004 11:09:28 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127C4@nt04.karta.com> That was my thought also. Give them the principles of development. And go from there. Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course I always give clients a brief explanation of relational theory and normalization so they can understand the principles of what I'm doing, and you can sometimes see the light go on for them. At that point they also stop arguing about the way the data structures should be designed and get back to what they want the application to do. Unfortunately, unless they use the theory on a daily basis, it doesn't stick. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Teaching Access Course I really wanted to teach the basic stuff. I guess, what I consider basic is way over the top for most neophytes. Thanks Jim -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 10:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Teaching Access Course Teaching them to use an Access application is one thing. Teaching them to use Access itself is something else entirely. Unless these people are going to be developers, you don't need to do any of those things. If they *are* going to be developers, 2 days are not nearly enough. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Monday, February 09, 2004 7:56 AM To: 'AccessD' Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 9 11:54:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 9 Feb 2004 18:54:32 +0100 Subject: [AccessD] Appending to table In-Reply-To: <001501c3ef2e$0ec79200$7800a8c0@timt> References: <001501c3ef2e$0ec79200$7800a8c0@timt> Message-ID: <16836466345.20040209185432@cactus.dk> Hi Tim That can be done by a query with a cartesian join. First you need a table for multiplication, tbzFactor. It has one Integer field, Factor. Fill it with values from 1 to 10 or whatever your maximum number of weeks will be, say 100. Then, all you need is this query to display your missing rows: SELECT tblWeeks.ItemNo, tblWeeks.LotNo, tblWeeks.SeqNo, tblWeeks.Weeks, tbzMultiply.Factor AS WkNo FROM tblWeeks, tbzMultiply WHERE tbzMultiply.Factor < Weeks AND tblWeeks.WkNo = 0; Note the no inner or outer join is specified. To append the missing rows directly, turn the select query into an append query: INSERT INTO tblWeeks ( ItemNo, LotNo, SeqNo, Weeks, WkNo ) SELECT tblWeeks.ItemNo, tblWeeks.LotNo, tblWeeks.SeqNo, tblWeeks.Weeks, tbzMultiply.Factor AS WkNo FROM tblWeeks, tbzMultiply WHERE tbzMultiply.Factor < Weeks AND tblWeeks.WkNo = 0; To prevent multiple inserts from running the append query more than once, add one unique index on all five fields of table tblWeeks. /gustav > I have a table with the following data: > ItemNo LotNo SeqNo Weeks WkNo > 2556 401 1 3 0 > 2556 401 2 3 0 > 2556 401 3 6 0 > What I need to do is to append records to the table so that the WkNo is > filled in starting at 1 to Weeks-1. For example: > ItemNo LotNo SeqNo Weeks WkNo > 2556 401 1 3 0 > 2556 401 1 3 1 > 2556 401 1 3 2 > 2556 401 2 3 0 > 2556 401 2 3 1 > 2556 401 2 3 2 > 2556 401 3 6 0 > 2556 401 3 6 1 > 2556 401 3 6 2 > 2556 401 3 6 3 > 2556 401 3 6 4 > 2556 401 3 6 5 > What is the best way for this to be accomplished? I'm blank at the moment. > Tim Thiessen From tortise at paradise.net.nz Mon Feb 9 11:56:12 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 10 Feb 2004 06:56:12 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: Message-ID: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 artful at rogers.com Mon Feb 9 13:27:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 9 Feb 2004 14:27:38 -0500 Subject: [AccessD] Unique fields in N tables In-Reply-To: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: Given N tables, I want to construct a new table consisting of all the fields comprising all the tables, duplicates excluded. DAO/ADO doesn't matter. I'm not well-practised with fielddefs etc. Ideas? TIA, Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 From KIsmert at TexasSystems.com Mon Feb 9 15:24:18 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 9 Feb 2004 15:24:18 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227850@main2.marlow.com> Message-ID: <014c01c3ef53$14556290$2a3ca8c0@TEXASSYSTEMS.COM> I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. Look at the Longhorn Architectural diagram in the 'Pillars of Longhorn' page: http://msdn.microsoft.com/Longhorn/understanding/pillars/default.aspx The .Net CLR is part of the base OS services. You may not feel the .Net tsunami now in the open ocean, but it will hit with tremendous force when it arrives. The momentum behind COM is diminishing, and eventually it will only exist as legacy support. Marty Connelly's link enforces this critical point. Because the current Access is COM-based (actually, pre-COM objects in a COM wrapper), it has no future. It makes no sense to indefinitely extend a platform that can't directly integrate with the new, and superior, object architecture. Further, Access's traditional strength, its report engine, is being marginalized. SQL Server Reporting Services are being promoted by Microsoft as filling a gap in its reporting lineup, one once occupied by Access. This product has met a very warm response from the SQL Server community. That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken From dc8 at btinternet.com Mon Feb 9 16:03:16 2004 From: dc8 at btinternet.com (Chris Swann) Date: Mon, 9 Feb 2004 22:03:16 -0000 Subject: [AccessD] Rename a form via code ? Message-ID: Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann From clh at christopherhawkins.com Mon Feb 9 16:17:41 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:17:41 -0700 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: <45600-22004219221741556@christopherhawkins.com> Here's my deal. I need to squeeze two line sof text inot a label caption, and I need to do it programmatically. I've tried doing this: .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") And that leaves me with a label that has a little square character between the Foo and Bar text. There's GOT to be a way, and I'm betting this list knows what it is. Heeeeeeeeeeeeeeeeeeeeeeelp... -Christopher- From bruce_bruen at mlc.com.au Mon Feb 9 16:17:53 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:17:53 +1100 Subject: [AccessD] Rename a form via code ? Message-ID: Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Oldname, acForm, Newname End Sub "Chris Swann" To: "AccessD" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Rename a form via code ? dvisors.com 10/02/2004 09:03 Please respond to Access Developers discussion and problem solving Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Feb 9 16:17:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 14:17:51 -0800 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: Try vbCrLf. You need a full carriage return AND line feed. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Programmatically adding line breaks to a label caption? Here's my deal. I need to squeeze two line sof text inot a label caption, and I need to do it programmatically. I've tried doing this: .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") And that leaves me with a label that has a little square character between the Foo and Bar text. There's GOT to be a way, and I'm betting this list knows what it is. Heeeeeeeeeeeeeeeeeeeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 16:19:38 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:19:38 +1100 Subject: [AccessD] Rename a form via code ? Message-ID: OOPS! Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Newname, acForm, Oldname End Sub "Chris Swann" To: "AccessD" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Rename a form via code ? dvisors.com 10/02/2004 09:03 Please respond to Access Developers discussion and problem solving Hi all, Simple question. Is it possible to rename an Access form via code ? Could someone give me a pointer if it is possible. Thanks, Chris Swann _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Feb 9 16:18:22 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 9 Feb 2004 17:18:22 -0500 Subject: [AccessD] Programmatically adding line breaks to a label capt ion? Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7DF7@xlivmbx12.aig.com> .Controls(sLabelName).Caption = mrs("Foo") & VbCrLf & mrs("Bar") should do the trick. Lambert > -----Original Message----- > From: Christopher Hawkins [SMTP:clh at christopherhawkins.com] > Sent: Monday, February 09, 2004 5:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Programmatically adding line breaks to a label > caption? > > Here's my deal. I need to squeeze two line sof text inot a label > caption, and I need to do it programmatically. I've tried doing this: > > .Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") > > And that leaves me with a label that has a little square character > between the Foo and Bar text. There's GOT to be a way, and I'm > betting this list knows what it is. > > Heeeeeeeeeeeeeeeeeeeeeeelp... > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 9 16:31:45 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:31:45 -0700 Subject: [AccessD] Programmatically adding line breaks to a label caption? Message-ID: <84000-22004219223145786@christopherhawkins.com> D'oh! I do indeed thanks. -Christopher- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Programmatically adding line breaks to a label caption? Date: Mon, 9 Feb 2004 14:17:51 -0800 >Try vbCrLf. You need a full carriage return AND line feed. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Programmatically adding line breaks to a label >caption? > > >Here's my deal. I need to squeeze two line sof text inot a label >caption, and I need to do it programmatically. I've tried doing >this: > >.Controls(sLabelName).Caption = mrs("Foo") & Chr(13) & mrs("Bar") > >And that leaves me with a label that has a little square character >between the Foo and Bar text. There's GOT to be a way, and I'm >betting >this list knows what it is. > >Heeeeeeeeeeeeeeeeeeeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From dc8 at btinternet.com Mon Feb 9 16:30:25 2004 From: dc8 at btinternet.com (Chris Swann) Date: Mon, 9 Feb 2004 22:30:25 -0000 Subject: [AccessD] Rename a form via code ? In-Reply-To: Message-ID: Many thanks for the quick reply. I always seem to struggle with the simplest things !! BTW your first reply had me going for a minute or two ;-) Chris -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: 09 February 2004 22:20 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rename a form via code ? OOPS! Public Sub FormNameChange(Oldname As String, Newname As String) DoCmd.Rename Newname, acForm, Oldname End Sub snipped for brevity.................. From clh at christopherhawkins.com Mon Feb 9 16:33:37 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:33:37 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <160540-22004219223337647@christopherhawkins.com> In keeping with my recent trend of asking remedial questions... Suppose I need to make a word or two within a label caption appear bold, but leave the remainder of the caption at normal font weight? I know there's a way to do it; I've seen it on the list before. Anyone remember the details? -Christopher- From alan.lawhon at us.army.mil Mon Feb 9 16:31:07 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Mon, 9 Feb 2004 16:31:07 -0600 Subject: [AccessD] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 Message-ID: We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon From alan.lawhon at us.army.mil Mon Feb 9 16:31:07 2004 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Mon, 9 Feb 2004 16:31:07 -0600 Subject: [AccessD] [dba-SQLServer] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 Message-ID: We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 16:36:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 09:36:52 +1100 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: Two labels jamed together? After all they are static. "Christopher Hawkins" cc: Sent by: Subject: [AccessD] Bolding a selected word within a label caption? accessd-bounces at databasea dvisors.com 10/02/2004 09:33 Please respond to Access Developers discussion and problem solving In keeping with my recent trend of asking remedial questions... Suppose I need to make a word or two within a label caption appear bold, but leave the remainder of the caption at normal font weight? I know there's a way to do it; I've seen it on the list before. Anyone remember the details? -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Mon Feb 9 16:50:12 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 15:50:12 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <87040-22004219225012925@christopherhawkins.com> Can't do it. I need to get it all into the same control. -C- ---- Original Message ---- From: bruce_bruen at mlc.com.au To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Bolding a selected word within a label caption? Date: Tue, 10 Feb 2004 09:36:52 +1100 > > > > >Two labels jamed together? After all they are static. > > > > > > > "Christopher Hawkins" > > > accessd at databaseadvisors.com > > om> cc: > > > Sent by: Subject: >[AccessD] Bolding a selected word within a label caption? > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 10/02/2004 09:33 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > >In keeping with my recent trend of asking remedial questions... > >Suppose I need to make a word or two within a label caption appear >bold, but leave the remainder of the caption at normal font weight? >I know there's a way to do it; I've seen it on the list before. >Anyone remember the details? > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 9 16:49:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 14:49:45 -0800 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: You can't using the native Access labels. You'll have to use split labels or other controls. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 2:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Bolding a selected word within a label caption? Can't do it. I need to get it all into the same control. -C- ---- Original Message ---- From: bruce_bruen at mlc.com.au To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Bolding a selected word within a label caption? Date: Tue, 10 Feb 2004 09:36:52 +1100 > > > > >Two labels jamed together? After all they are static. > > > > > > > "Christopher Hawkins" > > > accessd at databaseadvisors.com > > om> cc: > > > Sent by: Subject: >[AccessD] Bolding a selected word within a label caption? > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 10/02/2004 09:33 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > >In keeping with my recent trend of asking remedial questions... > >Suppose I need to make a word or two within a label caption appear >bold, but leave the remainder of the caption at normal font weight? I >know there's a way to do it; I've seen it on the list before. Anyone >remember the details? > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Mon Feb 9 16:50:27 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Tue, 10 Feb 2004 09:50:27 +1100 Subject: [AccessD] Teaching Access Course References: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <009201c3ef5f$1ccc52b0$6401a8c0@user> Jim - I have also given many intro courses for intro, intermed and advanced and I think your suggested content is good - the only changes I would make are to remove VB (other than to explain why the tab for modules is there) and to remove advanced queries for intro. I think that it is really important to discuss how they would create a database in Word or Excel and then show them how that flat file structure could simply create duplicate records and unneccessarily repetitive data. That gives them an idea of the purpose of a relational database and basically gets you into normalization in a concrete way. I think it is good to create a course framework which has a point, ie., not just discussing design for the sake of it which will lose people but make the intro course all about creating a simple database to solve a business scenario - and make all exercises part of that - at the end they will have created a simple system.. Your suggested work on queries is a great idea as that is something they will probably all do straight away - either want to query an existing database or set up a simple one with queries (the and / or and like are really important there). But I think that I would stick to only select queries, and select queries with parameters for intro level. If you want to add another query topic then I would add calculated queries, but maybe not the delete / update / make table queries which could get beginners into a lot of trouble (only my opinion). It's great to be able to leave some time at the end of the 2nd day and ask people to discuss databases they have been asked to design (there are always some who are on the course as they have been asked to set something up). This gives the group the chance to tackle it together, throwing up suggested table structures and primary keys and relationships on the whiteboard - they can list their requried output and see if the design will work for that. If you have time to do 2 of these workups it seems to really help the students. Best of luck. Kath ----- Original Message ----- From: Jim Hewson To: 'AccessD' Sent: Tuesday, February 10, 2004 2:55 AM Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Feb 9 16:51:50 2004 From: john at winhaven.net (John Bartow) Date: Mon, 9 Feb 2004 16:51:50 -0600 Subject: [AccessD] Banyan Data Systems Message-ID: Does anyone on this list work for Banyan Data Systems? Please contact me off list. John R Bartow WinHaven Computer Services PO Box 130 Winneconne, WI 54986-0130 Office: 920-582-7574 john at winhaven.net Outgoing mail is certified Virus Free. Checked by Symantec's Norton anti-virus system. From wdhindman at bellsouth.net Mon Feb 9 16:59:52 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 9 Feb 2004 17:59:52 -0500 Subject: [AccessD] Bolding a selected word within a label caption? References: <160540-22004219223337647@christopherhawkins.com> Message-ID: <003f01c3ef60$6d250f30$6101a8c0@dejpolsys> http://www.lebans.com/mixbold-plain.htm William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Monday, February 09, 2004 5:33 PM Subject: [AccessD] Bolding a selected word within a label caption? > In keeping with my recent trend of asking remedial questions... > > Suppose I need to make a word or two within a label caption appear > bold, but leave the remainder of the caption at normal font weight? > I know there's a way to do it; I've seen it on the list before. > Anyone remember the details? > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From joeget at vgernet.net Mon Feb 9 17:08:46 2004 From: joeget at vgernet.net (John Eget) Date: Mon, 9 Feb 2004 18:08:46 -0500 Subject: [AccessD] access report graph to power point Message-ID: <014201c3ef61$c1cf2470$1ac2f63f@Desktop> I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John From clh at christopherhawkins.com Mon Feb 9 17:11:40 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Mon, 9 Feb 2004 16:11:40 -0700 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: <189290-22004219231140817@christopherhawkins.com> Wait - I can use a text box if I set Enabled to false and Locked to true. So suppose I have to make a selecteed word in a text box bold instead...is that do-able in VBA? -C- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Bolding a selected word within a label caption? Date: Mon, 9 Feb 2004 14:49:45 -0800 >You can't using the native Access labels. You'll have to use split >labels or other controls. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:50 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Bolding a selected word within a label >caption? > > >Can't do it. I need to get it all into the same control. > >-C- > >---- Original Message ---- >From: bruce_bruen at mlc.com.au >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Bolding a selected word within a label >caption? >Date: Tue, 10 Feb 2004 09:36:52 +1100 > >> >> >> >> >>Two labels jamed together? After all they are static. >> >> >> >> > >> > >> >> "Christopher Hawkins" > >> > >> >> >accessd at databaseadvisors.com > >> >> om> cc: > >> > >> >> Sent by: Subject: >>[AccessD] Bolding a selected word within a label caption? > >> >> accessd-bounces at databasea > >> > >> >> dvisors.com > >> > >> >> > >> > >> >> > >> > >> >> 10/02/2004 09:33 > >> > >> >> Please respond to Access > >> > >> >> Developers discussion and > >> > >> >> problem solving > >> > >> >> > >> > >> >> > >> > >> >> >> >> >> >>In keeping with my recent trend of asking remedial questions... >> >>Suppose I need to make a word or two within a label caption appear >>bold, but leave the remainder of the caption at normal font weight? >I >>know there's a way to do it; I've seen it on the list before. >Anyone >>remember the details? >> >>-Christopher- >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Feb 9 17:14:04 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 15:14:04 -0800 Subject: [AccessD] Bolding a selected word within a label caption? Message-ID: No. Formatting is applied at the control level, not within the data. Try the link to Stephen Lebans' site that someone else posted. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Monday, February 09, 2004 3:12 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Bolding a selected word within a label caption? Wait - I can use a text box if I set Enabled to false and Locked to true. So suppose I have to make a selecteed word in a text box bold instead...is that do-able in VBA? -C- ---- Original Message ---- From: cfoust at infostatsystems.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Bolding a selected word within a label caption? Date: Mon, 9 Feb 2004 14:49:45 -0800 >You can't using the native Access labels. You'll have to use split >labels or other controls. > >Charlotte Foust > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Monday, February 09, 2004 2:50 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Bolding a selected word within a label >caption? > > >Can't do it. I need to get it all into the same control. > >-C- > >---- Original Message ---- >From: bruce_bruen at mlc.com.au >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Bolding a selected word within a label >caption? >Date: Tue, 10 Feb 2004 09:36:52 +1100 > >> >> >> >> >>Two labels jamed together? After all they are static. >> >> >> >> > >> > >> >> "Christopher Hawkins" > >> > >> >> >accessd at databaseadvisors.com > >> >> om> cc: > >> > >> >> Sent by: Subject: >>[AccessD] Bolding a selected word within a label caption? > >> >> accessd-bounces at databasea > >> > >> >> dvisors.com > >> > >> >> > >> > >> >> > >> > >> >> 10/02/2004 09:33 > >> > >> >> Please respond to Access > >> > >> >> Developers discussion and > >> > >> >> problem solving > >> > >> >> > >> > >> >> > >> > >> >> >> >> >> >>In keeping with my recent trend of asking remedial questions... >> >>Suppose I need to make a word or two within a label caption appear >>bold, but leave the remainder of the caption at normal font weight? >I >>know there's a way to do it; I've seen it on the list before. >Anyone >>remember the details? >> >>-Christopher- >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 17:28:35 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 10:28:35 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: (Please do not take this as a statement of diminution of Access applications) In the last 10 or so years I have developed, I suppose, in excess of 200 Access databases in the course of my work. None of these of which I speak are "commercial multiuser business applications" ( I have developed and maintained several of these as well). These databases have varied in size of one to hundreds of tables, zero to dozens of forms, zero to dozens of reports, been used by one to (in one case) 62 concurrent users and have had between zero and several thousand lines of code. They have been single tier, FE/BE, FE/multiple BE and have contained linked tables, have used foreign desktop rdbms (FoxPro, BDE, MSDE) and foreign server RDBMS (SQLServer, Oracle, Sybase, MySQL) data linkages. I have loaded and unloaded probably tens, possibly hundreds, of millions of data rows from text files, web pages, mail clients, spreadsheets and even DB2 databases into and out of these databases. Why? I am a consultant in information management. I often deal with large sets of data, often with very complex relationships or with rapidly varying relationships. Occasionally we have needed to develop vast test databases containing synthetic or at least extremely disguised data. Sometimes I have needed to explore a particular information factor with a client that involves an extremely simple demo dataset, for example to show a small businessman how (i.e. the technical details) he could use a secure website for his "top" customers to place orders and track production. I turned to Access at Ver 1.0 when we needed to generate a set of 200,000 futures trades as test data. The choices were to do it in Excel, get a programmer to do it in VBasic(? memory fails me) or try and do it ourselves. The Excel route was discounted as we couldn't get the statistical profiles needed for the trade flow across the whole series due to the row limit. So I thought it was about time I learned how to use this new fangled database thingy. At that time I had a fairly good rdb skillset, some experience in "playing" with the Access front end - forms and queries etc but no access basic expertise. I completed the 200,000 row profile we needed in 16 hours. Furthermore, we also had the ability to vary the profile and regenerate the dataset in minutes. The Basic programmer had quoted me 5 days to do the job as a single shot exercise. Three years later I heard that the exchange was still using the database to generate test data - the profile changing with every new commodity added to the floor. Since then I have used Access in just about every contract I have had. >From data quality reviews, security reviews, information restructuring assignments through to prototype GUIs, prototype databases and even in process controllers and business management anlyses. The beauty of Access in my environment lies in its immediately accessible power - build your solution and its deployed. End of story. It saddens, if not infuriates me, that Microsoft and these industry "pundits" have for several years been promoting the demise of Access, the Jet engine and the brilliant desktop analytic toolset contrived by the originators. First off, the bloody "murder" of DAO. Amusingly denied by MS publications wherein they stated that DAO was still the best direct access method for JET and would remain so. Now, totally unsupported. I dont "need" the features offered by ADO. My data, when I'm working with it is all within the Jet database, all readily and efficiently accessible thorugh DAO. I am not trying to build a massive, scalable, one size fits all application using a desktop database. I need a tool that lets me do sophisticated manipulations of large amounts of data in a desktop environment. DAO wasn't broken, so they made it extinct. Secondly, the so far unsubstantiated rumours of the death of the Jet engine. Now it seems imminent unless Getz hasn't been too diligent on his confirmation of rumours. And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine? I presume Getz prefers the bus to a Ferrari as well. Anyway, to get back to Jet. Now I willl grant that, at times, I have resorted to hevier duty engines for speed reasons on more complex analyses. But in the main the Jet engine has provided all the speed needed, and also some very sophisticated query handling. So why does MS need to get rid of Jet? I just dont understand the mentality in this type of thinking. Is it "its just a desktop database" and the MS marketers want to be mainframe programmers? Is it, "Access is just a toy incapable of serious application"? HAH! Finally, THE EXCRUTIATING AGONY of forms design and data binding in VS and VS.net compared to Access, leaves me strangely nausious in the light of statements such as "It's unclear at this point how well-integrated with Visual Studio the Access designers might be". I would think totally disconnected and never to be considered might be the better approach. To me then, these furphy's being propogated by Getz (and I do not know how well connected he is,and therefore how much weight to assign them) are dangerous and belittling to a great product. It isn't a matter of jumping on the "technology revolution" bandwagon. I dont want to be "left behind with obsolete skills". So take a letter Miss Simth, Dear Bill, The Access tool is damned fine now, thanks very much. Squeaky clean, well oiled and working well. Please dont let the kids play in it. yours etc.. Bruce p.s. Stuart McLachlan's comment about calling this new pancea DDE had me definitely smiling. I well recall the MS marketspeak that went with COM/DCOM had a melody line very similar to Box's/Loney's statements. I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. ...... That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 9 17:27:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 10 Feb 2004 09:27:17 +1000 Subject: [AccessD] Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127BA@nt04.karta.com> Message-ID: <4028A3F5.4689.24803D@localhost> On 9 Feb 2004 at 9:55, Jim Hewson wrote: > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > Do you have any experience designing training? The basic principle of course design is not to start with "how long", but with "what". What are you trying to produce - Computer Science Graduates, Analyst/Programmers or Competent Users? You need to start by stating a Course Objective and then breaking that down into training needs to achieve that objective. Once you have done that, decide how many of those objectives can be achieved in your "two-day course" My first cut of a syllabus is below. Any suggestions? > That looks like a classic one year syllabus for an "educational" institution, not a two day training course. Forget teaching them concepts, train then to do things - this is workplace oriented training, not academia. I'd say that a reason amount of content for a two day course would be to train them to use a developed Access application and to create their own queries. If they are good enough, you may have time to teach them to create simple reports using Wizards. Day 1: Basic concepts of what a relational database and why it is used ie: data stored in different tables based on context, the *very* basic principles of normalisation (WITHOUT even using the word) and the benefits of it (consistent data, only change in one place etc) The building blocks of Access: In simple terms - what is a table, query, form, report and what are they used for (mention VBA under the hood as the *magic bit* that makes it work, but don't show then how to get into the editor) How to navigate around forms ; how to use Combos (F4 key, autofilling), listboxes, checkboxes/option buttons, hotkeys, use of navigation buttons to move through a recordset, what the record selectors do, what the "dirty" icon means, when dirty records are saved, switching between form and datasheet view Form Filtering/Sorting using the main menu/toolbar items and the right click menu. Basic use of Reports: Printing/Previewing reports including changing printers/printing specific pages, zooming in preview mode. Day 2 Building queries using the QBE grid. Selecting tables/queries to use Basic concepts of keys, datatypes, creating joins Building criteria (use of and/or, <,>, =, Between, Not, Null, Date(), Year(),Month() etc) If sufficient time: Using the Report Wizard. > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bruce_bruen at mlc.com.au Mon Feb 9 17:44:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 10:44:25 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: NO ARCHIVE ... besides which, if Access dies JC and DW would probably have to go into politics to command the same audiences :-) From stuart at lexacorp.com.pg Mon Feb 9 17:52:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 10 Feb 2004 09:52:09 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <4028A9C9.20539.3B423A@localhost> On 10 Feb 2004 at 10:28, bruce_bruen at mlc.com.au wrote: > > > So take a letter Miss Simth, > > Dear Bill, > The Access tool is damned fine now, thanks very much. Squeaky > clean, well oiled and working well. > Please dont let the kids play in it. >yours etc.. Here,here! I for one will be using Access for many years yet , regardless of what Redmond says. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jimdettman at earthlink.net Mon Feb 9 18:14:29 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 9 Feb 2004 19:14:29 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: Bruce, <> Well just in case you missed it, JET is officially dead. No new versions are planned and DAO is frozen at release 3.61. Is it still around? Certainly. Will it still be around for years? Yes. Can you still use it in a new app? Yes. Would you? Sure (depending on the app). But will we see any new features? No. Will you still see "official" support in a few years? No. That's what I would call dead. << And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine?>> I guess that would depend on the file system wouldn't it? And while JET may be a "specifically tailored and tuned rdb query engine", it stinks when it comes to stability over a network. It's very sensitive to network timeouts and generally complains long before any other network app does. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 09, 2004 6:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) (Please do not take this as a statement of diminution of Access applications) In the last 10 or so years I have developed, I suppose, in excess of 200 Access databases in the course of my work. None of these of which I speak are "commercial multiuser business applications" ( I have developed and maintained several of these as well). These databases have varied in size of one to hundreds of tables, zero to dozens of forms, zero to dozens of reports, been used by one to (in one case) 62 concurrent users and have had between zero and several thousand lines of code. They have been single tier, FE/BE, FE/multiple BE and have contained linked tables, have used foreign desktop rdbms (FoxPro, BDE, MSDE) and foreign server RDBMS (SQLServer, Oracle, Sybase, MySQL) data linkages. I have loaded and unloaded probably tens, possibly hundreds, of millions of data rows from text files, web pages, mail clients, spreadsheets and even DB2 databases into and out of these databases. Why? I am a consultant in information management. I often deal with large sets of data, often with very complex relationships or with rapidly varying relationships. Occasionally we have needed to develop vast test databases containing synthetic or at least extremely disguised data. Sometimes I have needed to explore a particular information factor with a client that involves an extremely simple demo dataset, for example to show a small businessman how (i.e. the technical details) he could use a secure website for his "top" customers to place orders and track production. I turned to Access at Ver 1.0 when we needed to generate a set of 200,000 futures trades as test data. The choices were to do it in Excel, get a programmer to do it in VBasic(? memory fails me) or try and do it ourselves. The Excel route was discounted as we couldn't get the statistical profiles needed for the trade flow across the whole series due to the row limit. So I thought it was about time I learned how to use this new fangled database thingy. At that time I had a fairly good rdb skillset, some experience in "playing" with the Access front end - forms and queries etc but no access basic expertise. I completed the 200,000 row profile we needed in 16 hours. Furthermore, we also had the ability to vary the profile and regenerate the dataset in minutes. The Basic programmer had quoted me 5 days to do the job as a single shot exercise. Three years later I heard that the exchange was still using the database to generate test data - the profile changing with every new commodity added to the floor. Since then I have used Access in just about every contract I have had. >From data quality reviews, security reviews, information restructuring assignments through to prototype GUIs, prototype databases and even in process controllers and business management anlyses. The beauty of Access in my environment lies in its immediately accessible power - build your solution and its deployed. End of story. It saddens, if not infuriates me, that Microsoft and these industry "pundits" have for several years been promoting the demise of Access, the Jet engine and the brilliant desktop analytic toolset contrived by the originators. First off, the bloody "murder" of DAO. Amusingly denied by MS publications wherein they stated that DAO was still the best direct access method for JET and would remain so. Now, totally unsupported. I dont "need" the features offered by ADO. My data, when I'm working with it is all within the Jet database, all readily and efficiently accessible thorugh DAO. I am not trying to build a massive, scalable, one size fits all application using a desktop database. I need a tool that lets me do sophisticated manipulations of large amounts of data in a desktop environment. DAO wasn't broken, so they made it extinct. Secondly, the so far unsubstantiated rumours of the death of the Jet engine. Now it seems imminent unless Getz hasn't been too diligent on his confirmation of rumours. And while were on that topic..... where does he get off saying that a general purpose O/S level file management system is a better idea than a specifically tailored and tuned rdb query engine? I presume Getz prefers the bus to a Ferrari as well. Anyway, to get back to Jet. Now I willl grant that, at times, I have resorted to hevier duty engines for speed reasons on more complex analyses. But in the main the Jet engine has provided all the speed needed, and also some very sophisticated query handling. So why does MS need to get rid of Jet? I just dont understand the mentality in this type of thinking. Is it "its just a desktop database" and the MS marketers want to be mainframe programmers? Is it, "Access is just a toy incapable of serious application"? HAH! Finally, THE EXCRUTIATING AGONY of forms design and data binding in VS and VS.net compared to Access, leaves me strangely nausious in the light of statements such as "It's unclear at this point how well-integrated with Visual Studio the Access designers might be". I would think totally disconnected and never to be considered might be the better approach. To me then, these furphy's being propogated by Getz (and I do not know how well connected he is,and therefore how much weight to assign them) are dangerous and belittling to a great product. It isn't a matter of jumping on the "technology revolution" bandwagon. I dont want to be "left behind with obsolete skills". So take a letter Miss Simth, Dear Bill, The Access tool is damned fine now, thanks very much. Squeaky clean, well oiled and working well. Please dont let the kids play in it. yours etc.. Bruce p.s. Stuart McLachlan's comment about calling this new pancea DDE had me definitely smiling. I well recall the MS marketspeak that went with COM/DCOM had a melody line very similar to Box's/Loney's statements. I think Microsoft's intentions are very clear. .NET and XML-based services are the future. COM is dead. The current Access platform is dead. ...... That leaves only smart, data-aware forms as Access's last, best feature. But Getz is now enthusiastically talking about getting rid of that, too. It seems clear to me that, whatever it may be called, the next major version of Access will be a replacement, rather than an evolutionary change. Microsoft has given us the courtesy of advance notice, along with about two years to make a smooth transition. I, for one, do not intend to be caught with outdated skills when the current Access becomes obsolete. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shait at mindspring.com Mon Feb 9 18:17:53 2004 From: shait at mindspring.com (Stephen Hait) Date: Mon, 9 Feb 2004 19:17:53 -0500 Subject: [AccessD] [dba-SQLServer] X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to S QL Server 2000 In-Reply-To: Message-ID: <4027DCE1.15509.15C15786@localhost> As far as I know this difference in how True is represented in TrueFalse/bit fields has existed between Access and SQL Server since at least SQL Server 6.5. Access uses -1 for True, 0 for False while SQL Server uses 1 for True and 0 for False. One approach that allows you to work the same way with both systems is to only check against a False condition. Rather than test for -1 or 1 to test for True, just test for <> 0 instead. Stephen > We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the > weekend. The front end runs Access 2000 GUI client applications. > > After the conversion, we are experiencing a problem with Access > queries that select data from the [converted] back end SQL Server > tables. The problem involves a hardcoded "-1" (i.e. "True" logic > condition criteria) in the Access queries testing against a "Bit" > data type field in the SQL Server back end. With the SQL Server 7.0 > backend tables, the Access queries were working just fine. In > converting to SQL Server 2000, it appears that previously populated > bit fields populated with the value of "-1" ("True") got > arbitrarily switched to a value of "1" during the conversion. (The > "-1" values in the back end table ["Bit" fields] got changed, NOT > the "-1" criteria value in the front end query cells!) Further, > when the query runs against the [converted] back end table, the "-1" > criteria (from the Access query) is no longer recognized - the query > doesn't return data. > > Needless to say, we are no longer getting the expected results (from > execution of the queries) after the conversion from SQL Server 7.0 > to SQL Server 2000. I suspect that Microsoft implemented a change > in the behaviour of "Bit" fields from version 7.0 to SQL Server > 2000. While I search the Knowledge Base and try to track this down, > can anybody confirm whether this is the case? > > We have a lot of queries (and VBA code) that test the "-1" value > against fields of data type "Bit", so we don't want to start > changing these hardcoded criteria (from "-1" to just plain "1") > until and unless we are ABSOLUTELY SURE that this is a SQL Server > version 7.0 to version 2000 conversion anomaly. > > TIA for any info or enlightenment on this problem. > > > Alan C. Lawhon > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Mon Feb 9 19:16:38 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Mon, 9 Feb 2004 20:16:38 -0500 Subject: [AccessD] Unique fields in N tables References: Message-ID: <022701c3ef73$89726940$6401a8c0@default> Arthur, Did you do this yet? I have some code ... Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Monday, February 09, 2004 2:27 PM Subject: [AccessD] Unique fields in N tables > Given N tables, I want to construct a new table consisting of all the fields > comprising all the tables, duplicates excluded. DAO/ADO doesn't matter. I'm > not well-practised with fielddefs etc. > > Ideas? > > TIA, > Arthur > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon Feb 9 19:19:51 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 9 Feb 2004 19:19:51 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <017a01c3ef73$fbf571b0$2a3ca8c0@TEXASSYSTEMS.COM> >>Dear Bill, >>The Access tool is damned fine now, thanks very much. Squeaky clean, well >>oiled and working well. >>Please dont let the kids play in it. >>yours etc.. What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Say, how 'bout this new saw, with the "Genuine Microsoft" hologram on the blade? Its got a scroll wheel on the handle! Happy with what you have, you say? Well, that's being mighty disrespectful to Microsoft's future revenue stream. Seriously, though, we are witnessing the dilemma of monopoly. Once a company achieves effective control of a market, it first grows horizontally, expanding to take as much share as it possibly can. However, it can't rest there. The company must grow. Thus, it expands in the only way left: vertically. It tries to extract more revenue, more frequently, from its existing base. The catch is, software doesn't wear out. And, to its credit, Microsoft has done a good enough job with many of its products that it has created a truly thorny problem: contented customers. To combat this, it must continually obsolete its old products, and sell us the new. Microsoft's growth must come out of your hide and mine, my friend. The question is, what's your threshold of pain? Of course, this has been a one-sided presentation. Microsoft has many valid reasons to drive change. It is facing a security crisis with its current software. Business needs and hardware are evolving. And there are many genuine improvements to be made. But still, it does nothing that isn't deeply intended to further its own financial interests. Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken From cfoust at infostatsystems.com Mon Feb 9 19:26:33 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Feb 2004 17:26:33 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Monday, February 09, 2004 5:20 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) >>Dear Bill, >>The Access tool is damned fine now, thanks very much. Squeaky clean, >>well oiled and working well. Please dont let the kids play in it. >>yours etc.. What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Say, how 'bout this new saw, with the "Genuine Microsoft" hologram on the blade? Its got a scroll wheel on the handle! Happy with what you have, you say? Well, that's being mighty disrespectful to Microsoft's future revenue stream. Seriously, though, we are witnessing the dilemma of monopoly. Once a company achieves effective control of a market, it first grows horizontally, expanding to take as much share as it possibly can. However, it can't rest there. The company must grow. Thus, it expands in the only way left: vertically. It tries to extract more revenue, more frequently, from its existing base. The catch is, software doesn't wear out. And, to its credit, Microsoft has done a good enough job with many of its products that it has created a truly thorny problem: contented customers. To combat this, it must continually obsolete its old products, and sell us the new. Microsoft's growth must come out of your hide and mine, my friend. The question is, what's your threshold of pain? Of course, this has been a one-sided presentation. Microsoft has many valid reasons to drive change. It is facing a security crisis with its current software. Business needs and hardware are evolving. And there are many genuine improvements to be made. But still, it does nothing that isn't deeply intended to further its own financial interests. Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Feb 9 19:29:59 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 09 Feb 2004 17:29:59 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen In-Reply-To: Message-ID: I agree with your comments. After a recent interview, it was noted that a programmers' skill sets are only good for three years. Those degrees and certifications you have been able obtain within that ever moving window are the only bankable products you have. Ten plus years of knowlege is not. Clients have these expectancies and demand the latest and greatest. We must thank Microsoft for this every changing market, of which they control so well. I wonder if the process is more to force sales and intergrate their products lines into the OS so as to eliminate all competition....but these are idle musings. Lucky the programmer who has found themselves supporting older database systems that have proved too large and expensive to change and so that they have been able to really master the product. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Monday, February 09, 2004 4:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen Although Ken certainly has the inside soup, it certainly sounds like a lot of conjecture on his part about where Access might be going. The file system changes makes a lot of sense, as we all know database container corruption is the #1 problems with Access/JET, and JET is certainly on its way out. As for the rest, I really don't know. Yes, .Net is not going away, but it is not going anywhere real fast either at the moment (contrary to what Microsoft would like you to believe). For most, it has been a yawn at best from what I've seen. The learning curve is quite steep and developers are just plain tired of switching gears every few years. Look how many of us still use Access 97 or 2000. I think we need to move a little more into the future before we'll have a semi-firm idea of where it's heading. Anything at this point is just idle speculation. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 08, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] Next Version of Access 12 Musings on what might happen Thought this might be of interest. What's Next? Microsoft hints at what the future might hold for Access. By Ken Getz http://accessvbsql.advisor.com/doc/13516 -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 9 19:32:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 10 Feb 2004 12:32:21 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Mon Feb 9 20:28:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 10 Feb 2004 15:28:18 +1300 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! References: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: <01b701c3ef7d$8b7fe0f0$1e00a8c0@cheqsoft.local> mmm Seems Shift F9 is not the full answer. It worked once...only.... Is there some way to unlock a memo which is erroneously locked??? Kind Regards David ----- Original Message ----- From: Tortise To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 6:56 AM Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Feb 10 02:00:57 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 10 Feb 2004 09:00:57 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> Well my friends.... I noticed Ms is using a modified Jet more and more for OS management. I'm guessing here but I think to know why MS would stop with Jet. Because they are not gooing to put the database in to a filesystem, but the filesystem in a database! And thats gonna be jet. Jet has proven to be so fast and performing, that the only option they have to resolve the slowness of NTFS. Think about it! Is this not more logical? How do you manage a giant list of files in a fast way? -Exchange server is proven for years now that Jet can be very fast and good. -DHCP Server -DNS server (not sure) -WINS server -Briefcase All using Jet. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 2:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Tue Feb 10 04:06:20 2004 From: joeget at vgernet.net (John Eget) Date: Tue, 10 Feb 2004 05:06:20 -0500 Subject: [AccessD] XP - access report graph to power point slide process Message-ID: <005901c3efbd$8bf1c180$a4c2f63f@Desktop> Access XP - I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John From gustav at cactus.dk Tue Feb 10 03:04:41 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 10:04:41 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: References: Message-ID: <875288764.20040210100441@cactus.dk> Hi Bruce Did you have a look at Rekall and BlackAdder: http://www.thekompany.com/products/ which will bring Python or Ruby to you as well ... I haven't had the time myself, and I wouldn't expect too much, but for some situations they could prove useful. /gustav > and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do > this work as soon as there is an equivalent IDE to Access. > I've tried Eclipse and Eiffel but dang it I just cant get the hang of > theese new fangled lenguages! Looking at mono - not sure if its the best > or worst of both worlds. Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth) > What!? The old saw is cutting wood just fine? Sharpen it now and then, and > it'll be good for years, you say? From gustav at cactus.dk Tue Feb 10 03:50:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 10:50:52 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D257@stekelbes.ithelps.local> Message-ID: <1018059989.20040210105052@cactus.dk> Hi Erwin > Well my friends.... > I noticed Ms is using a modified Jet more and more for OS management. > I'm guessing here but I think to know why MS would stop with Jet. > Because they are not gooing to put the database in to a filesystem, but > the filesystem in a database! > And thats gonna be jet. > Jet has proven to be so fast and performing, that the only option they > have to resolve the slowness of NTFS. > Think about it! Is this not more logical? > How do you manage a giant list of files in a fast way? > -Exchange server is proven for years now that Jet can be very fast and > good. > -DHCP Server > -DNS server (not sure) > -WINS server > -Briefcase > All using Jet. The idea of using a database engine for file storage is not new - it may even be contradictory as the filesystem itself is a database, though an extremely basic one where the "engine" is an essential part of the OS. Oracle materialized this idea a couple of years ago; the model is roughly to cut down the OS (Linux) to handle one set of files - the database - and add an interface to the engine which mimics a drive. Nice idea - you may call it a bootable database engine - which gives you all the power, security, features, and years of experience of a heavy-duty engine. Allow me to quote myself from Oct. 2002: A part of an operating system is at least one file system. But the file system is nothing more than a specialized database, so storing images and documents as files just means to store them in another database system; you can say that an mdb file is a database in a database. When Drew puts an mdb into a blob field in his Access database, he just goes one step further. This is in line with Oracle which ultimately offer their database system with an extension which allows it to be used as a true file repository with an interface which simulates a file system. The ring is closed. However, this Oracle system runs on a rudimentary file system though, which is optimized for handling the Oracle engine only ... In fact, storing pictures, documents, etc. - or objects if you like - outside an mdb only represents two challenges: to keep the pointers to the file names and these file names in sync, and to handle security. Meeting the first is not difficult. Adding or updating, say, images is nothing more than storing the images in a directory and the paths of the images in the mdb. Deleting an image is done by either removing the file or deleting the path in the mdb or, preferably, both. Deleting paths to images creates orphaned files which can be deleted at the same time by the app or later by a clean-up routine - comparable to compacting the database file. Paths can be stored relatively to the mdb file - in the same directory or one or more subdirectories - or to a preset path which is used as a prefix; this is useful if you wish to store the files somewhere else like on another server. The prefix path must, of course, be available for the user. Never should you store the absolute path to the files, like "g:\images" as this may leave the mdb non-portable without a manual update of the stored paths. The second challenge, security, is more difficult to handle and will be specific to the actual environment as the user must have the same rights to add, update, delete and retrieve files as for the records storing the paths of those in the Access database. One possible way is to store the files on the server in a directory with no rights granted for the users and create groups in Access and for access to the file server directory with equal rights. Then, when the user opens the app, the group is read and a mapping of the restricted directory with the actual rights of the user's group is created by the app. This would also put an end to the discussion of where pictures should be stored: inside the database or as discrete files. In this context a cab file is also a small database. As another example - moving from the cab file to the other extreme - Lotus Notes invented the idea of storing all documents in a way which is logic and searchable for the user leaving the physical storage to the engine and the administrator. Thus, nothing new here. /gustav From roz.clarke at donnslaw.co.uk Tue Feb 10 04:09:03 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 10 Feb 2004 10:09:03 -0000 Subject: [AccessD] XP - access report graph to power point slide proce ss Message-ID: <61F915314798D311A2F800A0C9C83188047C6A91@dibble.observatory.donnslaw.co.uk> There is a section in the ADH on using Access as an automation client with PowerPoint. You need to get a handle on the PowerPoint object model, so I'd start with loading the reference and having a play. Apologies if you've already done this. A chart is a graphical object and from what I can see you might have to save your Access chart as a file and then import it into your presentation. HTH Roz -----Original Message----- From: John Eget [mailto:joeget at vgernet.net] Sent: 10 February 2004 10:06 To: AccessD at databaseadvisors.com Subject: [AccessD] XP - access report graph to power point slide process Access XP - I have an access report with a graph that needs to have the graph transferred/copied to a power point slide. Does anyone have an idea where to go or start without going to design and do a copy/paste routine? John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [AccessD] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [AccessD] [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Feb 10 06:03:54 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 07:03:54 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: << Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth)>> Watch it, you may be in violation of your license agreement. Recently a big brew ha ha had erupted over the fact that VFP developers were starting to run VFP apps under Linux. Microsoft quickly squashed it. Went as far as to get a speaker to cancel their talk. I think if you read your agreement, you'll find that your only allowed to run Access on Windows OS's. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 09, 2004 8:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) and by golly gosh. I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. I've tried Eclipse and Eiffel but dang it I just cant get the hang of theese new fangled lenguages! Looking at mono - not sure if its the best or worst of both worlds. Even got desparate enough to try running access inside wine (hehehehe dribble dribble froth froth) What!? The old saw is cutting wood just fine? Sharpen it now and then, and it'll be good for years, you say? Which brings us back to a fundamental choice: keep trudging on the Microsoft treadmill, or get off. Both options have their plusses and drawbacks. But at least Open Source will never force you to abandon software you like. -Ken _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Tue Feb 10 06:24:53 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 07:24:53 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <01b701c3ef7d$8b7fe0f0$1e00a8c0@cheqsoft.local> Message-ID: What your probably bumping into is read locks on the LVPs (Long Value Pages). Read locks allow multiple users to read long value data, but prevent others from writing to it while others are reading. Starting with JET 3.0, the persistence of read locks is determined by the currency of a record. So a read lock on a long value page will remain until the user leaves that record. There is an exception though; if the LVP contains multiple rows of data JET should be releasing the lock before that. Some things you might try: 1. Change the Refresh Interval 2. Change the Update Retry Interval 3. Change the Number of Update Retries. 4. Changing the Recycle LVP page setting These above are all JET settings. And of course anything you can do to get the user off the record faster would be better. Switching to Optimistic locking (No Locks) with page locks or Pessimistic (Edited Record) with Record Level locking might also help depending on the design of the app and the typical patterns of usage. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! mmm Seems Shift F9 is not the full answer. It worked once...only.... Is there some way to unlock a memo which is erroneously locked??? Kind Regards David ----- Original Message ----- From: Tortise To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 6:56 AM Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Thanks John, That gave me enough to resolve it. Also Ref http://www.utteraccess.com/forums/access/access605200.html For anyone else simply doing a refresh unlocks it! Kind Regards David From: John W. Colby To: Access Developers discussion and problem solving Sent: Tuesday, February 10, 2004 2:38 AM Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! Memo fields are treated differently than the rest of the fields in a record. They are simply pointers out to a storage area where the actual memo is stored. Memos still have the "page locking" issue where if another user is editing another memo that resides in the same physical page as your memo, yours will be locked. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, February 09, 2004 5:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi I have a database which intermittently reports memo fields as being locked. However they are not! Editing the memo field it refuses to update on attempted save, however text fields still update fine. (!) It is a database from A2K, that went to A97, back to A2k and now is running (converted) in A2k3. (Over time!) Repair and compaction makes no difference, neither does logging off and back on to the windows session. The same behaviour is exhibited when editing the table as it is from a form. I'm stumped! As always any guidance is appreciated. Kind Regards 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Tue Feb 10 07:30:08 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Tue, 10 Feb 2004 13:30:08 -0000 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) In-Reply-To: Message-ID: <003e01c3efda$003c32c0$bf00a8c0@dabsight> Don't know about VFP, but my Office licence says that I can "install and use one copy of the Software Product on a single computer, device, workstation, terminal, or other digital electronic or analog device". No mention of operating systems. Do you know that VFP has a different kind of licence? John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: 10 February 2004 12:04 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what mighthappen(RANT) > > > << Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth)>> > > Watch it, you may be in violation of your license > agreement. Recently a big brew ha ha had erupted over the > fact that VFP developers were starting to run VFP apps under > Linux. Microsoft quickly squashed it. Went as far as to get > a speaker to cancel their talk. > > I think if you read your agreement, you'll find that your > only allowed to run Access on Windows OS's. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Monday, February 09, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on what might > happen(RANT) > > > > > > > and by golly gosh. I'll be using a Linux housed, KDE > based/mySQL BE to do this work as soon as there is an > equivalent IDE to Access. I've tried Eclipse and Eiffel but > dang it I just cant get the hang of theese new fangled > lenguages! Looking at mono - not sure if its the best or > worst of both worlds. Even got desparate enough to try > running access inside wine (hehehehe dribble dribble froth froth) > > > > > What!? The old saw is cutting wood just fine? Sharpen it now > and then, and it'll be good for years, you say? > > > > Which brings us back to a fundamental choice: keep trudging > on the Microsoft treadmill, or get off. Both options have > their plusses and drawbacks. > > But at least Open Source will never force you to abandon > software you like. > > -Ken > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > From adtp at touchtelindia.net Tue Feb 10 07:45:15 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 10 Feb 2004 19:15:15 +0530 Subject: [AccessD] TEST References: <20040206080336.6234.qmail@web61103.mail.yahoo.com> Message-ID: <004001c3efdc$2f380570$fe1865cb@winxp> TEST From James at fcidms.com Tue Feb 10 07:48:27 2004 From: James at fcidms.com (James Barash) Date: Tue, 10 Feb 2004 08:48:27 -0500 Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 In-Reply-To: Message-ID: Yes, SQL 2000 uses 1 for true and 0 for false. In general, 0 is false and anything non 0 is true. I believe, in Access, you can test for True and it will find 1 or -1 or anything but 0 and Null. I usually just test for <> 0 since that seems to work everywhere. Another thing to watch out for is bound forms that have bit fields. Because of the difference in how Access and SQL Server handle bit fields it can cause errors if you have bit fields that are Nullable. You must have a default value or Access will raise an error whenever you edit a record. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Monday, February 09, 2004 5:31 PM To: 'accessd at databaseadvisors.com' Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Feb 10 08:14:36 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 15:14:36 +0100 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> References: <002d01c3ef36$01999260$1e00a8c0@cheqsoft.local> Message-ID: <11423883793.20040210151436@cactus.dk> Hi Tortise Here's a very creative suggestion (one line link): http://groups.google.com/groups?q=access+memo+field+lock&start=180&hl=xx-elmer&lr=&ie=UTF-8&oe=utf-8&selm=wQWg6.5003%24zl4.108091%40zwoll1.home.nl&rnum=182 /gustav > Thanks John, > That gave me enough to resolve it. > Also Ref http://www.utteraccess.com/forums/access/access605200.html > For anyone else simply doing a refresh unlocks it! > Kind Regards > David > From: John W. Colby > To: Access Developers discussion and problem solving > Sent: Tuesday, February 10, 2004 2:38 AM > Subject: RE: [AccessD] Memo Locked - Apparently, but not that I can find!!! > Memo fields are treated differently than the rest of the fields in a record. > They are simply pointers out to a storage area where the actual memo is > stored. Memos still have the "page locking" issue where if another user is > editing another memo that resides in the same physical page as your memo, > yours will be locked. > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise > Sent: Monday, February 09, 2004 5:24 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! > Hi > I have a database which intermittently reports memo fields as being locked. > However they are not! Editing the memo field it refuses to update on > attempted save, however text fields still update fine. (!) It is a database > from A2K, that went to A97, back to A2k and now is running (converted) in > A2k3. (Over time!) Repair and compaction makes no difference, neither does > logging off and back on to the windows session. > The same behaviour is exhibited when editing the table as it is from a form. From gustav at cactus.dk Tue Feb 10 08:16:28 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Feb 2004 15:16:28 +0100 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: References: Message-ID: <15323995533.20040210151628@cactus.dk> Hi Jim Would you have any suggestions for how (up/down?) these settings could be changed? /gustav > What your probably bumping into is read locks on the LVPs (Long Value > Pages). Read locks allow multiple users to read long value data, but prevent > others from writing to it while others are reading. Starting with JET 3.0, > the persistence of read locks is determined by the currency of a record. So > a read lock on a long value page will remain until the user leaves that > record. There is an exception though; if the LVP contains multiple rows of > data JET should be releasing the lock before that. > Some things you might try: > 1. Change the Refresh Interval > 2. Change the Update Retry Interval > 3. Change the Number of Update Retries. > 4. Changing the Recycle LVP page setting > These above are all JET settings. And of course anything you can do to > get the user off the record faster would be better. Switching to Optimistic > locking (No Locks) with page locks or Pessimistic (Edited Record) with > Record Level locking might also help depending on the design of the app and > the typical patterns of usage. From JHewson at karta.com Tue Feb 10 08:27:38 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 10 Feb 2004 08:27:38 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127CA@nt04.karta.com> Kath, Great suggestions! I will remove the VB and all queries except select. Your idea of using Excel or Word as a tool to discuss normalization and relational concepts is superb. I will use that. I had thought of walking them through the creation of a simple database. I like your idea better, discussing databases the students have been asked to design. Or, ideas of a "real world" scenario for a database. Thank you, Jim -----Original Message----- From: Kath Pelletti [mailto:SDSSoftware at optusnet.com.au] Sent: Monday, February 09, 2004 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course Jim - I have also given many intro courses for intro, intermed and advanced and I think your suggested content is good - the only changes I would make are to remove VB (other than to explain why the tab for modules is there) and to remove advanced queries for intro. I think that it is really important to discuss how they would create a database in Word or Excel and then show them how that flat file structure could simply create duplicate records and unneccessarily repetitive data. That gives them an idea of the purpose of a relational database and basically gets you into normalization in a concrete way. I think it is good to create a course framework which has a point, ie., not just discussing design for the sake of it which will lose people but make the intro course all about creating a simple database to solve a business scenario - and make all exercises part of that - at the end they will have created a simple system.. Your suggested work on queries is a great idea as that is something they will probably all do straight away - either want to query an existing database or set up a simple one with queries (the and / or and like are really important there). But I think that I would stick to only select queries, and select queries with parameters for intro level. If you want to add another query topic then I would add calculated queries, but maybe not the delete / update / make table queries which could get beginners into a lot of trouble (only my opinion). It's great to be able to leave some time at the end of the 2nd day and ask people to discuss databases they have been asked to design (there are always some who are on the course as they have been asked to set something up). This gives the group the chance to tackle it together, throwing up suggested table structures and primary keys and relationships on the whiteboard - they can list their requried output and see if the design will work for that. If you have time to do 2 of these workups it seems to really help the students. Best of luck. Kath ----- Original Message ----- From: Jim Hewson To: 'AccessD' Sent: Tuesday, February 10, 2004 2:55 AM Subject: [AccessD] Teaching Access Course Our customer has added a tasking on our contract. I have developed several Access databases for this customer on several different contracts. They want a two-day course to teach 6-10 people. A classroom with computers and Access loaded on them will be on their site. The student's experience ranges from someone who knows how to spell Access to someone who thinks they know how to use it. I do have experience conducting courses - just not Access. My first cut of a syllabus is below. Any suggestions? Thanks in advance. Jim 1. Introduction to Databases a. Systems [Software] Development Life Cycle (SDLC b. Database Nomenclature c. Naming Conventions d. Normalization e. Relational Database f. Database design concepts 2. Introduction to Access a. Access Specifications b. Short cut keys c. Reserved Words d. Access Objects e. Relationships between tables 3. Access Tables a. Primary keys b. Fields and records c. Navigate through records d. Enter, edit and delete records e. Format tables f. Filtering data in tables 4. Designing Access Tables a. Design view b. Adding and naming fields c. Assigning Field types d. Assigning Field Properties e. Creating Key Fields f. Creating relationships 5. Designing Access Queries a. Using "And" and "Or" statements b. "=" vs "like" c. Parameter Queries d. Auto lookup Queries e. Advanced Queries (Nested Queries, Sub-queries) f. Insert/Update/Delete/Make-Table Queries 6. Access Form Design a. Designing a Form b. Formatting forms c. Adding controls d. Combo boxes / list boxes e. Groups f. MS Visual Basic g. Using Wizards 7. Access Report Design a. Creating a report b. Formatting reports c. Using Wizards Jim H. Hewson Marketing/Proposal Support Manager Karta Technologies, Inc. 5555 Northwest Parkway San Antonio, Texas 78249 210-582-3233 jhewson at karta.com ---------------------------------------------------------------------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Tue Feb 10 08:29:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 09:29:10 -0500 Subject: [AccessD] Memo Locked - Apparently, but not that I can find!!! In-Reply-To: <15323995533.20040210151628@cactus.dk> Message-ID: Gustav, > 1. Change the Refresh Interval - Down - Shorter refreshes would release any held read locks sooner if the pages where no longer being used. Especially on indexes. Con: more network traffic and possible delays in the user interface. > 2. Change the Update Retry Interval - Up - Longer delay between retries when a lock is encountered. > 3. Change the Number of Update Retries - Up - Try more times before popping an error > 4. Changing the Recycle LVP page setting - This could go either way as it goes to the pattern of usage by the app. In some cases, recycling LVP's could help, in others hurt. I would try it both ways. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, February 10, 2004 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo Locked - Apparently, but not that I can find!!! Hi Jim Would you have any suggestions for how (up/down?) these settings could be changed? /gustav > What your probably bumping into is read locks on the LVPs (Long Value > Pages). Read locks allow multiple users to read long value data, but prevent > others from writing to it while others are reading. Starting with JET 3.0, > the persistence of read locks is determined by the currency of a record. So > a read lock on a long value page will remain until the user leaves that > record. There is an exception though; if the LVP contains multiple rows of > data JET should be releasing the lock before that. > Some things you might try: > 1. Change the Refresh Interval > 2. Change the Update Retry Interval > 3. Change the Number of Update Retries. > 4. Changing the Recycle LVP page setting > These above are all JET settings. And of course anything you can do to > get the user off the record faster would be better. Switching to Optimistic > locking (No Locks) with page locks or Pessimistic (Edited Record) with > Record Level locking might also help depending on the design of the app and > the typical patterns of usage. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Feb 10 08:34:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 09:34:35 -0500 Subject: [AccessD] Next Version of Access 12 Musings on whatmighthappen(RANT) In-Reply-To: <003e01c3efda$003c32c0$bf00a8c0@dabsight> Message-ID: John, <> I didn't have time to check the Office EULA, but I know for sure that the VFP EULA does have a clause in it that apps can only be distributed on Win OS platforms. Note to that I wasn't clear in that when I said "Access", I was thinking more in terms of the runtime and the distribution of apps. If it's not in there already, I wouldn't be surprised to see it in the next one Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) Robinson Sent: Tuesday, February 10, 2004 8:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on whatmighthappen(RANT) Don't know about VFP, but my Office licence says that I can "install and use one copy of the Software Product on a single computer, device, workstation, terminal, or other digital electronic or analog device". No mention of operating systems. Do you know that VFP has a different kind of licence? John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: 10 February 2004 12:04 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what mighthappen(RANT) > > > << Even got desparate enough to try running access > inside wine (hehehehe dribble dribble froth froth)>> > > Watch it, you may be in violation of your license > agreement. Recently a big brew ha ha had erupted over the > fact that VFP developers were starting to run VFP apps under > Linux. Microsoft quickly squashed it. Went as far as to get > a speaker to cancel their talk. > > I think if you read your agreement, you'll find that your > only allowed to run Access on Windows OS's. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Monday, February 09, 2004 8:32 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on what might > happen(RANT) > > > > > > > and by golly gosh. I'll be using a Linux housed, KDE > based/mySQL BE to do this work as soon as there is an > equivalent IDE to Access. I've tried Eclipse and Eiffel but > dang it I just cant get the hang of theese new fangled > lenguages! Looking at mono - not sure if its the best or > worst of both worlds. Even got desparate enough to try > running access inside wine (hehehehe dribble dribble froth froth) > > > > > What!? The old saw is cutting wood just fine? Sharpen it now > and then, and it'll be good for years, you say? > > > > Which brings us back to a fundamental choice: keep trudging > on the Microsoft treadmill, or get off. Both options have > their plusses and drawbacks. > > But at least Open Source will never force you to abandon > software you like. > > -Ken > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Feb 10 08:59:59 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 10 Feb 2004 08:59:59 -0600 Subject: [AccessD] Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127CB@nt04.karta.com> Stuart, I have some experience designing training for physicians, nurses, and other medical personnel. We usually started with the need for training. Whether it was for infection control, procedural changes, governmental requirements or anything else. We would create one or two sentences for the objective and then determine the length of the needed training. The students, that I have met, for this course have some experience with Access. Their primary job is to evaluate hazardous materials from various sites from a myriad of locations. My syllabus probably didn't show it, but the discussion of the topics were to be basic as you suggested for day 1. I wanted to discuss the topics, but not get them too enthralled with the details. If I whet their appetite to dig deeper into a subject then I have met that goal. I like your titles for the subject areas: The building blocks of Access, How to Navigate around forms, and the others. I will use them or something quite similar. Also, your outline is less threatening to students than mine. I will reformat to get rid of checklist (cold) to your paragraph/discussion format (inviting). Thank you. Jim -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, February 09, 2004 5:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Teaching Access Course On 9 Feb 2004 at 9:55, Jim Hewson wrote: > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > Do you have any experience designing training? The basic principle of course design is not to start with "how long", but with "what". What are you trying to produce - Computer Science Graduates, Analyst/Programmers or Competent Users? You need to start by stating a Course Objective and then breaking that down into training needs to achieve that objective. Once you have done that, decide how many of those objectives can be achieved in your "two-day course" My first cut of a syllabus is below. Any suggestions? > That looks like a classic one year syllabus for an "educational" institution, not a two day training course. Forget teaching them concepts, train then to do things - this is workplace oriented training, not academia. I'd say that a reason amount of content for a two day course would be to train them to use a developed Access application and to create their own queries. If they are good enough, you may have time to teach them to create simple reports using Wizards. Day 1: Basic concepts of what a relational database and why it is used ie: data stored in different tables based on context, the *very* basic principles of normalisation (WITHOUT even using the word) and the benefits of it (consistent data, only change in one place etc) The building blocks of Access: In simple terms - what is a table, query, form, report and what are they used for (mention VBA under the hood as the *magic bit* that makes it work, but don't show then how to get into the editor) How to navigate around forms ; how to use Combos (F4 key, autofilling), listboxes, checkboxes/option buttons, hotkeys, use of navigation buttons to move through a recordset, what the record selectors do, what the "dirty" icon means, when dirty records are saved, switching between form and datasheet view Form Filtering/Sorting using the main menu/toolbar items and the right click menu. Basic use of Reports: Printing/Previewing reports including changing printers/printing specific pages, zooming in preview mode. Day 2 Building queries using the QBE grid. Selecting tables/queries to use Basic concepts of keys, datatypes, creating joins Building criteria (use of and/or, <,>, =, Between, Not, Null, Date(), Year(),Month() etc) If sufficient time: Using the Report Wizard. > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com > > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 10 09:45:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 07:45:51 -0800 (PST) Subject: [AccessD] Office XP Outlook Security Message-ID: <20040210154551.33210.qmail@web20413.mail.yahoo.com> Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Tue Feb 10 09:53:51 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 16:53:51 +0100 (CET) Subject: [AccessD] Office XP Outlook Security Message-ID: <15572181.1076428431757.JavaMail.www@wwinf3003> Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From cfoust at infostatsystems.com Tue Feb 10 09:55:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Feb 2004 07:55:40 -0800 Subject: [AccessD] Office XP Outlook Security Message-ID: We use Redemption. I'm not sure what you mean by "I've followed the instructions twice", since Redemption is a dll and you have to program to it, not just install it and then use the built in SendObject, etc. in Access. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, February 10, 2004 7:46 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Feb 10 10:00:47 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 10 Feb 2004 17:00:47 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D26C@stekelbes.ithelps.local> Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 10 10:09:57 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 08:09:57 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: Message-ID: <20040210160957.4074.qmail@web20421.mail.yahoo.com> I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Thanks. We may look at Redemption as a last resort. Charlotte Foust wrote: We use Redemption. I'm not sure what you mean by "I've followed the instructions twice", since Redemption is a dll and you have to program to it, not just install it and then use the built in SendObject, etc. in Access. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, February 10, 2004 7:46 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From Patricia.O'Connor at DFA.STATE.NY.US Tue Feb 10 10:46:55 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Tue, 10 Feb 2004 11:46:55 -0500 Subject: [AccessD] Re: Information about Access 2003 Message-ID: Thanks for your reply. >>1. Has anyone successfully installed & used Access2003 on the same machine >>with 97 & 2k >I have 97, 2000, 2002, and 2003 installed and running quite well on a Win >2003 server machine. We have Win2000 Pc/workstations with Access 97 & Access 2000 residing somewhat comfortably on them. We have had considerable trouble with all of Office2000 but I think it is the way the image was built by the installation group. GRRR. From what I have heard THEY are having a problem getting Access2003 to reside with Access 97 on WinXP. The backends are on a winNT server - have not idea at the moment whether this will be updgraded. Thanks Patti > -----Original Message----- > From: Robert L. Stewart [mailto:rl_stewart at highstream.net] > Sent: Monday, February 09, 2004 10:19 AM > To: accessd at databaseadvisors.com > Cc: Patricia.O'Connor at dfa.state.ny.us > Subject: [AccessD] Re: Information about Access 2003 > > > Answers below: > > At 12:00 PM 2/7/2004 -0600, you wrote: > >Date: Fri, 6 Feb 2004 16:55:38 -0500 > >From: "O'Connor, Patricia " > >Subject: [AccessD] Information about Access 2003 > >To: "'Access Developers discussion and problem solving'" > > > >Message-ID: > >Content-Type: text/plain; charset="ISO-8859-1" > > > > > >We are going to be getting Access 2003 in about a month. > > > >1. Has anyone successfully installed & used Access2003 on > the same machine > >with 97 & 2k > > I have 97, 2000, 2002, and 2003 installed and running quite > well on a Win > 2003 server machine. > > > >2. What are the major differences/problems with A2003 > compared to A97 & 2k. > > It is very different from 97, but close (with enhancements) > to 2000 and 2002. > > >Are there any articles, books, etc besides MS.com to read up > on these. > > Don't have an answer for you here. I teach a developer's > workshop and I > have went to 2003 exclusively for teaching it. > > > >3. We have several Access 97 database systems in use. Should > I upgrade them > >to A2k first then A2003. > > Might not be a bad idea. It will give you a chance to get > the references > and anything else straightened out first. > > Robert > > > From rsmethurst at UK.EY.COM Tue Feb 10 10:50:50 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 16:50:50 +0000 Subject: [AccessD] Mde trouble Message-ID: I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From dwaters at usinternet.com Tue Feb 10 10:59:07 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Feb 2004 10:59:07 -0600 Subject: [AccessD] Office XP Outlook Security In-Reply-To: <20461686.1076431134769.JavaMail.root@sniper.marix.com> Message-ID: <000001c3eff7$35936ac0$de1811d8@DanWaters> Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From conny at qad.se Tue Feb 10 11:12:58 2004 From: conny at qad.se (Conny Johansson) Date: Tue, 10 Feb 2004 18:12:58 +0100 Subject: SV: [AccessD] Mde trouble In-Reply-To: Message-ID: <004601c3eff9$21a9d7e0$0400a8c0@QAD> I've had this experience as well, and if I remember correctly, I think the reason was that there was'nt enough free space on the HDD. I moved a couple of Mb, after that it worked fine. Conny J -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r rsmethurst at UK.EY.COM Skickat: den 10 februari 2004 17:51 Till: Access Developers discussion and problem solving ?mne: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-09 Tested on: 2004-02-10 18:12:57 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From cfoust at infostatsystems.com Tue Feb 10 11:13:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Feb 2004 09:13:05 -0800 Subject: [AccessD] Mde trouble Message-ID: You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Tue Feb 10 11:19:42 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 10 Feb 2004 11:19:42 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <004201c3effa$130f0600$2a3ca8c0@TEXASSYSTEMS.COM> I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust From rsmethurst at UK.EY.COM Tue Feb 10 11:22:06 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 17:22:06 +0000 Subject: SV: [AccessD] Mde trouble Message-ID: Conny, 70 Gigs to go, and it fails on the network as well, so it's not a space issue. Thanks RyanS "Conny Johansson" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:12 Please respond to Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" cc: Subject: SV: [AccessD] Mde trouble I've had this experience as well, and if I remember correctly, I think the reason was that there was'nt enough free space on the HDD. I moved a couple of Mb, after that it worked fine. Conny J -----Ursprungligt meddelande----- Fr?n: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] F?r rsmethurst at UK.EY.COM Skickat: den 10 februari 2004 17:51 Till: Access Developers discussion and problem solving ?mne: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2004-02-09 Tested on: 2004-02-10 18:12:57 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members' names is available for inspection at 1 More London Place, London, SE1 2AF, the firm's principal place of business and its registered office. From rsmethurst at UK.EY.COM Tue Feb 10 11:23:53 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 10 Feb 2004 17:23:53 +0000 Subject: [AccessD] Mde trouble Message-ID: Charlotte, I've used 2000 the whole way through. I have taken it home and worked on XP, but in 2000 format. It has never been upgraded to XP though. Could that be the problem? RyanS "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:13 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Mde trouble You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From jimdettman at earthlink.net Tue Feb 10 11:45:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 10 Feb 2004 12:45:06 -0500 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: <> Typically, when you cannot create a MDE, it means something is wrong with the VBA project file. Since you've already said that it compiles fine, then the project itself is probably corrupt in some way. To fix it, you can: 1. Start Access with the /Decompile switch, close, re-open, and then recompile. 2. Create a fresh MDB and import everything into that, then compile. I'd go with the latter as I've never fully trusted the /decompile. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at UK.EY.COM Sent: Tuesday, February 10, 2004 11:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Tue Feb 10 11:35:41 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 10 Feb 2004 11:35:41 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: <004501c3effc$4e79ad60$2a3ca8c0@TEXASSYSTEMS.COM> I keep looking at Rekall, which I was introduced to by others in this forum. It was produced by the Kompany, http://www.thekompany.com/products/rekall/ But has no gone mostly GPL, http://www.totalrekall.co.uk/index.php http://www.rekallrevealed.org/ Have you had any experience with this front end? -Ken -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Monday, February 09, 2004 7:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I'll be using a Linux housed, KDE based/mySQL BE to do this work as soon as there is an equivalent IDE to Access. From ranthony at wrsystems.com Tue Feb 10 12:11:57 2004 From: ranthony at wrsystems.com (Randall Anthony) Date: Tue, 10 Feb 2004 13:11:57 -0500 Subject: [AccessD] Access 2003 Developer's Book Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128A52@mail2.wrsystems.com> Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 From prodevmg at yahoo.com Tue Feb 10 13:10:47 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 10 Feb 2004 11:10:47 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D26C@stekelbes.ithelps.local> Message-ID: <20040210191047.63246.qmail@web20422.mail.yahoo.com> Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From martyconnelly at shaw.ca Tue Feb 10 14:52:03 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 10 Feb 2004 12:52:03 -0800 Subject: [AccessD] Large datasets for testing tables References: Message-ID: <40294473.5050001@shaw.ca> Someone was asking for large tables for testing came across this You can download upto 10MB via csv files UK National Digital Archive of Datasets, http://ndad.ulcc.ac.uk/access/ You have to register but free to download certain datasets example download Primary, middle and secondary schools 1975 http://ndad.ulcc.ac.uk/CRDA/13/DS/1/1975/1/query.html Hmm I went looking for Brewery and duty addresses but that table is archived as closed until 2074 -- Marty Connelly Victoria, B.C. Canada From rl_stewart at highstream.net Tue Feb 10 14:52:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 10 Feb 2004 14:52:43 -0600 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <200402101752.i1AHqHm08775@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> Jim, I think you are trying to cover way too much in too short of a time. I have taught Access, from people who were not sure of the spelling of it to people who thought they knew everything there was to know about it. What are they wanting to accomplish? You should tailor the sessions to the purpose they want to accomplish. For example, I am teaching a 3 hour introduction to queries a week from Saturday to a class of 4 or 5 people. The purpose is for them to be able to query the database for themselves to get information, create mail merge lists, etc. Normalization itself is a two day class. But here is the 10 minute version of it. We are going to build a database to hold recipes. Write down on a sheet of paper the things we need to store about a recipe. Now, look at each item and ask the question, "Can there EVER be more than one of this item?" If the answer is "Yes," then you will need another table to hold the data. If you follow that without wavering, you will get to 5th normal form. ;-) For example "ingredient" Can a recipe ever have more than one ingredient? Yes, then there needs to be a table to hold them. Can an ingredient ever use more than one kind of measure? Yes. Then the measurement method needs to be in a table. Can a recipe fit into more than one category (dessert, main course, bread, etc)? Yes. Then there needs to be a table to hold it. My guess would be that they want to be able to query the database and do reports. Day 1 - Queries Day 2 - Reports ;-) Robert At 11:52 AM 2/10/2004 -0600, you wrote: > From: Jim Hewson > To: 'AccessD' > Sent: Tuesday, February 10, 2004 2:55 AM > Subject: [AccessD] Teaching Access Course > > > > Our customer has added a tasking on our contract. > I have developed several Access databases for this customer on several > different contracts. They want a two-day course to teach 6-10 people. A > classroom with computers and Access loaded on them will be on their site. > The student's experience ranges from someone who knows how to spell Access > to someone who thinks they know how to use it. > I do have experience conducting courses - just not Access. > > My first cut of a syllabus is below. Any suggestions? > > Thanks in advance. > Jim > > 1. Introduction to Databases > a. Systems [Software] Development Life Cycle (SDLC > b. Database Nomenclature > c. Naming Conventions > d. Normalization > e. Relational Database > f. Database design concepts > 2. Introduction to Access > a. Access Specifications > b. Short cut keys > c. Reserved Words > d. Access Objects > e. Relationships between tables > 3. Access Tables > a. Primary keys > b. Fields and records > c. Navigate through records > d. Enter, edit and delete records > e. Format tables > f. Filtering data in tables > 4. Designing Access Tables > a. Design view > b. Adding and naming fields > c. Assigning Field types > d. Assigning Field Properties > e. Creating Key Fields > f. Creating relationships > 5. Designing Access Queries > a. Using "And" and "Or" statements > b. "=" vs "like" > c. Parameter Queries > d. Auto lookup Queries > e. Advanced Queries (Nested Queries, Sub-queries) > f. Insert/Update/Delete/Make-Table Queries > 6. Access Form Design > a. Designing a Form > b. Formatting forms > c. Adding controls > d. Combo boxes / list boxes > e. Groups > f. MS Visual Basic > g. Using Wizards > 7. Access Report Design > a. Creating a report > b. Formatting reports > c. Using Wizards > > > Jim H. Hewson > Marketing/Proposal Support Manager > Karta Technologies, Inc. > 5555 Northwest Parkway > San Antonio, Texas 78249 > 210-582-3233 > jhewson at karta.com From bruce_bruen at mlc.com.au Tue Feb 10 15:42:06 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:42:06 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: > I think if you read your agreement, you'll find that your only allowed to >run Access on Windows OS's. How, then do the winframe emulations cope? How, then can I deploy an ASP that uses an Access BE? How then can I use DAPs when I dont know what the client O/S is? (These are real questions btw - I cant see how the license could be that restrictive?) Didn't matter anyway I couldn't get it to run under wine. B From bruce_bruen at mlc.com.au Tue Feb 10 15:47:00 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:47:00 +1100 Subject: [AccessD] Office XP Outlook Security Message-ID: >I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that >Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Lonnie, I think (from memory)you will find that these insrtuctions apply to the Outlook Server not the client. IMHO they are not useful. B From Subscriptions at servicexp.com Tue Feb 10 15:54:29 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Tue, 10 Feb 2004 16:54:29 -0500 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: RyanS, Did you set any references to an un-compiled object, such as an .mdb in your db? Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at uk.ey.com Sent: Tuesday, February 10, 2004 12:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Mde trouble Charlotte, I've used 2000 the whole way through. I have taken it home and worked on XP, but in 2000 format. It has never been upgraded to XP though. Could that be the problem? RyanS "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 17:13 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Mde trouble You can only make an mde in the actual file format (not necessarily the default) of the version you're using. If you are using XP, even with a 2000 format, you can't create a 2000 mde. Could that be your problem? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Tuesday, February 10, 2004 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 15:58:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 08:58:21 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: We used Rekall some time ago as an ETL interface for a PostgresQL db. I must admit I did not do the work myself. However the guy that got me the data turned it around in a couple of hours (128Mb flat data formatted as we requested) and I dont think he was a superguru. After we massaged the data (remove dups & inactive accounts, standardise NAD format, restructure into a relationship between client/account) we returned them about 67Mb to reload which he did while we were chatting about operational data quality - about 30 min. So in terms of doing things of that nature quickly it looked good from a short distance. B I keep looking at Rekall, which I was introduced to by others in this forum. It was produced by the Kompany, http://www.thekompany.com/products/rekall/ But has no gone mostly GPL, http://www.totalrekall.co.uk/index.php http://www.rekallrevealed.org/ Have you had any experience with this front end? -Ken From jwcolby at colbyconsulting.com Tue Feb 10 16:01:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 17:01:34 -0500 Subject: [AccessD] forced logout Message-ID: I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) John W. Colby www.ColbyConsulting.com From bruce_bruen at mlc.com.au Tue Feb 10 16:07:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 09:07:52 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: >Hi Bruce > >Did you have a look at Rekall and BlackAdder: > > http://www.thekompany.com/products/ > >which will bring Python or Ruby to you as well ... >I haven't had the time myself, and I wouldn't expect too much, but for >some situations they could prove useful. > >/gustav Hi Gustav, I looked at Ruby some time last year purely to investigate the language for a client as an alternative to C/C++ which was costing him too much for cutters. The feature set looked good, the simplicity looked good, but we discounted it on the availability of local expertise- not that there isn't any it was just that the experts are all quite busy. I did not have the benefit of an IDE to evaluate it as a user. So thanks for the link to Blackadder - I will revisit Ruby again. B From bruce_bruen at mlc.com.au Tue Feb 10 16:10:45 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 09:10:45 +1100 Subject: [AccessD] forced logout Message-ID: That would depend on the reason for forcing the logout surely? If the reason is due to a db corruption discovery or to a maintenance shutdown then the database should be reopened by an administrator manually. If OTOH the logout is forced by some business rule then that rule is incomplete unless it defines the reactivation. B "John W. Colby" com> cc: Sent by: Subject: [AccessD] forced logout accessd-bounces at databasea dvisors.com 11/02/2004 09:01 Please respond to Access Developers discussion and problem solving I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 10 17:06:18 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Feb 2004 17:06:18 -0600 Subject: [AccessD] forced logout In-Reply-To: <4085936.1076450699540.JavaMail.root@sniper.marix.com> Message-ID: <000001c3f02a$80c395a0$de1811d8@DanWaters> John, I've done both, but without a class. In one case, I want users out until I say it's OK to get back in. Perhaps I need to do some updating. In the other case, the company's backup software might need to have Access shut down to do the backup. In that case I set a shutdown time before the scheduled backup and a restart time after the backup. This is also good to do because (in A2K and AXP) the last person forced out triggers a compact and repair. To do this I have one boolean value in a small table, and two date/time fields in the same table. The front end main form has a 1 minute timer event to check to see if the boolean value is false or the shutdown time has arrived. If so, a 'Shutdown in 5 minutes' form appears on the user's screen. If it's time to get kicked out at night, a 'Shutdown in 10 minutes' form appears on the user's screen. This has worked well for a few years now. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 4:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 andrew.haslett at ilc.gov.au Tue Feb 10 17:54:45 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 10:24:45 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: >> How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From bruce_bruen at mlc.com.au Tue Feb 10 18:00:45 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 11:00:45 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: >And you honestly believe that the capabilities (functionality) of DOS would >support todays applications... You've got to be kidding me. Process controllers, life monitors, implant controllers, any real time application. From mastercafe at ctv.es Tue Feb 10 18:32:46 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 11 Feb 2004 01:32:46 +0100 Subject: [AccessD] Mde trouble In-Reply-To: Message-ID: <001501c3f036$9290cfd0$0300a8c0@servercafe> We have many experiences over this, spacially if we use Office XP Spanish version. We solve normally using one computer with Office XP English version. 1- Creating a new MDB file and importing all from the last MDB corrupted, 2- then check all forms that have OCX/COM controls and then replace with a new control, 3- check the names of this for code problems of every control in forms (common controls, progress bar, etc...) 4- Check other missing references 5- Debug and Compile We all obtain a new MDB perfect to use. We are decompiling every week our main MDB and makes copies every version, because the stability of MDB when you program and use many external controls is very low. Good luck and hope that this solve your problem Juan Menendez Mastercafe SL =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rsmethurst at UK.EY.COM Sent: martes, 10 de febrero de 2004 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From terry.mace at baesystems.com Tue Feb 10 18:40:30 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 11 Feb 2004 11:10:30 +1030 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com From jwcolby at colbyconsulting.com Tue Feb 10 19:10:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 20:10:02 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: The reason can be anything. I need to ensure all users are out of the database every night so that compact can occur. Also I need to be able to get in and do BE maintenance, modify tables if necessary etc. The users are leaving the FE (bound forms) open. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] forced logout That would depend on the reason for forcing the logout surely? If the reason is due to a db corruption discovery or to a maintenance shutdown then the database should be reopened by an administrator manually. If OTOH the logout is forced by some business rule then that rule is incomplete unless it defines the reactivation. B "John W. Colby" com> cc: Sent by: Subject: [AccessD] forced logout accessd-bounces at databasea dvisors.com 11/02/2004 09:01 Please respond to Access Developers discussion and problem solving I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 stuart at lexacorp.com.pg Tue Feb 10 19:30:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 11 Feb 2004 11:30:45 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: Message-ID: <402A1265.7128.29ED13@localhost> On 11 Feb 2004 at 10:24, Haslett, Andrew wrote: > >> How many companies would still be running DOS if they had a choice? I bet > a lot, because it is the function of the software that really matters in > business, and not so much the underlying technology. > > And you honestly believe that the capabilities (functionality) of DOS would > support todays applications... You've got to be kidding me. > > I know plenty of organisations that are still using DOS accounting packages. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From bruce_bruen at mlc.com.au Tue Feb 10 19:37:31 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 12:37:31 +1100 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Terry, Presuming : 1) that maintenance activity can only occur locally at a site (i.e Site 2 cannot perform Site3 work) 2) the 24hr delay remains acceptable 3) the offshore site is notr going to create timezone problems. I would go with a more traditional approach, giving each site its own local BE and provifing and end of day routine that copied new/changed data back to a separate static analsys db. "MACE, Terry" m> cc: Sent by: Subject: [AccessD] Database Operation from Remote Sites accessd-bounces at databasea dvisors.com 11/02/2004 11:40 Please respond to Access Developers discussion and problem solving Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 10 19:42:45 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Feb 2004 19:42:45 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227864@main2.marlow.com> ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 10 19:46:54 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Feb 2004 19:46:54 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227865@main2.marlow.com> Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at pacific.net.hk Tue Feb 10 19:47:41 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Wed, 11 Feb 2004 09:47:41 +0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: <003101c3f041$09c51fc0$2a00a8c0@BITSNB02> I was thinking over this just recently. The problem I have with a pure time based system is that different computers can have different times. Normally this should only be a matter of minutes, but not always. I saw someone mentioned something like this before and was thinking that one way would be to create a zero length file in the backend directory. You could use different filenames for different purposes: BESD10.txt - Shutdown in 10 minutes. BESD5.txt - shutdown in 5 minutes BESD.txt - immediate shutdown. BENL.txt - no login allowed (.txt isn't needed ... Just an illustration) The reason for this is that most backup programs allow the running of scripts before and after backup occurs. And by simply copying a file into the BE directory and deleting it when done you give the server the ability to centrally control automated jobs that require users to logout without having to guess how long such jobs will take. Just an idea... Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: Wednesday, 11 February, 2004 9:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] forced logout > > > The reason can be anything. I need to ensure all users are out of the > database every night so that compact can occur. Also I need > to be able to > get in and do BE maintenance, modify tables if necessary etc. > The users are > leaving the FE (bound forms) open. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Tuesday, February 10, 2004 5:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] forced logout > > > > > > > That would depend on the reason for forcing the logout surely? > > If the reason is due to a db corruption discovery or to a maintenance > shutdown then the database should be reopened by an > administrator manually. > If OTOH the logout is forced by some business rule then that rule is > incomplete unless it defines the reactivation. > > B > > > > "John W. Colby" > "AccessD" > > com> cc: > Sent by: > Subject: [AccessD] > forced logout > accessd-bounces at databasea > dvisors.com > > > 11/02/2004 09:01 > Please respond to Access > Developers discussion and > problem solving > > > > > > > I am almost finished with a class and a table to allow me to > force a logout > of my users from the db. In fact it is all working now, the only > remaining > question is "when do I let them back in". > > Is anyone else doing this? What is your answer? My tendency is "keep > logged out between ThisTime and ThatTime", i.e. add a second > time field to > the table that is the time to allow back in. > > Anyone? > > My current system uses: > > usysTblShutdown: > > SD_ID - autonumber PK > SD_Name - Shutdown name > SD_Time - Time to shutdown > SD_Enabled - THIS shutdown is enabled > SD_Warnings - The number of warnings to display before > forcing a > shutdown > SD_WarningTime - the number of seconds between warnings > > I have a form that my framework opens that initializes the > framework, and > shuts it back down if the form tries to close. Thus enabling a clean > shutdown regardless of anything other than perhaps a power failure. > > I then use the timer for this form to call a method in my class which > checks > whether to do the shutdown. The class raises an event with > every warning > to > the user in case your app needs warning that a shutdown is > imminent. The > class also raises an event when it is finally time to actually do the > shutdown. > > I will publish the whole in a demo database as soon as I > handle the issue > of > when to allow them back in. All opinions welcomed then summarily > dismissed. > > ;-) > > 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 bruce_bruen at mlc.com.au Tue Feb 10 19:45:13 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 12:45:13 +1100 Subject: [AccessD] forced logout Message-ID: >The reason can be anything. I need to ensure all users are out of the >database every night so that compact can occur. Also I need to be able to >get in and do BE maintenance, modify tables if necessary etc. The users are >leaving the FE (bound forms) open. In that case I'd go with the manual reactivation approach. However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. If the reason for the lockout is anything then even having them reopen the db could affect the actions being taken??? B From jwcolby at colbyconsulting.com Tue Feb 10 20:33:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:33:10 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: >However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. Well you have to start somewhere, you can't just throw up your hands and not do anything. Yes of course once they open the FE things start to happen, including opening tables etc. However I can do an IMMEDIATE shutdown if we are within the time period when the class initializes, not even displaying a warning. And if a compact is happening then they can't get in anyway. I have two specific objectives - getting them out so a compact can occur, and getting them out so I can edit tables. Either of these scenarios is handled beautifully by forcing them out, then doing a brutal shutdown if they try and get back in. My class opens an ADO recordset, reads the values and closes the recordset again, so it's not like a bound form in keeping a table open. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 8:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout >The reason can be anything. I need to ensure all users are out of the >database every night so that compact can occur. Also I need to be able to >get in and do BE maintenance, modify tables if necessary etc. The users are >leaving the FE (bound forms) open. In that case I'd go with the manual reactivation approach. However, I don't see how the app itself can control access - surely once they have opened it they have activated it in some way. If the reason for the lockout is anything then even having them reopen the db could affect the actions being taken??? B _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 10 20:33:19 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:33:19 -0500 Subject: [AccessD] forced logout In-Reply-To: <003101c3f041$09c51fc0$2a00a8c0@BITSNB02> Message-ID: That is surely an idea. OTOH I want to be able to edit a record in a table dynamically to allow the FE to see that it is time to log out. One problem with "the back end directory" is that it may not even exist, or it may be several different directories. If you are using SQL Server, where is "the back end directory"? If the FE links to 3 different BEs on different machines, where is "the BE directory"? Of course you can then define a directory field in a table that the logout code looks in to see this file. And of course, what about web pages hitting the be? How do you tell them to stay out for a time period? With a table they could essentially use the same logic the FE uses. this brings up the issue of time zones of course. The record needs to include the time zone that the database server resides in since And sure, different computers could have different times. If that is an issue there are programs that can be run on each workstation that sync the workstations to the server's clock. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders Sent: Tuesday, February 10, 2004 8:48 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] forced logout I was thinking over this just recently. The problem I have with a pure time based system is that different computers can have different times. Normally this should only be a matter of minutes, but not always. I saw someone mentioned something like this before and was thinking that one way would be to create a zero length file in the backend directory. You could use different filenames for different purposes: BESD10.txt - Shutdown in 10 minutes. BESD5.txt - shutdown in 5 minutes BESD.txt - immediate shutdown. BENL.txt - no login allowed (.txt isn't needed ... Just an illustration) The reason for this is that most backup programs allow the running of scripts before and after backup occurs. And by simply copying a file into the BE directory and deleting it when done you give the server the ability to centrally control automated jobs that require users to logout without having to guess how long such jobs will take. Just an idea... Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: Wednesday, 11 February, 2004 9:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] forced logout > > > The reason can be anything. I need to ensure all users are out of the > database every night so that compact can occur. Also I need > to be able to > get in and do BE maintenance, modify tables if necessary etc. > The users are > leaving the FE (bound forms) open. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > bruce_bruen at mlc.com.au > Sent: Tuesday, February 10, 2004 5:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] forced logout > > > > > > > That would depend on the reason for forcing the logout surely? > > If the reason is due to a db corruption discovery or to a maintenance > shutdown then the database should be reopened by an > administrator manually. > If OTOH the logout is forced by some business rule then that rule is > incomplete unless it defines the reactivation. > > B > > > > "John W. Colby" > "AccessD" > > com> cc: > Sent by: > Subject: [AccessD] > forced logout > accessd-bounces at databasea > dvisors.com > > > 11/02/2004 09:01 > Please respond to Access > Developers discussion and > problem solving > > > > > > > I am almost finished with a class and a table to allow me to > force a logout > of my users from the db. In fact it is all working now, the only > remaining > question is "when do I let them back in". > > Is anyone else doing this? What is your answer? My tendency is "keep > logged out between ThisTime and ThatTime", i.e. add a second > time field to > the table that is the time to allow back in. > > Anyone? > > My current system uses: > > usysTblShutdown: > > SD_ID - autonumber PK > SD_Name - Shutdown name > SD_Time - Time to shutdown > SD_Enabled - THIS shutdown is enabled > SD_Warnings - The number of warnings to display before > forcing a > shutdown > SD_WarningTime - the number of seconds between warnings > > I have a form that my framework opens that initializes the > framework, and > shuts it back down if the form tries to close. Thus enabling a clean > shutdown regardless of anything other than perhaps a power failure. > > I then use the timer for this form to call a method in my class which > checks > whether to do the shutdown. The class raises an event with > every warning > to > the user in case your app needs warning that a shutdown is > imminent. The > class also raises an event when it is finally time to actually do the > shutdown. > > I will publish the whole in a demo database as soon as I > handle the issue > of > when to allow them back in. All opinions welcomed then summarily > dismissed. > > ;-) > > 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 bruce_bruen at mlc.com.au Tue Feb 10 20:40:52 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 13:40:52 +1100 Subject: [AccessD] forced logout Message-ID: >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? From bruce_bruen at mlc.com.au Tue Feb 10 20:43:47 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 13:43:47 +1100 Subject: [AccessD] forced logout Message-ID: Cancel that - I just subtracted 15 hours instead of adding it. ----- Forwarded by Bruce Bruen/AU1/WealthMgmt on 11/02/2004 13:41 ----- Bruce Bruen To: Access Developers discussion and problem solving 11/02/2004 13:40 cc: Subject: RE: [AccessD] forced logout(Document link: Bruce Bruen) >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? The information contained in this e-mail communication may be confidential. You should only read, disclose, re-transmit,copy,distribute, act in reliance on or commercialise the information if you are authorised to do so. If you are not the intended recipient of this e-mail communication, please immediately notify us by e-mail to postmaster at mlc.com.au, or reply by e-mail direct to the sender and then destroy any electronic and paper copy of this message. Any views expressed in this e-mail communication are those of the individual sender, except where the sender specifically states them to be the views of a member of the National Australia Bank Group of companies. Any advice contained in this e-mail has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this e-mail, National Australia Bank Limited recommends that you consider whether it is appropriate for your circumstances. If this e-mail contains reference to any financial products, the National recommends you consider the Product Disclosure statement (PDS) or other disclosure document before making any decisions regarding any products. The National Australia Bank Group of companies does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. From jwcolby at colbyconsulting.com Tue Feb 10 20:49:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:49:39 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: It's only 9:49 pm here in Connecticut. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 9:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 10 20:54:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 21:54:26 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: I take it you're roughly the other side of the world from me? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Tuesday, February 10, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] forced logout Cancel that - I just subtracted 15 hours instead of adding it. ----- Forwarded by Bruce Bruen/AU1/WealthMgmt on 11/02/2004 13:41 ----- Bruce Bruen To: Access Developers discussion and problem solving 11/02/2004 13:40 cc: Subject: RE: [AccessD] forced logout(Document link: Bruce Bruen) >Well you have to start somewhere, you can't just throw up your hands and not do anything. OIC! True enough. p.s. why are you awake? The information contained in this e-mail communication may be confidential. You should only read, disclose, re-transmit,copy,distribute, act in reliance on or commercialise the information if you are authorised to do so. If you are not the intended recipient of this e-mail communication, please immediately notify us by e-mail to postmaster at mlc.com.au, or reply by e-mail direct to the sender and then destroy any electronic and paper copy of this message. Any views expressed in this e-mail communication are those of the individual sender, except where the sender specifically states them to be the views of a member of the National Australia Bank Group of companies. Any advice contained in this e-mail has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this e-mail, National Australia Bank Limited recommends that you consider whether it is appropriate for your circumstances. If this e-mail contains reference to any financial products, the National recommends you consider the Product Disclosure statement (PDS) or other disclosure document before making any decisions regarding any products. The National Australia Bank Group of companies does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 21:02:05 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 14:02:05 +1100 Subject: [AccessD] forced logout Message-ID: About 225 degrees. (Syd AU) From stuart at pacific.net.hk Tue Feb 10 21:16:21 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Wed, 11 Feb 2004 11:16:21 +0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: <003201c3f04d$6c333870$2a00a8c0@BITSNB02> > -----Original Message----- > That is surely an idea. OTOH I want to be able to edit a > record in a table > dynamically to allow the FE to see that it is time to log > out. One problem > with "the back end directory" is that it may not even exist, > or it may be > several different directories. If you are using SQL Server, > where is "the > back end directory"? If the FE links to 3 different BEs on different > machines, where is "the BE directory"? Of course you can > then define a > directory field in a table that the logout code looks in to > see this file. Store the location in a table :) (like you say) > And of course, what about web pages hitting the be? How do > you tell them to > stay out for a time period? With a table they could > essentially use the > same logic the FE uses. this brings up the issue of time > zones of course. > The record needs to include the time zone that the database > server resides > in since Actually time zones is probably a bigger issue than individual pc time. If you go for the defined time approach, then the app needs to be aware of the time difference between it and the server. How does an ASP determine that it shouldn't contact the DB... To be perfectly honest I'm not sure. But then you'd have pretty much the same issue even if it was table based. In order for it to determine it is not supposed to be in the database it would need to already be there. One of the reasons I was favouring the file based approach (and I haven't done anything other than think about it ... Not implemented) is that it can be checked prior to trying to get into the database. So if maintenance/backup/compact is about to occur someone doesn't inadvertently log in just when the specific action is about to begin. And thus throwing the system out for 24 houus or when ever the next automated backup (for example) is scheduled. > And sure, different computers could have different times. If > that is an > issue there are programs that can be run on each workstation > that sync the > workstations to the server's clock. Yes ... But many small businesses don't, and the last thing I personally would want is that you find out this after they can't get their backup working because someone was in the db at the time. Maybe I'm just being overally paranoid though. Stuart From jwcolby at colbyconsulting.com Tue Feb 10 21:28:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 22:28:26 -0500 Subject: [AccessD] forced logout In-Reply-To: <003201c3f04d$6c333870$2a00a8c0@BITSNB02> Message-ID: >Maybe I'm just being overly paranoid though. Uhh... probably. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders Sent: Tuesday, February 10, 2004 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] forced logout > -----Original Message----- > That is surely an idea. OTOH I want to be able to edit a > record in a table > dynamically to allow the FE to see that it is time to log > out. One problem > with "the back end directory" is that it may not even exist, > or it may be > several different directories. If you are using SQL Server, > where is "the > back end directory"? If the FE links to 3 different BEs on different > machines, where is "the BE directory"? Of course you can > then define a > directory field in a table that the logout code looks in to > see this file. Store the location in a table :) (like you say) > And of course, what about web pages hitting the be? How do > you tell them to > stay out for a time period? With a table they could > essentially use the > same logic the FE uses. this brings up the issue of time > zones of course. > The record needs to include the time zone that the database > server resides > in since Actually time zones is probably a bigger issue than individual pc time. If you go for the defined time approach, then the app needs to be aware of the time difference between it and the server. How does an ASP determine that it shouldn't contact the DB... To be perfectly honest I'm not sure. But then you'd have pretty much the same issue even if it was table based. In order for it to determine it is not supposed to be in the database it would need to already be there. One of the reasons I was favouring the file based approach (and I haven't done anything other than think about it ... Not implemented) is that it can be checked prior to trying to get into the database. So if maintenance/backup/compact is about to occur someone doesn't inadvertently log in just when the specific action is about to begin. And thus throwing the system out for 24 houus or when ever the next automated backup (for example) is scheduled. > And sure, different computers could have different times. If > that is an > issue there are programs that can be run on each workstation > that sync the > workstations to the server's clock. Yes ... But many small businesses don't, and the last thing I personally would want is that you find out this after they can't get their backup working because someone was in the db at the time. Maybe I'm just being overally paranoid though. Stuart _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Tue Feb 10 21:36:12 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 14:06:12 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Tue Feb 10 21:49:16 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 22:49:16 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: Message-ID: OTOH it would be nice if they would BOTHER to fix the outstanding bugs that just seem to propagate down from version to version. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 10:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Tue Feb 10 22:00:01 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 11 Feb 2004 15:00:01 +1100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew From andrew.haslett at ilc.gov.au Tue Feb 10 22:02:18 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 14:32:18 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: I'll give you that John ;=) -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, 11 February 2004 2:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) OTOH it would be nice if they would BOTHER to fix the outstanding bugs that just seem to propagate down from version to version. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 10:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Tue Feb 10 22:44:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 10 Feb 2004 23:44:24 -0500 Subject: [AccessD] Forced logout Message-ID: Well, I have a general shutdown system working that raises events for shutdown warnings as well as the shutdown itself. I thought you folks who are into RaiseEvents and WithEvents might be interested in this.. I am testing with THREE shutdown records, i.e. two at specific times, and one that is just a forced shutdown. In order to do this I use a clsShutDown that process a single shutdown record and handles all aspects of that specific shutdown, calculating when to issue warnings, opening a cancelable form, raising a warning or shutdown event and so forth. I also have a supervisor class which has a collection. The supervisor has a class factory that creates a clsShutdown instance for each record in the table, and then stores a pointer to that shutdown class instance in this collection. Remember that the clsShutdown can raise two different events, one a "warning" event when the warning is issued to the user, the other a "Shutdown" event when it is actually time to shut down. Since the Supervisor class contains the clsShutdown instances in it's collection, how do we sink the events that the clsShutdown instances raise? The answer is to have a class global variable of a clsShutdown in the supervisor class' header. The timer tick of the controlling form calls a TimerTick method of the supervisor class. That method then iterates the collection of clsShutdown instances SETTING THE SUPERVISOR CLASS GLOBAL TO EACH SHUTDOWN INSTANCE POINTER IN TURN. Since that supervisor class global variable was dimensioned WithEvents it can sink an event from whatever class is currently being pointed to. Thus we "switch in/out" an instance of clsShutdown, call a method of that specific instance telling it that it is time to see if we should issue a warning or perform a shutdown. THAT INSTANCE then MAY (if it is time) RAISE one of it's two events which is sunk in the supervisor class. The clsShutdown event passes a parameter in it's RaiseEvent with it's name, so now the classSupervisor knows what class instance raised the event. In fact the supervisor simply RAISES IT'S OWN EVENT by the same name and passes the parameter along to whoever is sinking the supervisor's events. What this means is that the supervisor can sink it's child class' events, one class at a time as it iterates it's child class collection. As the child class' events fire, the supervisor class sinks it and turns right around and raises it's own event passing along the parameters from the child class that originally raised the event. The object sinking the supervisor class' events can do what it wants (or nothing) with the events, but it has been notified. I've been wondering for awhile whether I could manage to sink events for classes held in a collection and this seems to work very nicely. The code of interest is dead simple: In the supervisor class header: ******* Private mcolClsShutdown As Collection Private WithEvents mCurrentClsShutdown As clsShutdown Public Event ShutdownWarning(strShutdownName As String, lngSecondsTillShutdown As Long) Public Event Shutdown(strShutdownName As String) Public Function TimerTick() Dim lclsShutdown As clsShutdown 'Cycle through all the classes in the collection, setting each to the 'module level global variable in turn. ' 'This SHOULD allow me to sink each classes' events here in this class 'and propagate it on to the user of this supervisor class ' For Each lclsShutdown In mcolClsShutdown Set mCurrentClsShutdown = lclsShutdown mCurrentClsShutdown.CheckShutdown Next lclsShutdown End Function Private Sub mCurrentClsShutdown_Shutdown(strShutdownName As String) RaiseEvent Shutdown(strShutdownName) MsgBox "Shutdown: " & strShutdownName End Sub Private Sub mCurrentClsShutdown_ShutdownWarning(strShutdownName As String, lngSecondsTillShutdown As Long) RaiseEvent ShutdownWarning(strShutdownName, lngSecondsTillShutdown) MsgBox "ShutdownWarning: " & strShutdownName End Sub ******* Of course there is initialize / terminate code etc. This is JUST the code that iterates the child class collection, tickles each child class to see if it is time to raise it's event, then sinks these events and propagates them along. I thought this was a pretty cool (and simple) way to handle this situation. I am not finished debugging the particulars of "forced shutdown" and "time back in", but I will post the demo to my web site when I get that finished. This stuff is working though, using a single "control form" to raise the timer ticks and sink the supervisor class events. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Tue Feb 10 22:56:22 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 10 Feb 2004 20:56:22 -0800 Subject: [AccessD] forced logout In-Reply-To: Message-ID: Hi John: The typical government login gives the users three tries and then will not allow the same username to be used for about twenty minutes...it use to be an hour but there were too many complains from legitimate users. (Some users have been known to attempt login before their first cup of coffee!) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 2:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 Helmut.E.Kotsch at t-online.de Wed Feb 11 00:44:59 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Wed, 11 Feb 2004 07:44:59 +0100 Subject: AW: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227864@main2.marlow.com> Message-ID: Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From caa at highway.com.br Wed Feb 11 02:44:34 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Wed, 11 Feb 2004 05:44:34 -0300 Subject: [AccessD] Checking if a file is open In-Reply-To: References: Message-ID: On Mon, 9 Feb 2004 15:28:26 +0000, wrote: > Thanks for the reply Oleg. > > That is what I have at the moment, but if at all possible I would like to > work around the file being open, (like I said though - if at all > possible) > > Cheers > Ryan > > > > Sent by: accessd-bounces at databaseadvisors.com > 09/02/2004 15:26 > Please respond to Access Developers discussion and problem solving > > > To: > cc: > Subject: Re: [AccessD] Checking if a file is open > > > the easiest (aaltough not the best) way would be to see what is the > number of the error you are getting, and write code for that error > prompting the user to close excel appl, and exiting the sub > >> Hi All, >> >> I am importing data from Excel into Access. The initial step in this >> process involves copying the data from the excel spreadsheet into a >> temporary copy of itself. This step fails if the file is open. Does >> anyone recommend a method that I could use to see if the file is already >> open (and then notify the user to shut it down?) >> >> TIA >> RyanS >> Take a llok at FileAttr function. It might help you. ;-) -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From accessd667 at yahoo.com Wed Feb 11 02:01:25 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 00:01:25 -0800 (PST) Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <20040211080125.22744.qmail@web61105.mail.yahoo.com> Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rsmethurst at UK.EY.COM Wed Feb 11 03:58:08 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 09:58:08 +0000 Subject: [AccessD] Mde trouble Message-ID: Hi All, Thanks to those of you who sent suggestions for my mde problem. It seems to be working now, and the problem appears to have been that there were circular references in the class modules. This wasn't caught in the compile, but seems to have stopped the mde from being created. Thanks again, RyanS rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 10/02/2004 16:50 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: [AccessD] Mde trouble I'm using A2K and am working with a database that fluctuates between about 10 and 18 megs. It has been working fine, until I tried to create an .mde with it. The first .mde attempt, seemed to work ok, but literally didn't compact the database more than a few thousand bytes (apparrently it normally makes substantially more difference than that) And now, I am simply getting a message saying that 'MS Access was unable to make an MDE file', even though there appears to be no problem with it, and the code compiles fine?! I have tried importing the objects, and a new database creates an mde with just the tables. But fails with the forms, and fails with the modules when I have tried on seperate databases. Other than this problem, the database seems to work fine and isn't having any problems compacting either. Can anyone offer any suggestions? Many thanks (in advance) This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Wed Feb 11 04:02:00 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 10:02:00 +0000 Subject: [AccessD] Calling objects Message-ID: Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Erwin.Craps at ithelps.be Wed Feb 11 04:07:07 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:07:07 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D275@stekelbes.ithelps.local> Is this on the fileserver or on a local disk? I would think this is somekind of cache problem. Did you verify the datetime of the file in Windows Explorer? Or tried to use the FileDateTime vb function, just to see what those are reporting. Do you set the fso to nothing after using it? Just a few toughts... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Wednesday, February 11, 2004 9:01 AM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 11 04:05:44 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 10:05:44 +0000 Subject: [AccessD] Embedded Objects Message-ID: Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From andrew.haslett at ilc.gov.au Wed Feb 11 04:24:13 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 11 Feb 2004 20:54:13 +1030 Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fi elds From SQL Server 7.0 to SQL Server 2000 Message-ID: ** also posted to SQL Server list ** There was an Access 2000 SQL Server 'Readiness Update' in early version of Office 2k. I believe it was included in a later service pack. This may or may not fix the issue, however it definitely fixed issues we had when upgrading an Access MDB to SQL Server. Check out Office Update for more info. Cheers, Andrew -----Original Message----- From: James Barash [mailto:James at fcidms.com] Sent: Wednesday, 11 February 2004 12:18 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields From SQL Server 7.0 to SQL Server 2000 Yes, SQL 2000 uses 1 for true and 0 for false. In general, 0 is false and anything non 0 is true. I believe, in Access, you can test for True and it will find 1 or -1 or anything but 0 and Null. I usually just test for <> 0 since that seems to work everywhere. Another thing to watch out for is bound forms that have bit fields. Because of the difference in how Access and SQL Server handle bit fields it can cause errors if you have bit fields that are Nullable. You must have a default value or Access will raise an error whenever you edit a record. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Monday, February 09, 2004 5:31 PM To: 'accessd at databaseadvisors.com' Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] [dba-SQLServer]X-Posted: Problem Converting Bit Fields >From SQL Server 7.0 to SQL Server 2000 We upgraded our SQL Server 7.0 backend to SQL Server 2000 over the weekend. The front end runs Access 2000 GUI client applications. After the conversion, we are experiencing a problem with Access queries that select data from the [converted] back end SQL Server tables. The problem involves a hardcoded "-1" (i.e. "True" logic condition criteria) in the Access queries testing against a "Bit" data type field in the SQL Server back end. With the SQL Server 7.0 backend tables, the Access queries were working just fine. In converting to SQL Server 2000, it appears that previously populated bit fields populated with the value of "-1" ("True") got arbitrarily switched to a value of "1" during the conversion. (The "-1" values in the back end table ["Bit" fields] got changed, NOT the "-1" criteria value in the front end query cells!) Further, when the query runs against the [converted] back end table, the "-1" criteria (from the Access query) is no longer recognized - the query doesn't return data. Needless to say, we are no longer getting the expected results (from execution of the queries) after the conversion from SQL Server 7.0 to SQL Server 2000. I suspect that Microsoft implemented a change in the behaviour of "Bit" fields from version 7.0 to SQL Server 2000. While I search the Knowledge Base and try to track this down, can anybody confirm whether this is the case? We have a lot of queries (and VBA code) that test the "-1" value against fields of data type "Bit", so we don't want to start changing these hardcoded criteria (from "-1" to just plain "1") until and unless we are ABSOLUTELY SURE that this is a SQL Server version 7.0 to version 2000 conversion anomaly. TIA for any info or enlightenment on this problem. Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From Erwin.Craps at ithelps.be Wed Feb 11 04:33:47 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:33:47 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D277@stekelbes.ithelps.local> Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Feb 11 04:40:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 11:40:17 +0100 Subject: [AccessD] Office XP Outlook Security Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D279@stekelbes.ithelps.local> It's easyier to do than it looks. BUT, read the manual 3 times before you do it.... The manual is not so well written. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, February 11, 2004 11:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 11 04:54:16 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Feb 2004 10:54:16 -0000 Subject: [AccessD] Test Data References: Message-ID: <000c01c3f08d$64cd7fb0$9111758f@aine> http://www.majorsoftware.com.au/SmplDataGen.htm The above link takes you to a download which creates large amounts of test data. Been a few emails about test data recently. No idea how good/bad this is. Martin From gustav at cactus.dk Wed Feb 11 03:10:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:10:09 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: References: Message-ID: <233987623.20040211101009@cactus.dk> Hi Bruce > We used Rekall some time ago as an ETL interface for a PostgresQL db. I > must admit I did not do the work myself. However the guy that got me the > data turned it around in a couple of hours (128Mb flat data formatted as we > requested) and I dont think he was a superguru. After we massaged the data > (remove dups & inactive accounts, standardise NAD format, restructure into > a relationship between client/account) we returned them about 67Mb to > reload which he did while we were chatting about operational data quality - > about 30 min. So in terms of doing things of that nature quickly it looked > good from a short distance. OK. I had no idea what ETL is but found an explanation here: http://www.orafaq.com/glossary/faqglose.htm /gustav From gustav at cactus.dk Wed Feb 11 02:55:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 09:55:04 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: References: Message-ID: <1873082592.20040211095504@cactus.dk> Hi Bruce > I did not have the benefit of an IDE to evaluate it as a user. So thanks > for the link to Blackadder - I will revisit Ruby again. OK. If possible, please share your experiences. /gustav From gustav at cactus.dk Wed Feb 11 03:24:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:24:23 +0100 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> References: <5.1.0.14.2.20040210144043.02a40910@pop3.highstream.net> Message-ID: <1704840960.20040211102423@cactus.dk> Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert From gustav at cactus.dk Wed Feb 11 03:52:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:52:55 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: References: Message-ID: <626552782.20040211105255@cactus.dk> Hi Bruce > I agree that Access does, and always has, run like a dog across a network. Given a high-quality network and server, this is indeed not our experience. > It is also sensitive to unstable networks. I repeat - has and always has. > Now has M$ ever adequately addressed that? Not within the Access model. We have only seen problems in the days of Win3.11 peer-to-peer networks, malfunctioning NICs and old RealTek drivers, low-cost dubious whitebox machines, and coax cables. Still peer-to-peer networks may cause troubles; using a true server and a fast and reliable network and brand name worksstations with WinNT+ causes close to zero issues. /gustav From gustav at cactus.dk Wed Feb 11 03:56:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 10:56:13 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: References: Message-ID: <1806751598.20040211105613@cactus.dk> Hi Andrew There is even a free DOS project: http://www.freedos.org/ /gustav >>And you honestly believe that the capabilities (functionality) of >>DOS would support todays applications... You've got to be kidding >>me. > Process controllers, life monitors, implant controllers, any real > time application. From gustav at cactus.dk Wed Feb 11 04:52:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 11:52:34 +0100 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: References: Message-ID: <12610131718.20040211115234@cactus.dk> Hi Terry A possible solution would be the NeTraverse Terminal Server: http://www.netraverse.com/products/wts/ Of course, the remote office will need some kind of Internet connection. It will offer your app a Win98 environment for each user. License cost for WTS and Win98 will roughly be USD 250 per user. /gustav > I'm after some information on the best way to proceed with the expansion of > an existing Access97 database application which is used for maintenance > activity recording. > My company currently runs this database at two sites, call them Site1 and > Site2. The BE is changed at Site2 as a function of its operations, each > night the BE is copied to Site1 where it is used for admin and data mining > purposes with the data acknowledged as being up to 24hrs out of date. This > has served the company well up to now as only one site can change the data. > The company now want to expand the number of sites that use and i/p data. > The new layout will have at least 4 sites. Site1 will be the admin and data > mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 > are on a WAN with Site3 being the companies main site and hosting the > companies Internet gateway. Site4 is overseas and not on the WAN. > What I would like is some idea of the best approach - I have read a bit > about replication and ASP but have no practical experience with either. > Thanks for any assistance. > Terry Mace > Logistic Support Officer & Maintenance Supervisor > BAE SYSTEMS > 677 Victoria Street, > Abbotsford, VIC 3067 > Ph: +61 3 9208 0924 > Fax: +61 3 9208 0588 > Mailto: terry.mace at baesystems.com From gustav at cactus.dk Wed Feb 11 05:18:48 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 12:18:48 +0100 Subject: [AccessD] Calling objects In-Reply-To: References: Message-ID: <9711706172.20040211121848@cactus.dk> Hi Ryan You didn't tell which format. You should use bmp files with lowest possible size and colour count. /gustav > Can anyone suggest any 'good practise' ideas for embedding image files > into a database. (I'm thinking specifically here about keeping the size of > the .mdb down) > I'm using about 20 images on a menu and they appear to be bloating the > database quite considerably and being a major hinderance when I try to > compact. From gustav at cactus.dk Wed Feb 11 05:16:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 12:16:07 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? In-Reply-To: <20040211080125.22744.qmail@web61105.mail.yahoo.com> References: <20040211080125.22744.qmail@web61105.mail.yahoo.com> Message-ID: <7711545131.20040211121607@cactus.dk> Hi Sander You could try to rename the old mdb, create the new, delete the old. /gustav > I'm using FileSystemObject to delete a MDB file. > After that I'm creating a new MDB. > Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. > Read-only." > However the time it returns is the date\time combination of when I created the DB for the first time. From rsmethurst at UK.EY.COM Wed Feb 11 05:38:39 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 11:38:39 +0000 Subject: [AccessD] Calling objects Message-ID: Thanks Gustav, I think most of them are jpgs at the moment, though will have to check that out. Will change a few to bmp and see if it makes a difference. Cheers RyanS Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 11:18 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Calling objects Hi Ryan You didn't tell which format. You should use bmp files with lowest possible size and colour count. /gustav > Can anyone suggest any 'good practise' ideas for embedding image files > into a database. (I'm thinking specifically here about keeping the size of > the .mdb down) > I'm using about 20 images on a menu and they appear to be bloating the > database quite considerably and being a major hinderance when I try to > compact. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Wed Feb 11 05:40:35 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 11:40:35 +0000 Subject: [AccessD] Object Sizes Message-ID: Hi All, Is there any mechanism in Access where you can see what the actual/approximate size of an object is. A form for example...how much actual space (bytes) it takes up...maybe a field on one of the sys tables? TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Wed Feb 11 06:02:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 13:02:22 +0100 Subject: [AccessD] Object Sizes In-Reply-To: References: Message-ID: <9814319981.20040211130222@cactus.dk> Hi Ryan > Is there any mechanism in Access where you can see what the > actual/approximate size of an object is. > A form for example...how much actual space (bytes) it takes up...maybe a > field on one of the sys tables? No. You can create a new db, record the "empty" size of that, export the form to that db, compact the new db, record the size of the new db. Size of the form is roughly the growth in size. /gustav From markamatte at hotmail.com Wed Feb 11 08:46:31 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 11 Feb 2004 14:46:31 +0000 Subject: [AccessD] forced logout Message-ID: Hello All, In following this thread...I was awaiting the answer...because I've had the same question...How to inform them its ok to go back in...If they have the FE open...doesn't it 'open' then BE? I don't know if my idea is feasible...but it was inspired by John's statement: "If the FE links to 3 different BEs on different machines, where is "the BE directory"? " Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to this table...When your criteria is met...delete/disable your linked tables in the FE...minus the SHUTDOWN table...Your FE continues to check the SHUTDOWN table...when it is time...recreate/enable your links in the FE. I'm pretty sure this can all be done in VBA. Just a shot in the dark...but almost makes sense to me...please let me know if it does to anyone else. Thanks, Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Tue, 10 Feb 2004 21:33:19 -0500 > >That is surely an idea. OTOH I want to be able to edit a record in a table >dynamically to allow the FE to see that it is time to log out. One problem >with "the back end directory" is that it may not even exist, or it may be >several different directories. If you are using SQL Server, where is "the >back end directory"? If the FE links to 3 different BEs on different >machines, where is "the BE directory"? Of course you can then define a >directory field in a table that the logout code looks in to see this file. > >And of course, what about web pages hitting the be? How do you tell them >to >stay out for a time period? With a table they could essentially use the >same logic the FE uses. this brings up the issue of time zones of course. >The record needs to include the time zone that the database server resides >in since > >And sure, different computers could have different times. If that is an >issue there are programs that can be run on each workstation that sync the >workstations to the server's clock. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders >Sent: Tuesday, February 10, 2004 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] forced logout > > >I was thinking over this just recently. The problem I have with a pure >time >based system is that different computers can have different times. >Normally >this should only be a matter of minutes, but not always. > >I saw someone mentioned something like this before and was thinking that >one >way >would be to create a zero length file in the backend directory. You could >use >different filenames for different purposes: >BESD10.txt - Shutdown in 10 minutes. >BESD5.txt - shutdown in 5 minutes >BESD.txt - immediate shutdown. >BENL.txt - no login allowed > >(.txt isn't needed ... Just an illustration) > >The reason for this is that most backup programs allow the running of >scripts >before and after backup occurs. And by simply copying a file into the BE >directory and deleting it when done you give the server the ability to >centrally >control automated jobs that require users to logout without having to guess >how >long such jobs will take. > >Just an idea... > >Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > John W. Colby > > Sent: Wednesday, 11 February, 2004 9:10 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] forced logout > > > > > > The reason can be anything. I need to ensure all users are out of the > > database every night so that compact can occur. Also I need > > to be able to > > get in and do BE maintenance, modify tables if necessary etc. > > The users are > > leaving the FE (bound forms) open. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > bruce_bruen at mlc.com.au > > Sent: Tuesday, February 10, 2004 5:11 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > If the reason is due to a db corruption discovery or to a maintenance > > shutdown then the database should be reopened by an > > administrator manually. > > If OTOH the logout is forced by some business rule then that rule is > > incomplete unless it defines the reactivation. > > > > B > > > > > > > > "John W. Colby" > > > "AccessD" > > > > com> cc: > > Sent by: > > Subject: [AccessD] > > forced logout > > accessd-bounces at databasea > > dvisors.com > > > > > > 11/02/2004 09:01 > > Please respond to Access > > Developers discussion and > > problem solving > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > force a logout > > of my users from the db. In fact it is all working now, the only > > remaining > > question is "when do I let them back in". > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > logged out between ThisTime and ThatTime", i.e. add a second > > time field to > > the table that is the time to allow back in. > > > > Anyone? > > > > My current system uses: > > > > usysTblShutdown: > > > > SD_ID - autonumber PK > > SD_Name - Shutdown name > > SD_Time - Time to shutdown > > SD_Enabled - THIS shutdown is enabled > > SD_Warnings - The number of warnings to display before > > forcing a > > shutdown > > SD_WarningTime - the number of seconds between warnings > > > > I have a form that my framework opens that initializes the > > framework, and > > shuts it back down if the form tries to close. Thus enabling a clean > > shutdown regardless of anything other than perhaps a power failure. > > > > I then use the timer for this form to call a method in my class which > > checks > > whether to do the shutdown. The class raises an event with > > every warning > > to > > the user in case your app needs warning that a shutdown is > > imminent. The > > class also raises an event when it is finally time to actually do the > > shutdown. > > > > I will publish the whole in a demo database as soon as I > > handle the issue > > of > > when to allow them back in. All opinions welcomed then summarily > > dismissed. > > > > ;-) > > > > 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 _________________________________________________________________ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx From JHewson at karta.com Wed Feb 11 08:59:03 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 11 Feb 2004 08:59:03 -0600 Subject: [AccessD] Re: Teaching Access Course Message-ID: <4AE733BBEEE72647A9F950F7275F262E1127DC@nt04.karta.com> Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 09:55:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 07:55:12 -0800 Subject: [AccessD] Embedded Objects Message-ID: What kind of images are these and why would you need 20 on a menu? Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 2:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] Embedded Objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 10:04:50 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 08:04:50 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) Message-ID: A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 11 10:23:13 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 11 Feb 2004 10:23:13 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE34B@TAPPEEXCH01> Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From adtp at touchtelindia.net Wed Feb 11 08:25:40 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 11 Feb 2004 19:55:40 +0530 Subject: [AccessD] Calling objects References: Message-ID: <002a01c3f0bb$80a6c6f0$c81865cb@winxp> RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS From jimdettman at earthlink.net Wed Feb 11 10:29:01 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 11 Feb 2004 11:29:01 -0500 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: Message-ID: Charlotte, <
> That's not quite true as it depends on the language. Most languages today do depend on a runtime as their not fully compiled, but incrementally compiled. But there are languages that produce true standalone EXE's. << what would be the point of an executable?>> Avoiding the PITA of references for one. Better performance is a second. Easier distribution is a third. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 11, 2004 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Feb 11 10:55:43 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 11 Feb 2004 10:55:43 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <009901c3f0bf$e34ba0b0$2a3ca8c0@TEXASSYSTEMS.COM> I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From rsmethurst at UK.EY.COM Wed Feb 11 11:11:14 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 11 Feb 2004 17:11:14 +0000 Subject: [AccessD] Calling objects Message-ID: No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From mastercafe at ctv.es Wed Feb 11 11:21:03 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 11 Feb 2004 18:21:03 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) In-Reply-To: <009901c3f0bf$e34ba0b0$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <003501c3f0c3$6d72b9b0$0300a8c0@servercafe> Many people like us initiate his projects with Basic, Pascal or similar languajes. I remmeber with a smile Dbase III and Clipper for develope incredible database on networks. And 15 years then... All run perfectly under msdos 3.3 , but some end users want graphical enviroment, want news, want more capabilities (internet connectivity, excel capability, etc...) is in that moment when we found the problems.... Less stability, more maintenance, backups continous, more than 100 calls to our help desk, etc... I hope that LINDOWS, LINUX or any other software demonstrate that a computer programming in a stable platform. Or a law to forbbiden to companies like microsoft introduce programs with terrible mistakes and holes. We are the debugger for microsoft... But the time that we spent is totally free of charge for they, i think so Microsoft must be down his prices more than 50% to excuse the initial problems for the new releases. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: mi?rcoles, 11 de febrero de 2004 17:56 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Feb 11 11:35:29 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 11 Feb 2004 18:35:29 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D290@stekelbes.ithelps.local> In Quick Basic you had both choices. Include runtime in Exe or not... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, February 11, 2004 5:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Charlotte, <> That's not quite true as it depends on the language. Most languages today do depend on a runtime as their not fully compiled, but incrementally compiled. But there are languages that produce true standalone EXE's. << what would be the point of an executable?>> Avoiding the PITA of references for one. Better performance is a second. Easier distribution is a third. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 11, 2004 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 11:36:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 09:36:13 -0800 Subject: [AccessD] Calling objects Message-ID: In that case, there isn't any way to avoid the bloat. There really isn't an efficient way to embed graphics in Access. Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 9:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling objects No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Feb 11 11:38:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 09:38:39 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Message-ID: Maybe they were stable after being built (which depended entirely on the skills of the developer, BTW), but I can remember the nightmare of designing effective entry screens in dBase III and the limits I was *always* pushing. Give me graphical any day, thanks! Charlotte Foust -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Wednesday, February 11, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) Many people like us initiate his projects with Basic, Pascal or similar languajes. I remmeber with a smile Dbase III and Clipper for develope incredible database on networks. And 15 years then... All run perfectly under msdos 3.3 , but some end users want graphical enviroment, want news, want more capabilities (internet connectivity, excel capability, etc...) is in that moment when we found the problems.... Less stability, more maintenance, backups continous, more than 100 calls to our help desk, etc... I hope that LINDOWS, LINUX or any other software demonstrate that a computer programming in a stable platform. Or a law to forbbiden to companies like microsoft introduce programs with terrible mistakes and holes. We are the debugger for microsoft... But the time that we spent is totally free of charge for they, i think so Microsoft must be down his prices more than 50% to excuse the initial problems for the new releases. Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: mi?rcoles, 11 de febrero de 2004 17:56 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) I work for a small manufacturing firm. We have a DOS program that does heater size calculations that must be at least 13 years old. Is it up-to-date? No. Does it have a slick interface? No. Is it still useful? Yes. The engineering calculations it performs are just as valid today as they were when it was introduced. Why not rewrite it to use the latest technology, and code it with proper OO methodology? Well, it is tested and trusted. The users are familiar with it. It works. We don't have the source, so we don't know precisely how the calculations are coded. A rewrite would involve a long and exacting testing process. And what would we get? Something that does basically the same thing as before. Now, there may come a day when this program doesn't run properly on a new Microsoft OS. Or, perhaps we'll get a comprehensive new software package that subsumes these functions. But we can't afford just yet to divert precious time and resources from higher-priority needs to fix it. It simply isn't a profit-making proposition. -Ken -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Tuesday, February 10, 2004 9:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, 11 February 2004 12:17 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Technically speaking, Andrew, there are a LOT of companies running DOS. Any company that has a Windows 9x machine is still running DOS. (Of course, it's 7.1 and 7.2 for 95 and 98 (no idea what it is for ME)). After DOS 6.22, SHARE.EXE was added, which provided multi-tasking capabilities for the OS, and it is what Windows 9x uses. Windows 9x is technically a GUI, not really an OS, where as NT based systems are using NT, versus DOS. (You can't boot to DOS in an NT system, because DOS isn't present anymore. In ME, you couldn't directly boot to DOS, simply because MS wanted to make it more difficult to actually get to the true OS.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Tuesday, February 10, 2004 5:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >> How many companies would still be running DOS if they had a choice? I >> bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. And you honestly believe that the capabilities (functionality) of DOS would support todays applications... You've got to be kidding me. -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, 11 February 2004 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I guess I was trying to get two points across about open source: * Open source projects tend to have a much longer life cycle. I mean, how long has perl and BSD been around? This gives practitioners enough time to not only master their skills, but use them productively. * If you base strategic company assets on an open source platform, and it falls out of disfavor, you are not forced to rewrite/upgrade simply because it is obsolete. Since you have the source, you can maintain and extend it as long as you wish. It seems the longer life cycle of open source better matches the typical business life cycle of a software product. How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology. -Ken -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, February 09, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what mighthappen(RANT) >>But at least Open Source will never force you to abandon software you like. ROFTL Famous last words! Charlotte Foust _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 11 11:55:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Feb 2004 18:55:57 +0100 Subject: [AccessD] Calling objects In-Reply-To: References: Message-ID: <2735535537.20040211185557@cactus.dk> Hi Ryan What Charlotte tries to tell you is that Access doesn't compress embedded pictures neither are they stored as is; prior to storage they are converted to bitmaps. That is why it is not efficient to store, say, jpegs with 24 mio. colours in oversize which you later zoom down to fit. Scale them down outside Access and save as bitmaps, if possible at 256 colours or less. Same goes for reports - pick a wrong picture format and your app will belly up. /gustav > In that case, there isn't any way to avoid the bloat. There really > isn't an efficient way to embed graphics in Access. > Charlotte Foust > No, the database is shipped all over the place, so they really need to > be embedded. > In answer to Charlotte...they're icons for the main menu. Why etc. is > not really what's up for debate at the moment, I'm just looking to make sure > it is done the most resource efficient way. From rl_stewart at highstream.net Wed Feb 11 12:15:03 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:15:03 -0600 Subject: [AccessD] Re: Embedded Objects In-Reply-To: <200402111622.i1BGMmm10585@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211121311.029c5908@pop3.highstream.net> Ryan, Yes, two words...DON'T EMBED. Do you want fluff or functional? You can use a linked object instead. Robert At 10:22 AM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 10:05:44 +0000 >From: rsmethurst at UK.EY.COM >Subject: [AccessD] Embedded Objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi All, > >Can anyone suggest any 'good practise' ideas for embedding image files >into a database. (I'm thinking specifically here about keeping the size of > >the .mdb down) > >I'm using about 20 images on a menu and they appear to be bloating the >database quite considerably and being a major hinderance when I try to >compact. > >TIA >RyanS From prodevmg at yahoo.com Wed Feb 11 12:25:35 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:25:35 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: Message-ID: <20040211182535.56349.qmail@web20413.mail.yahoo.com> Yes, I am finding that out. bruce_bruen at mlc.com.au wrote: >I was speaking about the instructions for customizing the Outlook Security Feature. There are instructions the that >Administrator can follow to customize the Outlook Security settins and allow programmatic mailings. Lonnie, I think (from memory)you will find that these insrtuctions apply to the Outlook Server not the client. IMHO they are not useful. B _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From prodevmg at yahoo.com Wed Feb 11 12:28:17 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:28:17 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D279@stekelbes.ithelps.local> Message-ID: <20040211182817.65700.qmail@web20405.mail.yahoo.com> Thanks Erwin, I will talk with our NetAdmin about it when he gets in. He spent the night here restoring our Exchange Server after some serious damage was done with respect to another issue. Thanks again. Erwin Craps - IT Helps wrote: It's easyier to do than it looks. BUT, read the manual 3 times before you do it.... The manual is not so well written. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, February 11, 2004 11:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Thats the full Outlook in combination with Exchange server. The settings need to be done at server level, aregistry key must be added to the user/workstation. This registry key will tell outlook to verify and use the security setting set in Exchange server (public folder) and to ignore Outlook regular setting. This will cancel the allow yes/no window you get while VBA sending a E-mail. I'm sure of this, done this dozens of times on Exchange Server 5.5 and 2000. Please note (again): This only works with FULL OUTLOOK in combination with EXCHANGE SERVER. Your Exchange server administrator needs to agree for this. It does implement a security risc. Well it does not really matter anymore because all virusses use their proper SMTP engine these days :-( Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 8:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Office XP Outlook Security Erwin, Is that Outlook EXPRESS or regular Outlook? Because I'm not seeing it being so easy in regular Outlook. Erwin Craps - IT Helps wrote: Euh yes Works fine with me. Use it daily. Tools>security>set to low is one thing I do. (but not sure if it's necesary) But you certanly need to do this if you use an Exchange server. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodt echnol/office/officexp/reskit/html/outg03.asp I have no idea what to do when using internet mail instead of Exchange server. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, February 10, 2004 4:46 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Wed Feb 11 12:28:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:28:51 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: <200402111800.i1BI0Tm29753@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211122507.029c5e80@pop3.highstream.net> Ryan, You did ask for "best practice." The best practice is not to do it. Shipping it all over the place is not an excuse. The install program could place them in the same directory as the Access FE then linking them is a no-brainer. The most resource efficient way is not to do it. Why you feel you have to have them is a matter for debate if you insist on the inefficient practice. Robert At 12:00 PM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 17:11:14 +0000 >From: rsmethurst at UK.EY.COM >Subject: Re: [AccessD] Calling objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >No, the database is shipped all over the place, so they really need to be >embedded. > >In answer to Charlotte...they're icons for the main menu. Why etc. is not >really what's up for debate at the moment, I'm just looking to make sure >it is done the most resource efficient way. > >Thanks >RyanS From prodevmg at yahoo.com Wed Feb 11 12:29:30 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 11 Feb 2004 10:29:30 -0800 (PST) Subject: [AccessD] Office XP Outlook Security In-Reply-To: <15572181.1076428431757.JavaMail.www@wwinf3003> Message-ID: <20040211182930.32779.qmail@web20413.mail.yahoo.com> Paul, I am also looking at this option. I have downloaded it and tweeked the code on the home page and it seems to be doing what I need. Now I need to package it to install on the user machines. Thanks. paul.hartland at fsmail.net wrote: Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Wed Feb 11 12:37:21 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 11 Feb 2004 12:37:21 -0600 Subject: [AccessD] Re: Next Version of Access 12 Musings on what mighthappen(RANT) In-Reply-To: <200402111800.i1BI0Tm29753@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040211123059.02982430@pop3.highstream.net> Personally, I was a "Clipper Head." I had an extensive library of code and I also used a design tool called Zachary (I was also a beta tester of Zachary). Zachary was also written in Clipper using Zachary. I had events like After Update 3 years before Access. I also had a mouse aware GUI that ran in DOS under Windows 3.1/3.11. I had a GUI type form design tool in Zachary. Clipper was bought by Computer Associates and killed because of a lack of commitment to go forward with the development in a true Windows environment. Zachary died with Clipper. Am I sorry? Well, a little. But, I cannot remember now how to open a table in Clipper, so I will stick with the GUI environment and not bang my head against the "I hate Microsoft" wall and just walk around it to the bank. ;-) Robert At 12:00 PM 2/11/2004 -0600, you wrote: >Date: Wed, 11 Feb 2004 09:38:39 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Next Version of Access 12 Musings on what > mighthappen(RANT) >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > >Maybe they were stable after being built (which depended entirely on the >skills of the developer, BTW), but I can remember the nightmare of >designing effective entry screens in dBase III and the limits I was >*always* pushing. Give me graphical any day, thanks! > >Charlotte Foust > >-----Original Message----- >From: MastercafeCTV [mailto:mastercafe at ctv.es] >Sent: Wednesday, February 11, 2004 9:21 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Next Version of Access 12 Musings on what >mighthappen(RANT) > > >Many people like us initiate his projects with Basic, Pascal or similar >languajes. I remmeber with a smile Dbase III and Clipper for develope >incredible database on networks. From stuart at lexacorp.com.pg Wed Feb 11 15:34:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Feb 2004 07:34:28 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: Message-ID: <402B2C84.3551.12360C@localhost> On 11 Feb 2004 at 8:04, Charlotte Foust wrote: > A compiled executable only runs when the runtime is in place. That's > just as true of VB executables as it is of anything that might be done > in Access. Since you would still need to install the Access runtime on > a machine, what would be the point of an executable? > Only true if you are using a half baked "P-Code" compiler like VB. Any "true compiler" which compiles to machine code doesn't require any form of runtime. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Wed Feb 11 16:09:13 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 11 Feb 2004 14:09:13 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) Message-ID: True. But since Access is based on VB, it isn't likely that a compiler would be created separately for Access, don't you think? Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, February 11, 2004 1:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen(RANT) On 11 Feb 2004 at 8:04, Charlotte Foust wrote: > A compiled executable only runs when the runtime is in place. That's > just as true of VB executables as it is of anything that might be done > in Access. Since you would still need to install the Access runtime > on a machine, what would be the point of an executable? > Only true if you are using a half baked "P-Code" compiler like VB. Any "true compiler" which compiles to machine code doesn't require any form of runtime. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 16:49:24 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:49:24 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227873@main2.marlow.com> >We work in a dynamic industry that is constantly changing. Some of us seem >to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew From DWUTKA at marlow.com Wed Feb 11 16:52:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:52:38 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227874@main2.marlow.com> By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 16:55:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 16:55:04 -0600 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> What's the OS? Windows 2000 has indexing, which indexes your files. It is VERY possible that indexing is causing this issue. A workaround, would be to create the new db under a different name, then rename it. That should force the new Created time. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Wednesday, February 11, 2004 2:01 AM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 11 17:08:50 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 11 Feb 2004 17:08:50 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227877@main2.marlow.com> Very interesting article. One of the many advantages of Access, you are giving it to people who have the tools already (unless you are using runtime versions). VB 6.0 only has a 1.4 meg runtime installation too, small enough to add to a downloadable .zip. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 11, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Wed Feb 11 17:14:38 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 12 Feb 2004 09:44:38 +1030 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From terry.mace at baesystems.com Wed Feb 11 17:48:53 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 12 Feb 2004 10:18:53 +1030 Subject: [AccessD] Database Operation from Remote Sites Message-ID: Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Helmut.E.Kotsch at t-online.de Wed Feb 11 17:51:48 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Thu, 12 Feb 2004 00:51:48 +0100 Subject: AW: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227874@main2.marlow.com> Message-ID: Drew, I would appreciate a complete setup from which I could understand how it is done in order to than translate it somehow to my application. Helmut -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 23:53 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 11 20:02:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 11 Feb 2004 21:02:25 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: Mark, It is not necessary to delete the other tables. As long as no bound form is open, and no recordsets in code are open, then the FE will not be "IN" the BE. And yes, this "bound to the shutdown BE concept would certainly work. The shutdown widget I'm designing has a shutdown table with all information in it. The purpose was mostly to have a "template" table with a few example records in it, as well as a test table during design. There's no reason it couldn't just use this table. My widget is an MDA of course with the code and table all in one. If you wanted to control shutdowns in more than one FE you would need to move the table out into a "BE" or use a COPY of this MDA for each FE being controlled. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 11, 2004 9:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] forced logout Hello All, In following this thread...I was awaiting the answer...because I've had the same question...How to inform them its ok to go back in...If they have the FE open...doesn't it 'open' then BE? I don't know if my idea is feasible...but it was inspired by John's statement: "If the FE links to 3 different BEs on different machines, where is "the BE directory"? " Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to this table...When your criteria is met...delete/disable your linked tables in the FE...minus the SHUTDOWN table...Your FE continues to check the SHUTDOWN table...when it is time...recreate/enable your links in the FE. I'm pretty sure this can all be done in VBA. Just a shot in the dark...but almost makes sense to me...please let me know if it does to anyone else. Thanks, Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Tue, 10 Feb 2004 21:33:19 -0500 > >That is surely an idea. OTOH I want to be able to edit a record in a table >dynamically to allow the FE to see that it is time to log out. One problem >with "the back end directory" is that it may not even exist, or it may be >several different directories. If you are using SQL Server, where is "the >back end directory"? If the FE links to 3 different BEs on different >machines, where is "the BE directory"? Of course you can then define a >directory field in a table that the logout code looks in to see this file. > >And of course, what about web pages hitting the be? How do you tell them >to >stay out for a time period? With a table they could essentially use the >same logic the FE uses. this brings up the issue of time zones of course. >The record needs to include the time zone that the database server resides >in since > >And sure, different computers could have different times. If that is an >issue there are programs that can be run on each workstation that sync the >workstations to the server's clock. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders >Sent: Tuesday, February 10, 2004 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] forced logout > > >I was thinking over this just recently. The problem I have with a pure >time >based system is that different computers can have different times. >Normally >this should only be a matter of minutes, but not always. > >I saw someone mentioned something like this before and was thinking that >one >way >would be to create a zero length file in the backend directory. You could >use >different filenames for different purposes: >BESD10.txt - Shutdown in 10 minutes. >BESD5.txt - shutdown in 5 minutes >BESD.txt - immediate shutdown. >BENL.txt - no login allowed > >(.txt isn't needed ... Just an illustration) > >The reason for this is that most backup programs allow the running of >scripts >before and after backup occurs. And by simply copying a file into the BE >directory and deleting it when done you give the server the ability to >centrally >control automated jobs that require users to logout without having to guess >how >long such jobs will take. > >Just an idea... > >Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > John W. Colby > > Sent: Wednesday, 11 February, 2004 9:10 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] forced logout > > > > > > The reason can be anything. I need to ensure all users are out of the > > database every night so that compact can occur. Also I need > > to be able to > > get in and do BE maintenance, modify tables if necessary etc. > > The users are > > leaving the FE (bound forms) open. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > bruce_bruen at mlc.com.au > > Sent: Tuesday, February 10, 2004 5:11 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > If the reason is due to a db corruption discovery or to a maintenance > > shutdown then the database should be reopened by an > > administrator manually. > > If OTOH the logout is forced by some business rule then that rule is > > incomplete unless it defines the reactivation. > > > > B > > > > > > > > "John W. Colby" > > > "AccessD" > > > > com> cc: > > Sent by: > > Subject: [AccessD] > > forced logout > > accessd-bounces at databasea > > dvisors.com > > > > > > 11/02/2004 09:01 > > Please respond to Access > > Developers discussion and > > problem solving > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > force a logout > > of my users from the db. In fact it is all working now, the only > > remaining > > question is "when do I let them back in". > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > logged out between ThisTime and ThatTime", i.e. add a second > > time field to > > the table that is the time to allow back in. > > > > Anyone? > > > > My current system uses: > > > > usysTblShutdown: > > > > SD_ID - autonumber PK > > SD_Name - Shutdown name > > SD_Time - Time to shutdown > > SD_Enabled - THIS shutdown is enabled > > SD_Warnings - The number of warnings to display before > > forcing a > > shutdown > > SD_WarningTime - the number of seconds between warnings > > > > I have a form that my framework opens that initializes the > > framework, and > > shuts it back down if the form tries to close. Thus enabling a clean > > shutdown regardless of anything other than perhaps a power failure. > > > > I then use the timer for this form to call a method in my class which > > checks > > whether to do the shutdown. The class raises an event with > > every warning > > to > > the user in case your app needs warning that a shutdown is > > imminent. The > > class also raises an event when it is finally time to actually do the > > shutdown. > > > > I will publish the whole in a demo database as soon as I > > handle the issue > > of > > when to allow them back in. All opinions welcomed then summarily > > dismissed. > > > > ;-) > > > > 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 _________________________________________________________________ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.curtis at wapl.com.au Wed Feb 11 19:55:23 2004 From: andrew.curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Thu, 12 Feb 2004 09:55:23 +0800 Subject: [AccessD] fso.DeleteFile Strange behaviour!? Message-ID: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. From andrew.curtis at wapl.com.au Wed Feb 11 20:44:49 2004 From: andrew.curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Thu, 12 Feb 2004 10:44:49 +0800 Subject: [AccessD] Re: Teaching Access Course Message-ID: Some excellent free tutorials and cheap online courses for access are here: http://tutorials.freeskills.com/index/category/104 Andrew -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Wednesday, 11 February 2004 10:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Teaching Access Course Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a sheet of > paper the things we need to store about a recipe. Now, look at each item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there needs to > be a table to hold it. > My guess would be that they want to be able to query the database and do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. From jmhla at earthlink.net Wed Feb 11 22:46:34 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 11 Feb 2004 20:46:34 -0800 Subject: [AccessD] Access 2003 Developer's Book In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128A52@mail2.wrsystems.com> Message-ID: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Feb 11 22:47:38 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 11 Feb 2004 20:47:38 -0800 Subject: [AccessD] Access as Service (What is a service?)Thanks Drew In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222784F@main2.marlow.com> Message-ID: <000701c3f123$5a0b5f70$6501a8c0@delllaptop> Thanks Dew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, February 09, 2004 6:21 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access as Service (What is a service?) A service is a program that runs in the background of the OS. In Windows 9x machines, services are setup in the registry, and there is little you can do with them, other then put them in the registry, and reboot. The real key of a 'service', is that it runs no matter who is logged on, or even if anyone is logged on at all. Why would that be important? Simple. Take for example a Firewall program. You would want your firewall to be running whenever your computer is on, not just when you are logged in. In Windows NT (NT 4.0, 2k, XP), there is a 'services' panel in the control panel. This lists all of the programs that are setup as services on your machine. Each program can be set to Automatic, Manual, or Disabled. (which determines how the service is started when your OS boots). You can also stop/start the various services. There are other options available, depending on what OS you are using. I hope this answers your question. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Sunday, February 08, 2004 10:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access as Service (What is a service?) What DO they mean a service and how would access be such a service? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, January 29, 2004 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access as Service On 29 Jan 2004 at 9:28, ggonzalez at cccis.com wrote: > > Has anyone ever had to run an Access application as a service on a > computer? if so can you pint me in the direction on how I could do this. > Never tried it with Access, but take a look at FireDaemon http://www.firedaemon.com/ "FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT/2K/XP/2K3/Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 12 01:17:56 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 12 Feb 2004 07:17:56 +0000 Subject: [AccessD] forced logout Message-ID: John, But by using a table in a seperate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Just Curious... Mark >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Wed, 11 Feb 2004 21:02:25 -0500 > >Mark, > >It is not necessary to delete the other tables. As long as no bound form >is >open, and no recordsets in code are open, then the FE will not be "IN" the >BE. And yes, this "bound to the shutdown BE concept would certainly work. > >The shutdown widget I'm designing has a shutdown table with all information >in it. The purpose was mostly to have a "template" table with a few >example >records in it, as well as a test table during design. There's no reason it >couldn't just use this table. My widget is an MDA of course with the code >and table all in one. If you wanted to control shutdowns in more than one >FE you would need to move the table out into a "BE" or use a COPY of this >MDA for each FE being controlled. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 11, 2004 9:47 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] forced logout > > >Hello All, > >In following this thread...I was awaiting the answer...because I've had the >same question...How to inform them its ok to go back in...If they have the >FE open...doesn't it 'open' then BE? I don't know if my idea is >feasible...but it was inspired by John's statement: > >"If the FE links to 3 different BEs on different machines, where is "the BE >directory"? " > >Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to >this table...When your criteria is met...delete/disable your linked tables >in the FE...minus the SHUTDOWN table...Your FE continues to check the >SHUTDOWN table...when it is time...recreate/enable your links in the FE. >I'm pretty sure this can all be done in VBA. > >Just a shot in the dark...but almost makes sense to me...please let me know >if it does to anyone else. > >Thanks, > >Mark A. Matte > > > > > >From: "John W. Colby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] forced logout > >Date: Tue, 10 Feb 2004 21:33:19 -0500 > > > >That is surely an idea. OTOH I want to be able to edit a record in a >table > >dynamically to allow the FE to see that it is time to log out. One >problem > >with "the back end directory" is that it may not even exist, or it may be > >several different directories. If you are using SQL Server, where is >"the > >back end directory"? If the FE links to 3 different BEs on different > >machines, where is "the BE directory"? Of course you can then define a > >directory field in a table that the logout code looks in to see this >file. > > > >And of course, what about web pages hitting the be? How do you tell them > >to > >stay out for a time period? With a table they could essentially use the > >same logic the FE uses. this brings up the issue of time zones of >course. > >The record needs to include the time zone that the database server >resides > >in since > > > >And sure, different computers could have different times. If that is an > >issue there are programs that can be run on each workstation that sync >the > >workstations to the server's clock. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders > >Sent: Tuesday, February 10, 2004 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] forced logout > > > > > >I was thinking over this just recently. The problem I have with a pure > >time > >based system is that different computers can have different times. > >Normally > >this should only be a matter of minutes, but not always. > > > >I saw someone mentioned something like this before and was thinking that > >one > >way > >would be to create a zero length file in the backend directory. You >could > >use > >different filenames for different purposes: > >BESD10.txt - Shutdown in 10 minutes. > >BESD5.txt - shutdown in 5 minutes > >BESD.txt - immediate shutdown. > >BENL.txt - no login allowed > > > >(.txt isn't needed ... Just an illustration) > > > >The reason for this is that most backup programs allow the running of > >scripts > >before and after backup occurs. And by simply copying a file into the BE > >directory and deleting it when done you give the server the ability to > >centrally > >control automated jobs that require users to logout without having to >guess > >how > >long such jobs will take. > > > >Just an idea... > > > >Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > John W. Colby > > > Sent: Wednesday, 11 February, 2004 9:10 AM > > > To: Access Developers discussion and problem solving > > > Subject: RE: [AccessD] forced logout > > > > > > > > > The reason can be anything. I need to ensure all users are out of the > > > database every night so that compact can occur. Also I need > > > to be able to > > > get in and do BE maintenance, modify tables if necessary etc. > > > The users are > > > leaving the FE (bound forms) open. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > bruce_bruen at mlc.com.au > > > Sent: Tuesday, February 10, 2004 5:11 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > > > If the reason is due to a db corruption discovery or to a maintenance > > > shutdown then the database should be reopened by an > > > administrator manually. > > > If OTOH the logout is forced by some business rule then that rule is > > > incomplete unless it defines the reactivation. > > > > > > B > > > > > > > > > > > > "John W. Colby" > > > > > "AccessD" > > > > > > com> cc: > > > Sent by: > > > Subject: [AccessD] > > > forced logout > > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 11/02/2004 09:01 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > > force a logout > > > of my users from the db. In fact it is all working now, the only > > > remaining > > > question is "when do I let them back in". > > > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > > logged out between ThisTime and ThatTime", i.e. add a second > > > time field to > > > the table that is the time to allow back in. > > > > > > Anyone? > > > > > > My current system uses: > > > > > > usysTblShutdown: > > > > > > SD_ID - autonumber PK > > > SD_Name - Shutdown name > > > SD_Time - Time to shutdown > > > SD_Enabled - THIS shutdown is enabled > > > SD_Warnings - The number of warnings to display before > > > forcing a > > > shutdown > > > SD_WarningTime - the number of seconds between warnings > > > > > > I have a form that my framework opens that initializes the > > > framework, and > > > shuts it back down if the form tries to close. Thus enabling a clean > > > shutdown regardless of anything other than perhaps a power failure. > > > > > > I then use the timer for this form to call a method in my class which > > > checks > > > whether to do the shutdown. The class raises an event with > > > every warning > > > to > > > the user in case your app needs warning that a shutdown is > > > imminent. The > > > class also raises an event when it is finally time to actually do the > > > shutdown. > > > > > > I will publish the whole in a demo database as soon as I > > > handle the issue > > > of > > > when to allow them back in. All opinions welcomed then summarily > > > dismissed. > > > > > > ;-) > > > > > > 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 > >_________________________________________________________________ >Get some great ideas here for your sweetheart on Valentine's Day - and >beyond. http://special.msn.com/network/celebrateromance.armx > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ From accessd667 at yahoo.com Thu Feb 12 01:36:54 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 23:36:54 -0800 (PST) Subject: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... In-Reply-To: Message-ID: <20040212073654.33655.qmail@web61107.mail.yahoo.com> Hi group, I'm now using the LastModified thingy to get the correct date. I'm not too proud of it but it works. SD "Curtis, Andrew (WAPL)" wrote: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd667 at yahoo.com Thu Feb 12 01:45:55 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 11 Feb 2004 23:45:55 -0800 (PST) Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? In-Reply-To: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Message-ID: <20040212074555.38963.qmail@web61102.mail.yahoo.com> Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From Erwin.Craps at ithelps.be Thu Feb 12 02:03:22 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:03:22 +0100 Subject: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D293@stekelbes.ithelps.local> SD If that is the only thing your're not proud of, then you must be an angel... :-) Erwn -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, February 12, 2004 8:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] fso.DeleteFile Strange behaviour!? SOLVED.... Hi group, I'm now using the LastModified thingy to get the correct date. I'm not too proud of it but it works. SD "Curtis, Andrew (WAPL)" wrote: Suggest you use date / time MODIFIED instead. Creation date is unreliable after a delete because when a file is deleted, it is not truly removed, it simply has its first character scrambled, thus hiding it from the OS, but retrievable via undelete methods. Recreating the same file in the same place immediately becomes a bit grey. Andrew Curtis -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, 11 February 2004 4:01 PM To: accessd Subject: [AccessD] fso.DeleteFile Strange behaviour!? Hi group, I'm using FileSystemObject to delete a MDB file. After that I'm creating a new MDB. Then i'm using the .DateCreated method to get the the info about when the file was created. I checked this in the help: "Returns the date and time that the specified file or folder was created. Read-only." However the time it returns is the date\time combination of when I created the DB for the first time. EG: I'm starting the application at 8:00. I then show on screen the date\time the temp (analyses) db was created, let's say that it was created on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press the button and it deletes the file, creates a new one and adds tables to it. Then I show the user the .DateCreated wich shows 8:00. When I stay in the program and do the above at 8:15 the .DateCreated method returns again 8:00!!! When I look in Explorer the DateCreated column shows 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date created 8:00? I've checked in Explorer that the file is gone after the deletefile statement. Any ideas? Sander Here's part of my code: FORM LOAD: 'Create temporary database blnCreateTables = CreateTempDatabase(LOCATION_TEMP_DB, TEMP_DB_NAME) If blnCreateTables Then 'Create tables Call CreateTables(LOCATION_TEMP_DB, TEMP_DB_NAME) ... ... Function CreateTempDatabase(strPath As String, strDbName As String) As Boolean On Error GoTo Err_CreateTempDatabase Dim dbDestination As DAO.Database Dim blnDbExists As Boolean Dim blnCreateDB As Boolean 'Check if file exists blnDbExists = FileExists(strPath & strDbName) If blnDbExists Then Select Case MsgBox("Temporary database EXISTS. Do you want to DELETE it and create a new one?", vbYesNo + vbInformation + vbDefaultButton1, "Temporary database exists") Case vbYes 'Delete file! If DeleteFile(strPath & strDbName) Then blnCreateDB = True .... .... 'Create TEMPDB If blnCreateDB Then Set dbDestination = Workspaces(0).CreateDatabase(strPath & strDbName, DB_LANG_GENERAL) End If 'Set return value CreateTempDatabase = blnCreateDB 'errorhandling END FUNCTION Public Function DeleteFile(strFileName As String) As Boolean On Error GoTo Err_DeleteFile Dim fso As FileSystemObject Dim file As String Dim strFileNameLDB As String file = strFileName ' change to match the file w/Path Set fso = New FileSystemObject 'Set fso = CreateObject("Scripting.FileSystemObject") strFileNameLDB = "C:\Program Files\Switchdatabase\Temp_Db_Switch.ldb" If fso.FileExists(strFileName) Then fso.DeleteFile strFileName, True If fso.FileExists(strFileNameLDB) Then fso.DeleteFile strFileNameLDB, True End If 'return value DeleteFile = True Else 'return value DeleteFile = False End If Exit_DeleteFile: Exit Function Err_DeleteFile: MsgBox Err.Number & vbCrLf & _ Err.Description & vbCrLf & _ "Location: DeleteFile()" Resume Exit_DeleteFile End Function Function CheckNewFile(strFile As String) As String On Error GoTo Err_CheckNewFile Dim objFileSys As FileSystemObject Dim objFile As file Dim strFileName As String Dim strNewDateCreated As String Set objFileSys = New FileSystemObject strFileName = strFile If objFileSys.FileExists(strFileName) Then Set objFile = objFileSys.GetFile(strFileName) 'Get file created value With objFile strNewDateCreated = .DateCreated End With Else 'File does NOT exist! strNewDateCreated = vbNullString GoTo Exit_CheckNewFile End If 'Set returnvalue CheckNewFile = strNewDateCreated ....errrorhandling End Function --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com CONFIDENTIAL COMMUNICATION If you receive this confidential communication by mistake, please contact the sender immediately by return electronic mail. Worsley Alumina Pty Ltd ABN 58 008 905 155 is the manager of the Worsley Joint Venture - Bauxite/Alumina Operation. Liability and responsibility of the Joint Venturers is several in accordance with the following schedule of participating interests: Billiton Aluminium (RAA) Pty Ltd 56 percent, Billiton Aluminium (Worsley) Pty Ltd 30 percent, Japan Alumina Associates (Australia) Pty Ltd 10 percent, Nissho Iwai Alumina Pty Limited 4 percent. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 02:06:31 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:06:31 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D294@stekelbes.ithelps.local> Do we have a .NET list over here? I already purchased two version of .Net without really dooing something. Each time I convince myself to do something with .Net I'm seem to loose myself in the interface.. Maybe we could create some ".NET for Access dummies" list? I would be the first member! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 12:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Very interesting article. One of the many advantages of Access, you are giving it to people who have the tools already (unless you are using runtime versions). VB 6.0 only has a 1.4 meg runtime installation too, small enough to add to a downloadable .zip. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 11, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Charlotte, The switch to .NET further solidifies your argument Using A2K as an example: The pared down A2K runtime distribution file set is ~70 MB. My understanding is that the SageKey scripts produce a file set significantly smaller than that. At any rate, this is something that can easily be distributed on a CD. The "compiled" .NET languages OTOH, require that you install the CLR/.NET framework, which at last count was over 20 MB. If you want an idea of what's involved in deploying a .NET app, take a look at Joel Spolsky's experience: http://www.joelonsoftware.com/articles/PleaseLinker.html -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, February 11, 2004 10:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) A compiled executable only runs when the runtime is in place. That's just as true of VB executables as it is of anything that might be done in Access. Since you would still need to install the Access runtime on a machine, what would be the point of an executable? Charlotte Foust -----Original Message----- From: bruce_bruen at mlc.com.au [mailto:bruce_bruen at mlc.com.au] Sent: Tuesday, February 10, 2004 8:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) I have no doubt that the progress of desktop programming environments is of value. As you say some functions available today were not possible in previous times - I only have to look at the pictures of carrots on the supermarket cash register display to remind me of that :-) My disappointment lies in the way that Access has progressed lately and "according to Getz" will be progressing in the future. I use Access as a Rapid Development IDE mainly for one off analytic work - quite possibly this is not the mainstream use of the tool. However, in that realm, it is superb. I believe, please correct me if I'm wrong guys, that the majority of the serious business applications that generate the revenue of many of the listers are quite right-sized by the access model. There is one probable exception. I agree that Access does, and always has, run like a dog across a network. It is also sensitive to unstable networks. I repeat - has and always has. Now has M$ ever adequately addressed that? Not within the Access model. We have always lacked a means to generate native executables. Why? What would be the technical difficulty in producing an Access FE compiler? I am all for progress of Access. I just want it to be what I want and need, which is not for development of medium to large scale commercial applications. When I do get involved in that it is within a technical base that supports that level of development - as you say in Studio or .net using a heavyweight rdbms. B All true, but the issue raised was: "How many companies would still be running DOS if they had a choice? I bet a lot, because it is the function of the software that really matters in business, and not so much the underlying technology." The 'function of the software' of the many applications running today, simple would not be capable of running under DOS due to its limitations, hence the reason why alternatives have been designed. I'd say that companies wouldn't really care what the underlying OS is, as long as their apps of choice would run. I can't see many cases at all where an org would *choose* to run an application under DOS if they had the choice. This whole discussion of 'leave Access alone its not broke' is raised whenever new versions are released. Its unfortunate that many are unwilling to even consider the advances that could be made. I'd be interested to know how many here have actually used Visual Studio and/or programmed in .Net. If not, I don't see how you can pass judgement in this areas on possible improvements, advances or tools that you've not used. (Yes, I professionally program in this environment and consider the framework / languages and environment superior to that of the Access IDE, which I have thoroughly enjoyed using for the past 10 years). We work in a dynamic industry that is constantly changing. Some of us seem to refuse to adapt or accept change and others look to the future. Cheers, Andrew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ---- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 02:40:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 09:40:10 +0100 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D295@stekelbes.ithelps.local> Huummm.... In big lines you are right here my big changes list... DOS 1.x > wow, I can copy files and floppies with this thing... But for copying floppies you rather use copy2pc. You could even copy unix and tbos and other os disks, even copy protected ones... DOS 2.x > introduction of expanded memory (LIM/EMS)? Dos 3.11 > WOW, share.exe is introduced, now we can access files simulteanioulsy. Support of expanded (LIM/EMS) AND extended memory (XMS). Yes the 1024 frontier finaly broken WOW. DOS 4.21 > huumm, nothing new? Or was support of bigger disks introduced? Yes something changed with FDISK.EXE. Aha DOS 5 > yipie, I can use UMB memory, I can put my keyb.com be back in my autoexec and type in AZERTY when using an big memory consuming app. DOS 6 > sniff, not much new, aha I can defrag my disk W 3.x, THANK GOD, finaly, one printer driver for ALL applications.... (I use to sell printers in those days) W95 > wow, some kind of multitasking thanks to 32 bit, I'm no longer falling asleep when switching tasks. W98 > O MY GOD, USB interface, finaly get rid of those RS-232 connections for which I never seem to have the right cable. WNT4 > O MY GOD, I havent pressed RESET for 30 days now and this multitasking is so fast!!! W2K > FINALY, USB Support in a real OS (NT) and don't have to reboot each time I make an OS change. WXP > Oh no, I have to review my morning schedule. It boots so fast I can no longer make cofee and drink two cups before I'm able to work. And no, I did not forget about OS2 Lan manager 1.X, 2.0, NT 3.51 Windows Me, Banyan Vines, SCO unix, Thoroughbread OS, Corvus PC-LAN, Netware, PC-MOS, and ohter PC OS's. PS: "My god" can be any god of your choice (for me thats my wife and son). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 11, 2004 11:49 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Feb 12 02:49:53 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 12 Feb 2004 08:49:53 -0000 Subject: [AccessD] Access 2003 Developer's Book References: <000601c3f123$33f7c0d0$6501a8c0@delllaptop> Message-ID: <003201c3f145$2e8ebe10$9111758f@aine> Not yet AFAIK Will ask Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 12, 2004 4:46 AM Subject: RE: [AccessD] Access 2003 Developer's Book > Has Ken Getz and his crew put out the 2 new door stops. They write the > developers handbook we always recommended here. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall > Anthony > Sent: Tuesday, February 10, 2004 10:12 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Access 2003 Developer's Book > > Hi group, > Anybody using, know of A2k3 Developer's book? Thanks. > > Randy @ ext. 473 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Thu Feb 12 03:06:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 10:06:10 +0100 Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D296@stekelbes.ithelps.local> Well, I tought I was the only one but since I installed Office 2003 I have a lot of crashes in any version of access while I'm developing in the VBA editor. In several occasions I lost the code, since the last change. I even had to restore a backup in a couple of situations because the MDB file i was working on was compleetly corrupt. There something very weird with the references to, more weird then normaly.... It's my impression, but not sure, that the problems in an MDB (any version) start after you once opened it in A2003 (usealy I open it in A2003 by mistake). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, February 12, 2004 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2003 Developer's Book + VBA Buggy? Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Feb 12 04:06:38 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 12 Feb 2004 10:06:38 -0000 Subject: [AccessD] Next Version of Access 12 Musings on what might happen (RANT) In-Reply-To: <402A1265.7128.29ED13@localhost> Message-ID: <01db01c3f14f$e78947f0$b274d0d5@minster33c3r25> My biggest client for one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 11 February 2004 01:31 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Next Version of Access 12 Musings on > what might happen (RANT) > > > On 11 Feb 2004 at 10:24, Haslett, Andrew wrote: > > > >> How many companies would still be running DOS if they > had a choice? > > >> I bet > > a lot, because it is the function of the software that > really matters > > in business, and not so much the underlying technology. > > > > And you honestly believe that the capabilities > (functionality) of DOS > > would support todays applications... You've got to be kidding me. > > > > > > I know plenty of organisations that are still using DOS accounting > packages. > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy http://www.lexacorp.com.pg > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From rsmethurst at UK.EY.COM Thu Feb 12 04:20:17 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 10:20:17 +0000 Subject: [AccessD] Calling objects Message-ID: Hmm...the answer I was fearing Charlotte. So it's really just a matter of trying to get them in a format that is best. I'll play around. Thanks again. Ryan "Charlotte Foust" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 17:36 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: RE: [AccessD] Calling objects In that case, there isn't any way to avoid the bloat. There really isn't an efficient way to embed graphics in Access. Charlotte Foust -----Original Message----- From: rsmethurst at uk.ey.com [mailto:rsmethurst at uk.ey.com] Sent: Wednesday, February 11, 2004 9:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling objects No, the database is shipped all over the place, so they really need to be embedded. In answer to Charlotte...they're icons for the main menu. Why etc. is not really what's up for debate at the moment, I'm just looking to make sure it is done the most resource efficient way. Thanks RyanS "A.D.Tejpal" Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 14:25 Please respond to Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" cc: Subject: Re: [AccessD] Calling objects RyanS, Does your situation permit storage of files outside Access and using their paths instead ? Regards, A.D.Tejpal -------------- ----- Original Message ----- From: rsmethurst at UK.EY.COM To: Access Developers discussion and problem solving Sent: Wednesday, February 11, 2004 15:32 Subject: [AccessD] Calling objects Hi All, Can anyone suggest any 'good practise' ideas for embedding image files into a database. (I'm thinking specifically here about keeping the size of the .mdb down) I'm using about 20 images on a menu and they appear to be bloating the database quite considerably and being a major hinderance when I try to compact. TIA RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Feb 12 04:20:58 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 10:20:58 +0000 Subject: [AccessD] Calling objects Message-ID: Thanks Gustav, will try that. Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 11/02/2004 17:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Calling objects Hi Ryan What Charlotte tries to tell you is that Access doesn't compress embedded pictures neither are they stored as is; prior to storage they are converted to bitmaps. That is why it is not efficient to store, say, jpegs with 24 mio. colours in oversize which you later zoom down to fit. Scale them down outside Access and save as bitmaps, if possible at 256 colours or less. Same goes for reports - pick a wrong picture format and your app will belly up. /gustav > In that case, there isn't any way to avoid the bloat. There really > isn't an efficient way to embed graphics in Access. > Charlotte Foust > No, the database is shipped all over the place, so they really need to > be embedded. > In answer to Charlotte...they're icons for the main menu. Why etc. is > not really what's up for debate at the moment, I'm just looking to make sure > it is done the most resource efficient way. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From roz.clarke at donnslaw.co.uk Thu Feb 12 04:33:45 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 10:33:45 -0000 Subject: [AccessD] Charts Message-ID: <61F915314798D311A2F800A0C9C83188047C6AA9@dibble.observatory.donnslaw.co.uk> Stephen A belated thank you. It eventually transpired that our email filtering software ate your mail. I have decided that these reports are not a high enough priority to justify the effort required to make them work so I've moved on. thanks again anyway Roz -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: 03 February 2004 19:30 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Charts Roz, I have sent you something off line. Stephen > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: Tuesday, 3 February 2004 10:48 p.m. > To: AccessD (AccessD at databaseadvisors.com) > Subject: FW: [AccessD] Charts > > > Stephen > > I have finally had a go at this and I can't really see how > you're making it > work - yes I am sleepy and slow today. > > I can get my select query showing a row for each month; the > trouble is, the > row is blank apart from the month. To get the correct > interpretation for the > chart (i.e. for months where there is no data the value for > each category > axis should = 0) I am somehow going to have to create a row > that contains > the category and a value of 0 for each category for each month. > > I think I might go back to working out why getting data into > Excel is so > difficult :/ > > Roz > > -----Original Message----- > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > Sent: 30 January 2004 09:18 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Charts > > > I don't know about sledgehammer but it sounds like it could > do the job... :) > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: 29 January 2004 19:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Charts > > > I see what you're up against - I've never been a fan of > Access charts ..... > Excel always excels .... > > I had a bit of a play, I'm afraid my approach has overtones > of sledgehammer, > but tell me what you think: > > I created a new local table called tblMasterMonths, one field > called MM, > type number (byte). Filled the table with 12 records, values > 1, 2, 3, ... > 12. > > To build the query underlying the Chart, I took the select > query I had (the > one that only shows me January) and altered it to include > tblMasterMonths, > with a Left Join from tblmasterMonths to the query that > contains the raw > data. This forces months with no data to still have an entry > in the output. > > Use the output from this into the Chart. > > Stephen Bond > > > > -----Original Message----- > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > Sent: Friday, 30 January 2004 7:04 a.m. > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Charts > > > > > > Sorry Stephen, I guess I wasn't clear enough > > > > I have the column headings set in my cross-tab query and that works > > just fine. The problem is when I try to base a line graph on that > > data... I just > > can't see a way to do it. > > > > -----Original Message----- > > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > > Sent: 29 January 2004 17:34 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Charts > > > > > > Making an assumption here that you have a Cross-tab Q with > the month > > column header formatted MM ... > > > > * go to Query Properties, and put something like this in the 'Column > > Headings' entry: 1;2;3;4;5;6;7;8;9;10;11;12 > > > > This will force a column heading for each month. > > > > Stephen Bond > > > > > -----Original Message----- > > > From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] > > > Sent: Friday, 30 January 2004 5:54 a.m. > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Charts > > > > > > > > > Hi all. Hope everyone is well. > > > > > > I have a problem with a chart I need to display in > Access. I used to > > > do this by exporting data to Excel but the connection to Excel has > > > been so slow and unstable that I am now trying to bring it within > > > Access. > > > > > > The data I need to display is in a cross-tab query, where I have > > > categories as the row header and months of the year as the column > > > header. I need to show all the months even though we currently > > > have data only for January. > > > > > > If I base the chart on the cross-tab, I cannot see a way > to tell it > > > that each column should be an axis entry. If I base the chart on a > > > select query, it correctly allows me to set 'month' as an axis, > > > but only shows me January. > > > > > > Can anyone help? > > > > > > TIA > > > > > > Roz > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Feb 12 04:40:24 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 10:40:24 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Hiya Does anyone have any code for recursively populating a treeview control? I have a table like this: TaskID ParentID Description 1 0 fleg 2 1 subfleg a 3 1 subfleg b 4 2 sub-subfleg a and so on. I don't want to limit the number of levels. I can see that I need to run through the dataset and populate the treeview with the first level, then do it again n times until all the children are added at the appropriate level, skipping any record already added as a node. I'm in a hurry - I have 2 hours to nail this (working hours not real-time) so although it feels lazy and I would love to crack this on my own, if anyone has done it before I would appreciate any help you can give. TIA Roz From jwcolby at colbyconsulting.com Thu Feb 12 04:49:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 05:49:37 -0500 Subject: [AccessD] forced logout In-Reply-To: Message-ID: >But by using a table in a separate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Yes, it would. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, February 12, 2004 2:18 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] forced logout John, But by using a table in a seperate BE to dictate when you can get in(not allow your code to access tables)...and get out...would this not solve the problem? Just Curious... Mark >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] forced logout >Date: Wed, 11 Feb 2004 21:02:25 -0500 > >Mark, > >It is not necessary to delete the other tables. As long as no bound form >is >open, and no recordsets in code are open, then the FE will not be "IN" the >BE. And yes, this "bound to the shutdown BE concept would certainly work. > >The shutdown widget I'm designing has a shutdown table with all information >in it. The purpose was mostly to have a "template" table with a few >example >records in it, as well as a test table during design. There's no reason it >couldn't just use this table. My widget is an MDA of course with the code >and table all in one. If you wanted to control shutdowns in more than one >FE you would need to move the table out into a "BE" or use a COPY of this >MDA for each FE being controlled. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 11, 2004 9:47 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] forced logout > > >Hello All, > >In following this thread...I was awaiting the answer...because I've had the >same question...How to inform them its ok to go back in...If they have the >FE open...doesn't it 'open' then BE? I don't know if my idea is >feasible...but it was inspired by John's statement: > >"If the FE links to 3 different BEs on different machines, where is "the BE >directory"? " > >Create a separate BE with 1 table (all of the SHUTDOWN criteria)...link to >this table...When your criteria is met...delete/disable your linked tables >in the FE...minus the SHUTDOWN table...Your FE continues to check the >SHUTDOWN table...when it is time...recreate/enable your links in the FE. >I'm pretty sure this can all be done in VBA. > >Just a shot in the dark...but almost makes sense to me...please let me know >if it does to anyone else. > >Thanks, > >Mark A. Matte > > > > > >From: "John W. Colby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: RE: [AccessD] forced logout > >Date: Tue, 10 Feb 2004 21:33:19 -0500 > > > >That is surely an idea. OTOH I want to be able to edit a record in a >table > >dynamically to allow the FE to see that it is time to log out. One >problem > >with "the back end directory" is that it may not even exist, or it may be > >several different directories. If you are using SQL Server, where is >"the > >back end directory"? If the FE links to 3 different BEs on different > >machines, where is "the BE directory"? Of course you can then define a > >directory field in a table that the logout code looks in to see this >file. > > > >And of course, what about web pages hitting the be? How do you tell them > >to > >stay out for a time period? With a table they could essentially use the > >same logic the FE uses. this brings up the issue of time zones of >course. > >The record needs to include the time zone that the database server >resides > >in since > > > >And sure, different computers could have different times. If that is an > >issue there are programs that can be run on each workstation that sync >the > >workstations to the server's clock. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart Sanders > >Sent: Tuesday, February 10, 2004 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] forced logout > > > > > >I was thinking over this just recently. The problem I have with a pure > >time > >based system is that different computers can have different times. > >Normally > >this should only be a matter of minutes, but not always. > > > >I saw someone mentioned something like this before and was thinking that > >one > >way > >would be to create a zero length file in the backend directory. You >could > >use > >different filenames for different purposes: > >BESD10.txt - Shutdown in 10 minutes. > >BESD5.txt - shutdown in 5 minutes > >BESD.txt - immediate shutdown. > >BENL.txt - no login allowed > > > >(.txt isn't needed ... Just an illustration) > > > >The reason for this is that most backup programs allow the running of > >scripts > >before and after backup occurs. And by simply copying a file into the BE > >directory and deleting it when done you give the server the ability to > >centrally > >control automated jobs that require users to logout without having to >guess > >how > >long such jobs will take. > > > >Just an idea... > > > >Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > John W. Colby > > > Sent: Wednesday, 11 February, 2004 9:10 AM > > > To: Access Developers discussion and problem solving > > > Subject: RE: [AccessD] forced logout > > > > > > > > > The reason can be anything. I need to ensure all users are out of the > > > database every night so that compact can occur. Also I need > > > to be able to > > > get in and do BE maintenance, modify tables if necessary etc. > > > The users are > > > leaving the FE (bound forms) open. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > > bruce_bruen at mlc.com.au > > > Sent: Tuesday, February 10, 2004 5:11 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] forced logout > > > > > > > > > > > > > > > > > > > > > That would depend on the reason for forcing the logout surely? > > > > > > If the reason is due to a db corruption discovery or to a maintenance > > > shutdown then the database should be reopened by an > > > administrator manually. > > > If OTOH the logout is forced by some business rule then that rule is > > > incomplete unless it defines the reactivation. > > > > > > B > > > > > > > > > > > > "John W. Colby" > > > > > "AccessD" > > > > > > com> cc: > > > Sent by: > > > Subject: [AccessD] > > > forced logout > > > accessd-bounces at databasea > > > dvisors.com > > > > > > > > > 11/02/2004 09:01 > > > Please respond to Access > > > Developers discussion and > > > problem solving > > > > > > > > > > > > > > > > > > > > > I am almost finished with a class and a table to allow me to > > > force a logout > > > of my users from the db. In fact it is all working now, the only > > > remaining > > > question is "when do I let them back in". > > > > > > Is anyone else doing this? What is your answer? My tendency is "keep > > > logged out between ThisTime and ThatTime", i.e. add a second > > > time field to > > > the table that is the time to allow back in. > > > > > > Anyone? > > > > > > My current system uses: > > > > > > usysTblShutdown: > > > > > > SD_ID - autonumber PK > > > SD_Name - Shutdown name > > > SD_Time - Time to shutdown > > > SD_Enabled - THIS shutdown is enabled > > > SD_Warnings - The number of warnings to display before > > > forcing a > > > shutdown > > > SD_WarningTime - the number of seconds between warnings > > > > > > I have a form that my framework opens that initializes the > > > framework, and > > > shuts it back down if the form tries to close. Thus enabling a clean > > > shutdown regardless of anything other than perhaps a power failure. > > > > > > I then use the timer for this form to call a method in my class which > > > checks > > > whether to do the shutdown. The class raises an event with > > > every warning > > > to > > > the user in case your app needs warning that a shutdown is > > > imminent. The > > > class also raises an event when it is finally time to actually do the > > > shutdown. > > > > > > I will publish the whole in a demo database as soon as I > > > handle the issue > > > of > > > when to allow them back in. All opinions welcomed then summarily > > > dismissed. > > > > > > ;-) > > > > > > 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 > >_________________________________________________________________ >Get some great ideas here for your sweetheart on Valentine's Day - and >beyond. http://special.msn.com/network/celebrateromance.armx > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 12 04:57:53 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Feb 2004 11:57:53 +0100 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Message-ID: <5712491421.20040212115753@cactus.dk> Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview control? I > have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the treeview > with the first level, then do it again n times until all the children are > added at the appropriate level, skipping any record already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not real-time) > so although it feels lazy and I would love to crack this on my own, if > anyone has done it before I would appreciate any help you can give. From actebs at actebs.com.au Thu Feb 12 05:02:56 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 12 Feb 2004 22:02:56 +1100 Subject: [AccessD] .NET Email Group? Message-ID: <000201c3f157$c83dfbe0$0b08a8c0@carltonone.local> Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad From carbonnb at sympatico.ca Thu Feb 12 05:12:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 12 Feb 2004 06:12:35 -0500 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAA@dibble.observatory.donnslaw.co.uk> Message-ID: <402B1953.7839.30375F@localhost> On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html -=-=-=-=Private Sub fFillTreeView() '--------------------------------------------------------------------- ----- '.Purpose : To (re)Fill the treeview with top level nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : Form_Open, tvw_NodeClick '.Calls : fFillChildren '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "fFillTreeView" Dim strSQL As String Dim rst As DAO.Recordset Dim nd As Node 'Clear Treeview nodes tvw.Nodes.Clear 'Build SQL to get Enabled Root Level Items strSQL = "Select * FROM " & mstrTableName & _ " WHERE SwitchboardID=1" & _ " AND ItemNumber<>0" & _ " AND Enabled=True" & _ " ORDER BY ItemNumber" 'Open the Recordset Set rst = CurrentDb().OpenRecordset(strSQL) 'Loop Through and build the nodes Do While Not (rst.EOF) 'Create the Node Set nd = tvw.Nodes.Add(, , , rst!ItemText) 'Build Node Tag nd.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'nd.Tag = fBuildTag(rst) 'Check to see if we have an Open Switchboard Item If rst!Command = sbeOpenSwitchboard Then 'This is an Open SB so we need to fill the children sFillChildren nd End If 'Move to next record rst.MoveNext Loop 'Close and release rst.Close Set rst = Nothing End Sub Private Sub sFillChildren(nd As Node) '--------------------------------------------------------------------- ----- '.Purpose : To Fill any children nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : fFillTreeView, fFillChildren (recursive) '.Calls : '.Inputs : nd - Node - Parent node of these children '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "sFillChildren" Dim aryPairs() As String Dim arySplit() As String Dim strSQL As String Dim lngArgument As Integer Dim lngLoop As Long Dim rst As DAO.Recordset Dim ndNew As Node 'Split tag into pairs aryPairs = Split(nd.Tag, ";") 'Loop through split to get SwitchboardID that this node ' opens, which is the Argument For lngLoop = LBound(aryPairs) To UBound(aryPairs) 'Now split each arySplit = Split(aryPairs(lngLoop), "=") If arySplit(0) = "Argument" Then 'Get the Argument Value, which is the SB to Open lngArgument = Val(arySplit(1)) Exit For End If Next 'Build SQL to select all the items in the Switchboard ' but not the 0 record, which is just info about the ' switchboard strSQL = "SELECT * FROM " & mstrTableName & _ " WHERE SwitchboardID=" & lngArgument & _ " AND ItemNumber<>0" & _ " AND Enabled=True" Set rst = CurrentDb.OpenRecordset(strSQL) 'Loop through reordset to add new tags Do While Not (rst.EOF) 'Add New Node Set ndNew = tvw.Nodes.Add(nd, tvwChild, , rst!ItemText) 'Build Node Tag ndNew.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'Check and see if we just added an Open Switchboard If rst!Command = sbeOpenSwitchboard Then 'We did, so add children sFillChildren ndNew End If 'Move to next record rst.MoveNext Loop End Sub This is probably one of the better commented chunck of code I have written :-)) -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. From roz.clarke at donnslaw.co.uk Thu Feb 12 05:12:45 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 11:12:45 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Thanks Gustav I was determined to get this functionality into a rewrite of our task management system. There is NO time for making enhancements. The boss gave me two hours, or forget it. :/ I'm going to have to cheat, aren't I? :) Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 10:58 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 12 05:29:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 06:29:08 -0500 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Message-ID: >There is NO time for making enhancements. That's ONE way to control project creep! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Roz Clarke Sent: Thursday, February 12, 2004 6:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Recursive data in treeview control Thanks Gustav I was determined to get this functionality into a rewrite of our task management system. There is NO time for making enhancements. The boss gave me two hours, or forget it. :/ I'm going to have to cheat, aren't I? :) Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 10:58 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... Two hours? How is work planned at your place? Not? /gustav > Hiya > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > and so on. I don't want to limit the number of levels. > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Thu Feb 12 05:34:15 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 11:34:15 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAC@dibble.observatory.donnslaw.co.uk> thanks Bryan. you're a star. -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: 12 February 2004 11:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html -=-=-=-=Private Sub fFillTreeView() '--------------------------------------------------------------------- ----- '.Purpose : To (re)Fill the treeview with top level nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : Form_Open, tvw_NodeClick '.Calls : fFillChildren '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "fFillTreeView" Dim strSQL As String Dim rst As DAO.Recordset Dim nd As Node 'Clear Treeview nodes tvw.Nodes.Clear 'Build SQL to get Enabled Root Level Items strSQL = "Select * FROM " & mstrTableName & _ " WHERE SwitchboardID=1" & _ " AND ItemNumber<>0" & _ " AND Enabled=True" & _ " ORDER BY ItemNumber" 'Open the Recordset Set rst = CurrentDb().OpenRecordset(strSQL) 'Loop Through and build the nodes Do While Not (rst.EOF) 'Create the Node Set nd = tvw.Nodes.Add(, , , rst!ItemText) 'Build Node Tag nd.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'nd.Tag = fBuildTag(rst) 'Check to see if we have an Open Switchboard Item If rst!Command = sbeOpenSwitchboard Then 'This is an Open SB so we need to fill the children sFillChildren nd End If 'Move to next record rst.MoveNext Loop 'Close and release rst.Close Set rst = Nothing End Sub Private Sub sFillChildren(nd As Node) '--------------------------------------------------------------------- ----- '.Purpose : To Fill any children nodes '.Author : Bryan Carbonnell '.Date : 29-Nov-2002 '.Called by : fFillTreeView, fFillChildren (recursive) '.Calls : '.Inputs : nd - Node - Parent node of these children '.Revised : 29-Nov-2002 - Original '--------------------------------------------------------------------- ----- Const cstrProcName As String = "sFillChildren" Dim aryPairs() As String Dim arySplit() As String Dim strSQL As String Dim lngArgument As Integer Dim lngLoop As Long Dim rst As DAO.Recordset Dim ndNew As Node 'Split tag into pairs aryPairs = Split(nd.Tag, ";") 'Loop through split to get SwitchboardID that this node ' opens, which is the Argument For lngLoop = LBound(aryPairs) To UBound(aryPairs) 'Now split each arySplit = Split(aryPairs(lngLoop), "=") If arySplit(0) = "Argument" Then 'Get the Argument Value, which is the SB to Open lngArgument = Val(arySplit(1)) Exit For End If Next 'Build SQL to select all the items in the Switchboard ' but not the 0 record, which is just info about the ' switchboard strSQL = "SELECT * FROM " & mstrTableName & _ " WHERE SwitchboardID=" & lngArgument & _ " AND ItemNumber<>0" & _ " AND Enabled=True" Set rst = CurrentDb.OpenRecordset(strSQL) 'Loop through reordset to add new tags Do While Not (rst.EOF) 'Add New Node Set ndNew = tvw.Nodes.Add(nd, tvwChild, , rst!ItemText) 'Build Node Tag ndNew.Tag = "Command=" & rst!Command & ";Argument=" & rst!Argument 'Check and see if we just added an Open Switchboard If rst!Command = sbeOpenSwitchboard Then 'We did, so add children sFillChildren ndNew End If 'Move to next record rst.MoveNext Loop End Sub This is probably one of the better commented chunck of code I have written :-)) -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 12 05:40:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Feb 2004 12:40:00 +0100 Subject: [AccessD] Recursive data in treeview control In-Reply-To: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C83188047C6AAB@dibble.observatory.donnslaw.co.uk> Message-ID: <18015018044.20040212124000@cactus.dk> Hi Roz > I'm going to have to cheat, aren't I? :) Or supply non-debugged code - the choice is yours! /gustav From andrew.haslett at ilc.gov.au Thu Feb 12 05:43:05 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 12 Feb 2004 22:13:05 +1030 Subject: [AccessD] .NET Email Group? Message-ID: www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From Erwin.Craps at ithelps.be Thu Feb 12 05:48:21 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 12:48:21 +0100 Subject: [AccessD] .NET Email Group? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D29F@stekelbes.ithelps.local> As I mailed earlier... I would like a ".NET for 'Access Developers' Dummies" list.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 12:03 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 12 06:05:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 12 Feb 2004 13:05:17 +0100 Subject: [AccessD] .NET Email Group? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2A0@stekelbes.ithelps.local> This is great thx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Haslett, Andrew Sent: Thursday, February 12, 2004 12:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dkalsow at yahoo.com Thu Feb 12 06:11:16 2004 From: dkalsow at yahoo.com (Dale Kalsow) Date: Thu, 12 Feb 2004 04:11:16 -0800 (PST) Subject: [AccessD] digital signatures Message-ID: <20040212121116.54927.qmail@web9803.mail.yahoo.com> Good Morning, Does any know how I can make a digital signature for my access 2002 & 2003 databases so the uses do not always get those naging warnings. I know I can set the macro security to low and that will do it but I was wondering if it wouldn't be easier to digitaly sign them. Thanks in advance. Dale --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From rl_stewart at highstream.net Thu Feb 12 07:16:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 07:16:48 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: Message-ID: <5.1.0.14.2.20040212070650.0297eba8@pop3.highstream.net> Ryan, I use a program called WinBatch. I have the compiler version of it which allows me to create a stand alone executable for the installation. I also use a program called WinRAR which is a compression program like WinZip. The advantage is that I can create self-extracting files that can also run a specific program after extracting its contents to a specific directory. So for your installation, I would simply use WinRAR to extract to a specific directory structure. Personally, I use MSA_Prod\ProgName and place all of the production application in the same directory structure. I would not need to use WinBatch in your case unless you were using a third-party active-X control or something like that. By using an installation method like this, the images would be placed in the same directory on every machine and the linking would work properly and allow you to get away from embedding. Another alternative, if everyone is on the same network, would be to put the images in a central location with the backend database and link to them there. I would still keep the local structure for ease of maintenance. Robert At 10:31 AM 2/12/2004 +0000, you wrote: >Robert, > >I am interested in the second part of your mail. At the moment, this >database will not be shipped with an install program (as far as I am aware >it is just going to be emailed to strategic staff and they will then make >it downloadable). Could you elaborate on how you ship Access databases >with an install program? Sounds like a good suggestion. > >RyanS > > >"Robert L. Stewart" > >11/02/2004 18:28 > > To: accessd at databaseadvisors.com > cc: rsmethurst at UK.EY.COM > Subject: Re: Calling objects > > >Ryan, > >You did ask for "best practice." The best practice >is not to do it. Shipping it all over the place is >not an excuse. The install program could place them >in the same directory as the Access FE then linking >them is a no-brainer. The most resource efficient >way is not to do it. Why you feel you have to have >them is a matter for debate if you insist on the >inefficient practice. > >Robert > >At 12:00 PM 2/11/2004 -0600, you wrote: > >Date: Wed, 11 Feb 2004 17:11:14 +0000 > >From: rsmethurst at UK.EY.COM > >Subject: Re: [AccessD] Calling objects > >To: Access Developers discussion and problem solving > > > >Message-ID: > > > >Content-Type: text/plain; charset="us-ascii" > > > >No, the database is shipped all over the place, so they really need to be > >embedded. > > > >In answer to Charlotte...they're icons for the main menu. Why etc. is not > >really what's up for debate at the moment, I'm just looking to make sure > >it is done the most resource efficient way. > > > >Thanks > >RyanS From mwp.reid at qub.ac.uk Thu Feb 12 07:25:47 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 12 Feb 2004 13:25:47 -0000 Subject: [AccessD] digital signatures References: <20040212121116.54927.qmail@web9803.mail.yahoo.com> Message-ID: <001901c3f16b$b9dfc330$9111758f@aine> I think you need to purchase a certificate. I remember this was a real moaning point during the beta test of 2003. Lot of us complained to MS about this. the advice then was to simply set security to low and forget about the certificate. I remember at the time someone said there was a cheap certificate available to developers. Martin ----- Original Message ----- From: "Dale Kalsow" To: Sent: Thursday, February 12, 2004 12:11 PM Subject: [AccessD] digital signatures > Good Morning, > > Does any know how I can make a digital signature for my access 2002 & 2003 databases so the uses do not always get those naging warnings. I know I can set the macro security to low and that will do it but I was wondering if it wouldn't be easier to digitaly sign them. > > Thanks in advance. > > Dale > > > --------------------------------- > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Thu Feb 12 07:32:50 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 12 Feb 2004 13:32:50 -0000 Subject: [AccessD] Recursive data in treeview control Message-ID: <61F915314798D311A2F800A0C9C83188047C6AAE@dibble.observatory.donnslaw.co.uk> Got it - not fully tested & debugged & not doing *exactly* what I need, but damn close for 2.5 hours work! Thanks to you guys and to MSKB article 167309 Roz -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: 12 February 2004 11:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Recursive data in treeview control Hi Roz > I'm going to have to cheat, aren't I? :) Or supply non-debugged code - the choice is yours! /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 12 07:33:56 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 12 Feb 2004 13:33:56 +0000 Subject: [AccessD] Re: Calling objects Message-ID: Robert, (FYI The apps users are not all on the same Network.) I assume that method would work fine with mde's? Ryan "Robert L. Stewart" Sent by: accessd-bounces at databaseadvisors.com 12/02/2004 13:16 Please respond to Access Developers discussion and problem solving To: rsmethurst at uk.ey.com cc: accessd at databaseadvisors.com Subject: [AccessD] Re: Calling objects Ryan, I use a program called WinBatch. I have the compiler version of it which allows me to create a stand alone executable for the installation. I also use a program called WinRAR which is a compression program like WinZip. The advantage is that I can create self-extracting files that can also run a specific program after extracting its contents to a specific directory. So for your installation, I would simply use WinRAR to extract to a specific directory structure. Personally, I use MSA_Prod\ProgName and place all of the production application in the same directory structure. I would not need to use WinBatch in your case unless you were using a third-party active-X control or something like that. By using an installation method like this, the images would be placed in the same directory on every machine and the linking would work properly and allow you to get away from embedding. Another alternative, if everyone is on the same network, would be to put the images in a central location with the backend database and link to them there. I would still keep the local structure for ease of maintenance. Robert At 10:31 AM 2/12/2004 +0000, you wrote: >Robert, > >I am interested in the second part of your mail. At the moment, this >database will not be shipped with an install program (as far as I am aware >it is just going to be emailed to strategic staff and they will then make >it downloadable). Could you elaborate on how you ship Access databases >with an install program? Sounds like a good suggestion. > >RyanS > > >"Robert L. Stewart" > >11/02/2004 18:28 > > To: accessd at databaseadvisors.com > cc: rsmethurst at UK.EY.COM > Subject: Re: Calling objects > > >Ryan, > >You did ask for "best practice." The best practice >is not to do it. Shipping it all over the place is >not an excuse. The install program could place them >in the same directory as the Access FE then linking >them is a no-brainer. The most resource efficient >way is not to do it. Why you feel you have to have >them is a matter for debate if you insist on the >inefficient practice. > >Robert > >At 12:00 PM 2/11/2004 -0600, you wrote: > >Date: Wed, 11 Feb 2004 17:11:14 +0000 > >From: rsmethurst at UK.EY.COM > >Subject: Re: [AccessD] Calling objects > >To: Access Developers discussion and problem solving > > > >Message-ID: > > > >Content-Type: text/plain; charset="us-ascii" > > > >No, the database is shipped all over the place, so they really need to be > >embedded. > > > >In answer to Charlotte...they're icons for the main menu. Why etc. is not > >really what's up for debate at the moment, I'm just looking to make sure > >it is done the most resource efficient way. > > > >Thanks > >RyanS _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From bheid at appdevgrp.com Thu Feb 12 07:43:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 12 Feb 2004 08:43:38 -0500 Subject: [AccessD] .NET Email Group? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30786175@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB245@ADGSERVER> Several .Net lists here: http://discuss.develop.com/ Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 6:03 AM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 12 08:18:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 12 Feb 2004 09:18:04 -0500 Subject: [AccessD] Recursive data in treeview control Message-ID: Hope it works for you. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> roz.clarke at donnslaw.co.uk 12-Feb-04 6:34:15 AM >>> thanks Bryan. you're a star. -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] On 12 Feb 2004 at 10:40, Roz Clarke wrote: > Does anyone have any code for recursively populating a treeview > control? I have a table like this: > > TaskID ParentID Description > 1 0 fleg > 2 1 subfleg a > 3 1 subfleg b > 4 2 sub-subfleg a > > and so on. I don't want to limit the number of levels. > > I can see that I need to run through the dataset and populate the > treeview with the first level, then do it again n times until all the > children are added at the appropriate level, skipping any record > already added as a node. > > I'm in a hurry - I have 2 hours to nail this (working hours not > real-time) so although it feels lazy and I would love to crack this on > my own, if anyone has done it before I would appreciate any help you > can give. Roz, That is sort of the approach I too in my Treview Switchboard wizard. Here is the code I pulled out of it. If I missed any functions, you can download the wizard from: http://www3.sympatico.ca/carbonnb/bryan/Access/TreeViewSB.html From cfoust at infostatsystems.com Thu Feb 12 10:21:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 08:21:51 -0800 Subject: [AccessD] Access 2003 Developer's Book + VBA Buggy? Message-ID: MS is trying to push the .Net framework and managed code. Since VBA isn't part of managed code, they tend not to talk about it. However, at least one MS dude has said that if you're writing application specific code, then VBA is what you *have* to use. I suspect any "bugginess" is the result of yet another modification of the vbe6.dll. Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Wednesday, February 11, 2004 11:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2003 Developer's Book + VBA Buggy? Not directly linked to this question but... I've heard that the VBA in Office 2003 is pretty buggy. I've got this from somebody how is completely Access-minded. He visited TechEd in Barca. Apparrently they mentioned hardly anything about it. In fact some MS dude said that you'd better NOT use is at all.. QUE PASA? Is this some sort of strategy to get everybody to work with .NET ( VB, C#) and SQL-Server or what? Regards, SD Joe Hecht wrote: Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 12 10:23:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 08:23:21 -0800 Subject: [AccessD] Access 2003 Developer's Book Message-ID: There may not be one for 2003, since Getz at least is focussing on .Net and there isn't much change between 2002 and 2003 for Access. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, February 11, 2004 8:47 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2003 Developer's Book Has Ken Getz and his crew put out the 2 new door stops. They write the developers handbook we always recommended here. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Randall Anthony Sent: Tuesday, February 10, 2004 10:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2003 Developer's Book Hi group, Anybody using, know of A2k3 Developer's book? Thanks. Randy @ ext. 473 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Feb 12 10:38:47 2004 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 13 Feb 2004 03:38:47 +1100 Subject: [AccessD] .NET Email Group? In-Reply-To: Message-ID: <000001c3f186$afef8ed0$0b08a8c0@carltonone.local> Andrew, That's great ....Thanx! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Haslett, Andrew Sent: Thursday, 12 February 2004 10:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? www.Aspadvice.com has heaps For the Aussies: "subscribe dotnet YOUR_NAME" in the body of the email to: imailsrv at stanski.com Cheers, A -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Thursday, 12 February 2004 9:33 PM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Feb 12 10:42:25 2004 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 13 Feb 2004 03:42:25 +1100 Subject: [AccessD] .NET Email Group? In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB245@ADGSERVER> Message-ID: <000101c3f187$34f0c860$0b08a8c0@carltonone.local> Too cool...Thanx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Friday, 13 February 2004 12:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .NET Email Group? Several .Net lists here: http://discuss.develop.com/ Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Thursday, February 12, 2004 6:03 AM To: access group Subject: [AccessD] .NET Email Group? Guys, Does anyone know of an email group similar to the one we have here in AccessD but for .NET? There are thousands upon thousands of forums, but for the life of me I can't find an email type group... Any guidance will be appreciated. If there isn't one, maybe we should start one perhaps? Regards Vlad _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:19:08 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:19:08 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227878@main2.marlow.com> I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A From cfoust at infostatsystems.com Thu Feb 12 11:34:44 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Feb 2004 09:34:44 -0800 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: Personally, Drew, I've had problems with the printer object in 2002, so I still use the API calls, which are totally reliable in any of the versions. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 12, 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:45:22 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:45:22 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227879@main2.marlow.com> I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 11:46:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:46:25 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787A@main2.marlow.com> Just posted to Terry. Read that post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 5:52 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Drew, I would appreciate a complete setup from which I could understand how it is done in order to than translate it somehow to my application. Helmut From rl_stewart at highstream.net Thu Feb 12 11:53:12 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 11:53:12 -0600 Subject: [AccessD] Re: .NET Email Group? In-Reply-To: <200402121745.i1CHjQm25418@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212115244.029ad550@pop3.highstream.net> Go to aspadvice.com At 11:45 AM 2/12/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 22:02:56 +1100 >From: "ACTEBS" >Subject: [AccessD] .NET Email Group? >To: "access group" >Message-ID: <000201c3f157$c83dfbe0$0b08a8c0 at carltonone.local> >Content-Type: text/plain; charset="us-ascii" > >Guys, > >Does anyone know of an email group similar to the one we have here in >AccessD but for .NET? There are thousands upon thousands of forums, but >for the life of me I can't find an email type group... > >Any guidance will be appreciated. If there isn't one, maybe we should >start one perhaps? > >Regards >Vlad From DWUTKA at marlow.com Thu Feb 12 11:53:39 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 11:53:39 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787C@main2.marlow.com> LOL!!!!!! I completely forget that share.exe came out with 3.11. And copy2pc sure does bring back memories! Just out of curiousity, do you have a gl-viewer? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, February 12, 2004 2:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Huummm.... In big lines you are right here my big changes list... DOS 1.x > wow, I can copy files and floppies with this thing... But for copying floppies you rather use copy2pc. You could even copy unix and tbos and other os disks, even copy protected ones... DOS 2.x > introduction of expanded memory (LIM/EMS)? Dos 3.11 > WOW, share.exe is introduced, now we can access files simulteanioulsy. Support of expanded (LIM/EMS) AND extended memory (XMS). Yes the 1024 frontier finaly broken WOW. DOS 4.21 > huumm, nothing new? Or was support of bigger disks introduced? Yes something changed with FDISK.EXE. Aha DOS 5 > yipie, I can use UMB memory, I can put my keyb.com be back in my autoexec and type in AZERTY when using an big memory consuming app. DOS 6 > sniff, not much new, aha I can defrag my disk W 3.x, THANK GOD, finaly, one printer driver for ALL applications.... (I use to sell printers in those days) W95 > wow, some kind of multitasking thanks to 32 bit, I'm no longer falling asleep when switching tasks. W98 > O MY GOD, USB interface, finaly get rid of those RS-232 connections for which I never seem to have the right cable. WNT4 > O MY GOD, I havent pressed RESET for 30 days now and this multitasking is so fast!!! W2K > FINALY, USB Support in a real OS (NT) and don't have to reboot each time I make an OS change. WXP > Oh no, I have to review my morning schedule. It boots so fast I can no longer make cofee and drink two cups before I'm able to work. And no, I did not forget about OS2 Lan manager 1.X, 2.0, NT 3.51 Windows Me, Banyan Vines, SCO unix, Thoroughbread OS, Corvus PC-LAN, Netware, PC-MOS, and ohter PC OS's. PS: "My god" can be any god of your choice (for me thats my wife and son). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 11, 2004 11:49 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) >We work in a dynamic industry that is constantly changing. Some of us >seem to refuse to adapt or accept change and others look to the future. >Cheers, >Andrew I actually agree with you, with a few exceptions. I was just getting 'techie' with the DOS/Win 9x thing, I understand what the actual comment was about. However, the DOS example is actually a prime example of where I AGREE with the 'if it ain't broke, don't fix it' issue. Take DOS 6.22. Nice OS. Reliable, quick to boot, etc. Now, why should a company (take these agruments from a business perspective), implement Windows 3.1, over DOS? Windows 3.1 didn't provide multi-tasking capability. It actually didn't provide any real functionality that DOS didn't already provide. Yes, it provided a GUI interface, but that was about it. Now, Windows 95 comes out. What advantages did Windows 95 have over DOS 6.22. Lots. First, multi-tasking. Sure, not true, because that requires multiple processors, but it could run multiple tasks on the same machine, without having to do them one at a time. Windows 95 provided plug and play capabilities. Instead of having your DOS based software ask what type of video card you had, or what type of sound card, etc, you could now write software that allowed Windows to handle the drivers, and you could let the API's do the walking. Then came Windows 98. What advantages.....quite frankly, the only one worth mentioning was the upgrade from FAT 16, to FAT 32. But, later versions of 95 also had FAT 32. Then came Windows NT. All of the advantages of Windows 95, but on a MUCH more secure, and far more reliable platform. Then Windows ME. Almost a step down from 98. No real advantages. Then Windows 2k. Provided a lot of flexibility that NT 4.0 didn't have. Got pretty close to merging Windows 98 looks/feel/ease of use, with the rock solid NT platform. Windows XP. More glitz and glitter on Windows 2000. No real performance increases, major 'new items' were more inline with personal use, versus corporate use (firewall, etc.). So, over all, Starting from DOS, we could have the following chain: DOS 6.22 (or earlier)-->Starting Win 3.1 --> No Windows 95 --> Yes Windows 98 --> No Windows NT 4.0 -->Yes Windows ME --> HECK No Windows 2k --> Yes Windows XP --> No That is 3 understandable upgrades, out of 7 available. (I think I am missing NT 3.51, but I'm not sure where that came out, nor do I have any experience in it....but I am mentioning it.). So, if a company followed that path, of 3 end user upgrades, are they going with a 'don't fix what ain't broken' attitude? Or are they simply not jumping on the upgrade bandwagon, every time something gets put out the door from Redmond? I believe in the same philosophy with Office products, and programming languages. However, I must admit that I am pretty new to the Access/VB world (in relative terms). I started with Access 97, in July of 1999, and I started playing with VB, in December of 1999. Since then, Access 2k has come out. Initially, it was a buggy upgrade, but even with the bugs fixed, the ONLY, and I mean ONLY reason I will use 2k over 97, on a project (not influenced by customer requirements), is when I need to use raiseevents. Can't do it in Access 97. Then Access XP (2002) came out. Again, no REAL improvement on what they built for 97. Haven't seen Access 2003. As for other Office compononents, FrontPage went through vast improvements from 98, to 2k, to 2002 (haven't seen 2003). The scripting editor that comes with it is wonderful in 2002. Office in general gets better with each version, in creating HTML files to represent the original file formats. However, with every office upgrade, would it be cost effective for a company to upgrade, on each one? Doubtful. It's not a matter of if it ain't broke, it's a matter of what's actually new, and improved, versus what is just a little more fluff, and slightly better capabilities. Does that make sense? Drew _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 12 11:59:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 11:59:20 -0600 Subject: [AccessD] Re: Calling objects In-Reply-To: <200402121745.i1CHjQm25418@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212115803.02a8f810@pop3.highstream.net> Yes it will work with all the different Access project types. And, I figured they were not, but wanted to show that as an option to others on the list that might want to know. At 11:45 AM 2/12/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 13:33:56 +0000 >From: rsmethurst at UK.EY.COM >Subject: Re: [AccessD] Re: Calling objects >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >(FYI The apps users are not all on the same Network.) > >I assume that method would work fine with mde's? > >Ryan From ssharkins at bellsouth.net Thu Feb 12 12:12:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 12 Feb 2004 13:12:25 -0500 Subject: [AccessD] Access 2003 Developer's Book In-Reply-To: Message-ID: <20040212181235.VBDE1703.imf19aec.mail.bellsouth.net@SUSANONE> I asked about it yesterday -- not going to be one. Susan H. There may not be one for 2003, since Getz at least is focussing on .Net and there isn't much change between 2002 and 2003 for Access. Charlotte Foust From John.Clark at niagaracounty.com Thu Feb 12 12:12:57 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 12 Feb 2004 13:12:57 -0500 Subject: [AccessD] forced logout Message-ID: Our Novell network login, for the county I work for, considers itself "breeched", if a user enters an invalid password five times within a 30 minute time span. It is then turned off, until they call me and I unlock it--I go into their account and uncheck the "Account Locked" option, in the "Intruder Lockout" section. I probably get an average of two or three calls each day to do this--and this number spikes during certain periods. Most of it--I would say 99 of 100 calls--is simply forgotten passwords of similar. And, a great deal of this is police officers, which I find pretty amusing because they are suppose to have keen observational skills, and you would think this would carry over to remembering their passwords--what good is it to notice things, if you cannot remember what you've noticed? John "just chimin' in" Clark >>> accessd at shaw.ca 2/10/2004 11:56:22 PM >>> Hi John: The typical government login gives the users three tries and then will not allow the same username to be used for about twenty minutes...it use to be an hour but there were too many complains from legitimate users. (Some users have been known to attempt login before their first cup of coffee!) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 10, 2004 2:02 PM To: AccessD Subject: [AccessD] forced logout I am almost finished with a class and a table to allow me to force a logout of my users from the db. In fact it is all working now, the only remaining question is "when do I let them back in". Is anyone else doing this? What is your answer? My tendency is "keep logged out between ThisTime and ThatTime", i.e. add a second time field to the table that is the time to allow back in. Anyone? My current system uses: usysTblShutdown: SD_ID - autonumber PK SD_Name - Shutdown name SD_Time - Time to shutdown SD_Enabled - THIS shutdown is enabled SD_Warnings - The number of warnings to display before forcing a shutdown SD_WarningTime - the number of seconds between warnings I have a form that my framework opens that initializes the framework, and shuts it back down if the form tries to close. Thus enabling a clean shutdown regardless of anything other than perhaps a power failure. I then use the timer for this form to call a method in my class which checks whether to do the shutdown. The class raises an event with every warning to the user in case your app needs warning that a shutdown is imminent. The class also raises an event when it is finally time to actually do the shutdown. I will publish the whole in a demo database as soon as I handle the issue of when to allow them back in. All opinions welcomed then summarily dismissed. ;-) 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 slee at asu.edu Thu Feb 12 12:20:47 2004 From: slee at asu.edu (S Lee) Date: Thu, 12 Feb 2004 11:20:47 -0700 Subject: [AccessD] Database Operation from Remote Sites Message-ID: I do a lot of this. Here is a sample that will load a long listing fairly quickly: <%response.buffer=true%> XXXXXX <% Dim PlayerPoints Dim oConn Dim oRS Dim strQry strQry= "SELECT TOP 100 player, Sum(points) AS SumOfpoints FROM Points WHERE (TYear='2004') GROUP BY player ORDER BY Sum(points) DESC, player ASC" Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "DSN=XXXXXXXXXXX_Points" Set oRS = Server.CreateObject("ADODB.Recordset") oRS.Open strQry, oConn PlayerPoints = oRS.GetRows() CALL CloseALL NumColsPP = UBound(PlayerPoints,1) NumRecsPP = UBound(PlayerPoints,2) %>

XXXXXXXXX

 
<% For i = 0 TO NumRecsPP Response.Write "" Next %>

Rank

Player Name

Points

" Response.Write (i + 1) Response.Write "

" Response.Write PlayerPoints(0,i) Response.Write "

" Response.Write PlayerPoints(1,i) Response.Write "

 

 

 

  <% SUB CloseAll oRS.Close Set oRS = Nothing oConn.Close Set oConn = Nothing END SUB %> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 10:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 13:48:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 13:48:16 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787D@main2.marlow.com> Actually never used them, just knew they were there. Have only ever used AXP once. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, February 12, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Personally, Drew, I've had problems with the printer object in 2002, so I still use the API calls, which are totally reliable in any of the versions. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, February 12, 2004 9:19 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) I see. Just don't confuse refusal to change, with no motivation to change. For instance, I have finally started developing A2k dbs, for both personal and professional stuff. The ONLY reason I did this, is because A2k's VBA allows for stuff not available in Access 97. (event stuff). Other then that one particular issue, there is nothing I actually need in later versions, that Access 97 doesn't already provide. It is really a matter of scope, though. For example, AXP came with a printer(s) object, which blows away dealing with printers from early versions. However, I have only ever had to deal with a printer at that level once, and it wasn't even from Access, it was from VB. So even though there is a new feature, it isn't really something I need in the projects I build. If Microsoft really wanted to upgrade the world, they need to come out with something that just can't be matched by previous versions. Not just glitz and glitter, or a new feature here or there. They need to improve the core processes. As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just frankly don't have the money to purchase it, and VB does what I have needed it to do, to date. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Haslett, Andrew Sent: Wednesday, February 11, 2004 5:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Completely. My 'refuse to accept change' was more aimed at us developers, rather than a compulsory upgrade of OS / App software by Organisations at every release. Cheers, A _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 12 13:52:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 13:52:06 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787E@main2.marlow.com> I was just pointing out that you don't need to use response.write for your loops. You can just put in plain HTML (that would show up in a normal HTML editor), and just 'wrap' it with an ASP loop. (Of course, you'd insert your dynamic content with <%=whatever%> Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S Lee Sent: Thursday, February 12, 2004 12:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites I do a lot of this. Here is a sample that will load a long listing fairly quickly: From prodevmg at yahoo.com Thu Feb 12 14:40:09 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 12 Feb 2004 12:40:09 -0800 (PST) Subject: [AccessD] RE:Office XP Outlook Security In-Reply-To: <000001c3eff7$35936ac0$de1811d8@DanWaters> Message-ID: <20040212204009.9246.qmail@web20422.mail.yahoo.com> vbSendMail did the trick for me. It's free, only has about 10 lines of code to deal with and toally ignores Outlook. Thanks Dan. Dan Waters wrote: Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From stuart at lexacorp.com.pg Thu Feb 12 14:52:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 06:52:42 +1000 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222787C@main2.marlow.com> Message-ID: <402C743A.14274.3B5D92@localhost> On 12 Feb 2004 at 11:53, DWUTKA at marlow.com wrote: > LOL!!!!!! > > I completely forget that share.exe came out with 3.11. And copy2pc sure > does bring back memories! Just out of curiousity, do you have a gl-viewer? > > You dirty old man, you! Want a copy of GRASPRT ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DWUTKA at marlow.com Thu Feb 12 15:12:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 15:12:31 -0600 Subject: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) Message-ID: <2F8793082E00D4119A1700B0D0216BF80222787F@main2.marlow.com> I think I have CSHOW laying around somewhere...... (Dirty old man...hey, I was a teenager back then......) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 2:53 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT) On 12 Feb 2004 at 11:53, DWUTKA at marlow.com wrote: > LOL!!!!!! > > I completely forget that share.exe came out with 3.11. And copy2pc sure > does bring back memories! Just out of curiousity, do you have a gl-viewer? > > You dirty old man, you! Want a copy of GRASPRT ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Thu Feb 12 15:33:17 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 08:33:17 +1100 Subject: .Net freeby (was RE: [AccessD] Next Version of Access 12 Musings on what might ha ppen (RANT)) Message-ID: Drew, Not exactly stable yet but the price is good! Its where I'm learning C#. http://www.icsharpcode.net/OpenSource/SD/Default.aspx Bruce >As far as .Net goes, I like VB 6. I don't refuse to move to .Net, I just >frankly don't have the money to purchase it, and VB does what I have needed >it to do, to date. >Drew From rl_stewart at highstream.net Thu Feb 12 16:00:27 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 12 Feb 2004 16:00:27 -0600 Subject: [AccessD] Re: Database Operation from Remote Sites In-Reply-To: <200402120246.i1C2k8m04582@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040212155932.0364e8c0@pop3.highstream.net> Microsoft has a number of free downloads that are actually very good at showing you a complete setup and working application. At 08:46 PM 2/11/2004 -0600, you wrote: >Date: Thu, 12 Feb 2004 00:51:48 +0100 >From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) >Subject: AW: [AccessD] Database Operation from Remote Sites >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Drew, >I would appreciate a complete setup from which I could understand how it is >done in order to than translate it somehow to my application. > >Helmut From dwaters at usinternet.com Thu Feb 12 16:42:35 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 12 Feb 2004 16:42:35 -0600 Subject: [AccessD] RE:Office XP Outlook Security In-Reply-To: <24430850.1076618778750.JavaMail.root@localhost.localdomain> Message-ID: <000001c3f1b9$855d16a0$de1811d8@DanWaters> Lonnie, You are very welcome! It's easy enough that I'll probably recommend to clients that this be their first choice when it comes to methods to avoid the security dialog. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, February 12, 2004 2:40 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] RE:Office XP Outlook Security vbSendMail did the trick for me. It's free, only has about 10 lines of code to deal with and toally ignores Outlook. Thanks Dan. Dan Waters wrote: Lonnie, I've also used vbSendMail and it's quite easy. You do need to register the vbSendMail.dll on each PC, and put the mswinsck.ocx file on each PC so you can set a reference to it. Once you do that, things work well. With Redemption, you'll also need to register its .dll on each machine. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, February 10, 2004 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office XP Outlook Security Lonnie, There is a free dll you can download called vbSendMail, if you do an Internet search you will find it. And you can link into this via Access or VB. The only thing is you need to know the name of your SMTP server, apart from that it?s so easy to use and no security warnings come up when sending mail. Paul Message date : Feb 10 2004, 03:50 PM >From : "Lonnie Johnson" To : "'MS-ACCESS-L at lists.missouri.edu'" , "AccessDevelopers" , "ms_access" , "AccessD solving'" Copy to : Subject : [AccessD] Office XP Outlook Security Has anyone had any luck with customizing the Outlook XP's Security Feature to allow mail be programmatically sent via MS Access? We are converting to Office XP and this mail security is a problem. ClickYes is not an option as we would have to install it on 400 machines and it still shows the annoying pop ups. I've heard of Redemption. I was looking towards this option of customizing Outlook as my choice. I've followed the instructions twice, but I am still getting the popup. So, has anyone had success with this feature? Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Feb 12 17:03:06 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 12 Feb 2004 15:03:06 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <5.1.0.14.2.20040212155932.0364e8c0@pop3.highstream.net> Message-ID: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug From DWUTKA at marlow.com Thu Feb 12 17:21:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Feb 2004 17:21:14 -0600 Subject: [AccessD] Access 97 Report problems Message-ID: <2F8793082E00D4119A1700B0D0216BF802227880@main2.marlow.com> Any loops where you are depending on an Autonumber being positive? You may have had an autonumber roll over (pretty unfeasible, but not impossible.). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 5:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Feb 12 17:35:14 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 12 Feb 2004 18:35:14 -0500 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Message-ID: It may not be you but an OS level problem. Windows itself can run out of stack space. Things like a bad device driver can also cause stack overflows. What OS is the client? If Win9x, have a look at this: http://support.microsoft.com/default.aspx?scid=kb;en-us;149083 Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 6:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 12 17:58:21 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Feb 2004 15:58:21 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: Message-ID: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> Hi Jim, Thank you for the info. The desktops running the front end are using Win2K. The just recently moved their server to Windows2k Server as I understand. The interesting thing here is that we get the out of stack space message when trying to print the report but Access completely shuts down when trying to preview the report. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 12, 2004 3:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 97 Report problems It may not be you but an OS level problem. Windows itself can run out of stack space. Things like a bad device driver can also cause stack overflows. What OS is the client? If Win9x, have a look at this: http://support.microsoft.com/default.aspx?scid=kb;en-us;149083 Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 6:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 12 17:59:19 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Feb 2004 15:59:19 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227880@main2.marlow.com> Message-ID: <000f01c3f1c4$3a5a8240$8500a8c0@CX615377a> Hi Drew, I'll have to take a look but it seems unlikely. The db is relatively small, approx 15 Meg. of data. Not anywhere near that many records. I'll look though. For lack of other things to try I am going to rebuild the report from scratch on my development machine, and decompile the thing again and then see if it works on their system. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 3:21 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 97 Report problems Any loops where you are depending on an Autonumber being positive? You may have had an autonumber roll over (pretty unfeasible, but not impossible.). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, February 12, 2004 5:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 97 Report problems Folks, I have a database that has been running at a client site for some time that has started having an interesting problem. The background is that when they ship an order three reports are printed, shipping invoice, shipping document, and a core return slip if core items are involved. This week all three computers using the system started giving an "Out of stack space" message when the Core Return slip report was supposed to be printed. I looked at past threads on this plus a few articles on the MS site. The typical cause is a recursion that fills the stack or objects not being closed. Not the case here. The report causing the problem has no code and is based on a fairly simple query. I can not re-create that problem on my Access 97 development machine, which is ancient (Pentium 233) compared with the clients machines. Mine works fine. We are running the same version, which is only a couple of weeks old. I logged onto the clients machine through PCAnywhere and tried opening the problem report in preview mode; it shut down Access with no messages. Did this several times and got the same result. Thinking possibly I had a corrupted report I created a new report and copied the objects over. Still shut down Access when I ran it. The one change at the client is they moved from a novel server to Win2k. All other databases and this one except for this report seem to be working fine so I don't' see that the conversion is the problem, but as I have said before, I am not a network person. Has anyone seen anything similar to this? I am running out of things to try. The database was recently decompiled, recompiled and compacted to get it's size down. Every thing else is running fine. Thanks in advance for any assistance. Doug _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 12 19:22:35 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 12 Feb 2004 17:22:35 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227879@main2.marlow.com> Message-ID: Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 12 20:09:20 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:09:20 -0500 Subject: [AccessD] time window Message-ID: I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? John W. Colby www.ColbyConsulting.com From bruce_bruen at mlc.com.au Thu Feb 12 20:21:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 13:21:25 +1100 Subject: [AccessD] time window Message-ID: I have ususally converted them to dates and let the system worry about the logic. i.e. cd1=int(now())+time1 'use today if time2<= time 1 then cd2=int(now())+1+time2 'use tomorrow else cd2=int(now())+time2 endif cd3=Int(now())+time3 if cd3>=cd1 and cd3 com> cc: Sent by: Subject: [AccessD] time window accessd-bounces at databasea dvisors.com 13/02/2004 13:09 Please respond to Access Developers discussion and problem solving I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? 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 stuart at lexacorp.com.pg Thu Feb 12 20:20:30 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 12:20:30 +1000 Subject: [AccessD] time window In-Reply-To: Message-ID: <402CC10E.28079.93EBCC@localhost> On 12 Feb 2004 at 21:09, John W. Colby wrote: > I need to be able to express a pure time window (not date related) from / to > and test time() as being between (inside) this time window. This process > doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. > However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not > <= 1:00 am. > > It looks like a "if time 2 > time 1 then use simple test for time()" "If > Time 2 < time 1 then invert the second time comparison" > > Has anyone done this already? > Since times are actually stored as date/times with an integer part of 0, you can just use: If time2 < time1 then time2 = time2 + 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bruce_bruen at mlc.com.au Thu Feb 12 20:22:25 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Fri, 13 Feb 2004 13:22:25 +1100 Subject: [AccessD] Re: Database Operation from Remote Sites Message-ID: I dont know whether I'm being a bit basic here, but there are a few considerations regarding ASP deployment that are relevant to persuing it as an answer to the original business problem. 1) ASP is a server side technology. The ASP engine must be present and available on the corporate web server in order for the technology to work. While this is fine if you are using an in-house web presence to deploy on, if you are relying on external providers you need to consider the availability of ASP support on that environment. 2) ASP is proprietry technology, it requires the use of a Microsoft web server, IIS (or PWS!) to supply the generated pages. There are some alternatives available, notably Sun JaveServer ASP or Apache:ASP (supporting PERL script only). I understand that the Apache solution is still very much a work in process. So before deciding on ASP at the application level one must enquire as to constraints imposed by the corporate web server technology currently in place or planned. 3) There are two flavours of ASP, ASP traditional and ASP.Net - these are very different execution environments. Consider what constraints exist on which is possible in your environment. Secondly, consider the future of the technology - enough has been written here recently on just that topic. Where is the deployment environment headed within your economic window. 4) Security for web deployed applications is a huge issue - and not an issue to be dismissed at the application software level. Deployement of your application will require you to understand the security architecture required by your corporate policies and an understanding of the implications of that architecture on your ASP pages. 5) Deployment will also require you to fully understand the performance expectations and requirements at the business user level and whether a web deployed application will "fail" in the field if it cannot meet those expectations. Not only pure performance, but other "human interface" aspects can degrade the user percieved value of the system if you are not very careful. Understand the target user, their needs and constraints. The goal of collecting the data for corporate information analysis will only be met if the information in is good! (This is ovbviously not related directly to using ASP as a solution but a consideration nonetheless). Bruce >Drew, >I would appreciate a complete setup from which I could understand how it is >done in order to than translate it somehow to my application. > >Helmut From jwcolby at colbyconsulting.com Thu Feb 12 20:31:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:31:29 -0500 Subject: [AccessD] time window In-Reply-To: <402CC10E.28079.93EBCC@localhost> Message-ID: This appears to work: ' 'Checks whether a time is "between" two other times ' Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, dteTimeToCompare As Date) As Boolean Select Case dteTimeFrom Case Is < dteTimeTo 'Normal window, i.e. 6:00 pm to 11:00 pm If (dteTimeToCompare >= dteTimeFrom) _ And (dteTimeToCompare <= dteTimeTo) Then TimeIsBetween = True End If Case Is > dteTimeTo 'midnight crossing window, i.e. 6:00 pm to 1:00 am If (dteTimeToCompare >= dteTimeFrom) _ Or (dteTimeToCompare <= dteTimeTo) Then TimeIsBetween = True End If Case Else 'times are the same so now() must equal both If (dteTimeToCompare = dteTimeFrom) _ And (dteTimeToCompare = dteTimeTo) Then TimeIsBetween = True End If End Select End Function John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 9:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] time window On 12 Feb 2004 at 21:09, John W. Colby wrote: > I need to be able to express a pure time window (not date related) from / to > and test time() as being between (inside) this time window. This process > doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. > However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not > <= 1:00 am. > > It looks like a "if time 2 > time 1 then use simple test for time()" "If > Time 2 < time 1 then invert the second time comparison" > > Has anyone done this already? > Since times are actually stored as date/times with an integer part of 0, you can just use: If time2 < time1 then time2 = time2 + 1 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 12 20:32:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 21:32:29 -0500 Subject: [AccessD] Expressing seconds in hours / minutes / seconds Message-ID: Does anyone have a "second count to time in words" function? NNN seconds = A minutes and b seconds. John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Thu Feb 12 21:01:56 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:01:56 +1000 Subject: [AccessD] time window In-Reply-To: References: <402CC10E.28079.93EBCC@localhost> Message-ID: <402CCAC4.12433.B9DA6E@localhost> On 12 Feb 2004 at 21:31, John W. Colby wrote: > This appears to work: > This seems easier to follow to me. Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, _ dteTimeToCompare As Date) As Boolean If dteTimeTo < dteTimeFrom Then dteTimeTo = dteTimeTo + 1 TimeIsBetween = (dteTimeToCompare >= dteTimeFrom) _ And (dteTimeToCompare <= dteTimeTo) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Feb 12 21:05:30 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:05:30 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: Message-ID: <402CCB9A.21096.BD1C6A@localhost> On 12 Feb 2004 at 21:32, John W. Colby wrote: > Does anyone have a "second count to time in words" function? NNN seconds = > A minutes and b seconds. INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Thu Feb 12 21:47:42 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 12 Feb 2004 22:47:42 -0500 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: <402CCB9A.21096.BD1C6A@localhost> Message-ID: Well... I was really hoping for a "check writer" kind of interpretation, Three minutes and fifty one seconds. However I can always revisit this later if necessary so I'll go with yours. Thanks, John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, February 12, 2004 10:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Expressing seconds in hours / minutes / seconds On 12 Feb 2004 at 21:32, John W. Colby wrote: > Does anyone have a "second count to time in words" function? NNN seconds = > A minutes and b seconds. INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 12 21:57:48 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 13:57:48 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: References: <402CCB9A.21096.BD1C6A@localhost> Message-ID: <402CD7DC.9803.176216@localhost> On 12 Feb 2004 at 22:47, John W. Colby wrote: > Well... I was really hoping for a "check writer" kind of interpretation, > Three minutes and fifty one seconds. > > However I can always revisit this later if necessary so I'll go with yours. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Thursday, February 12, 2004 10:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Expressing seconds in hours / minutes / seconds > > > On 12 Feb 2004 at 21:32, John W. Colby wrote: > > > Does anyone have a "second count to time in words" function? NNN seconds > = > > A minutes and b seconds. > > INT(secs\60) & " minutes and " & secs - INT(secs/60)*60 & " seconds" > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com I've actually got a "cheque writer" function stored away but it works in 100s. Give me a while to dig it out and do a quick mod. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From lists at jbsolutions.com.au Thu Feb 12 22:06:32 2004 From: lists at jbsolutions.com.au (Joshua B) Date: Fri, 13 Feb 2004 14:06:32 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds Message-ID: <200402130405.i1D45Im10451@databaseadvisors.com> Hi John, I have no idea where I got this from, but it's been sitting in my code snippets for ages and works like a dream converting numbers to strings... Function ConvertNumberToEnglishString(ByVal N As Long) As String Const Thousand = 1000& Const Million = Thousand * Thousand Const Billion = Thousand * Million 'Const Trillion = Thousand * Billion Dim Buf As String: Buf = "" If (N = 0) Then ConvertNumberToEnglishString = "zero": Exit Function If (N < 0) Then Buf = "negative ": N = -N If (N >= Billion) Then Buf = Buf & EnglishDigitGroup(N \ Billion) & " billion" N = N Mod Billion If (N) Then Buf = Buf & " " End If If (N >= Million) Then Buf = Buf & EnglishDigitGroup(N \ Million) & " million" N = N Mod Million If (N) Then Buf = Buf & " " End If If (N >= Thousand) Then Buf = Buf & EnglishDigitGroup(N \ Thousand) & " thousand" N = N Mod Thousand If (N) Then Buf = Buf & " " End If If (N > 0) Then Buf = Buf & EnglishDigitGroup(N) End If ConvertNumberToEnglishString = Buf End Function Private Function EnglishDigitGroup(ByVal N As Integer) As String Const Hundred = " hundred" Const One = "one" Const Two = "two" Const Three = "three" Const Four = "four" Const Five = "five" Const Six = "six" Const Seven = "seven" Const Eight = "eight" Const Nine = "nine" Dim Buf As String: Buf = "" Dim Flag As Integer: Flag = False 'Do hundreds Select Case (N \ 100) Case 0: Buf = "": Flag = False Case 1: Buf = One & Hundred: Flag = True Case 2: Buf = Two & Hundred: Flag = True Case 3: Buf = Three & Hundred: Flag = True Case 4: Buf = Four & Hundred: Flag = True Case 5: Buf = Five & Hundred: Flag = True Case 6: Buf = Six & Hundred: Flag = True Case 7: Buf = Seven & Hundred: Flag = True Case 8: Buf = Eight & Hundred: Flag = True Case 9: Buf = Nine & Hundred: Flag = True End Select If (Flag) Then N = N Mod 100 If (N) Then If (Flag) Then Buf = Buf & " " Else EnglishDigitGroup = Buf Exit Function End If 'Do tens (except teens) Select Case (N \ 10) Case 0, 1: Flag = False Case 2: Buf = Buf & "twenty": Flag = True Case 3: Buf = Buf & "thirty": Flag = True Case 4: Buf = Buf & "forty": Flag = True Case 5: Buf = Buf & "fifty": Flag = True Case 6: Buf = Buf & "sixty": Flag = True Case 7: Buf = Buf & "seventy": Flag = True Case 8: Buf = Buf & "eighty": Flag = True Case 9: Buf = Buf & "ninety": Flag = True End Select If (Flag) Then N = N Mod 10 If (N) Then If (Flag) Then Buf = Buf & "-" Else EnglishDigitGroup = Buf Exit Function End If 'Do ones and teens Select Case (N) Case 0: ' do nothing Case 1: Buf = Buf & One Case 2: Buf = Buf & Two Case 3: Buf = Buf & Three Case 4: Buf = Buf & Four Case 5: Buf = Buf & Five Case 6: Buf = Buf & Six Case 7: Buf = Buf & Seven Case 8: Buf = Buf & Eight Case 9: Buf = Buf & Nine Case 10: Buf = Buf & "ten" Case 11: Buf = Buf & "eleven" Case 12: Buf = Buf & "twelve" Case 13: Buf = Buf & "thirteen" Case 14: Buf = Buf & "fourteen" Case 15: Buf = Buf & "fifteen" Case 16: Buf = Buf & "sixteen" Case 17: Buf = Buf & "seventeen" Case 18: Buf = Buf & "eighteen" Case 19: Buf = Buf & "nineteen" End Select EnglishDigitGroup = Buf End Function ======= At 2004-02-12, 22:47:00 you wrote: ======= >Well... I was really hoping for a "check writer" kind of interpretation, >Three minutes and fifty one seconds. > >However I can always revisit this later if necessary so I'll go with yours. > >Thanks, > >John W. Colby >www.ColbyConsulting.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-13 From stuart at lexacorp.com.pg Thu Feb 12 22:43:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Feb 2004 14:43:11 +1000 Subject: [AccessD] Expressing seconds in hours / minutes / seconds In-Reply-To: <402CD7DC.9803.176216@localhost> References: Message-ID: <402CE27F.31187.18BCCA@localhost> On 13 Feb 2004 at 13:57, Stuart McLachlan wrote: > On 12 Feb 2004 at 22:47, John W. Colby wrote: > > > Well... I was really hoping for a "check writer" kind of interpretation, > > Three minutes and fifty one seconds. > > OK, I dug up my cheque writer code and did a quick and dirty modification of it. Note that it won't like it if you try to feed it more than about 190 years worth of seconds (99,999,999 minutes worth actually ) Here it is (watch for wordwraps): Function teenword(amount As Long) As String Dim unitname(9) As String unitname(2) = "Twenty" unitname(3) = "Thirty" unitname(4) = "Forty" unitname(5) = "Fifty" unitname(6) = "Sixty" unitname(7) = "Seventy" unitname(8) = "Eighty" unitname(9) = "Ninety" teenword = unitname(amount) End Function Function unitword(amount As Long) As String Dim unitname(19) As String unitname(1) = "One" unitname(2) = "Two" unitname(3) = "Three" unitname(4) = "Four" unitname(5) = "Five" unitname(6) = "Six" unitname(7) = "Seven" unitname(8) = "Eight" unitname(9) = "Nine" unitname(10) = "Ten" unitname(11) = "Eleven" unitname(12) = "Twelve" unitname(13) = "Thirteen" unitname(14) = "Fourteen" unitname(15) = "Fifteen" unitname(16) = "Sixteen" unitname(17) = "Seventeen" unitname(18) = "Eighteen" unitname(19) = "Nineteen" unitword = unitname(amount) End Function Function TimeWords(Seconds As Long) As String f Seconds = 0 Then TimeWords = "Nothing": Exit Function Dim Minutes As Long Dim millions As Long Dim hundredthousands As Long Dim thousands As Long Dim hundreds As Long Dim tens As Long Dim unit As Long Dim strTime As String Minutes = Seconds \ 60 Seconds = Seconds - (Minutes * 60) thousands = Int(Minutes / 1000) millions = Int(Minutes / 1000000) hundredthousands = Int((Minutes - (millions * 1000000)) / 100000) thousands = Int((Minutes - (millions * 1000000) - (hundredthousands * 100000)) / 1000) hundreds = Int((Minutes - (millions * 1000000) - (hundredthousands * 100000) - (thousands * 1000)) / 100) unit = Minutes - (millions * 1000000) - (hundredthousands * 100000) - thousands * 1000 - hundreds * 100 If Minutes = 0 Then strTime = "Zero" Select Case millions Case 1 To 19 strTime = unitword(millions) & " Million" Case 20 To 99 strTime = Trim$(teenword(Int(millions / 10)) & " " & unitword(millions - Int(millions / 10) * 10)) & " Million" Case Is > 99 TimeWords = "100 million minutes or more" Exit Function End Select Select Case hundredthousands Case 1 To 9 strTime = strTime & " " & unitword(hundredthousands) & " Hundred" End Select Select Case thousands Case 0 If hundredthousands > 0 Then strTime = strTime & " Thousand" Case 1 To 19 strTime = strTime & " " & unitword(thousands) & " Thousand" Case 20 To 99 strTime = strTime & " " & Trim$(teenword(Int(thousands / 10)) & " " & unitword(thousands - Int(thousands / 10) * 10)) & " Thousand" End Select Select Case hundreds Case 1 To 9 strTime = strTime & " " & unitword(hundreds) & " Hundred" End Select If (millions + hundredthousands + thousands + hundreds) > 0 Then strTime = strTime & " and" Select Case unit Case 1 To 19 strTime = strTime & " " & unitword(unit) Case 20 To 99 strTime = strTime & " " & Trim$(teenword(Int(unit / 10)) & " " & unitword(unit - Int(unit / 10) * 10)) End Select strTime = strTime & " Minute" If Minutes <> 1 Then strTime = strTime & "s" Select Case Seconds Case 0 strTime = strTime & " Exactly" Case 1 strTime = strTime & " and " & unitword(Seconds) & " Second" Case 2 To 19 strTime = strTime & " and " & unitword(Seconds) & " Seconds" Case 20 To 59 strTime = strTime & " and " & Trim$(teenword(Int(Seconds / 10)) & " " & unitword(Seconds - Int(Seconds / 10) * 10)) & " Seconds" End Select TimeWords = strTime End Function -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From caa at highway.com.br Fri Feb 13 02:14:40 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Fri, 13 Feb 2004 05:14:40 -0300 Subject: [AccessD] fso.DeleteFile Strange behaviour!? In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227875@main2.marlow.com> Message-ID: On Wed, 11 Feb 2004 16:55:04 -0600, wrote: > What's the OS? Windows 2000 has indexing, which indexes your files. It > is > VERY possible that indexing is causing this issue. > > A workaround, would be to create the new db under a different name, then > rename it. That should force the new Created time. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D > Sent: Wednesday, February 11, 2004 2:01 AM > To: accessd > Subject: [AccessD] fso.DeleteFile Strange behaviour!? > > > Hi group, > > I'm using FileSystemObject to delete a MDB file. > After that I'm creating a new MDB. > Then i'm using the .DateCreated method to get the the info about when the > file was created. I checked this in the help: "Returns the date and time > that the specified file or folder was created. Read-only." > > However the time it returns is the date\time combination of when I > created > the DB for the first time. > > EG: I'm starting the application at 8:00. I then show on screen the > date\time the temp (analyses) db was created, let's say that it was > created > on 10 feb 2004 16:34:56. I then decide to create a new temp db. I press > the > button and it deletes the file, creates a new one and adds tables to it. > Then I show the user the .DateCreated wich shows 8:00. > When I stay in the program and do the above at 8:15 the .DateCreated > method > returns again 8:00!!! When I look in Explorer the DateCreated column > shows > 8:00 and the DateModified shows 8:15?!!? QUA PASA. WHY is the date > created > 8:00? I've checked in Explorer that the file is gone after the deletefile > statement. > > Any ideas? I have just written a Sub to make a backup copy of a backend and rename in order to have 30 copies as follows: 01_file.mdb, 02_file.mdb and so on. I have chosen FileCopy and Kill statements. I checked file attributes and have had no problems so far. You may also opt for Name statement if you need to move instead copying a file. HTH, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From rsmethurst at UK.EY.COM Fri Feb 13 04:01:46 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 13 Feb 2004 10:01:46 +0000 Subject: [AccessD] Datasheet field Message-ID: Hi All, I'm looking to populate a subform based on the selection a user makes in a form above it. But not by the row, by the actual field. (This was previously donw with labels and hyperlinks, but now the no of records can vary) Is there an easy/(ish) way to capture what 'cell' has been clicked in the datasheet, or would a continuous form be better suited to this? (I'm dealing with unbound forms here) TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Fri Feb 13 05:41:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 12:41:52 +0100 Subject: [AccessD] Speeding up the database In-Reply-To: References: Message-ID: <13513530085.20040213124152@cactus.dk> Hi Jim et all The issue with Opportunistic Locking on Windows servers has been touched several times. I located this tool which does the "dirty" work: http://www.resumate.com/windows_xp2000nt.htm To simplify the process of disabling Opportunistic Locking, you can download and run the following utility: set_oplocks.exe Please note that this only needs to be done on a Windows XP/2000/NT machine acting as the file server. This includes peer-to-peer network environments as well as dedicated server environments. /gustav > A couple of other performance points: > 1. Make sure that the MDB's are nto being virus scanned when opened. > 2. Turn off opportunistic locking on the server. > 3. Make sure that all clients and server(s) are running the same default > network protocol. > 4. Hold open a reference to the BE's as soon as the app starts and don't > close it until the app closes. This is the #1 item that you need to do. > 5. Over indexing can be just as bad as under indexing. Use the SHOWPLAN > function to see what JET is actually doing when it runs a query. It's > possible that it's not even using indexes that you setup. > 6. Use ISAMSTATS() to determine if any JET engine setting changes would > help. > The last two can take some time, but often pay off. > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net From gustav at cactus.dk Fri Feb 13 07:39:28 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 14:39:28 +0100 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000901c3f1bc$603704f0$8500a8c0@CX615377a> References: <000901c3f1bc$603704f0$8500a8c0@CX615377a> Message-ID: <13220585280.20040213143928@cactus.dk> Hi Doug > This week all three computers using the system started giving an "Out of > stack space" message when the Core Return slip report was supposed to be > printed. .. > The one change at the client is they moved from a novel server to Win2k. > All other databases and this one except for this report seem to be > working fine so I don't' see that the conversion is the problem, but as > I have said before, I am not a network person. Oh gosh, keep this off William's eyes ...! /gustav From gustav at cactus.dk Fri Feb 13 07:50:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 14:50:46 +0100 Subject: [AccessD] Access 97 Report problems In-Reply-To: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> References: <000e01c3f1c4$17d93220$8500a8c0@CX615377a> Message-ID: <11821263785.20040213145046@cactus.dk> Seriously, Doug, this sounds like a printer driver or graphics card driver problem. Check for updates for the graphics card driver at the client. Check carefully which printer and driver and version you are using and compare to those of the client. At the client, watch for HP PCL 5 drivers which can be buggy and choose PCL 4 or lower or Postscript. If anything else fails, try with the old Windows driver for LaserJet II - it should work if anything else fails. /gustav > Thank you for the info. The desktops running the front end are using > Win2K. The just recently moved their server to Windows2k Server as I > understand. The interesting thing here is that we get the out of stack > space message when trying to print the report but Access completely > shuts down when trying to preview the report. From prodevmg at yahoo.com Fri Feb 13 08:43:36 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 13 Feb 2004 06:43:36 -0800 (PST) Subject: [AccessD] Datasheet field In-Reply-To: Message-ID: <20040213144336.26381.qmail@web20420.mail.yahoo.com> If you have a knowledge of vba you could store the name of the subform field in a global variable in the field's On Click event and pass that back to the main form to do what ever processing you need to do. rsmethurst at uk.ey.com wrote: Hi All, I'm looking to populate a subform based on the selection a user makes in a form above it. But not by the row, by the actual field. (This was previously donw with labels and hyperlinks, but now the no of records can vary) Is there an easy/(ish) way to capture what 'cell' has been clicked in the datasheet, or would a continuous form be better suited to this? (I'm dealing with unbound forms here) TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From dw-murphy at cox.net Fri Feb 13 08:52:54 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 13 Feb 2004 06:52:54 -0800 Subject: [AccessD] Access 97 Report problems In-Reply-To: <11821263785.20040213145046@cactus.dk> Message-ID: <000801c3f241$0ffef8f0$8500a8c0@CX615377a> Gustav, Thank you for your thoughtful suggestions. I'll check into the drivers today. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 13, 2004 5:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 97 Report problems Seriously, Doug, this sounds like a printer driver or graphics card driver problem. Check for updates for the graphics card driver at the client. Check carefully which printer and driver and version you are using and compare to those of the client. At the client, watch for HP PCL 5 drivers which can be buggy and choose PCL 4 or lower or Postscript. If anything else fails, try with the old Windows driver for LaserJet II - it should work if anything else fails. /gustav > Thank you for the info. The desktops running the front end are using > Win2K. The just recently moved their server to Windows2k Server as I > understand. The interesting thing here is that we get the out of > stack space message when trying to print the report but Access > completely shuts down when trying to preview the report. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Fri Feb 13 08:50:40 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 13 Feb 2004 14:50:40 +0000 Subject: [AccessD] Datasheet field Message-ID: Thanks Lonnie, Got it figured out. I didn't realise that the datasheet view would have the same options as the continous form - all fine! Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From my.lists at verizon.net Fri Feb 13 10:29:07 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 13 Feb 2004 08:29:07 -0800 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> References: <5.1.0.14.2.20040209091538.02980388@pop3.highstream.net> Message-ID: <402CFB53.4050008@verizon.net> Are there any special steps adding Access 2003 to a system that has A97 and Access 2000 on it? -- -Francisco Robert L. Stewart wrote: > Answers below: > > At 12:00 PM 2/7/2004 -0600, you wrote: > >> Date: Fri, 6 Feb 2004 16:55:38 -0500 >> From: "O'Connor, Patricia " >> Subject: [AccessD] Information about Access 2003 >> To: "'Access Developers discussion and problem solving'" >> >> Message-ID: >> Content-Type: text/plain; charset="ISO-8859-1" >> >> >> We are going to be getting Access 2003 in about a month. >> >> 1. Has anyone successfully installed & used Access2003 on the same >> machine >> with 97 & 2k > > > I have 97, 2000, 2002, and 2003 installed and running quite well on a > Win 2003 server machine. > > >> 2. What are the major differences/problems with A2003 compared to A97 >> & 2k. > > > It is very different from 97, but close (with enhancements) to 2000 and > 2002. > >> Are there any articles, books, etc besides MS.com to read up on these. > > > Don't have an answer for you here. I teach a developer's workshop and I > have went to 2003 exclusively for teaching it. > > >> 3. We have several Access 97 database systems in use. Should I upgrade >> them >> to A2k first then A2003. > > > Might not be a bad idea. It will give you a chance to get the > references and anything else straightened out first. > > Robert From gustav at cactus.dk Fri Feb 13 11:12:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Feb 2004 18:12:46 +0100 Subject: [AccessD] time window In-Reply-To: <402CCAC4.12433.B9DA6E@localhost> References: <402CC10E.28079.93EBCC@localhost> <402CCAC4.12433.B9DA6E@localhost> Message-ID: <14333383422.20040213181246@cactus.dk> Hi Stuart and John > Function TimeIsBetween(dteTimeFrom As Date, dteTimeTo As Date, _ > dteTimeToCompare As Date) As Boolean > > If dteTimeTo < dteTimeFrom Then dteTimeTo = dteTimeTo + 1 > > TimeIsBetween = (dteTimeToCompare >= dteTimeFrom) _ > And (dteTimeToCompare <= dteTimeTo) > > End Function You should be careful when comparing time. Remember, time is the decimal part of a date/time value and many "common" times don't have exact representations, for example is #08:00:00# equal to 1/3. Thus, you should always use DateDiff() and the resolution you need, say one second, to determine if one date/time value is larger than another: Public Function TimeIsBetween( _ dteTimeFrom As Date, _ dteTimeTo As Date, _ dteTimeToCompare As Date) _ As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If TimeIsBetween = DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 _ And DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 End Function The usual objection to this is speed but contrary to Format(), the Date..() functions are fast. However, the above function will fail if both time-to and time-compare fall after midnight: ? TimeIsBetween(#23:00:00#,#02:00:00#,#01:23:00#) John's function returns True for this - which, on the other hand, may be wrong if 01:23 is considered to fall before time-from! Thus you will need a flag to indicate if time-compare falls next day compared to time-from. Also, don't forget ByVal as you are manipulating some of the parameters: Public Function TimeIsBetween( _ ByVal dteTimeFrom As Date, _ ByVal dteTimeTo As Date, _ ByVal dteTimeToCompare As Date, _ Optional ByVal booTimeToCompareIsNextDay As Boolean) _ As Boolean Dim booTimeIsBetween As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If If booTimeToCompareIsNextDay = True Then dteTimeToCompare = DateAdd("d", 1, dteTimeToCompare) End If If DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 And _ DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 Then booTimeIsBetween = True End If TimeIsBetween = booTimeIsBetween End Function Have fun! /gustav From Mark.Mitsules at ngc.com Fri Feb 13 11:24:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 13 Feb 2004 12:24:19 -0500 Subject: [AccessD] time window Message-ID: John, Would a conversion to 24Hour format make things any easier? Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 12, 2004 9:09 PM To: AccessD Subject: [AccessD] time window I need to be able to express a pure time window (not date related) from / to and test time() as being between (inside) this time window. This process doesn't work across midnight, i.e. 7:00 pm is "between" 6:00 pm and 1:00 am. However if I just do a simple compare - 7:00 PM is >= 6:00 PM but it is not <= 1:00 am. It looks like a "if time 2 > time 1 then use simple test for time()" "If Time 2 < time 1 then invert the second time comparison" Has anyone done this already? 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 DWUTKA at marlow.com Fri Feb 13 11:32:38 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 13 Feb 2004 11:32:38 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227882@main2.marlow.com> What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 11:32:38 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 12:32:38 -0500 Subject: [AccessD] OT - file search results save Message-ID: I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti From Jdemarco at hudsonhealthplan.org Fri Feb 13 11:48:50 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 13 Feb 2004 12:48:50 -0500 Subject: [AccessD] OT - file search results save Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FCDB@TTNEXCHSRV1.hshhp.com> Patricia, I don't have it handy but I put together an utility app that loops through our network and adds this information to an Access table (A97). Put simply use the Dir command in VBA and then use ADO or DAO to save any found item to the table. If you like I can look for it but it's been quite a while since we've run it and may take some time to find. Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 11:54:51 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 12:54:51 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks Jim I would greatly appreciate it. Whenever you get to it. Thanks > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, February 13, 2004 12:49 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT - file search results save > > > Patricia, > > I don't have it handy but I put together an utility app that > loops through our network and adds this information to an > Access table (A97). Put simply use the Dir command in VBA > and then use ADO or DAO to save any found item to the table. > If you like I can look for it but it's been quite a while > since we've run it and may take some time to find. > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB > using the Windows > 2000 search. Give name of file, directory, size, modify > date. Great just > what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something > simple but I am > just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Developer at UltraDNT.com Fri Feb 13 12:00:26 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 13 Feb 2004 13:00:26 -0500 Subject: [AccessD] OT - file search results save In-Reply-To: Message-ID: <000401c3f25b$48308170$7001a8c0@COA3> I'm still looking for a Windows way to do this, but gool old DOS does this easily ... At the root of the drive, use this at the command line: DIR *.mdb /s /b >c:\temp\mdblist.txt -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Feb 13 11:59:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 13 Feb 2004 12:59:29 -0500 Subject: [AccessD] OT - file search results save Message-ID: You can do it from a command prompt: dir "\\server\path\*.mdb" /s > "c:\path\to\your\outputfile.txt" Or use Karen Kenworthy's Directory Printer, available from: http://www.karenware.com/powertools/ptdirprn.asp Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Patricia.O'Connor at dfa.state.ny.us 13-Feb-04 12:32:38 PM >>> I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. From Developer at UltraDNT.com Fri Feb 13 12:06:50 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 13 Feb 2004 13:06:50 -0500 Subject: [AccessD] OT - file search results save In-Reply-To: Message-ID: <000501c3f25c$2a129600$7001a8c0@COA3> PS: the "/b" switch (for bare, is what I use to generate mp3 playlists) will only give path/file. Type DIR /? to get info on all the switches. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 12:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - file search results save I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. Thanks Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 13 12:09:12 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 13 Feb 2004 12:09:12 -0600 Subject: [AccessD] OT - file search results save Message-ID: <2F8793082E00D4119A1700B0D0216BF802227884@main2.marlow.com> I just sent you my 'Drive Mapper' utility (mind you, I wrote it a while back....), which 'records' the files and folders in a drive, into a normalized structure. drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Friday, February 13, 2004 11:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save Thanks Jim I would greatly appreciate it. Whenever you get to it. Thanks > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, February 13, 2004 12:49 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT - file search results save > > > Patricia, > > I don't have it handy but I put together an utility app that > loops through our network and adds this information to an > Access table (A97). Put simply use the Dir command in VBA > and then use ADO or DAO to save any found item to the table. > If you like I can look for it but it's been quite a while > since we've run it and may take some time to find. > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB > using the Windows > 2000 search. Give name of file, directory, size, modify > date. Great just > what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something > simple but I am > just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 12:14:08 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 13:14:08 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks ALL We did the dos thing - clunky and have to do alot of editing for readability. Downloaded Karen's thing will try that and let you know Thanks Patti > -----Original Message----- > From: Developer [mailto:Developer at UltraDNT.com] > Sent: Friday, February 13, 2004 01:07 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save > > > PS: the "/b" switch (for bare, is what I use to generate mp3 > playlists) > will only give path/file. Type DIR /? to get info on all the > switches. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia > Sent: Friday, February 13, 2004 12:33 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT - file search results save > > > I did a search of one of our server drives for all *.MDB using the > Windows 2000 search. Give name of file, directory, size, modify date. > Great just what I want, except I can not figure out how to get the > results into a file > - word, text, excel > > If I do save results, it puts it into a file but all that > seems to do is > save the search string. > > > Does anyone know how I can save the listing or have a utility > that will > allow me to save this in a file. It is probably something simple but I > am just getting no where. > > Thanks > Patti > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Fri Feb 13 12:39:18 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 13 Feb 2004 12:39:18 -0600 Subject: [AccessD] Re: Information about Access 2003 In-Reply-To: <200402131800.i1DI0PH10362@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040213123757.02ab8410@pop3.highstream.net> No, just install all of them in their own directory and do a custom install, and do not replace the previous version when prompted. At 12:00 PM 2/13/2004 -0600, you wrote: >Date: Fri, 13 Feb 2004 08:29:07 -0800 >From: Francisco H Tapia >User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) >X-Accept-Language: en-us, en >MIME-Version: 1.0 >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Re: Information about Access 2003 > >Are there any special steps adding Access 2003 to a system that has A97 >and Access 2000 on it? > > >-- >-Francisco From rmoore at comtechpst.com Fri Feb 13 12:43:51 2004 From: rmoore at comtechpst.com (Ron Moore) Date: Fri, 13 Feb 2004 13:43:51 -0500 Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD] OT - file search results save}: In-Reply-To: Message-ID: <002101c3f261$5367b1c0$6b14a8c0@Comtech.Comtechpst.com> Since this is being discussed... I need a way to return the folder and possibly the file permissions for Active Directories on a W2KServer Shared Drive i.e., need to know who has been granted permissions and what type. TIA Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Friday, February 13, 2004 12:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - file search results save You can do it from a command prompt: dir "\\server\path\*.mdb" /s > "c:\path\to\your\outputfile.txt" Or use Karen Kenworthy's Directory Printer, available from: http://www.karenware.com/powertools/ptdirprn.asp Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Patricia.O'Connor at dfa.state.ny.us 13-Feb-04 12:32:38 PM >>> I did a search of one of our server drives for all *.MDB using the Windows 2000 search. Give name of file, directory, size, modify date. Great just what I want, except I can not figure out how to get the results into a file - word, text, excel If I do save results, it puts it into a file but all that seems to do is save the search string. Does anyone know how I can save the listing or have a utility that will allow me to save this in a file. It is probably something simple but I am just getting no where. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 13 13:11:13 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:11:13 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 13 13:15:51 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 13 Feb 2004 14:15:51 -0500 Subject: [AccessD] OT - file search results save Message-ID: Thanks Drew Will give it a try this afternoon Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Friday, February 13, 2004 01:09 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save > > > I just sent you my 'Drive Mapper' utility (mind you, I wrote > it a while > back....), which 'records' the files and folders in a drive, into a > normalized structure. > > drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Friday, February 13, 2004 11:55 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save > > > Thanks Jim > > I would greatly appreciate it. Whenever you get to it. > > Thanks > > > > > -----Original Message----- > > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > > Sent: Friday, February 13, 2004 12:49 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] OT - file search results save > > > > > > Patricia, > > > > I don't have it handy but I put together an utility app that > > loops through our network and adds this information to an > > Access table (A97). Put simply use the Dir command in VBA > > and then use ADO or DAO to save any found item to the table. > > If you like I can look for it but it's been quite a while > > since we've run it and may take some time to find. > > > > Jim DeMarco > > Director Product Development > > Hudson Health Plan > > > > > > -----Original Message----- > > From: O'Connor, Patricia [mailto:Patricia.O'Connor at DFA.STATE.NY.US] > > Sent: Friday, February 13, 2004 12:33 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] OT - file search results save > > > > > > I did a search of one of our server drives for all *.MDB > > using the Windows > > 2000 search. Give name of file, directory, size, modify > > date. Great just > > what I want, except I can not figure out how to get the > > results into a file > > - word, text, excel > > > > If I do save results, it puts it into a file but all that > > seems to do is > > save the search string. > > > > > > Does anyone know how I can save the listing or have a utility > > that will > > allow me to save this in a file. It is probably something > > simple but I am > > just getting no where. > > > > Thanks > > Patti > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Fri Feb 13 13:18:30 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 13 Feb 2004 11:18:30 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: HUGE difference in load time!!! Almost instantaneous. Congrats to the developers. Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: 13 Feb 2004 11:11:AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated > manufacturing system for small manufacturers. Well, relaunch, actually, since it was > first brought out in 1985 under the DOS operating system. This time it is written in > Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous with their time and > knowledge over the years. Without them, this product would not have been created > (as it is, there are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the product will be greatly > appreciated. > > And thanks in advance for any referrals. We are going to try to make a living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. > Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated > manufacturing system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and achieved > great success and widespread use with hundreds of customers around the world. > > The system has been successfully implemented in a wide variety of small manufacturing > companies such as medical instrumentation, appliances, automotive, pharmaceutical, > furniture, spraying systems, orthodontics, firearms, as well as finding use as an > instructional aid in universities. It works just as well in job shop or > build-to-order environments as in build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages and distributed in > countries throughout the world. > > The system has now been completely rewritten using Microsoft's Access Database > Management System - a component of the popular Microsoft Office Suite - making it > compatible with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who > had neither the time, the money, nor the expertise to implement a conventional > manufacturing system," says Rocky Smolin, President of Beach Access Software. > "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the > easiest to implement of any MRP system in software history. " > > "It was designed to be used by people who do not have degrees or certification in > manufacturing systems. It requires no on-site training or consultation. And it has > cut the standard 18-month MRP implementation cycle to as little as 18 days." > > The package includes a full-featured Bill of Materials processor, a material planning > and tracking module that tracks all sales orders, forecasts, work orders (planned, > firm, and released), purchase orders, shortages, and raw materials and finished goods > inventories, with a complete audit trail on all inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function and a purchase order > module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to > do simulations or answer "what-if" questions without disrupting the production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar > power and capabilities. It will run on any Windows-based PC or network, and > requires only Access 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive user manual with > tutorials provides all the required instruction. > > For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 13 13:23:59 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:23:59 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <019801c3f266$f16044f0$6601a8c0@HAL9002> Just so's you know E-Z-MRPT in the press release is how E-Z-MRP with the little superscript tm comes across in plain text. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Friday, February 13, 2004 11:11 AM Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Fri Feb 13 13:27:17 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Fri, 13 Feb 2004 14:27:17 -0500 Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD]OT - file search results save}: In-Reply-To: <002101c3f261$5367b1c0$6b14a8c0@Comtech.Comtechpst.com> Message-ID: <000001c3f267$6461f340$fde44344@hargrove.internal> This example uses VB.NET but it should get you started... http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q818362 Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ron Moore Sent: Friday, February 13, 2004 1:44 PM To: accessd at databaseadvisors.com Subject: OT - Folder/File Permissions Search Result Save - was [RE: [AccessD]OT - file search results save}: Since this is being discussed... I need a way to return the folder and possibly the file permissions for Active Directories on a W2KServer Shared Drive i.e., need to know who has been granted permissions and what type. TIA Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com From bchacc at san.rr.com Fri Feb 13 13:31:06 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 13 Feb 2004 11:31:06 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: Message-ID: <019e01c3f267$ed1f4a70$6601a8c0@HAL9002> Thanks. I'll forward to the developer. Rocky ----- Original Message ----- From: "Kathryn Bassett" To: "Access Developers discussion and problem solving" Sent: Friday, February 13, 2004 11:18 AM Subject: RE: [AccessD] Product Launched - Thanks to AccessD > HUGE difference in load time!!! Almost instantaneous. Congrats to the developers. > Kathryn > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: 13 Feb 2004 11:11:AM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Product Launched - Thanks to AccessD > > > > > > Dear List: > > > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated > > manufacturing system for small manufacturers. Well, relaunch, actually, since it was > > first brought out in 1985 under the DOS operating system. This time it is written in > > Microsoft's Access. > > > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > > > I owe a great debt to all those who have been so generous with their time and > > knowledge over the years. Without them, this product would not have been created > > (as it is, there are still a few unbound forms in it :). > > > > As usual, thanks in advance any feedback on the site or the product will be greatly > > appreciated. > > > > And thanks in advance for any referrals. We are going to try to make a living this year. :) > > > > > > With best regards, > > > > Rocky Smolin > > Beach Access Software > > > > News Release > > For Immediate Release > > Contact: Rocky Smolin > > Beach Access Software > > 13614 Boquita Drive > > Del Mar, CA 92014 USA > > 1-858-259-4334 > > http:\\www.e-z-mrp.com > > > > > > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. > > Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated > > manufacturing system for small- and medium-sized manufacturers. > > > > > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and achieved > > great success and widespread use with hundreds of customers around the world. > > > > The system has been successfully implemented in a wide variety of small manufacturing > > companies such as medical instrumentation, appliances, automotive, pharmaceutical, > > furniture, spraying systems, orthodontics, firearms, as well as finding use as an > > instructional aid in universities. It works just as well in job shop or > > build-to-order environments as in build-to-stock or build-to-forecast operations. > > > > In previous versions, it was translated into five languages and distributed in > > countries throughout the world. > > > > The system has now been completely rewritten using Microsoft's Access Database > > Management System - a component of the popular Microsoft Office Suite - making it > > compatible with a wide variety of third-party products. > > > > "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who > > had neither the time, the money, nor the expertise to implement a conventional > > manufacturing system," says Rocky Smolin, President of Beach Access Software. > > "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the > > easiest to implement of any MRP system in software history. " > > > > "It was designed to be used by people who do not have degrees or certification in > > manufacturing systems. It requires no on-site training or consultation. And it has > > cut the standard 18-month MRP implementation cycle to as little as 18 days." > > > > The package includes a full-featured Bill of Materials processor, a material planning > > and tracking module that tracks all sales orders, forecasts, work orders (planned, > > firm, and released), purchase orders, shortages, and raw materials and finished goods > > inventories, with a complete audit trail on all inventory transactions. > > > > Also included in E-Z-MRPT is a physical inventory function and a purchase order > > module for printing purchase orders. > > > > And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to > > do simulations or answer "what-if" questions without disrupting the production database. > > > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar > > power and capabilities. It will run on any Windows-based PC or network, and > > requires only Access 2000 or Access XP to run. > > > > No on-site or remote training is required. A comprehensive user manual with > > tutorials provides all the required instruction. > > > > For more information, and user testimonials, visit the company's web site: > http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Fri Feb 13 15:40:00 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 13 Feb 2004 21:40:00 -0000 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <033901c3f279$ef50cb40$b274d0d5@minster33c3r25> Congratulations Rocky. Great job. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: 13 February 2004 19:11 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of > E-Z-MRP, an integrated manufacturing system for small > manufacturers. Well, relaunch, actually, since it was first > brought out in 1985 under the DOS operating system. This > time it is written in Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous > with their time and knowledge over the years. Without them, > this product would not have been created (as it is, there > are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the > product will be greatly appreciated. > > And thanks in advance for any referrals. We are going to try > to make a living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access > Software, formerly C. R. Smolin, Inc., announces the release > of Version 20 of E-Z-MRPT, an integrated manufacturing > system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in > 1985, and achieved great success and widespread use with > hundreds of customers around the world. > > The system has been successfully implemented in a wide > variety of small manufacturing companies such as medical > instrumentation, appliances, automotive, pharmaceutical, > furniture, spraying systems, orthodontics, firearms, as well > as finding use as an instructional aid in universities. It > works just as well in job shop or build-to-order environments > as in build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages > and distributed in countries throughout the world. > > The system has now been completely rewritten using > Microsoft's Access Database Management System - a component > of the popular Microsoft Office Suite - making it compatible > with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of > small manufacturers who had neither the time, the money, nor > the expertise to implement a conventional manufacturing > system," says Rocky Smolin, President of Beach Access > Software. "E-Z-MRPT in this new release is still arguably > the simplest approach to MRP and the easiest to implement of > any MRP system in software history. " > > "It was designed to be used by people who do not have degrees > or certification in manufacturing systems. It requires no > on-site training or consultation. And it has cut the > standard 18-month MRP implementation cycle to as little as 18 days." > > The package includes a full-featured Bill of Materials > processor, a material planning and tracking module that > tracks all sales orders, forecasts, work orders (planned, > firm, and released), purchase orders, shortages, and raw > materials and finished goods inventories, with a complete > audit trail on all inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function > and a purchase order module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple > databases, making it easy to do simulations or answer > "what-if" questions without disrupting the production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost > of systems with similar power and capabilities. It will run > on any Windows-based PC or network, and requires only Access > 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive > user manual with tutorials provides all the required instruction. > > For more information, and user testimonials, visit the > company's web site: http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From accessd at shaw.ca Fri Feb 13 23:06:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 13 Feb 2004 21:06:38 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227882@main2.marlow.com> Message-ID: Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 13 23:11:29 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 13 Feb 2004 21:11:29 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD In-Reply-To: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: Hi Rocky: Looks like a great package. If I hear of anyone requiring such a system I will definitely pass them on. Again a good job. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, February 13, 2004 11:11 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sat Feb 14 06:45:43 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 14 Feb 2004 13:45:43 +0100 Subject: [AccessD] increasing database size Message-ID: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> Hello group, how is it possible that a database increases its size by 1/3 when opening a complex form? Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. How is this possible and can i decrease the time? Pedro Janssen From gustav at cactus.dk Sat Feb 14 07:15:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 14 Feb 2004 14:15:15 +0100 Subject: [AccessD] increasing database size In-Reply-To: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> Message-ID: <13715293220.20040214141515@cactus.dk> Hi Pedro If your frontend is not supposed to write data to itself, you may write protect the file when you have finished design changes and compacting. /gustav > how is it possible that a database increases its size by 1/3 when opening a complex form? > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > How is this possible and can i decrease the time? From bchacc at san.rr.com Sat Feb 14 07:46:50 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 05:46:50 -0800 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> <13715293220.20040214141515@cactus.dk> Message-ID: <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> Pedro: Does your form have sub-forms? Does it have a tab form? Does it have combo boxes with large numbers of records to load? Rocky ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 5:15 AM Subject: Re: [AccessD] increasing database size > Hi Pedro > > If your frontend is not supposed to write data to itself, you may write > protect the file when you have finished design changes and compacting. > > /gustav > > > how is it possible that a database increases its size by 1/3 when opening a complex form? > > > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > > How is this possible and can i decrease the time? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Sat Feb 14 08:11:24 2004 From: listmaster at databaseadvisors.com (listmaster) Date: Sat, 14 Feb 2004 08:11:24 -0600 (CST) Subject: [AccessD] ADMINISTRIVIA - List upgrade Reminder Message-ID: This is just a short reminder that starting at 1000 EST (1500 UTC/GMT) we will begin upgrading the software that runs the lists hosted at databaseadvisors.com. This will result in the lists being unavailable for periods of time. Thanks for your patience and understanding. Bryan Carbonnell - listmaster at databaseadvisors.com Your Listmaster From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From pedro at plex.nl Sat Feb 14 15:01:12 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 14 Feb 2004 22:01:12 +0100 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> Message-ID: <002801c3f347$79968100$f2c581d5@pedro> Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may write > > protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 bellsouth.net Sat Feb 14 16:20:16 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 17:20:16 -0500 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <20040214222017.RZQR23866.imf25aec.mail.bellsouth.net@SUSANONE> For starters -- check out Arthur's context-sensitive combo box -- we wrote about it for... TechRepublic.com or Builder.com -- one, you could probably just do a search on Arthur (or my name) -- wait... Arthur, maybe it was devx.com? I don't remember -- Arthur will. Anyway -- great way to speed up a combo with a really big list. If I can find it -- I'll post a link. Susan H. Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 bellsouth.net Sat Feb 14 16:29:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 17:29:09 -0500 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <20040214222909.SCYJ23866.imf25aec.mail.bellsouth.net@SUSANONE> http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Sat Feb 14 16:56:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sat, 14 Feb 2004 23:56:48 +0100 Subject: [AccessD] increasing database size Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> Gustav... Is'nt that a bad idea? The size of a database get bigger (but not only reason) due to compilations. Code get compiled when it gets used, but also queries. So if you would make the file readonly you coder and queries never get compiled and your app is slower. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 14, 2004 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hi Pedro If your frontend is not supposed to write data to itself, you may write protect the file when you have finished design changes and compacting. /gustav > how is it possible that a database increases its size by 1/3 when opening a complex form? > Opening this form in formview or designview also costs (pentium4 2600Mhz 256MB-ram) about 25 sec. > How is this possible and can i decrease the time? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Sat Feb 14 17:10:48 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Sat, 14 Feb 2004 17:10:48 -0600 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: Thank you Bryan! I'll say once that here and on each of the dba lists which I got the good news on ;-) Great job. Can't thank you enough. Happy Valentines day too. Gary Kjos garykjos at hotmail.com >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: administrivia at databaseadvisors.com >Subject: [AccessD] Administrivia - Software Updates Done >Date: Sat, 14 Feb 2004 12:11:24 -0500 > >Well folks, the stars and planets were all in alignment this morning >and the list software upgrades went smoothly. > >Everything is back up and running. I will be tweaking as the day goes >by, but you shouldn't notice anything. > >If you have any problems as a result of this upgrade, PLEASE let me >know, listmaster at databaseadvisors.com. > >So why did we upgrade? Here are the highlights for those that are >interested: > >- Several Security vulnerabilities >- Bouncing rules have been updated >- Hard Drive Usage improvements >- Bounce Disable e-mail confirmation string expiry always out of date >bug was fixed (This affected several members) >- Archives takes time zome information into account when threading >messages. > >These are the main reasons we upgraded. > >Thanks for your patience during the upgrade and if you encounter any >problems, please let me know. > > >-- >Bryan Carbonnell - listmaster at databaseadvisors.com >I've learned.... >That one should keep his words both soft and tender, because tomorrow >he may have to eat them. > > >_______________________________________________ >Administrivia mailing list >Administrivia at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/administrivia >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Create your own personal Web page with the info you use most, at My MSN. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/ From bchacc at san.rr.com Sat Feb 14 17:15:49 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 15:15:49 -0800 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro> <13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <017001c3f350$7c006600$6601a8c0@HAL9002> Pedro: Before going any further I would remove all of the row sources from the combo boxes and load the form. If it loads real fast then the slowdown is in the combo boxes. If not it's somewhere else so you won't have to go through a lot of gyrations with them for no good purpose. If it is the combo boxes then you can use Colby's (I think?) trick of loading the row source of the combo box the first time it is clicked. In the GotFocus event of the combo box if there's no row source, then you load it at that point. You can store the Row Source in the Tag and then: Private Sub cboBuilding_GotFocus() If cboBuilding.RowSource = "" Then cboBuilding.RowSource = cboBuilding.Tag cboBuilding.Requery End If End Sub HTH Rocky ----- Original Message ----- From: "Pedro Janssen" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 1:01 PM Subject: Re: [AccessD] increasing database size > Hello Gustav and Rocky, > > all of the databases that i have designed at work or at home don't have > backend and frontend. A maximum of 6 users are working with them. In this > group i heard a lot about front- and backend. Could you give me the > advantage and disadvantage of this method. > > The form indeed loads about 12 comboboxes with each 1500 records. Further it > has about 150 textboxes where the control source is one of the columns of > these comboboxes. > > Anyway could i speed up things and is this the problem for the increasing > database. > > Pedro Janssen > > > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 2:46 PM > Subject: Re: [AccessD] increasing database size > > > > Pedro: > > > > Does your form have sub-forms? Does it have a tab form? Does it have > combo > > boxes with large numbers of records to load? > > > > Rocky > > > > ----- Original Message ----- > > From: "Gustav Brock" > > To: "Access Developers discussion and problem solving" > > > > Sent: Saturday, February 14, 2004 5:15 AM > > Subject: Re: [AccessD] increasing database size > > > > > > > Hi Pedro > > > > > > If your frontend is not supposed to write data to itself, you may write > > > protect the file when you have finished design changes and compacting. > > > > > > /gustav > > > > > > > how is it possible that a database increases its size by 1/3 when > > opening a complex form? > > > > > > > Opening this form in formview or designview also costs (pentium4 > 2600Mhz > > 256MB-ram) about 25 sec. > > > > How is this possible and can i decrease the time? > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 bellsouth.net Sat Feb 14 17:32:15 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 14 Feb 2004 18:32:15 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: Message-ID: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> And at the risk of being flamed for a me too -- I'll brave it -- thank you for all you do for us. :) Susan H. Thank you Bryan! I'll say once that here and on each of the dba lists which I got the good news on ;-) Great job. Can't thank you enough. Happy Valentines day too. Gary Kjos garykjos at hotmail.com From wdhindman at bellsouth.net Sat Feb 14 18:55:45 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 14 Feb 2004 19:55:45 -0500 Subject: [AccessD] Administrivia - Software Updates Done References: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <00f901c3f35e$71d6be00$6101a8c0@dejpolsys> ...me too! :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 14, 2004 6:32 PM Subject: RE: [AccessD] Administrivia - Software Updates Done > And at the risk of being flamed for a me too -- I'll brave it -- thank you > for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I got the good > news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Feb 14 21:46:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 15 Feb 2004 13:46:13 +1000 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <00f901c3f35e$71d6be00$6101a8c0@dejpolsys> Message-ID: <402F7825.25674.B2F0AC8@localhost> me too On 14 Feb 2004 at 19:55, William Hindman wrote: > ...me too! :) > > William Hindman > Government is not reason, government is not persuasion, > government is force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, February 14, 2004 6:32 PM > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > > And at the risk of being flamed for a me too -- I'll brave it -- thank you > > for all you do for us. :) > > > > Susan H. > > > > Thank you Bryan! > > > > I'll say once that here and on each of the dba lists which I got the good > > news on ;-) > > > > Great job. Can't thank you enough. Happy Valentines day too. > > > > Gary Kjos > > garykjos at hotmail.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bchacc at san.rr.com Sat Feb 14 21:56:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 14 Feb 2004 19:56:27 -0800 Subject: [AccessD] Administrivia - Software Updates Done References: <402F7825.25674.B2F0AC8@localhost> Message-ID: <028b01c3f377$b05f01a0$6601a8c0@HAL9002> Ok. I'm in. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 7:46 PM Subject: Re: [AccessD] Administrivia - Software Updates Done > > me too > > > > > On 14 Feb 2004 at 19:55, William Hindman wrote: > > > ...me too! :) > > > > William Hindman > > Government is not reason, government is not persuasion, > > government is force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "Susan Harkins" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Saturday, February 14, 2004 6:32 PM > > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > > > > > And at the risk of being flamed for a me too -- I'll brave it -- thank you > > > for all you do for us. :) > > > > > > Susan H. > > > > > > Thank you Bryan! > > > > > > I'll say once that here and on each of the dba lists which I got the good > > > news on ;-) > > > > > > Great job. Can't thank you enough. Happy Valentines day too. > > > > > > Gary Kjos > > > garykjos at hotmail.com > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 15 03:23:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 10:23:04 +0100 Subject: [AccessD] increasing database size In-Reply-To: <002801c3f347$79968100$f2c581d5@pedro> References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk> <000f01c3f300$ff5b9f10$6601a8c0@HAL9002> <002801c3f347$79968100$f2c581d5@pedro> Message-ID: <1651569526.20040215102304@cactus.dk> Hi Pedro The main advantage is that you separate design from data; this eases development of the frontend and backup of the backend. The main disadvantage is that you need to reattach the backend if it is moved to another folder. In a controlled environment, you can simply use the wizard to reattach the backend; if not, several utilities are available for free - just do a search in the archives for reattach or relink. /gustav > all of the databases that i have designed at work or at home don't have > backend and frontend. A maximum of 6 users are working with them. In this > group i heard a lot about front- and backend. Could you give me the > advantage and disadvantage of this method. From gustav at cactus.dk Sun Feb 15 03:49:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 10:49:00 +0100 Subject: [AccessD] increasing database size In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D2B7@stekelbes.ithelps.local> Message-ID: <843125864.20040215104900@cactus.dk> Hi Erwin > Is'nt that a bad idea? Not that I know of. On the other hand, you per definition eliminate frontend corruption - not that it is a big problem with WinNT+ but with Win9x we saw that from time to time. Also, Access needs to create temporary data for running some queries dealing with complex or large datasets; when the frontend is write protected, these data are forced to temporary files. With Pedro's form opening 1 + 12 queries, this could be his bloat problem ... As for the compilation, I've never heard this should happen more than once. For code it happens when you compile it which I guess we all do before leaving an app. As for the queries, do you mean the "~$.." saved queries created when you run a form or report bound to SQL-code and not to a saved query? Those, of course, Access will need to create every time if the file is write protected, but with today's fast machines I wonder if a difference can be noted and - if so - you could just save the SQL-code as queries in the normal way. By the way, that could be a part of Pedro's speed problem: Are you using saved queries for all those combos? /gustav > The size of a database get bigger (but not only reason) due to > compilations. > Code get compiled when it gets used, but also queries. > So if you would make the file readonly you coder and queries never get > compiled and your app is slower. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, February 14, 2004 2:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Pedro > If your frontend is not supposed to write data to itself, you may write > protect the file when you have finished design changes and compacting. From Erwin.Craps at ithelps.be Sun Feb 15 08:08:55 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sun, 15 Feb 2004 15:08:55 +0100 Subject: [AccessD] increasing database size Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> What concerns query compilation. Regular database windows saved queries need to be compiled to. If you do a compress and repair or create an MDE, all you queries are decompiled. They get compiled when you execute them. I have a tool that compiles all queries before delivering a databse to the customer. I got this from a website somewhere, but unfortunatly I don't remember the author or link. This is one of the resons why a query runs at first execution slower then the second time. Please not that this is only true for saved queries. And if you use parameters in you query I supose the speed advantage will be lost. But for all +/- fixed list combo/list boxes this could matter. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, February 15, 2004 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hi Erwin > Is'nt that a bad idea? Not that I know of. On the other hand, you per definition eliminate frontend corruption - not that it is a big problem with WinNT+ but with Win9x we saw that from time to time. Also, Access needs to create temporary data for running some queries dealing with complex or large datasets; when the frontend is write protected, these data are forced to temporary files. With Pedro's form opening 1 + 12 queries, this could be his bloat problem ... As for the compilation, I've never heard this should happen more than once. For code it happens when you compile it which I guess we all do before leaving an app. As for the queries, do you mean the "~$.." saved queries created when you run a form or report bound to SQL-code and not to a saved query? Those, of course, Access will need to create every time if the file is write protected, but with today's fast machines I wonder if a difference can be noted and - if so - you could just save the SQL-code as queries in the normal way. By the way, that could be a part of Pedro's speed problem: Are you using saved queries for all those combos? /gustav > The size of a database get bigger (but not only reason) due to > compilations. > Code get compiled when it gets used, but also queries. > So if you would make the file readonly you coder and queries never get > compiled and your app is slower. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Saturday, February 14, 2004 2:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Pedro > If your frontend is not supposed to write data to itself, you may > write protect the file when you have finished design changes and compacting. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Feb 15 09:10:22 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 15 Feb 2004 10:10:22 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: Message-ID: <402F458E.1061.3B1543@localhost> On 14 Feb 2004 at 17:10, Gary Kjos wrote: > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I got the > good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. Thanks everyone. Glad to help. Stuart, love those tags :) Never seen them before. -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From bchacc at san.rr.com Sun Feb 15 09:41:20 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 15 Feb 2004 07:41:20 -0800 Subject: [AccessD] Hiding Table in mde Message-ID: <003101c3f3da$28d08480$6601a8c0@HAL9002> Dear List: Is there a way to prevent a user from importing a table from an mde into an mdb without putting a password on the mde? I'm trying to build a serial number/upgrade/license extension function into an app and will be storing the data in a front end table. TIA, Rocky Smolin Beach Access Software From gustav at cactus.dk Sun Feb 15 10:04:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Feb 2004 17:04:50 +0100 Subject: [AccessD] increasing database size In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF03D2B8@stekelbes.ithelps.local> Message-ID: <2125675299.20040215170450@cactus.dk> Hi Erwin I have never run any systematic tests on this. In general, I see speed issues only for complex queries, and only for those I find it worth spending time on optimization efforts. Here are some more (diversified) observations on this: http://www.experts-exchange.com/Databases/MS_Access/Q_20838759.html#10027591 /gustav > What concerns query compilation. > Regular database windows saved queries need to be compiled to. > If you do a compress and repair or create an MDE, all you queries are > decompiled. > They get compiled when you execute them. > I have a tool that compiles all queries before delivering a databse to > the customer. > I got this from a website somewhere, but unfortunatly I don't remember > the author or link. > This is one of the resons why a query runs at first execution slower > then the second time. > Please not that this is only true for saved queries. > And if you use parameters in you query I supose the speed advantage will > be lost. > But for all +/- fixed list combo/list boxes this could matter. > Erwin > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, February 15, 2004 10:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] increasing database size > Hi Erwin >> Is'nt that a bad idea? > Not that I know of. On the other hand, you per definition eliminate > frontend corruption - not that it is a big problem with WinNT+ but with > Win9x we saw that from time to time. Also, Access needs to create > temporary data for running some queries dealing with complex or large > datasets; when the frontend is write protected, these data are forced to > temporary files. With Pedro's form opening 1 + 12 queries, this could be > his bloat problem ... > As for the compilation, I've never heard this should happen more than > once. For code it happens when you compile it which I guess we all do > before leaving an app. As for the queries, do you mean the "~$.." > saved queries created when you run a form or report bound to SQL-code > and not to a saved query? Those, of course, Access will need to create > every time if the file is write protected, but with today's fast > machines I wonder if a difference can be noted and - if so - you could > just save the SQL-code as queries in the normal way. > By the way, that could be a part of Pedro's speed problem: Are you using > saved queries for all those combos? > /gustav >> The size of a database get bigger (but not only reason) due to >> compilations. >> Code get compiled when it gets used, but also queries. >> So if you would make the file readonly you coder and queries never get >> compiled and your app is slower. >> Erwin >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Saturday, February 14, 2004 2:15 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] increasing database size >> Hi Pedro >> If your frontend is not supposed to write data to itself, you may >> write protect the file when you have finished design changes and >> compacting. From andy at minstersystems.co.uk Sun Feb 15 11:13:09 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 15 Feb 2004 17:13:09 -0000 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <01c601c3f3e7$00e86110$b274d0d5@minster33c3r25> (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 14 February 2004 23:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > And at the risk of being flamed for a me too -- I'll brave it > -- thank you for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I > got the good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From carbonnb at sympatico.ca Sun Feb 15 13:01:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 15 Feb 2004 14:01:35 -0500 Subject: [AccessD] Administrivia - Software Updates Done In-Reply-To: <01c601c3f3e7$00e86110$b274d0d5@minster33c3r25> References: <20040214233219.SZKJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <402F7BBF.21077.10EC5F4@localhost> On 15 Feb 2004 at 17:13, Andy Lacey wrote: > (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > > Andy Lacey I appreciate the sentiment Andy, but lets not. I'll just ban 'em instead :-)))) -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. From dw-murphy at cox.net Sun Feb 15 14:38:18 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Sun, 15 Feb 2004 12:38:18 -0800 Subject: [AccessD] Hiding Table in mde In-Reply-To: <003101c3f3da$28d08480$6601a8c0@HAL9002> Message-ID: <000201c3f403$a4bdfea0$8500a8c0@CX615377a> One way to do this is to not put it in the database, but use an external file that is encrypted. Set the system up so it won't run if the file isn't present and make the file hard for folks to find. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Sunday, February 15, 2004 7:41 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Hiding Table in mde Dear List: Is there a way to prevent a user from importing a table from an mde into an mdb without putting a password on the mde? I'm trying to build a serial number/upgrade/license extension function into an app and will be storing the data in a front end table. TIA, Rocky Smolin Beach Access Software _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sun Feb 15 14:52:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 15 Feb 2004 21:52:19 +0100 Subject: [AccessD] increasing database size References: <002e01c3f2f8$7742e5f0$f2c581d5@pedro><13715293220.20040214141515@cactus.dk><000f01c3f300$ff5b9f10$6601a8c0@HAL9002><002801c3f347$79968100$f2c581d5@pedro> <1651569526.20040215102304@cactus.dk> Message-ID: <001901c3f405$9baf32f0$f2c581d5@pedro> Hi, thank you all for the help on the increasing database, the speed problem of the form and back-frontend help. Pedro ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, February 15, 2004 10:23 AM Subject: Re: [AccessD] increasing database size > Hi Pedro > > The main advantage is that you separate design from data; this eases > development of the frontend and backup of the backend. > > The main disadvantage is that you need to reattach the backend if it > is moved to another folder. In a controlled environment, you can > simply use the wizard to reattach the backend; if not, several > utilities are available for free - just do a search in the archives > for reattach or relink. > > /gustav > > > > all of the databases that i have designed at work or at home don't have > > backend and frontend. A maximum of 6 users are working with them. In this > > group i heard a lot about front- and backend. Could you give me the > > advantage and disadvantage of this method. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Sun Feb 15 15:08:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sun, 15 Feb 2004 15:08:42 -0600 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <2F8793082E00D4119A1700B0D0216BF802227888@main2.marlow.com> Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a limited IIS server. (In 98, it's a personal webserver). I think it's limited to 5 simultaneous connections. However, that is only going to allow of transfering the entire .mdb, it won't allow for linked tables from a web clients Access FE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/13/04 11:06 PM Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Sun Feb 15 17:03:54 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Mon, 16 Feb 2004 10:03:54 +1100 Subject: [AccessD] Product Launched - Thanks to AccessD References: <017701c3f265$25f6dd20$6601a8c0@HAL9002> Message-ID: <007a01c3f417$fc7cd350$6401a8c0@user> I can see you've put a huge amount of work into that. It looks great - nice looking website - wish you every success. Kath ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: AccessD at databaseadvisors.com Sent: Saturday, February 14, 2004 6:11 AM Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Feb 15 17:32:35 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 15 Feb 2004 16:32:35 -0700 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <251770-220042015233235210@christopherhawkins.com> Rocky, Congratulations. I know that what you have built is no small feat - I had to build an MRP system for a $30 million company a few years back. It's hard work, and you seem to have done a great job. I hope this goes over big! -Christopher- ---- Original Message ---- From: bchacc at san.rr.com To: AccessD at databaseadvisors.com, Subject: RE: [AccessD] Product Launched - Thanks to AccessD Date: Fri, 13 Feb 2004 11:11:13 -0800 >Dear List: > >Beach Access Software is pleased to announce the launch of E-Z-MRP, >an integrated manufacturing system for small manufacturers. Well, >relaunch, actually, since it was first brought out in 1985 under the >DOS operating system. This time it is written in Microsoft's Access. > >Here's the web site: http://www.e-z-mrp.com. Please take a look. > >I owe a great debt to all those who have been so generous with their >time and knowledge over the years. Without them, this product >would not have been created (as it is, there are still a few unbound >forms in it :). > >As usual, thanks in advance any feedback on the site or the product >will be greatly appreciated. > >And thanks in advance for any referrals. We are going to try to >make a living this year. :) > > >With best regards, > >Rocky Smolin >Beach Access Software > >News Release >For Immediate Release >Contact: Rocky Smolin >Beach Access Software >13614 Boquita Drive >Del Mar, CA 92014 USA >1-858-259-4334 >http:\\www.e-z-mrp.com > > > > >NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > >Del Mar, California; March 1, 2004 - - Beach Access Software, >formerly C. R. Smolin, Inc., announces the release of Version 20 of >E-Z-MRPT, an integrated manufacturing system for small- and >medium-sized manufacturers. > > > >E-Z-MRPT was first released under the DOS operating system in 1985, >and achieved great success and widespread use with hundreds of >customers around the world. > >The system has been successfully implemented in a wide variety of >small manufacturing companies such as medical instrumentation, >appliances, automotive, pharmaceutical, furniture, spraying systems, >orthodontics, firearms, as well as finding use as an instructional >aid in universities. It works just as well in job shop or >build-to-order environments as in build-to-stock or >build-to-forecast operations. > >In previous versions, it was translated into five languages and >distributed in countries throughout the world. > >The system has now been completely rewritten using Microsoft's >Access Database Management System - a component of the popular >Microsoft Office Suite - making it compatible with a wide variety of >third-party products. > >"E-Z-MRPT made running an MRP system possible for hundreds of small >manufacturers who had neither the time, the money, nor the expertise >to implement a conventional manufacturing system," says Rocky >Smolin, President of Beach Access Software. "E-Z-MRPT in this new >release is still arguably the simplest approach to MRP and the >easiest to implement of any MRP system in software history. " > >"It was designed to be used by people who do not have degrees or >certification in manufacturing systems. It requires no on-site >training or consultation. And it has cut the standard 18-month MRP >implementation cycle to as little as 18 days." > >The package includes a full-featured Bill of Materials processor, a >material planning and tracking module that tracks all sales orders, >forecasts, work orders (planned, firm, and released), purchase >orders, shortages, and raw materials and finished goods inventories, >with a complete audit trail on all inventory transactions. > >Also included in E-Z-MRPT is a physical inventory function and a >purchase order module for printing purchase orders. > >And, like previous versions, E-Z-MRPT supports multiple databases, >making it easy to do simulations or answer "what-if" questions >without disrupting the production database. > >The total cost of E-Z-MRPT is $2995, a fraction of the cost of >systems with similar power and capabilities. It will run on any >Windows-based PC or network, and requires only Access 2000 or Access >XP to run. > >No on-site or remote training is required. A comprehensive user >manual with tutorials provides all the required instruction. > >For more information, and user testimonials, visit the company's web >site: http://www.e-z-mrp.com, or call 858-259-4334. > ># # # > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From clh at christopherhawkins.com Sun Feb 15 17:33:28 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 15 Feb 2004 16:33:28 -0700 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <45230-220042015233328117@christopherhawkins.com> Rocky, Congratulations. I know that what you have built is no small feat - I had to build an MRP system for a $30 million company a few years back. It's hard work, and you seem to have done a great job. I hope this goes over big! -Christopher- ---- Original Message ---- From: bchacc at san.rr.com To: AccessD at databaseadvisors.com, Subject: RE: [AccessD] Product Launched - Thanks to AccessD Date: Fri, 13 Feb 2004 11:11:13 -0800 >Dear List: > >Beach Access Software is pleased to announce the launch of E-Z-MRP, >an integrated manufacturing system for small manufacturers. Well, >relaunch, actually, since it was first brought out in 1985 under the >DOS operating system. This time it is written in Microsoft's Access. > >Here's the web site: http://www.e-z-mrp.com. Please take a look. > >I owe a great debt to all those who have been so generous with their >time and knowledge over the years. Without them, this product >would not have been created (as it is, there are still a few unbound >forms in it :). > >As usual, thanks in advance any feedback on the site or the product >will be greatly appreciated. > >And thanks in advance for any referrals. We are going to try to >make a living this year. :) > > >With best regards, > >Rocky Smolin >Beach Access Software > >News Release >For Immediate Release >Contact: Rocky Smolin >Beach Access Software >13614 Boquita Drive >Del Mar, CA 92014 USA >1-858-259-4334 >http:\\www.e-z-mrp.com > > > > >NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > >Del Mar, California; March 1, 2004 - - Beach Access Software, >formerly C. R. Smolin, Inc., announces the release of Version 20 of >E-Z-MRPT, an integrated manufacturing system for small- and >medium-sized manufacturers. > > > >E-Z-MRPT was first released under the DOS operating system in 1985, >and achieved great success and widespread use with hundreds of >customers around the world. > >The system has been successfully implemented in a wide variety of >small manufacturing companies such as medical instrumentation, >appliances, automotive, pharmaceutical, furniture, spraying systems, >orthodontics, firearms, as well as finding use as an instructional >aid in universities. It works just as well in job shop or >build-to-order environments as in build-to-stock or >build-to-forecast operations. > >In previous versions, it was translated into five languages and >distributed in countries throughout the world. > >The system has now been completely rewritten using Microsoft's >Access Database Management System - a component of the popular >Microsoft Office Suite - making it compatible with a wide variety of >third-party products. > >"E-Z-MRPT made running an MRP system possible for hundreds of small >manufacturers who had neither the time, the money, nor the expertise >to implement a conventional manufacturing system," says Rocky >Smolin, President of Beach Access Software. "E-Z-MRPT in this new >release is still arguably the simplest approach to MRP and the >easiest to implement of any MRP system in software history. " > >"It was designed to be used by people who do not have degrees or >certification in manufacturing systems. It requires no on-site >training or consultation. And it has cut the standard 18-month MRP >implementation cycle to as little as 18 days." > >The package includes a full-featured Bill of Materials processor, a >material planning and tracking module that tracks all sales orders, >forecasts, work orders (planned, firm, and released), purchase >orders, shortages, and raw materials and finished goods inventories, >with a complete audit trail on all inventory transactions. > >Also included in E-Z-MRPT is a physical inventory function and a >purchase order module for printing purchase orders. > >And, like previous versions, E-Z-MRPT supports multiple databases, >making it easy to do simulations or answer "what-if" questions >without disrupting the production database. > >The total cost of E-Z-MRPT is $2995, a fraction of the cost of >systems with similar power and capabilities. It will run on any >Windows-based PC or network, and requires only Access 2000 or Access >XP to run. > >No on-site or remote training is required. A comprehensive user >manual with tutorials provides all the required instruction. > >For more information, and user testimonials, visit the company's web >site: http://www.e-z-mrp.com, or call 858-259-4334. > ># # # > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From d.dick at uws.edu.au Sun Feb 15 19:58:41 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 12:58:41 +1100 Subject: [AccessD] A2K: Package and Deployment Wizard Message-ID: <00f401c3f430$6712f8d0$48619a89@DDICK> Hello all How do I get the package and deployment wizard happening from Access 2000? I need to distribute an app real quick. I know most of you would refer me to Wise-SageKey et al, but these are not options for me (yet) I have the MS developer edition installed. What do I have to do to start the P&D wizard for Access. I especially need to it distribute the (ridiculously bloated) runtime version of A2000 Many thanks in advance Darren From d.dick at uws.edu.au Sun Feb 15 20:41:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 13:41:39 +1100 Subject: [AccessD] A2K: Office Dev Edition Not starting Message-ID: <060f01c3f436$6922de50$48619a89@DDICK> Hello all Now when I put in disk 1 of My MSODE 2000, I get the following error. Any one seen it or know a work around. I do have Office 2000 installed, I do have VBA installed(This is my development machine for Access) I searched the MS website and the KB articles. Nothing with any of this text showed up - Help Darren Error Message Microsoft Office 2000 Developer Edition requires visual Basic for Applications 6.0 Before installing Microsoft Office 2000 Developer, install Office 2000 or another application that contains Visual Basic for Applications 6.0 From andrew.haslett at ilc.gov.au Sun Feb 15 21:23:53 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Mon, 16 Feb 2004 13:53:53 +1030 Subject: [AccessD] A2K: Office Dev Edition Not starting Message-ID: Download the latest Jet / MDAC updates. One of them usually contains a VBA version. You can also do a repair/custom re-install of office and de-select select VBA (under shared section I think). Cheers, Andrew -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Monday, 16 February 2004 1:12 PM To: AccessD List Subject: [AccessD] A2K: Office Dev Edition Not starting Hello all Now when I put in disk 1 of My MSODE 2000, I get the following error. Any one seen it or know a work around. I do have Office 2000 installed, I do have VBA installed(This is my development machine for Access) I searched the MS website and the KB articles. Nothing with any of this text showed up - Help Darren Error Message Microsoft Office 2000 Developer Edition requires visual Basic for Applications 6.0 Before installing Microsoft Office 2000 Developer, install Office 2000 or another application that contains Visual Basic for Applications 6.0 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From stuart at pacific.net.hk Sun Feb 15 23:46:29 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 16 Feb 2004 13:46:29 +0800 Subject: [AccessD] A2K: Office Dev Edition Not starting In-Reply-To: <060f01c3f436$6922de50$48619a89@DDICK> Message-ID: <004c01c3f450$3a450a30$0fcb11d2@BITSNB02> I hit this once ... But I can't remember how I got rid of it. I think I tried installing it without going through the CD installer. Let me see if I can find anything. Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, 16 February, 2004 10:42 AM > To: AccessD List > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > Hello all > Now when I put in disk 1 of My MSODE 2000, I get the following error. > Any one seen it or know a work around. > I do have Office 2000 installed, I do have VBA installed(This > is my development machine for Access) > I searched the MS website and the KB articles. > Nothing with any of this text showed up - Help > > Darren > > Error Message > Microsoft Office 2000 Developer Edition requires visual Basic > for Applications 6.0 Before installing Microsoft Office 2000 > Developer, install Office 2000 or another application that > contains Visual Basic for Applications 6.0 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Sun Feb 15 23:54:40 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 15 Feb 2004 21:54:40 -0800 Subject: [AccessD] Hiding Table in mde References: <000201c3f403$a4bdfea0$8500a8c0@CX615377a> Message-ID: <006a01c3f451$5e990200$6601a8c0@HAL9002> Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an external > file that is encrypted. Set the system up so it won't run if the file > isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde into > an mdb without putting a password on the mde? I'm trying to build a > serial number/upgrade/license extension function into an app and will be > storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 pacific.net.hk Mon Feb 16 00:07:00 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 16 Feb 2004 14:07:00 +0800 Subject: [AccessD] A2K: Office Dev Edition Not starting In-Reply-To: <004c01c3f450$3a450a30$0fcb11d2@BITSNB02> Message-ID: <004d01c3f453$1741d880$0fcb11d2@BITSNB02> It was as I thought I remembered. For some reason the KB article doesn't show when you search using the exact error. http://support.microsoft.com/default.aspx?scid=kb;en-us;322632 You need to run acmboot.exe from cd. Don't use the autorun feature. Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart Sanders > Sent: Monday, 16 February, 2004 1:46 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > > > I hit this once ... But I can't remember how I got rid of it. > > I think I tried installing it without going through the CD installer. > > Let me see if I can find anything. > > Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Darren DICK > > Sent: Monday, 16 February, 2004 10:42 AM > > To: AccessD List > > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > > > > Hello all > > Now when I put in disk 1 of My MSODE 2000, I get the > following error. > > Any one seen it or know a work around. > > I do have Office 2000 installed, I do have VBA installed(This > > is my development machine for Access) > > I searched the MS website and the KB articles. > > Nothing with any of this text showed up - Help > > > > Darren > > > > Error Message > > Microsoft Office 2000 Developer Edition requires visual Basic > > for Applications 6.0 Before installing Microsoft Office 2000 > > Developer, install Office 2000 or another application that > > contains Visual Basic for Applications 6.0 > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KevinR at nrhs.health.nsw.gov.au Mon Feb 16 00:21:08 2004 From: KevinR at nrhs.health.nsw.gov.au (Kevin Roberts) Date: Mon, 16 Feb 2004 17:21:08 +1100 Subject: [AccessD] passing parameters to data access page Message-ID: Anyone used a browsercontrol and data access page as a subform and successfully passed a parameter to it..... Kevin From d.dick at uws.edu.au Mon Feb 16 00:24:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 16 Feb 2004 17:24:56 +1100 Subject: [AccessD] A2K: Office Dev Edition Not starting References: <004d01c3f453$1741d880$0fcb11d2@BITSNB02> Message-ID: <064a01c3f455$989cb470$48619a89@DDICK> Thanks Stuart et al I remembered the "acmboot.exe" solution after I sent the post Thanks you all for responding The Package and Deployment wizard with A2K is a complete load of crap Who got paid to develop this rubbish? Found a freeware monster from the net "Setup Specialist" Still doesn't sort out the Runtime Problems :-(( I'll have to copy the runtime directory and install it if access don't exist - bugger See y'all Darren ----- Original Message ----- From: "Stuart Sanders" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 16, 2004 5:07 PM Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > It was as I thought I remembered. For some reason the KB article doesn't show > when you search using the exact error. > > http://support.microsoft.com/default.aspx?scid=kb;en-us;322632 > > You need to run acmboot.exe from cd. Don't use the autorun feature. > > Stuart > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Stuart Sanders > > Sent: Monday, 16 February, 2004 1:46 PM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] A2K: Office Dev Edition Not starting > > > > > > I hit this once ... But I can't remember how I got rid of it. > > > > I think I tried installing it without going through the CD installer. > > > > Let me see if I can find anything. > > > > Stuart > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Darren DICK > > > Sent: Monday, 16 February, 2004 10:42 AM > > > To: AccessD List > > > Subject: [AccessD] A2K: Office Dev Edition Not starting > > > > > > > > > Hello all > > > Now when I put in disk 1 of My MSODE 2000, I get the > > following error. > > > Any one seen it or know a work around. > > > I do have Office 2000 installed, I do have VBA installed(This > > > is my development machine for Access) > > > I searched the MS website and the KB articles. > > > Nothing with any of this text showed up - Help > > > > > > Darren > > > > > > Error Message > > > Microsoft Office 2000 Developer Edition requires visual Basic > > > for Applications 6.0 Before installing Microsoft Office 2000 > > > Developer, install Office 2000 or another application that > > > contains Visual Basic for Applications 6.0 > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Feb 16 00:31:58 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 15 Feb 2004 22:31:58 -0800 Subject: [AccessD] Database Operation from Remote Sites References: <2F8793082E00D4119A1700B0D0216BF802227888@main2.marlow.com> Message-ID: <403063DE.7000908@shaw.ca> Windows Terminal Server 2003 maybe have a look around here, Dunno about liscensing. http://www.termservhub.com/ DWUTKA at marlow.com wrote: >Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a >limited IIS server. (In 98, it's a personal webserver). I think it's >limited to 5 simultaneous connections. > >However, that is only going to allow of transfering the entire .mdb, it >won't allow for linked tables from a web clients Access FE. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >To: Access Developers discussion and problem solving >Sent: 2/13/04 11:06 PM >Subject: RE: [AccessD] Database Operation from Remote Sites > >Hi Drew: > >The remote PC will probably be connected by a static internet >connection. Is >there a PC-XP (IIS like environment?)...never checked into it. > >The venue will be a kiosk type stand-alone PC. Client decided that >Access >would produce the best user interface...good so far. There is a >permanent >Internet connection that can be accessed from their web server...still >OK. >Now the question is how to get the Remote to actually host. If it can >host >like a web server, the remote PC MDB data can be accessed and problem is >solved > >If the station was a 2000 Server or something similar problem would be >solved but costs as they are... > >Any suggestions? >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Friday, February 13, 2004 9:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >What kind of 'connection' are you asking for? Do you need a connection >where an Access FE has linked tables, or do you just want to copy data >back >and forth? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Thursday, February 12, 2004 7:23 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Hi Drew and others: > >What would be the best way to connect to a MDB, on a remote PC, >connected to >the internet, with an XP OS. > >IP address would be static. The connecting host would be anything from >Windows2000 or Linux Server etc. > >Any suggestions on best methods. Oh, yes the access must be either >manual or >automated depending on requirements. > >MTIA >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, February 12, 2004 9:45 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >I see, that is a lot to ask for. Let me explain how I learned ASP. I >had >been developing in VB, and in Access. I liked both. I switched our >company's Intranet from a file server, to an actual IIS server (web >server). >This allowed for server side scripting, so I just decided to tinker. >ASP is >actually pretty simple (I'm almost ashamed to admit this, but I just >recently discovered 'conditional' HTML (I think that's what you call >it), >which makes ASP even that much easier to develop in). What you really >need >to learn is HTML, and a little about how web pages work. > >Anyhow, I just began to tinker. > >I started with a db, with a table, and I wanted to see how to get the >data >pushed from the db, into a webpage. > >So, I built the following page: (Or something close to it) > ><% >dim cnn >dim rs >dim strSQL >set cnn=server.createobject("ADODB.Connection") >set rs=server.createobject("ADODB.Recordset") >strSQL="SELECT MyField FROM tblMyTable" >cnn.Provider="Microsoft.Jet.OLEDB.4.0" >cnn.Open "D:\Mydatabase.mdb" >rs.open strSQL,cnn,1,1 >rs.MoveFirst >Do Until rs.EOF=True > response.write rs.Fields(0).value > rs.MoveNext >Loop >rs.close >cnn.close >set rs=nothing >set cnn=nothing >%> > >sure enough, I then had an asp page full of one field out of my table. > >I then began tweaking the HTML, so instead of 'response.write >rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' > >Which now put the data down a row. the 'source' behind the page, >however >was still one big line, which is a nightmare to try and decipher, so I >changed that line to 'response.write rs.Fields(0).value & "
" & >vbcrlf'. >Now the page showed a 'column', and the source showed a column too. >Much >easier to read from both aspects. > >>From there on, I then had to learn about how to 'get' data from an ASP >page. >As you can see, pushing data out is easy, getting it turns out to be >just as >easy. I wrote/posted a beginners guide to ASP (it should be on my >website...http://www.wolfwares.com. It goes into pushing data from a >db, to >a website, and getting data from a web client. > >A few tricks I have picked up, which aren't in those documents, but >would >have been something I would have REALLY liked to have known when I was >starting out. > >First, in the sample code above, if the line 'rs.MoveNext' was removed, >or >never present in the first place, you will have just sent the IIS server >into an endless loop. In VB, or VBA, you would just hit ctrl-break, and >stop the code. However, you don't have that sort of access to the ASP >'engine'. However, if you run 'iisreset' from a command line (or >Start-->run-->iisreset), it will 'restart' the webserver, even if it's >in an >endless loop. (Stopping the actual Web service won't do this, the >stopping >process just hangs). > >Next, the 'conditional' HTML I mentioned is REALLY handy. > >You can use ASP to either show/hide HTML, or even repeat it. > >For instance, if I wanted to display a certain note, if there were no >records, I could do this (assume the first part of the code above): > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%end if%> > >That HTML, will only be displayed, if the conditional statement in the >ASP >let's it by, otherwise the HTML before the ASP's end if (or else, if you >use >that) will be skipped. > >You can also 'repeat' HTML that way, for instance: > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%else%> > > <% > rs.movefirst > do until rs.EOF=True > %> > > > > <% > loop > %> >
<%=rs.Fields(0).value%>
><%end if%> > >Kind of handy. Hope this helps you on your way! > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Wednesday, February 11, 2004 5:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Drew, thanks for your info so far. I would like to see the in and out of >how >to create something if that is not too big an ask, but any info would be >good. > >Terry Mace > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Thursday, 12 February 2004 09:53 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >By sample/demo, do you mean a complete in and out look at how to create >something, or just a working ASP interface? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >Helmut.E.Kotsch at t-online.de >Sent: Wednesday, February 11, 2004 12:45 AM >To: Access Developers discussion and problem solving >Subject: AW: [AccessD] Database Operation from Remote Sites > > >Good morning, >where could I find a sample / demo for the ASP approach? > >Regards Helmut Kotsch > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von >DWUTKA at marlow.com >Gesendet: Mittwoch, 11. Februar 2004 02:43 >An: accessd at databaseadvisors.com >Betreff: RE: [AccessD] Database Operation from Remote Sites > > >ASP is a very good approach for multi-site systems. The real question >is >how complex is the data entry? If you are only talking about a few >forms, >then ASP is the way to go. Have Site1 host the ASP pages, with the db >on >their network. That would allow for no modifications necessary for the >data >mining process. > >However, if the data entry is very complex, you may want to go with a >Citrix/TS approach. More costly to initially implement, but no real >'development' would be required. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, February 10, 2004 6:41 PM >To: 'AccessD at databaseadvisors.com' >Subject: [AccessD] Database Operation from Remote Sites > > >Hi all, > >I'm after some information on the best way to proceed with the expansion >of >an existing Access97 database application which is used for maintenance >activity recording. > >My company currently runs this database at two sites, call them Site1 >and >Site2. The BE is changed at Site2 as a function of its operations, each >night the BE is copied to Site1 where it is used for admin and data >mining >purposes with the data acknowledged as being up to 24hrs out of date. >This >has served the company well up to now as only one site can change the >data. > >The company now want to expand the number of sites that use and i/p >data. > >The new layout will have at least 4 sites. Site1 will be the admin and >data >mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, >and 3 >are on a WAN with Site3 being the companies main site and hosting the >companies Internet gateway. Site4 is overseas and not on the WAN. > >What I would like is some idea of the best approach - I have read a bit >about replication and ASP but have no practical experience with either. > >Thanks for any assistance. > > >Terry Mace >Logistic Support Officer & Maintenance Supervisor >BAE SYSTEMS >677 Victoria Street, >Abbotsford, VIC 3067 >Ph: +61 3 9208 0924 >Fax: +61 3 9208 0588 >Mailto: terry.mace at baesystems.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Mon Feb 16 01:27:19 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 16 Feb 2004 08:27:19 +0100 Subject: [AccessD] Database Operation from Remote Sites Message-ID: <46B976F2B698FF46A4FE7636509B22DF03D2BC@stekelbes.ithelps.local> Hi Sorry to drop in just like that.... I have not folowed the thread. You have to carefuly watch out for the speed over the internet. Therefor ASP/ASPX is prefered to use to due speed limitations. An xDSL line for example has a different speed upstream than downstream. For example ADSL for private use here in Belgium has today a 3Mb bandwith downstream but only 128Kb upstream. If you have that on both sides you maximal bandwith in both directions will be only 128Kb. 128Kb is 2x ISDN or +/- 2x the speed of a classical analogue modem. Linking a MDB and working in it at that speed (with VPN for example) is very difficult and can cuase corruptions. Using ASP/ASPX is a better way, but if you need to share that 128Kb with more than one user thats gonna slow.... So first check what upstream speeds you have available. Thats pretty easy to to. Upload a file with WS-FTP to a speedy server and watch the speed you have. This is the upstream from the connection where you are. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Sunday, February 15, 2004 10:09 PM To: accessd at shaw.ca; accessd-bounces at databaseadvisors.com; accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a limited IIS server. (In 98, it's a personal webserver). I think it's limited to 5 simultaneous connections. However, that is only going to allow of transfering the entire .mdb, it won't allow for linked tables from a web clients Access FE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/13/04 11:06 PM Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew: The remote PC will probably be connected by a static internet connection. Is there a PC-XP (IIS like environment?)...never checked into it. The venue will be a kiosk type stand-alone PC. Client decided that Access would produce the best user interface...good so far. There is a permanent Internet connection that can be accessed from their web server...still OK. Now the question is how to get the Remote to actually host. If it can host like a web server, the remote PC MDB data can be accessed and problem is solved If the station was a 2000 Server or something similar problem would be solved but costs as they are... Any suggestions? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Friday, February 13, 2004 9:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites What kind of 'connection' are you asking for? Do you need a connection where an Access FE has linked tables, or do you just want to copy data back and forth? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, February 12, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Database Operation from Remote Sites Hi Drew and others: What would be the best way to connect to a MDB, on a remote PC, connected to the internet, with an XP OS. IP address would be static. The connecting host would be anything from Windows2000 or Linux Server etc. Any suggestions on best methods. Oh, yes the access must be either manual or automated depending on requirements. MTIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, February 12, 2004 9:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites I see, that is a lot to ask for. Let me explain how I learned ASP. I had been developing in VB, and in Access. I liked both. I switched our company's Intranet from a file server, to an actual IIS server (web server). This allowed for server side scripting, so I just decided to tinker. ASP is actually pretty simple (I'm almost ashamed to admit this, but I just recently discovered 'conditional' HTML (I think that's what you call it), which makes ASP even that much easier to develop in). What you really need to learn is HTML, and a little about how web pages work. Anyhow, I just began to tinker. I started with a db, with a table, and I wanted to see how to get the data pushed from the db, into a webpage. So, I built the following page: (Or something close to it) <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") strSQL="SELECT MyField FROM tblMyTable" cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "D:\Mydatabase.mdb" rs.open strSQL,cnn,1,1 rs.MoveFirst Do Until rs.EOF=True response.write rs.Fields(0).value rs.MoveNext Loop rs.close cnn.close set rs=nothing set cnn=nothing %> sure enough, I then had an asp page full of one field out of my table. I then began tweaking the HTML, so instead of 'response.write rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' Which now put the data down a row. the 'source' behind the page, however was still one big line, which is a nightmare to try and decipher, so I changed that line to 'response.write rs.Fields(0).value & "
" & vbcrlf'. Now the page showed a 'column', and the source showed a column too. Much easier to read from both aspects. >From there on, I then had to learn about how to 'get' data from an ASP page. As you can see, pushing data out is easy, getting it turns out to be just as easy. I wrote/posted a beginners guide to ASP (it should be on my website...http://www.wolfwares.com. It goes into pushing data from a db, to a website, and getting data from a web client. A few tricks I have picked up, which aren't in those documents, but would have been something I would have REALLY liked to have known when I was starting out. First, in the sample code above, if the line 'rs.MoveNext' was removed, or never present in the first place, you will have just sent the IIS server into an endless loop. In VB, or VBA, you would just hit ctrl-break, and stop the code. However, you don't have that sort of access to the ASP 'engine'. However, if you run 'iisreset' from a command line (or Start-->run-->iisreset), it will 'restart' the webserver, even if it's in an endless loop. (Stopping the actual Web service won't do this, the stopping process just hangs). Next, the 'conditional' HTML I mentioned is REALLY handy. You can use ASP to either show/hide HTML, or even repeat it. For instance, if I wanted to display a certain note, if there were no records, I could do this (assume the first part of the code above): <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%end if%> That HTML, will only be displayed, if the conditional statement in the ASP let's it by, otherwise the HTML before the ASP's end if (or else, if you use that) will be skipped. You can also 'repeat' HTML that way, for instance: <%if rs.eof=true and rs.BOF=True%>

Sorry, No Records

<%else%> <% rs.movefirst do until rs.EOF=True %> <% loop %>
<%=rs.Fields(0).value%>
<%end if%> Kind of handy. Hope this helps you on your way! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Wednesday, February 11, 2004 5:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Database Operation from Remote Sites Drew, thanks for your info so far. I would like to see the in and out of how to create something if that is not too big an ask, but any info would be good. Terry Mace -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Thursday, 12 February 2004 09:53 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Database Operation from Remote Sites By sample/demo, do you mean a complete in and out look at how to create something, or just a working ASP interface? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Helmut.E.Kotsch at t-online.de Sent: Wednesday, February 11, 2004 12:45 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Database Operation from Remote Sites Good morning, where could I find a sample / demo for the ASP approach? Regards Helmut Kotsch -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von DWUTKA at marlow.com Gesendet: Mittwoch, 11. Februar 2004 02:43 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Database Operation from Remote Sites ASP is a very good approach for multi-site systems. The real question is how complex is the data entry? If you are only talking about a few forms, then ASP is the way to go. Have Site1 host the ASP pages, with the db on their network. That would allow for no modifications necessary for the data mining process. However, if the data entry is very complex, you may want to go with a Citrix/TS approach. More costly to initially implement, but no real 'development' would be required. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, February 10, 2004 6:41 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Database Operation from Remote Sites Hi all, I'm after some information on the best way to proceed with the expansion of an existing Access97 database application which is used for maintenance activity recording. My company currently runs this database at two sites, call them Site1 and Site2. The BE is changed at Site2 as a function of its operations, each night the BE is copied to Site1 where it is used for admin and data mining purposes with the data acknowledged as being up to 24hrs out of date. This has served the company well up to now as only one site can change the data. The company now want to expand the number of sites that use and i/p data. The new layout will have at least 4 sites. Site1 will be the admin and data mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, and 3 are on a WAN with Site3 being the companies main site and hosting the companies Internet gateway. Site4 is overseas and not on the WAN. What I would like is some idea of the best approach - I have read a bit about replication and ASP but have no practical experience with either. Thanks for any assistance. Terry Mace Logistic Support Officer & Maintenance Supervisor BAE SYSTEMS 677 Victoria Street, Abbotsford, VIC 3067 Ph: +61 3 9208 0924 Fax: +61 3 9208 0588 Mailto: terry.mace at baesystems.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Mon Feb 16 03:03:26 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Mon, 16 Feb 2004 09:03:26 -0000 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <61F915314798D311A2F800A0C9C83188047C6AD4@dibble.observatory.donnslaw.co.uk> yikes! me too, me too! ;) Roz -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 15 February 2004 17:13 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Administrivia - Software Updates Done (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 14 February 2004 23:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Administrivia - Software Updates Done > > > And at the risk of being flamed for a me too -- I'll brave it > -- thank you for all you do for us. :) > > Susan H. > > Thank you Bryan! > > I'll say once that here and on each of the dba lists which I > got the good news on ;-) > > Great job. Can't thank you enough. Happy Valentines day too. > > Gary Kjos > garykjos at hotmail.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From accessd667 at yahoo.com Mon Feb 16 03:04:20 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:04:20 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <20040216090420.29222.qmail@web61109.mail.yahoo.com> Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Mon Feb 16 03:14:06 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Mon, 16 Feb 2004 09:14:06 -0000 Subject: [AccessD] Product Launched - Thanks to AccessD Message-ID: <61F915314798D311A2F800A0C9C83188047C6AD5@dibble.observatory.donnslaw.co.uk> Rocky Looks like a killer app. - Great testimonials! Best of luck with it. The site is excellent. Can't say too much about the app., as I know less than nothing about MRP, but I'm sure it'll do great. Roz -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: 13 February 2004 19:11 To: AccessD at databaseadvisors.com Subject: [AccessD] Product Launched - Thanks to AccessD Dear List: Beach Access Software is pleased to announce the launch of E-Z-MRP, an integrated manufacturing system for small manufacturers. Well, relaunch, actually, since it was first brought out in 1985 under the DOS operating system. This time it is written in Microsoft's Access. Here's the web site: http://www.e-z-mrp.com. Please take a look. I owe a great debt to all those who have been so generous with their time and knowledge over the years. Without them, this product would not have been created (as it is, there are still a few unbound forms in it :). As usual, thanks in advance any feedback on the site or the product will be greatly appreciated. And thanks in advance for any referrals. We are going to try to make a living this year. :) With best regards, Rocky Smolin Beach Access Software News Release For Immediate Release Contact: Rocky Smolin Beach Access Software 13614 Boquita Drive Del Mar, CA 92014 USA 1-858-259-4334 http:\\www.e-z-mrp.com NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an integrated manufacturing system for small- and medium-sized manufacturers. E-Z-MRPT was first released under the DOS operating system in 1985, and achieved great success and widespread use with hundreds of customers around the world. The system has been successfully implemented in a wide variety of small manufacturing companies such as medical instrumentation, appliances, automotive, pharmaceutical, furniture, spraying systems, orthodontics, firearms, as well as finding use as an instructional aid in universities. It works just as well in job shop or build-to-order environments as in build-to-stock or build-to-forecast operations. In previous versions, it was translated into five languages and distributed in countries throughout the world. The system has now been completely rewritten using Microsoft's Access Database Management System - a component of the popular Microsoft Office Suite - making it compatible with a wide variety of third-party products. "E-Z-MRPT made running an MRP system possible for hundreds of small manufacturers who had neither the time, the money, nor the expertise to implement a conventional manufacturing system," says Rocky Smolin, President of Beach Access Software. "E-Z-MRPT in this new release is still arguably the simplest approach to MRP and the easiest to implement of any MRP system in software history. " "It was designed to be used by people who do not have degrees or certification in manufacturing systems. It requires no on-site training or consultation. And it has cut the standard 18-month MRP implementation cycle to as little as 18 days." The package includes a full-featured Bill of Materials processor, a material planning and tracking module that tracks all sales orders, forecasts, work orders (planned, firm, and released), purchase orders, shortages, and raw materials and finished goods inventories, with a complete audit trail on all inventory transactions. Also included in E-Z-MRPT is a physical inventory function and a purchase order module for printing purchase orders. And, like previous versions, E-Z-MRPT supports multiple databases, making it easy to do simulations or answer "what-if" questions without disrupting the production database. The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with similar power and capabilities. It will run on any Windows-based PC or network, and requires only Access 2000 or Access XP to run. No on-site or remote training is required. A comprehensive user manual with tutorials provides all the required instruction. For more information, and user testimonials, visit the company's web site: http://www.e-z-mrp.com, or call 858-259-4334. # # # _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:17:44 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:17:44 +0100 (CET) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <21663556.1076923064752.JavaMail.www@wwinf3002> SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Mon Feb 16 03:24:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 10:24:50 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! In-Reply-To: <20040216090420.29222.qmail@web61109.mail.yahoo.com> References: <20040216090420.29222.qmail@web61109.mail.yahoo.com> Message-ID: <1737532631.20040216102450@cactus.dk> Hi Sander It sounds like you have become a victim of non-internationalized code. But it is hard to tell with no code and no info on how you are using it. /gustav > I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? > When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? > The function below has the following values (after selecting januari 4th 2004): > Year = 2004 > Month = 1 > Day = 4 > Public Property Get Value() As Date > Value = DateSerial( _ > Me.Year, Me.Month, Me.Day) > End Property > i'm using > A2k english > Win2000 (reg settings => english; date = dd/mm/yyyy) From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-SQLServer] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [AccessD] [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Feb 16 03:28:38 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:28:38 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! In-Reply-To: <21663556.1076923064752.JavaMail.www@wwinf3002> Message-ID: <20040216092838.42170.qmail@web61108.mail.yahoo.com> Nope. Tried that already. thnx for the tip anyway paul.hartland at fsmail.net wrote: SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From accessd667 at yahoo.com Mon Feb 16 03:37:07 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 01:37:07 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info In-Reply-To: <1737532631.20040216102450@cactus.dk> Message-ID: <20040216093707.63590.qmail@web61110.mail.yahoo.com> I'm creating a sql string to fill a table. The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. The destination table has also a datefield without formatting. I use this code to show the date on screen: txtEindDatum = adhDoCalendar(txtEindDatum) This date is put inside an array (date) like this: Dim arrDates() As Date '----------------------------------------------- 'Step 1: Fill Date Array '----------------------------------------------- Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer Dim intCounter As Integer On Error GoTo CalculateDays_Error intCounter = 0 Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) ReDim Preserve arrDates(intCounter) arrDates(intCounter) = dtmStartDatum If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then intCounter = intCounter + 1 dtmStartDatum = dtmStartDatum + 1 Else Exit Do End If Loop 'intCountDate = UBound(arrDates) CalculateDays = UBound(arrDates) 'CalculateDays = intCountDate CalculateDays_Exit: ' Collect your garbage here Exit Function CalculateDays_Error: ' Collect your garbage here MsgBox "An error occured!" & vbCrLf & _ "Error number : " & Err.Number & vbCrLf & _ "Error description: " & Err.Description & vbCrLf & _ "Error source : " & Err.Source GoTo CalculateDays_Exit End Function Then I build the select statement: For intCountDate = 0 To UBound(arrDates) 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") dtmCurrDate = arrDates(intCountDate) ..... ..... If IsWeekend(dtmCurrDate) Then 'check if 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") strWhere = "WHERE a.date = #" & dtmCurrDate & "# " ... .... Function IsWeekend(dtmDate As Date) As Boolean On Error GoTo IsWeekend_Error 'Check to See if Weekend If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then IsWeekend = True Else IsWeekend = False End If IsWeekend_Exit: ' Collect your garbage here Exit Function IsWeekend_Error: ' Collect your garbage here MsgBox "An error occured!" & vbCrLf & _ "Error number : " & Err.Number & vbCrLf & _ "Error description: " & Err.Description & vbCrLf & _ "Error source : " & Err.Source GoTo IsWeekend_Exit End Function I don't see anything funny, anybody else? SD Gustav Brock wrote: Hi Sander It sounds like you have become a victim of non-internationalized code. But it is hard to tell with no code and no info on how you are using it. /gustav > I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? > When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? > The function below has the following values (after selecting januari 4th 2004): > Year = 2004 > Month = 1 > Day = 4 > Public Property Get Value() As Date > Value = DateSerial( _ > Me.Year, Me.Month, Me.Day) > End Property > i'm using > A2k english > Win2000 (reg settings => english; date = dd/mm/yyyy) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From paul.hartland at fsmail.net Mon Feb 16 03:41:58 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:41:58 +0100 (CET) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Message-ID: <20481986.1076924518150.JavaMail.www@wwinf3002> SD, So I presume that Me.Year, Me.Month, Me.Day are all separate text boxes, have you tried the following : Dim dtDate as Date dtDate = Me.Day & ?/? & Me.Month & ?/? & Me.Year Paul Message date : Feb 16 2004, 09:31 AM >From : "S D" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] adhbCalendar returns INCORRECT value?! Nope. Tried that already. thnx for the tip anyway paul.hartland at fsmail.net wrote: SD, Don't know if it will help but try this : Public Property Get Value() As Date Value = Format(DateSerial( Me.Year, Me.Month, Me.Day),"DD/MM.YYYY") End Property Paul Message date : Feb 16 2004, 09:06 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] adhbCalendar returns INCORRECT value?! Hi group, I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? The function below has the following values (after selecting januari 4th 2004): Year = 2004 Month = 1 Day = 4 Public Property Get Value() As Date Value = DateSerial( _ Me.Year, Me.Month, Me.Day) End Property i'm using A2k english Win2000 (reg settings => english; date = dd/mm/yyyy) Please help me out. Regards SD --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Mon Feb 16 04:00:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 11:00:55 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info In-Reply-To: <20040216093707.63590.qmail@web61110.mail.yahoo.com> References: <20040216093707.63590.qmail@web61110.mail.yahoo.com> Message-ID: <1939697804.20040216110055@cactus.dk> Hi Sander I would check two things. 1. The input looks like coming from a textbox. If a Debug.Print shows wrongly translated dates, try: Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) 2. Date expression in SQL must be US formatted according to the Lembit method: strWhere = "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " /gustav > I'm creating a sql string to fill a table. > The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. > The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. > The destination table has also a datefield without formatting. > I use this code to show the date on screen: > txtEindDatum = adhDoCalendar(txtEindDatum) > This date is put inside an array (date) like this: > Dim arrDates() As Date > '----------------------------------------------- > 'Step 1: Fill Date Array > '----------------------------------------------- > Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) > Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer > Dim intCounter As Integer > On Error GoTo CalculateDays_Error > intCounter = 0 > Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) > ReDim Preserve arrDates(intCounter) > arrDates(intCounter) = dtmStartDatum > If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then > intCounter = intCounter + 1 > dtmStartDatum = dtmStartDatum + 1 > Else > Exit Do > End If > Loop > 'intCountDate = UBound(arrDates) > CalculateDays = UBound(arrDates) > 'CalculateDays = intCountDate > CalculateDays_Exit: > ' Collect your garbage here > Exit Function > CalculateDays_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo CalculateDays_Exit > End Function > Then I build the select statement: > For intCountDate = 0 To UBound(arrDates) > 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") > dtmCurrDate = arrDates(intCountDate) > ..... > ..... > If IsWeekend(dtmCurrDate) Then > 'check if > 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") > strWhere = "WHERE a.date = #" & dtmCurrDate & "# " > ... > .... > Function IsWeekend(dtmDate As Date) As Boolean > On Error GoTo IsWeekend_Error > 'Check to See if Weekend > If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then > IsWeekend = True > Else > IsWeekend = False > End If > IsWeekend_Exit: > ' Collect your garbage here > Exit Function > IsWeekend_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo IsWeekend_Exit > End Function > I don't see anything funny, anybody else? > SD > Gustav Brock wrote: > Hi Sander > It sounds like you have become a victim of non-internationalized code. > But it is hard to tell with no code and no info on how you are using > it. > /gustav >> I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? >> When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? >> The function below has the following values (after selecting januari 4th 2004): >> Year = 2004 >> Month = 1 >> Day = 4 >> Public Property Get Value() As Date >> Value = DateSerial( _ >> Me.Year, Me.Month, Me.Day) >> End Property >> i'm using >> A2k english >> Win2000 (reg settings => english; date = dd/mm/yyyy) From accessd667 at yahoo.com Mon Feb 16 08:34:57 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 16 Feb 2004 06:34:57 -0800 (PST) Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info SOLVED In-Reply-To: <1939697804.20040216110055@cactus.dk> Message-ID: <20040216143457.76855.qmail@web61101.mail.yahoo.com> Gustav, THANK YOU!!!!! When copy-pasted the code and ran the code I got a very big smile on my ugly face! WHY in G's name does this work? Sander Gustav Brock wrote: Hi Sander I would check two things. 1. The input looks like coming from a textbox. If a Debug.Print shows wrongly translated dates, try: Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) 2. Date expression in SQL must be US formatted according to the Lembit method: strWhere = "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " /gustav > I'm creating a sql string to fill a table. > The (source) table I'm using has a date field with no formatting. I'm linking this table and I'm NOT allowed to change it. > The date from the adhbCalendar is used to determine wich date I must use for the WHERE statement. > The destination table has also a datefield without formatting. > I use this code to show the date on screen: > txtEindDatum = adhDoCalendar(txtEindDatum) > This date is put inside an array (date) like this: > Dim arrDates() As Date > '----------------------------------------------- > 'Step 1: Fill Date Array > '----------------------------------------------- > Call CalculateDays(txtStartDatum, txtEindDatum, arrDates()) > Function CalculateDays(dtmStartDatum As Date, dtmEindDatum As Date, ByRef arrDates() As Date) As Integer > Dim intCounter As Integer > On Error GoTo CalculateDays_Error > intCounter = 0 > Do While (DateDiff("d", dtmStartDatum, dtmEindDatum) >= 0) > ReDim Preserve arrDates(intCounter) > arrDates(intCounter) = dtmStartDatum > If DateDiff("d", dtmStartDatum, dtmEindDatum) > 0 Then > intCounter = intCounter + 1 > dtmStartDatum = dtmStartDatum + 1 > Else > Exit Do > End If > Loop > 'intCountDate = UBound(arrDates) > CalculateDays = UBound(arrDates) > 'CalculateDays = intCountDate > CalculateDays_Exit: > ' Collect your garbage here > Exit Function > CalculateDays_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo CalculateDays_Exit > End Function > Then I build the select statement: > For intCountDate = 0 To UBound(arrDates) > 'dtmCurrDate = Format(arrDates(intCountDate), "mm/dd/yyyy") > dtmCurrDate = arrDates(intCountDate) > ..... > ..... > If IsWeekend(dtmCurrDate) Then > 'check if > 'Call MsgBox("This day (" & dtmCurrDate & ") is either a saturday or a sunday", vbInformation, "Weekend") > strWhere = "WHERE a.date = #" & dtmCurrDate & "# " > ... > .... > Function IsWeekend(dtmDate As Date) As Boolean > On Error GoTo IsWeekend_Error > 'Check to See if Weekend > If (Weekday(dtmDate) = vbSaturday) Or (Weekday(dtmDate) = vbSunday) Then > IsWeekend = True > Else > IsWeekend = False > End If > IsWeekend_Exit: > ' Collect your garbage here > Exit Function > IsWeekend_Error: > ' Collect your garbage here > MsgBox "An error occured!" & vbCrLf & _ > "Error number : " & Err.Number & vbCrLf & _ > "Error description: " & Err.Description & vbCrLf & _ > "Error source : " & Err.Source > GoTo IsWeekend_Exit > End Function > I don't see anything funny, anybody else? > SD > Gustav Brock wrote: > Hi Sander > It sounds like you have become a victim of non-internationalized code. > But it is hard to tell with no code and no info on how you are using > it. > /gustav >> I'm going nuts! I'm using the calendar form from the ADHB 2000 and it returns the WRONG value!? >> When I select januari 4th 2004 (wich is a sunday) it returns April 1st 2004!! How is this possible? >> The function below has the following values (after selecting januari 4th 2004): >> Year = 2004 >> Month = 1 >> Day = 4 >> Public Property Get Value() As Date >> Value = DateSerial( _ >> Me.Year, Me.Month, Me.Day) >> End Property >> i'm using >> A2k english >> Win2000 (reg settings => english; date = dd/mm/yyyy) _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online From gustav at cactus.dk Mon Feb 16 09:09:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Feb 2004 16:09:40 +0100 Subject: [AccessD] adhbCalendar returns INCORRECT value?! Extra info SOLVED In-Reply-To: <20040216143457.76855.qmail@web61101.mail.yahoo.com> References: <20040216143457.76855.qmail@web61101.mail.yahoo.com> Message-ID: <1428223533.20040216160940@cactus.dk> Hi Sander > THANK YOU!!!!! > When copy-pasted the code and ran the code I got a very big smile on my ugly face! Very good! > WHY in G's name does this work? 1. Even if you format a textbox as date it still contains nothing more than a string or Null. Access tries at its best to turn that string into a date/time value but sometimes it gets confused if you include the value of the textbox in code. CDate() forces a conversion to a date/time value as early as possible. 2. Date/time values don't exist in SQL code other than by a string representation. If you include a date/time value in an SQL string in code, Access tries to convert this value to a string but it uses your local settings to create that string; this means that for most developers outside the US, the string will be formatted as dd/mm/yyyy or similar. However, the format must be in US format including the crazy time format with AM/PM if a time value is present. Format() can do that right away if you know how and that's Lembit's trick; to Format(), the slash "/" doesn't mean a slash but the date separator which, as to your local settings, may be replaced with a hyphen or a dot. Adding the backslash tells Format() to read and return the slash as a slash. If you are writing a lot of SQL code, this function may come in handy which also takes care of your hash marks "#": Public Function StrDateSQL(ByVal dat As Date) As String ' Formats full string of date/time in US format for SQL. ' Overrides local (non US) settings for date/time separators. ' Example output: ' ' #08/16/1998 04:03:36 PM# ' ' 1999-10-21. Cactus Data ApS, CPH. StrDateSQL = Format(dat, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") End Function /gustav > I would check two things. > 1. The input looks like coming from a textbox. If a Debug.Print shows > wrongly translated dates, try: > Call CalculateDays(CDate(txtStartDatum), CDate(txtEindDatum), arrDates()) > 2. Date expression in SQL must be US formatted according to the Lembit > method: > strWhere = > "WHERE a.date = #" & Format(dtmCurrDate, "mm\/dd\/yyyy") & "# " From rl_stewart at highstream.net Mon Feb 16 10:15:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 10:15:48 -0600 Subject: [AccessD] Stored Procedure SQL IN Clause In-Reply-To: <200402160728.i1G7S4m29313@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com From rl_stewart at highstream.net Mon Feb 16 10:15:48 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 10:15:48 -0600 Subject: [AccessD] [dba-SQLServer] Stored Procedure SQL IN Clause In-Reply-To: <200402160728.i1G7S4m29313@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 16 11:44:40 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 16 Feb 2004 11:44:40 -0600 Subject: [AccessD] Stored Procedure SQL IN Clause Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE36C@TAPPEEXCH01> Normally for statements like these it is necessary to concatenate strings together and use the EXEC keyword to run the resulting string. For example: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS EXEC ('SELECT * FROM tblClient WHERE ResidenceType IN (' + @InClause + ')') Let me know if you find another way of doing this. -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, February 16, 2004 10:16 AM To: accessd at databaseadvisors.com Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] Stored Procedure SQL IN Clause All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From davide at dalyn.co.nz Mon Feb 16 13:00:37 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 17 Feb 2004 08:00:37 +1300 Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View In-Reply-To: <33430946.1076922207517.JavaMail.www@wwinf3002> Message-ID: <5.2.0.9.0.20040217075728.00b2cc70@mail.dalyn.co.nz> Paul, Were do you want the information to appear (in a sproc, in a spreadsheet ?) How are you extracting the data at the moment? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 At 16/02/2004, you wrote: >To all, > >I have a table in SQL Server 7.0 called tblClient with the following >fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > >I want the following fields ClientName, Addrs1, Addrs2, District, Town, >County, Postcode to appear as one line separated by a comma like below > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, District, Town, >Postcode > >As you can se from the example Addrs2 and County are missing, this is >because these are blank sometimes. I have tried a couple of ways but >always end up with the following > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , >Postcode > >As you can see where the missing fields are the comma?s still appear. Any >help on this will be gratefully received. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 16 13:41:36 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 13:41:36 -0600 Subject: [AccessD] Administrivia - Software Updates Done Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788B@main2.marlow.com> Yikes, better 'me too' before I get banned! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Sunday, February 15, 2004 1:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Administrivia - Software Updates Done On 15 Feb 2004 at 17:13, Andy Lacey wrote: > (Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > > Andy Lacey I appreciate the sentiment Andy, but lets not. I'll just ban 'em instead :-)))) -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Mon Feb 16 15:24:08 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 16 Feb 2004 15:24:08 -0600 Subject: [AccessD] Remove Field Entry Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Is this the correct way to remove an entry with Me.ApproverID = Null? I tried Me.ApproverID.Undo instead, but the entry remains. I tried moving the code to BeforeUpdate and it still will not undo the entry, it requires the record to be saved first. I have never seen it done this way before (=Null) so I wasn't sure if it was the correct syntax. I do not want them entering their name in the ApprovalID or entering the approval date if the request is still open. Virginia Private Sub ApproverID_AfterUpdate() If IsNull(Me.DateCompleted) Then MsgBox "MMR must be completed before approving" Me.ApproverID = Null Me.DateCompleted.SetFocus End If End Sub From ssharkins at bellsouth.net Mon Feb 16 15:28:27 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 16 Feb 2004 16:28:27 -0500 Subject: [AccessD] Remove Field Entry In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Message-ID: <20040216212827.FJRZ23866.imf25aec.mail.bellsouth.net@SUSANONE> I do not want them entering their name in the ApprovalID or entering the approval date if the request is still open. ==========Why not just disable the control until the appropriate fields have been filled? Susan H. From andy at minstersystems.co.uk Mon Feb 16 15:29:38 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 16 Feb 2004 21:29:38 -0000 Subject: [AccessD] Remove Field Entry In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D12E@cntexchange.pgdp.usec.com> Message-ID: <030d01c3f4d3$fb61e700$b274d0d5@minster33c3r25> Virginia Assuming it's a bound field put this in the BeforeUpdate of the field (not the form's BeforeUpdate) If IsNull(Me.DateCompleted) Then MsgBox "MMR must be completed before approving" Me.ApproverID.Undo Cancel=True End If Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 16 February 2004 21:24 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Remove Field Entry > > > Is this the correct way to remove an entry with Me.ApproverID > = Null? I tried Me.ApproverID.Undo instead, but the entry > remains. I tried moving the code to BeforeUpdate and it still > will not undo the entry, it requires the record to be saved first. > > I have never seen it done this way before (=Null) so I wasn't > sure if it was the correct syntax. > > I do not want them entering their name in the ApprovalID or > entering the approval date if the request is still open. > > Virginia > > Private Sub ApproverID_AfterUpdate() > > If IsNull(Me.DateCompleted) Then > MsgBox "MMR must be completed before approving" > Me.ApproverID = Null > Me.DateCompleted.SetFocus > End If > > End Sub > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From jarus at amerinet-gpo.com Mon Feb 16 15:56:20 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Mon, 16 Feb 2004 15:56:20 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From bchacc at san.rr.com Mon Feb 16 18:19:43 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 16 Feb 2004 16:19:43 -0800 Subject: [AccessD] Product Launched - Thanks to AccessD References: <61F915314798D311A2F800A0C9C83188047C6AD5@dibble.observatory.donnslaw.co.uk> Message-ID: <00a801c3f4eb$bde48d70$6601a8c0@HAL9002> Thanks. Rocky ----- Original Message ----- From: "Roz Clarke" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 16, 2004 1:14 AM Subject: RE: [AccessD] Product Launched - Thanks to AccessD > Rocky > > Looks like a killer app. - Great testimonials! Best of luck with it. > > The site is excellent. Can't say too much about the app., as I know less > than nothing about MRP, but I'm sure it'll do great. > > Roz > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: 13 February 2004 19:11 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Product Launched - Thanks to AccessD > > > Dear List: > > Beach Access Software is pleased to announce the launch of E-Z-MRP, an > integrated manufacturing system for small manufacturers. Well, relaunch, > actually, since it was first brought out in 1985 under the DOS operating > system. This time it is written in Microsoft's Access. > > Here's the web site: http://www.e-z-mrp.com. Please take a look. > > I owe a great debt to all those who have been so generous with their time > and knowledge over the years. Without them, this product would not have > been created (as it is, there are still a few unbound forms in it :). > > As usual, thanks in advance any feedback on the site or the product will be > greatly appreciated. > > And thanks in advance for any referrals. We are going to try to make a > living this year. :) > > > With best regards, > > Rocky Smolin > Beach Access Software > > News Release > For Immediate Release > Contact: Rocky Smolin > Beach Access Software > 13614 Boquita Drive > Del Mar, CA 92014 USA > 1-858-259-4334 > http:\\www.e-z-mrp.com > > > > > NEWLY RELEASED E-Z-MRPT OFFERS SOLUTIONS FOR SMALL MANUFACTURERS > > > > > Del Mar, California; March 1, 2004 - - Beach Access Software, formerly C. > R. Smolin, Inc., announces the release of Version 20 of E-Z-MRPT, an > integrated manufacturing system for small- and medium-sized manufacturers. > > > > E-Z-MRPT was first released under the DOS operating system in 1985, and > achieved great success and widespread use with hundreds of customers around > the world. > > The system has been successfully implemented in a wide variety of small > manufacturing companies such as medical instrumentation, appliances, > automotive, pharmaceutical, furniture, spraying systems, orthodontics, > firearms, as well as finding use as an instructional aid in universities. > It works just as well in job shop or build-to-order environments as in > build-to-stock or build-to-forecast operations. > > In previous versions, it was translated into five languages and distributed > in countries throughout the world. > > The system has now been completely rewritten using Microsoft's Access > Database Management System - a component of the popular Microsoft Office > Suite - making it compatible with a wide variety of third-party products. > > "E-Z-MRPT made running an MRP system possible for hundreds of small > manufacturers who had neither the time, the money, nor the expertise to > implement a conventional manufacturing system," says Rocky Smolin, President > of Beach Access Software. "E-Z-MRPT in this new release is still arguably > the simplest approach to MRP and the easiest to implement of any MRP system > in software history. " > > "It was designed to be used by people who do not have degrees or > certification in manufacturing systems. It requires no on-site training or > consultation. And it has cut the standard 18-month MRP implementation cycle > to as little as 18 days." > > The package includes a full-featured Bill of Materials processor, a material > planning and tracking module that tracks all sales orders, forecasts, work > orders (planned, firm, and released), purchase orders, shortages, and raw > materials and finished goods inventories, with a complete audit trail on all > inventory transactions. > > Also included in E-Z-MRPT is a physical inventory function and a purchase > order module for printing purchase orders. > > And, like previous versions, E-Z-MRPT supports multiple databases, making it > easy to do simulations or answer "what-if" questions without disrupting the > production database. > > The total cost of E-Z-MRPT is $2995, a fraction of the cost of systems with > similar power and capabilities. It will run on any Windows-based PC or > network, and requires only Access 2000 or Access XP to run. > > No on-site or remote training is required. A comprehensive user manual with > tutorials provides all the required instruction. > > For more information, and user testimonials, visit the company's web site: > http://www.e-z-mrp.com, or call 858-259-4334. > > # # # > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [AccessD] [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 16 20:04:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 20:04:46 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788E@main2.marlow.com> Not sure why a handful of boolean fields is not normalized..... However, Jet does two bytes for a boolean field. Which is a waste of 15 bits! However, Unless you have a ton of records and/or have a massive amount of boolean fields, the space wasted is negligible. However, if you really want a method to cram them into one field, I would recommend a simple Byte field, versus a string field. First of all, with a string field, you will be using more space.....sort of. At a minimum, a string field takes up one byte. (Which tells Jet how long the data in the field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn 'off' and 'on', so you can represent up to 8 'programs' with one byte field. Still don't see a real advantage here.....unless you are dealing a heavily coded interface, then dealing with the bits is going to be faster then pulling strings apart. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 3:56 PM To: access Developers discussion and problem solving Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 16 21:11:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 16 Feb 2004 22:11:40 -0500 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? In-Reply-To: Message-ID: Terri, There is no "best" answer for this kind of question. Drew has pointed out some of the considerations, specifically the storage size etc. The most important thing to determine is "will there EVER be more of these things. If so then using fields just sucks since to add a new type you have to clear all the users out and add a new field, add it to queries, forms and reports. If these types may EVER change then adding a "child" table allows you to add in new types simply by adding a new record. That said, some types of reports are MORE difficult with child records since to see "counts" of these across a graph you now have to do crosstabs etc. If this is a "control"program where the types are well defined, there are just a handful, they can be implemented as bits in a long (for example) and you need SPEED in comparing them to values in other records then setting up bitmasks and representing them as bits in a long integer can be quite useful. So again, what is the end use? How many of these things are there? Can their names change over time? Can the number of them change over time? Are they used to switch on / off relays in an assembly line or map photocells in a control widget or just "label" an object or a property of an object? It sounds to me like you can have N of M of them for any given contract, the number of these codes could change over time (tomorrow you might need N of X of them), and thus the flexibility of a "lookup table" of these codes, with a m-m between the lookup table and the contract table would give the ability to handle anything that life might throw at you. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 4:56 PM To: accessd-owner at databaseadvisors.com Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Feb 16 22:13:49 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 16 Feb 2004 20:13:49 -0800 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? References: <2F8793082E00D4119A1700B0D0216BF80222788E@main2.marlow.com> Message-ID: <011901c3f50c$723da0c0$6601a8c0@HAL9002> Drew: In the old IBM 360 days, there was something called alignment where if you defined a byte field it had to be aligned on a word boundary anyway so you didn't save any space. (IIRC. Which is doubtful, in any event. ) Do you think it's the same in Jet where the byte field really takes up more than a byte? Rocky ----- Original Message ----- From: To: Sent: Monday, February 16, 2004 6:04 PM Subject: RE: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > Not sure why a handful of boolean fields is not normalized..... > > However, Jet does two bytes for a boolean field. Which is a waste of 15 > bits! However, Unless you have a ton of records and/or have a massive amount > of boolean fields, the space wasted is negligible. > > However, if you really want a method to cram them into one field, I would > recommend a simple Byte field, versus a string field. First of all, with a > string field, you will be using more space.....sort of. At a minimum, a > string field takes up one byte. (Which tells Jet how long the data in the > field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your > example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn > 'off' and 'on', so you can represent up to 8 'programs' with one byte field. > > Still don't see a real advantage here.....unless you are dealing a heavily > coded interface, then dealing with the bits is going to be faster then > pulling strings apart. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus > Sent: Monday, February 16, 2004 3:56 PM > To: access Developers discussion and problem solving > Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > > > I'm redesigning an existing database that is not fully normalized. Here is > an example where I'm not sure the best way to handle. Current db has a > field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and > the user checks the applicable box(es) that are related to their contract. > > I was going to use a Multiselect Listbox and have it save a string value to > the field Programs - but, I would need the string value to be in a > consistent order. > > Another idea would be to save a record for each program in a Programs table. > > Which is the best route to follow? Any suggestions? > > If you need more information, just let me know. Thank you for your input. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > -------------------------------------------------------------------------- - > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Mon Feb 16 22:31:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 16 Feb 2004 22:31:01 -0600 Subject: [AccessD] Re: How To: Create a Stored Procedure using a parameter for IN Message-ID: <5.1.0.14.2.20040216223030.0198e6f8@pop3.highstream.net> Final SQL Stored Procedure: CREATE PROCEDURE usp_Build_In @Select varchar(500), @From varchar(150), @Where varchar(500), @In varchar(500), @OrderBy Varchar(250) AS BEGIN DECLARE @SQL varchar(1900) SET @sql = @Select + @From + @Where + @In + @Orderby EXEC(@sql) END To Use it: SET QUOTED_IDENTIFIER OFF GO exec usp_Build_In 'SELECT ClientID,ResidenceType,LastName ', 'FROM tbl_Client ', 'WHERE LastName IN(', "'Stewart','Jones')", 'ORDER BY LastName' Notice the Double-quotes on the @In parameter. Robert, I am still working on the idea of using the subquery. The code you sent to me only returns one row, the last one in the list. But I will have more time to work with it tomorrow. RLS From DWUTKA at marlow.com Mon Feb 16 22:34:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 16 Feb 2004 22:34:32 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: <2F8793082E00D4119A1700B0D0216BF80222788F@main2.marlow.com> Nope, in Jet (AFAIK), a byte takes up one byte. Integer 2 bytes, Long 4 bytes, string 1 byte +length of string, etc. The boolean, or Yes/No is the waste of space though, it takes up 2 bytes. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, February 16, 2004 10:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Drew: In the old IBM 360 days, there was something called alignment where if you defined a byte field it had to be aligned on a word boundary anyway so you didn't save any space. (IIRC. Which is doubtful, in any event. ) Do you think it's the same in Jet where the byte field really takes up more than a byte? Rocky ----- Original Message ----- From: To: Sent: Monday, February 16, 2004 6:04 PM Subject: RE: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > Not sure why a handful of boolean fields is not normalized..... > > However, Jet does two bytes for a boolean field. Which is a waste of 15 > bits! However, Unless you have a ton of records and/or have a massive amount > of boolean fields, the space wasted is negligible. > > However, if you really want a method to cram them into one field, I would > recommend a simple Byte field, versus a string field. First of all, with a > string field, you will be using more space.....sort of. At a minimum, a > string field takes up one byte. (Which tells Jet how long the data in the > field is.). Then you would have 2 bytes (A97, and ASCII) per item, in your > example (AS, DI, etc.). However, with a Byte Field, you have 8 bits to turn > 'off' and 'on', so you can represent up to 8 'programs' with one byte field. > > Still don't see a real advantage here.....unless you are dealing a heavily > coded interface, then dealing with the bits is going to be faster then > pulling strings apart. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus > Sent: Monday, February 16, 2004 3:56 PM > To: access Developers discussion and problem solving > Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? > > > I'm redesigning an existing database that is not fully normalized. Here is > an example where I'm not sure the best way to handle. Current db has a > field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and > the user checks the applicable box(es) that are related to their contract. > > I was going to use a Multiselect Listbox and have it save a string value to > the field Programs - but, I would need the string value to be in a > consistent order. > > Another idea would be to save a record for each program in a Programs table. > > Which is the best route to follow? Any suggestions? > > If you need more information, just let me know. Thank you for your input. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > > -------------------------------------------------------------------------- - > This email and any files transmitted with it are confidential and > intended solely for the use of the individuals or entities to whom they > are addressed. If you have received this email in error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 17 00:24:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 16 Feb 2004 22:24:55 -0800 Subject: [AccessD] increasing database size In-Reply-To: <20040214222909.SCYJ23866.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: Very good. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Saturday, February 14, 2004 2:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] increasing database size http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 00:35:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 16 Feb 2004 22:35:16 -0800 Subject: [AccessD] Database Operation from Remote Sites In-Reply-To: <403063DE.7000908@shaw.ca> Message-ID: Thank you Marty: Will check out the site and see what information is available. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Sunday, February 15, 2004 10:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Operation from Remote Sites Windows Terminal Server 2003 maybe have a look around here, Dunno about liscensing. http://www.termservhub.com/ DWUTKA at marlow.com wrote: >Windows 2k Pro, and Windows XP (Even 98 for that matter), come with a >limited IIS server. (In 98, it's a personal webserver). I think it's >limited to 5 simultaneous connections. > >However, that is only going to allow of transfering the entire .mdb, it >won't allow for linked tables from a web clients Access FE. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >To: Access Developers discussion and problem solving >Sent: 2/13/04 11:06 PM >Subject: RE: [AccessD] Database Operation from Remote Sites > >Hi Drew: > >The remote PC will probably be connected by a static internet >connection. Is >there a PC-XP (IIS like environment?)...never checked into it. > >The venue will be a kiosk type stand-alone PC. Client decided that >Access >would produce the best user interface...good so far. There is a >permanent >Internet connection that can be accessed from their web server...still >OK. >Now the question is how to get the Remote to actually host. If it can >host >like a web server, the remote PC MDB data can be accessed and problem is >solved > >If the station was a 2000 Server or something similar problem would be >solved but costs as they are... > >Any suggestions? >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Friday, February 13, 2004 9:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >What kind of 'connection' are you asking for? Do you need a connection >where an Access FE has linked tables, or do you just want to copy data >back >and forth? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Thursday, February 12, 2004 7:23 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Hi Drew and others: > >What would be the best way to connect to a MDB, on a remote PC, >connected to >the internet, with an XP OS. > >IP address would be static. The connecting host would be anything from >Windows2000 or Linux Server etc. > >Any suggestions on best methods. Oh, yes the access must be either >manual or >automated depending on requirements. > >MTIA >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, February 12, 2004 9:45 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >I see, that is a lot to ask for. Let me explain how I learned ASP. I >had >been developing in VB, and in Access. I liked both. I switched our >company's Intranet from a file server, to an actual IIS server (web >server). >This allowed for server side scripting, so I just decided to tinker. >ASP is >actually pretty simple (I'm almost ashamed to admit this, but I just >recently discovered 'conditional' HTML (I think that's what you call >it), >which makes ASP even that much easier to develop in). What you really >need >to learn is HTML, and a little about how web pages work. > >Anyhow, I just began to tinker. > >I started with a db, with a table, and I wanted to see how to get the >data >pushed from the db, into a webpage. > >So, I built the following page: (Or something close to it) > ><% >dim cnn >dim rs >dim strSQL >set cnn=server.createobject("ADODB.Connection") >set rs=server.createobject("ADODB.Recordset") >strSQL="SELECT MyField FROM tblMyTable" >cnn.Provider="Microsoft.Jet.OLEDB.4.0" >cnn.Open "D:\Mydatabase.mdb" >rs.open strSQL,cnn,1,1 >rs.MoveFirst >Do Until rs.EOF=True > response.write rs.Fields(0).value > rs.MoveNext >Loop >rs.close >cnn.close >set rs=nothing >set cnn=nothing >%> > >sure enough, I then had an asp page full of one field out of my table. > >I then began tweaking the HTML, so instead of 'response.write >rs.Fields(0).value', I put 'response.write rs.Fields(0).value & "
"' > >Which now put the data down a row. the 'source' behind the page, >however >was still one big line, which is a nightmare to try and decipher, so I >changed that line to 'response.write rs.Fields(0).value & "
" & >vbcrlf'. >Now the page showed a 'column', and the source showed a column too. >Much >easier to read from both aspects. > >>From there on, I then had to learn about how to 'get' data from an ASP >page. >As you can see, pushing data out is easy, getting it turns out to be >just as >easy. I wrote/posted a beginners guide to ASP (it should be on my >website...http://www.wolfwares.com. It goes into pushing data from a >db, to >a website, and getting data from a web client. > >A few tricks I have picked up, which aren't in those documents, but >would >have been something I would have REALLY liked to have known when I was >starting out. > >First, in the sample code above, if the line 'rs.MoveNext' was removed, >or >never present in the first place, you will have just sent the IIS server >into an endless loop. In VB, or VBA, you would just hit ctrl-break, and >stop the code. However, you don't have that sort of access to the ASP >'engine'. However, if you run 'iisreset' from a command line (or >Start-->run-->iisreset), it will 'restart' the webserver, even if it's >in an >endless loop. (Stopping the actual Web service won't do this, the >stopping >process just hangs). > >Next, the 'conditional' HTML I mentioned is REALLY handy. > >You can use ASP to either show/hide HTML, or even repeat it. > >For instance, if I wanted to display a certain note, if there were no >records, I could do this (assume the first part of the code above): > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%end if%> > >That HTML, will only be displayed, if the conditional statement in the >ASP >let's it by, otherwise the HTML before the ASP's end if (or else, if you >use >that) will be skipped. > >You can also 'repeat' HTML that way, for instance: > ><%if rs.eof=true and rs.BOF=True%> >

Sorry, No Records

><%else%> > > <% > rs.movefirst > do until rs.EOF=True > %> > > > > <% > loop > %> >
<%=rs.Fields(0).value%>
><%end if%> > >Kind of handy. Hope this helps you on your way! > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Wednesday, February 11, 2004 5:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Database Operation from Remote Sites > > >Drew, thanks for your info so far. I would like to see the in and out of >how >to create something if that is not too big an ask, but any info would be >good. > >Terry Mace > >-----Original Message----- >From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] >Sent: Thursday, 12 February 2004 09:53 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Database Operation from Remote Sites > > >By sample/demo, do you mean a complete in and out look at how to create >something, or just a working ASP interface? > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >Helmut.E.Kotsch at t-online.de >Sent: Wednesday, February 11, 2004 12:45 AM >To: Access Developers discussion and problem solving >Subject: AW: [AccessD] Database Operation from Remote Sites > > >Good morning, >where could I find a sample / demo for the ASP approach? > >Regards Helmut Kotsch > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von >DWUTKA at marlow.com >Gesendet: Mittwoch, 11. Februar 2004 02:43 >An: accessd at databaseadvisors.com >Betreff: RE: [AccessD] Database Operation from Remote Sites > > >ASP is a very good approach for multi-site systems. The real question >is >how complex is the data entry? If you are only talking about a few >forms, >then ASP is the way to go. Have Site1 host the ASP pages, with the db >on >their network. That would allow for no modifications necessary for the >data >mining process. > >However, if the data entry is very complex, you may want to go with a >Citrix/TS approach. More costly to initially implement, but no real >'development' would be required. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, February 10, 2004 6:41 PM >To: 'AccessD at databaseadvisors.com' >Subject: [AccessD] Database Operation from Remote Sites > > >Hi all, > >I'm after some information on the best way to proceed with the expansion >of >an existing Access97 database application which is used for maintenance >activity recording. > >My company currently runs this database at two sites, call them Site1 >and >Site2. The BE is changed at Site2 as a function of its operations, each >night the BE is copied to Site1 where it is used for admin and data >mining >purposes with the data acknowledged as being up to 24hrs out of date. >This >has served the company well up to now as only one site can change the >data. > >The company now want to expand the number of sites that use and i/p >data. > >The new layout will have at least 4 sites. Site1 will be the admin and >data >mining centre, Site2, 3, and 4 will i/p and change data. Sites 1, 2, >and 3 >are on a WAN with Site3 being the companies main site and hosting the >companies Internet gateway. Site4 is overseas and not on the WAN. > >What I would like is some idea of the best approach - I have read a bit >about replication and ASP but have no practical experience with either. > >Thanks for any assistance. > > >Terry Mace >Logistic Support Officer & Maintenance Supervisor >BAE SYSTEMS >677 Victoria Street, >Abbotsford, VIC 3067 >Ph: +61 3 9208 0924 >Fax: +61 3 9208 0588 >Mailto: terry.mace at baesystems.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 02:56:44 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 09:56:44 +0100 (CET) Subject: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <17093576.1077008204923.JavaMail.www@wwinf3002> The information is to appear in a datagrid, at the moment it is in seperate fields. But I want to call a sproc, to fill the datagrid and would like the address line to appear as one with commas Message date : Feb 16 2004, 07:07 PM >From : "David Emerson" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Concatenating Fields In SQL Stored Procedure Or SQL View Paul, Were do you want the information to appear (in a sproc, in a spreadsheet ?) How are you extracting the data at the moment? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 At 16/02/2004, you wrote: >To all, > >I have a table in SQL Server 7.0 called tblClient with the following >fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > >I want the following fields ClientName, Addrs1, Addrs2, District, Town, >County, Postcode to appear as one line separated by a comma like below > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, District, Town, >Postcode > >As you can se from the example Addrs2 and County are missing, this is >because these are blank sometimes. I have tried a couple of ways but >always end up with the following > >BranchNo BranchCode Address >9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , >Postcode > >As you can see where the missing fields are the comma?s still appear. Any >help on this will be gratefully received. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From pedro at plex.nl Tue Feb 17 03:35:01 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 17 Feb 2004 10:35:01 +0100 Subject: [AccessD] need help with filter code Message-ID: <003401c3f539$727cac20$f7c581d5@pedro> Hello Group, i have 6 patients fields in which i want to do a search on their names. I don't want to use the existing filter in access, but search with a commandbutton and a textbox. I can use the following code with 6 cmdbuttons and 6 textboxes, but that doesn't work in practice. What i want is one cmdbutton and one txtbox that searches true all 6 fields Can you help me on this? Private sub cmdsearch1_Click() Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" Me.FilterOn = True Me.Requery Me.Refresh End Sub From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [AccessD] [dba-SQLServer] [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Tue Feb 17 06:03:36 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 12:03:36 +0000 Subject: [AccessD] Column Index Message-ID: Hi All, I have a series of fields which appear in datasheet view on a form. I would specifically like one of them to appear as the first column. Is there a method to programatically set this. Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From jarus at amerinet-gpo.com Tue Feb 17 06:34:44 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Tue, 17 Feb 2004 06:34:44 -0600 Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? Message-ID: Thanks for responding. What I have is a group of Programs - about 10 of them. Then a group of Facility Types - about 12-15 of those. And then, a group of Price Types - about 7 of those. They have remained fairly consistent with an addition or deletion over time - but nothing major. Basically keeping them as Boolean fields is the easiest, but it looks messy and I thought there might be a better way. Since there's no real big advantage to making a switch, I guess I'll stay with the current setup. Thanks again. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/16/04 09:11PM >>> Terri, There is no "best" answer for this kind of question. Drew has pointed out some of the considerations, specifically the storage size etc. The most important thing to determine is "will there EVER be more of these things. If so then using fields just sucks since to add a new type you have to clear all the users out and add a new field, add it to queries, forms and reports. If these types may EVER change then adding a "child" table allows you to add in new types simply by adding a new record. That said, some types of reports are MORE difficult with child records since to see "counts" of these across a graph you now have to do crosstabs etc. If this is a "control"program where the types are well defined, there are just a handful, they can be implemented as bits in a long (for example) and you need SPEED in comparing them to values in other records then setting up bitmasks and representing them as bits in a long integer can be quite useful. So again, what is the end use? How many of these things are there? Can their names change over time? Can the number of them change over time? Are they used to switch on / off relays in an assembly line or map photocells in a control widget or just "label" an object or a property of an object? It sounds to me like you can have N of M of them for any given contract, the number of these codes could change over time (tomorrow you might need N of X of them), and thus the flexibility of a "lookup table" of these codes, with a m-m between the lookup table and the contract table would give the ability to handle anything that life might throw at you. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Monday, February 16, 2004 4:56 PM To: accessd-owner at databaseadvisors.com Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? I'm redesigning an existing database that is not fully normalized. Here is an example where I'm not sure the best way to handle. Current db has a field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and the user checks the applicable box(es) that are related to their contract. I was going to use a Multiselect Listbox and have it save a string value to the field Programs - but, I would need the string value to be in a consistent order. Another idea would be to save a record for each program in a Programs table. Which is the best route to follow? Any suggestions? If you need more information, just let me know. Thank you for your input. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 07:44:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 17 Feb 2004 08:44:07 -0500 Subject: [AccessD] increasing database size In-Reply-To: Message-ID: I just looked at this tip. While it works admirably for SEARCH combos what about those where the combo is just displaying FK data from another field. Perhaps the policy holder of a policy for example? These kinds of combos are much more common on a form and they may be pulling thousands of records as well. Or does Access "behind the scenes" only pull a single record to match the FK in the form's recordset? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Tuesday, February 17, 2004 1:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] increasing database size Very good. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Saturday, February 14, 2004 2:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] increasing database size http://techrepublic.com.com/5100-6329-5031812-1-1.html?tag=search -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Saturday, February 14, 2004 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] increasing database size Hello Gustav and Rocky, all of the databases that i have designed at work or at home don't have backend and frontend. A maximum of 6 users are working with them. In this group i heard a lot about front- and backend. Could you give me the advantage and disadvantage of this method. The form indeed loads about 12 comboboxes with each 1500 records. Further it has about 150 textboxes where the control source is one of the columns of these comboboxes. Anyway could i speed up things and is this the problem for the increasing database. Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, February 14, 2004 2:46 PM Subject: Re: [AccessD] increasing database size > Pedro: > > Does your form have sub-forms? Does it have a tab form? Does it have combo > boxes with large numbers of records to load? > > Rocky > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, February 14, 2004 5:15 AM > Subject: Re: [AccessD] increasing database size > > > > Hi Pedro > > > > If your frontend is not supposed to write data to itself, you may > > write protect the file when you have finished design changes and compacting. > > > > /gustav > > > > > how is it possible that a database increases its size by 1/3 when > opening a complex form? > > > > > Opening this form in formview or designview also costs (pentium4 2600Mhz > 256MB-ram) about 25 sec. > > > How is this possible and can i decrease the time? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 17 07:55:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 14:55:50 +0100 Subject: [AccessD] Column Index In-Reply-To: References: Message-ID: <921854044.20040217145550@cactus.dk> Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. From rsmethurst at UK.EY.COM Tue Feb 17 08:24:06 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 14:24:06 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Gustav, That's the problem. The 'lead' column needs to be changed dynamically, which is why I'm wondering if there is any way to do it programatically. I've tried to set the tabindex already (in code) and it doesn't seem to have had an affect. Ryan Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 13:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From gustav at cactus.dk Tue Feb 17 08:44:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 15:44:09 +0100 Subject: [AccessD] Column Index In-Reply-To: References: Message-ID: <15824752842.20040217154409@cactus.dk> Hi Ryan If a requery doesn't do it, you could shuffle the recordsources of the textboxes. /gustav > That's the problem. The 'lead' column needs to be changed dynamically, > which is why I'm wondering if there is any way to do it programatically. > I've tried to set the tabindex already (in code) and it doesn't seem to > have had an affect. > Ryan > Switch to design mode and adjust the tab sequence of the textboxes. > /gustav >> I have a series of fields which appear in datasheet view on a form. I >> would specifically like one of them to appear as the first column. Is >> there a method to programatically set this. From bchacc at san.rr.com Tue Feb 17 08:53:06 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 06:53:06 -0800 Subject: [AccessD] need help with filter code References: <003401c3f539$727cac20$f7c581d5@pedro> Message-ID: <004301c3f565$c0f3c8d0$6601a8c0@HAL9002> Pedro: I do something similar (I hope) with reports where the user can enter >= and/or <= values on any of several fields to filter the contents of the report. Then I set up the filter like so: strFilter = "" If Nz(Forms!frmBuyReport!txtGEDescription) <> "" Then If strFilter <> "" Then strFilter = strFilter & " AND " strFilter = strFilter & "Description >= '" & Nz(Forms!frmBuyReport!txtGEDescription) & "'" End If If Nz(Forms!frmBuyReport!txtLEDescription) <> "" Then If strFilter <> "" Then strFilter = strFilter & " AND " strFilter = strFilter & "Description <= '" & Nz(Forms!frmBuyReport!txtLEDescription) & "'" End If If strFilter <> "" Then Me.Filter = strFilter Me.FilterOn = True Else Me.Filter = "" Me.FilterOn = "" End If Of course you can substitute Like for >= and <=. And OR for AND if you are looking for A OR B OR C OR D vs A AND B AND C AND D. HTH Rocky Smolin Beach Access Software ----- Original Message ----- From: "Pedro Janssen" To: Sent: Tuesday, February 17, 2004 1:35 AM Subject: [AccessD] need help with filter code Hello Group, i have 6 patients fields in which i want to do a search on their names. I don't want to use the existing filter in access, but search with a commandbutton and a textbox. I can use the following code with 6 cmdbuttons and 6 textboxes, but that doesn't work in practice. What i want is one cmdbutton and one txtbox that searches true all 6 fields Can you help me on this? Private sub cmdsearch1_Click() Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" Me.FilterOn = True Me.Requery Me.Refresh End Sub _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Feb 17 09:37:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 09:37:01 -0600 Subject: [AccessD] Re: Checkboxes/MultiSelect Listbox - What's Best? In-Reply-To: <200402170641.i1H6fSm03924@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217093306.02aa5c90@pop3.highstream.net> Terri, The best way, according to normalization rules, is to store it in a SelectedPrograms table. You would also have a table tlkpPrograms to use for a list of valid programs. By doing it this way, they can add new programs without you having to change the program to handle it. If you use check boxes, you would have to add new ones and remove existing ones as the program list changed. If you want, you can send me the current structure off list and I will look at it and give you suggestions about how to get it fully normalized. Robert At 12:41 AM 2/17/2004 -0600, you wrote: >Date: Mon, 16 Feb 2004 15:56:20 -0600 >From: "Terri Jarus" >Subject: [AccessD] Checkboxes/MultiSelect Listbox - What's Best? >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >I'm redesigning an existing database that is not fully normalized. Here >is an example where I'm not sure the best way to handle. Current db has a >field (Boolean) for each program: AS, DI, MS, SS, LB, NU for example and >the user checks the applicable box(es) that are related to their contract. > >I was going to use a Multiselect Listbox and have it save a string value >to the field Programs - but, I would need the string value to be in a >consistent order. > >Another idea would be to save a record for each program in a Programs table. > >Which is the best route to follow? Any suggestions? > >If you need more information, just let me know. Thank you for your input. > >Terri Jarus From rsmethurst at UK.EY.COM Tue Feb 17 09:37:59 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 17 Feb 2004 15:37:59 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Gustav, Will try that. Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 14:44 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan If a requery doesn't do it, you could shuffle the recordsources of the textboxes. /gustav > That's the problem. The 'lead' column needs to be changed dynamically, > which is why I'm wondering if there is any way to do it programatically. > I've tried to set the tabindex already (in code) and it doesn't seem to > have had an affect. > Ryan > Switch to design mode and adjust the tab sequence of the textboxes. > /gustav >> I have a series of fields which appear in datasheet view on a form. I >> would specifically like one of them to appear as the first column. Is >> there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From ssharkins at bellsouth.net Tue Feb 17 09:41:22 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 17 Feb 2004 10:41:22 -0500 Subject: [AccessD] Is This Possible ? In-Reply-To: <16329281.1077010479959.JavaMail.www@wwinf3002> Message-ID: <20040217154121.BPJV7256.imf18aec.mail.bellsouth.net@SUSANONE> I didn't look at this very carefully, but looks like an excuse for a crosstab? Susan H. To all, I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don't really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. From reuben at gfconsultants.com Tue Feb 17 09:55:49 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 10:55:49 -0500 Subject: [AccessD] Unrecognized Database Format Message-ID: I have a semi urgent problem. A customer downloaded an update from our website and installed it correctly. However, upon opening and attempting to link to the tables she received a message "Unrecognized Database Format". We've all seen it. However, this time, A2K won't do anything with it. When I have had problems in the past A2K would open and repair it. Nothing happens to this one. It always responds "unrecognized..." Any suggestions on how to go about saving it. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From bchacc at san.rr.com Tue Feb 17 10:07:47 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 08:07:47 -0800 Subject: [AccessD] Unrecognized Database Format References: Message-ID: <00a001c3f570$2fa412d0$6601a8c0@HAL9002> Could it have been corrupted on the download? Did she try re-downloading it? How about decompile? Rocky ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Tuesday, February 17, 2004 7:55 AM Subject: [AccessD] Unrecognized Database Format > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Tue Feb 17 10:31:38 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 11:31:38 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <00a001c3f570$2fa412d0$6601a8c0@HAL9002> Message-ID: I didn't explain enough. The download of the FE went fine. The problem is in this clients BE only. The BE is 'unrecognized'. I had them send me the BE and I have tried several things to open it. I can't decompile. I can't open to compact and repair. Can't link to it from anything. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 11:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Could it have been corrupted on the download? Did she try re-downloading > it? How about decompile? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Tuesday, February 17, 2004 7:55 AM > Subject: [AccessD] Unrecognized Database Format > > > > I have a semi urgent problem. > > > > A customer downloaded an update from our website and installed it > correctly. > > > > However, upon opening and attempting to link to the tables she > received a > > message "Unrecognized Database Format". > > > > We've all seen it. However, this time, A2K won't do anything with it. > When > > I have had problems in the past A2K would open and repair it. Nothing > > happens to this one. It always responds "unrecognized..." > > > > Any suggestions on how to go about saving it. > > > > Thanks. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Feb 17 10:57:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Feb 2004 17:57:35 +0100 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: Message-ID: <832758864.20040217175735@cactus.dk> Hi Reuben Open it in a hex editor. If the header is overwritten with garbage the file is beyond normal repair, except if you can manage to overwrite with data copied form a freshly created database file. /gustav > The problem is in this clients BE only. The BE is 'unrecognized'. > I had them send me the BE and I have tried several things to open it. I > can't decompile. I can't open to compact and repair. Can't link to it from > anything. From reuben at gfconsultants.com Tue Feb 17 11:07:14 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 12:07:14 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <832758864.20040217175735@cactus.dk> Message-ID: You lost me, Gustav. Where would I find a hex editor? And if I get it open, is the header obvious to find? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Feb 17 11:40:42 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 17 Feb 2004 09:40:42 -0800 Subject: [AccessD] Hiding Table in mde Message-ID: Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Feb 17 11:56:05 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 17 Feb 2004 09:56:05 -0800 Subject: [AccessD] Unrecognized Database Format References: Message-ID: <013601c3f57f$50a3a720$6601a8c0@HAL9002> DO they have a recent backup? Rocky ----- Original Message ----- From: "Reuben Cummings" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 17, 2004 8:31 AM Subject: RE: [AccessD] Unrecognized Database Format > I didn't explain enough. > > The download of the FE went fine. > > The problem is in this clients BE only. The BE is 'unrecognized'. > > I had them send me the BE and I have tried several things to open it. I > can't decompile. I can't open to compact and repair. Can't link to it from > anything. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Tuesday, February 17, 2004 11:08 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Could it have been corrupted on the download? Did she try re-downloading > > it? How about decompile? > > > > Rocky > > > > ----- Original Message ----- > > From: "Reuben Cummings" > > To: "AccessD" > > Sent: Tuesday, February 17, 2004 7:55 AM > > Subject: [AccessD] Unrecognized Database Format > > > > > > > I have a semi urgent problem. > > > > > > A customer downloaded an update from our website and installed it > > correctly. > > > > > > However, upon opening and attempting to link to the tables she > > received a > > > message "Unrecognized Database Format". > > > > > > We've all seen it. However, this time, A2K won't do anything with it. > > When > > > I have had problems in the past A2K would open and repair it. Nothing > > > happens to this one. It always responds "unrecognized..." > > > > > > Any suggestions on how to go about saving it. > > > > > > Thanks. > > > > > > Reuben Cummings > > > GFC, LLC > > > phone: 812.523.1017 > > > email: reuben at gfconsultants.com > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Feb 17 12:14:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:14:00 -0600 Subject: [AccessD] Re: Column Index In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217121151.02a581b0@pop3.highstream.net> Don't use a datasheet. Modify the form to look like a datasheet, then you can arrange them however you want. Technically, it is bad design to use them because a lot of code and events can be circumvented from what I have seen. If you have to use a datasheet, base it on a query with the columns in the order you want to see them. At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 12:03:36 +0000 >From: rsmethurst at UK.EY.COM >Subject: [AccessD] Column Index >To: Access Developers discussion and problem solving > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi All, > >I have a series of fields which appear in datasheet view on a form. I >would specifically like one of them to appear as the first column. Is >there a method to programatically set this. > >Thanks >Ryan From KIsmert at TexasSystems.com Tue Feb 17 12:20:40 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 17 Feb 2004 12:20:40 -0600 Subject: [AccessD] Column Index In-Reply-To: Message-ID: <007801c3f582$bffb58e0$2a3ca8c0@TEXASSYSTEMS.COM> This is the code that I use in the form's class module: Private Sub FormatDataSheetColumns() Me.RowHeight = 240 ' in twips txtJobNumber.ColumnHidden = True With cboAssoc_File_ID .ColumnHidden = False .ColumnOrder = 1 .ColumnWidth = 1440 ' in twips End With ' Set for all visible datasheet controls End Sub It demonstrates the four datasheet-specific display properties: RowHeight, ColumnHidden, ColumnOrder and ColumnWidth -Ken -----Original Message----- From: rsmethurst at UK.EY.COM [mailto:rsmethurst at UK.EY.COM] Sent: Tuesday, February 17, 2004 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Column Index Thanks Gustav, That's the problem. The 'lead' column needs to be changed dynamically, which is why I'm wondering if there is any way to do it programatically. I've tried to set the tabindex already (in code) and it doesn't seem to have had an affect. Ryan Gustav Brock Sent by: accessd-bounces at databaseadvisors.com 17/02/2004 13:55 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Column Index Hi Ryan Switch to design mode and adjust the tab sequence of the textboxes. /gustav > I have a series of fields which appear in datasheet view on a form. I > would specifically like one of them to appear as the first column. Is > there a method to programatically set this. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From reuben at gfconsultants.com Tue Feb 17 12:19:40 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 13:19:40 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <013601c3f57f$50a3a720$6601a8c0@HAL9002> Message-ID: I was afraid someone would ask that! My guess, knowing this client, is no. They have the copies created by the BEU, but I'm not sure when that happened. Typical client - you tell them to back up and they nod their heads and look stupid. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 12:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > DO they have a recent backup? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 17, 2004 8:31 AM > Subject: RE: [AccessD] Unrecognized Database Format > > > > I didn't explain enough. > > > > The download of the FE went fine. > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't link to it > from > > anything. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Rocky Smolin - > > > Beach Access Software > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > Could it have been corrupted on the download? Did she try > re-downloading > > > it? How about decompile? > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "Reuben Cummings" > > > To: "AccessD" > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > I have a semi urgent problem. > > > > > > > > A customer downloaded an update from our website and installed it > > > correctly. > > > > > > > > However, upon opening and attempting to link to the tables she > > > received a > > > > message "Unrecognized Database Format". > > > > > > > > We've all seen it. However, this time, A2K won't do > anything with it. > > > When > > > > I have had problems in the past A2K would open and repair > it. Nothing > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > Thanks. > > > > > > > > Reuben Cummings > > > > GFC, LLC > > > > phone: 812.523.1017 > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Feb 17 12:34:27 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:34:27 -0600 Subject: [AccessD] Re: need help with filter code In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Here are the steps that I would take: 1. Create a base query with all the fields you want to display. i.e. sqry_FilterQuery_0 2. Do a save as and save the same query with an _1 on the end instead of _0. In the code behind the OnClick event of your command button place the following: dim db as dao.database dim qdf as dao.querydef dim strSql as string dim strWhere as string set db=currentdb() set qdf=db.querydefs("base query name") ' removes the ; from the end of the query string strsql = mid(qdf.sql,1,len(qdf.sql)-3) strwhere = " WHERE (" ' build the string for each of the 6 columns you want to search in strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" set qdf = db.querydefs("_1 query name") qdf.sql = strsql & strwhere db.close set db=nothing ' enter the code here to open either the _1 query or a form/report ' based on the _1 query By doing it this way, you do not have to fool around with the filter property. Robert Replace the column1-6 with the names of the columns that you want to search in. Replace me!textbox with the name of the text box you are entering the criteria in. Replace "base query name" with the name of the _0 query. Replace "_1 query name" with the name of the _1 query. At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 10:35:01 +0100 >From: "Pedro Janssen" >Subject: [AccessD] need help with filter code >To: >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Group, > >i have 6 patients fields in which i want to do a search on their names. >I don't want to use the existing filter in access, but search with a >commandbutton and a textbox. >I can use the following code with 6 cmdbuttons and 6 textboxes, >but that doesn't work in practice. >What i want is one cmdbutton and one txtbox that searches true all 6 fields >Can you help me on this? > > >Private sub cmdsearch1_Click() >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" >Me.FilterOn = True >Me.Requery >Me.Refresh > >End Sub From rl_stewart at highstream.net Tue Feb 17 12:37:33 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 17 Feb 2004 12:37:33 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402171757.i1HHvHm01397@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040217123710.02a52bf0@pop3.highstream.net> Did someone convert it to 2002 or 2003? At 11:57 AM 2/17/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 11:31:38 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I didn't explain enough. > >The download of the FE went fine. > >The problem is in this clients BE only. The BE is 'unrecognized'. > >I had them send me the BE and I have tried several things to open it. I >can't decompile. I can't open to compact and repair. Can't link to it from >anything. > >Reuben Cummings From reuben at gfconsultants.com Tue Feb 17 12:56:05 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 17 Feb 2004 13:56:05 -0500 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <5.1.0.14.2.20040217123710.02a52bf0@pop3.highstream.net> Message-ID: Could be. They have 2002 installed. How can I find out for sure without going down there? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. > Stewart > Sent: Tuesday, February 17, 2004 1:38 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: Unrecognized Database Format > > > Did someone convert it to 2002 or 2003? > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 11:31:38 -0500 > >From: "Reuben Cummings" > >Subject: RE: [AccessD] Unrecognized Database Format > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > > > >I didn't explain enough. > > > >The download of the FE went fine. > > > >The problem is in this clients BE only. The BE is 'unrecognized'. > > > >I had them send me the BE and I have tried several things to open it. I > >can't decompile. I can't open to compact and repair. Can't > link to it from > >anything. > > > >Reuben Cummings > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Tue Feb 17 15:32:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 17 Feb 2004 22:32:19 +0100 Subject: [AccessD] Re: need help with filter code References: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Message-ID: <001201c3f59d$868ddae0$f6c581d5@pedro> Hello Robert and Rocky, thanks for help on the filter code. I will try both and see which can serve my needs. Pedro ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 17, 2004 7:34 PM Subject: [AccessD] Re: need help with filter code > Here are the steps that I would take: > > 1. Create a base query with all the fields you want to display. > i.e. sqry_FilterQuery_0 > > 2. Do a save as and save the same query with an _1 on the end instead of _0. > > In the code behind the OnClick event of your command button place the > following: > > dim db as dao.database > dim qdf as dao.querydef > dim strSql as string > dim strWhere as string > set db=currentdb() > set qdf=db.querydefs("base query name") > ' removes the ; from the end of the query string > strsql = mid(qdf.sql,1,len(qdf.sql)-3) > strwhere = " WHERE (" > ' build the string for each of the 6 columns you want to search in > strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" > set qdf = db.querydefs("_1 query name") > qdf.sql = strsql & strwhere > db.close > set db=nothing > ' enter the code here to open either the _1 query or a form/report > ' based on the _1 query > > By doing it this way, you do not have to fool around with the filter property. > > Robert > > Replace the column1-6 with the names of the columns that you want to search > in. Replace me!textbox with the name of the text box you are entering the > criteria in. Replace "base query name" with the name of the _0 > query. Replace "_1 query name" with the name of the _1 query. > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 10:35:01 +0100 > >From: "Pedro Janssen" > >Subject: [AccessD] need help with filter code > >To: > >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Group, > > > >i have 6 patients fields in which i want to do a search on their names. > >I don't want to use the existing filter in access, but search with a > >commandbutton and a textbox. > >I can use the following code with 6 cmdbuttons and 6 textboxes, > >but that doesn't work in practice. > >What i want is one cmdbutton and one txtbox that searches true all 6 fields > >Can you help me on this? > > > > > >Private sub cmdsearch1_Click() > >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" > >Me.FilterOn = True > >Me.Requery > >Me.Refresh > > > >End Sub > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Tue Feb 17 16:49:51 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 18 Feb 2004 08:49:51 +1000 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: <832758864.20040217175735@cactus.dk> Message-ID: <4033272F.23612.151631@localhost> On 17 Feb 2004 at 12:07, Reuben Cummings wrote: > You lost me, Gustav. > > Where would I find a hex editor? And if I get it open, is the header > obvious to find? > Pricelessware (The Pricelessware List reflects the programs favored by participants in the alt.comp.freeware newsgroup ; it is not an exhaustive list of the best available Freeware. Most of the listings are well-known programs, but there are some hard-to-find goodies to be discovered. Although most categories will list only 1 or 2 selections, a few will list 3-4 programs. ) http://www.pricelessware.org recommends FrHed.exe http://www.tu-darmstadt.de/~rkibria/frhed156.zip -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd at shaw.ca Tue Feb 17 18:52:40 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 17 Feb 2004 16:52:40 -0800 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Hi Rueben: The DB may be in a more recent format. I have only seen that prompt when a MDB was made in A2002 or A2003. In which case by going into say Access 2003 and converting the MDB to A2K (tools-->Database Utilities-->Convert-->2000), problem is solved. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Tuesday, February 17, 2004 7:56 AM To: AccessD Subject: [AccessD] Unrecognized Database Format I have a semi urgent problem. A customer downloaded an update from our website and installed it correctly. However, upon opening and attempting to link to the tables she received a message "Unrecognized Database Format". We've all seen it. However, this time, A2K won't do anything with it. When I have had problems in the past A2K would open and repair it. Nothing happens to this one. It always responds "unrecognized..." Any suggestions on how to go about saving it. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.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 Feb 17 19:02:48 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 17 Feb 2004 17:02:48 -0800 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Or, on the lighter side... ...tell them to back up... and then they coasted, in their chair, back to the wall ...and they nod their heads and look stupid. This is not made up; one client actually did this and I had to excuse myself from the room. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Tuesday, February 17, 2004 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format I was afraid someone would ask that! My guess, knowing this client, is no. They have the copies created by the BEU, but I'm not sure when that happened. Typical client - you tell them to back up and they nod their heads and look stupid. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, February 17, 2004 12:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > DO they have a recent backup? > > Rocky > > ----- Original Message ----- > From: "Reuben Cummings" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 17, 2004 8:31 AM > Subject: RE: [AccessD] Unrecognized Database Format > > > > I didn't explain enough. > > > > The download of the FE went fine. > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't link to it > from > > anything. > > > > Reuben Cummings > > GFC, LLC > > phone: 812.523.1017 > > email: reuben at gfconsultants.com > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Rocky Smolin - > > > Beach Access Software > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > Could it have been corrupted on the download? Did she try > re-downloading > > > it? How about decompile? > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "Reuben Cummings" > > > To: "AccessD" > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > I have a semi urgent problem. > > > > > > > > A customer downloaded an update from our website and installed it > > > correctly. > > > > > > > > However, upon opening and attempting to link to the tables she > > > received a > > > > message "Unrecognized Database Format". > > > > > > > > We've all seen it. However, this time, A2K won't do > anything with it. > > > When > > > > I have had problems in the past A2K would open and repair > it. Nothing > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > Thanks. > > > > > > > > Reuben Cummings > > > > GFC, LLC > > > > phone: 812.523.1017 > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Tue Feb 17 20:20:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 17 Feb 2004 21:20:03 -0500 Subject: [AccessD] Determining Scope of Project Message-ID: <40328583.31429.D89487@localhost> A while back someone offered or pointed to a document that would aid in the scoping of a project. It included things like the OS of the workstations, the Network config, the versions of Office available, the project requirements.... That kind of thing. It looked quite useful when I saw it, but can I find it now that I need it? No. So if anyone knows of such a thing can you point me to it, please? I've got a meeting for a project for another department that I may be secconded to and I want to make sure I give them, the other department and my boss, an accurate estimate of the project. Thanks a bunch. -- Bryan Carbonnell - carbonnb at sympatico.ca There are two ways to write bug-free code; only the third way works. From rusty.hammond at cpiqpc.com Tue Feb 17 21:27:43 2004 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 17 Feb 2004 21:27:43 -0600 Subject: [AccessD] Determining Scope of Project Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A912@cpixchng-1.cpiqpc.net> Bryan, There's one at www.candace-tripp.com Hover over MS Access at the top of the page, select downloads. At the bottom of the downloads page is an Application Profile form. HTH Rusty -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Tuesday, February 17, 2004 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Scope of Project A while back someone offered or pointed to a document that would aid in the scoping of a project. It included things like the OS of the workstations, the Network config, the versions of Office available, the project requirements.... That kind of thing. It looked quite useful when I saw it, but can I find it now that I need it? No. So if anyone knows of such a thing can you point me to it, please? I've got a meeting for a project for another department that I may be secconded to and I want to make sure I give them, the other department and my boss, an accurate estimate of the project. Thanks a bunch. -- Bryan Carbonnell - carbonnb at sympatico.ca There are two ways to write bug-free code; only the third way works. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 22:54:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 15:54:12 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? Message-ID: <014c01c3f5db$40a39090$48619a89@DDICK> Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### From Developer at UltraDNT.com Tue Feb 17 23:29:36 2004 From: Developer at UltraDNT.com (Developer) Date: Wed, 18 Feb 2004 00:29:36 -0500 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <014c01c3f5db$40a39090$48619a89@DDICK> Message-ID: <000501c3f5e0$37a78230$7001a8c0@COA3> You hve to build the string like this: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" --Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 17, 2004 11:54 PM To: AccessD List Subject: [AccessD] A2K: Can anyone tell me why this fails? Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStuden tIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bryan.fitzpatrick at cyberone.com.au Tue Feb 17 23:28:57 2004 From: bryan.fitzpatrick at cyberone.com.au (Bryan Fitzpatrick) Date: Wed, 18 Feb 2004 16:28:57 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <014c01c3f5db$40a39090$48619a89@DDICK> Message-ID: <4032F819.8040500@cyberone.com.au> Try this SQL string: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch].[txtStudentIDSearch]" & "))" HTH Bryan Darren DICK wrote: >Hello all >I get a very long runtime error number along with the text... >No value given for one or more required parameters > >The sql string works well as a query >'########################################### >Dim selSQL As String >Dim rs As Object >Dim con As Object > >selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE >(((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > >Set rs = CreateObject("ADODB.Recordset") >Set con = Application.CurrentProject.Connection > >rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With >'########################################### > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From bruce_bruen at mlc.com.au Tue Feb 17 23:27:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 18 Feb 2004 16:27:21 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? Message-ID: Off the top of my head.... If txtStudentIDSearch is a control name on the form, add .Value after it. hth Bruce "Darren DICK" To: "AccessD List" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] A2K: Can anyone tell me why this fails? dvisors.com 18/02/2004 15:54 Please respond to Access Developers discussion and problem solving Hello all I get a very long runtime error number along with the text... No value given for one or more required parameters The sql string works well as a query '########################################### Dim selSQL As String Dim rs As Object Dim con As Object selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE With rs .MoveFirst .MoveLast .MoveFirst MsgBox .RecordCount End With '########################################### _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:50:43 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:50:43 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <014c01c3f5db$40a39090$48619a89@DDICK> <4032F819.8040500@cyberone.com.au> Message-ID: <01a001c3f5e3$25bf2110$48619a89@DDICK> Thanks Bryan Now I get Data Type mismatch in expression as the error message Darren ----- Original Message ----- From: "Bryan Fitzpatrick" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 4:28 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > Try this SQL string: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=" & [Forms]![frmStudentSearch].[txtStudentIDSearch]" & "))" > > > HTH > Bryan > > > > Darren DICK wrote: > > >Hello all > >I get a very long runtime error number along with the text... > >No value given for one or more required parameters > > > >The sql string works well as a query > >'########################################### > >Dim selSQL As String > >Dim rs As Object > >Dim con As Object > > > >selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE > >(((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > > > >Set rs = CreateObject("ADODB.Recordset") > >Set con = Application.CurrentProject.Connection > > > >rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > > > With rs > > .MoveFirst > > .MoveLast > > .MoveFirst > > MsgBox .RecordCount > > End With > >'########################################### > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:51:53 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:51:53 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: Message-ID: <01a601c3f5e3$4f3e4c50$48619a89@DDICK> No Joy Bruce Thanks ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 4:27 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > > > > > Off the top of my head.... > > > > If txtStudentIDSearch is a control name on the form, add .Value after it. > > > hth > Bruce > > > > "Darren DICK" > To: "AccessD List" > Sent by: cc: > accessd-bounces at databasea Subject: [AccessD] A2K: Can anyone tell me why this fails? > dvisors.com > > > 18/02/2004 15:54 > Please respond to Access > Developers discussion and > problem solving > > > > > > > Hello all > I get a very long runtime error number along with the text... > No value given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM > tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStudentIDSearch]));" > > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Feb 17 23:53:03 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 18 Feb 2004 16:53:03 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <000501c3f5e0$37a78230$7001a8c0@COA3> Message-ID: <01ba01c3f5e3$79657760$48619a89@DDICK> Thanks Steve Now I get Data Type mismatch in expression as the error message ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 18, 2004 4:29 PM Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > You hve to build the string like this: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > --Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Tuesday, February 17, 2004 11:54 PM > To: AccessD List > Subject: [AccessD] A2K: Can anyone tell me why this fails? > > > Hello all > I get a very long runtime error number along with the text... No value > given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStuden > tIDSearch]));" > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 18 00:17:24 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 18 Feb 2004 16:17:24 +1000 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <01ba01c3f5e3$79657760$48619a89@DDICK> Message-ID: <40339014.9176.1AED0E1@localhost> I'd guess that FomattedStudentID is a text filed in which case you need: FROM tblStudents WHERE (((tblStudents.FormattedStudentID)='" & [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" Note the single quote after the "=" and before the first ")" in the second line. On 18 Feb 2004 at 16:53, Darren DICK wrote: > Thanks Steve > Now I get > Data Type mismatch in expression as the error message > > ----- Original Message ----- > From: "Developer" > To: "'Access Developers discussion and problem solving'" > Sent: Wednesday, February 18, 2004 4:29 PM > Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > > > > You hve to build the string like this: > > > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > > > --Steve > > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From actebs at actebs.com.au Wed Feb 18 00:34:18 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 18 Feb 2004 17:34:18 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? In-Reply-To: <01ba01c3f5e3$79657760$48619a89@DDICK> Message-ID: <001401c3f5e9$3f7da5d0$0b08a8c0@carltonone.local> Bruce, Try this: selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & "'" [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" Regards Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, 18 February 2004 4:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? Thanks Steve Now I get Data Type mismatch in expression as the error message ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 18, 2004 4:29 PM Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > You hve to build the string like this: > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > --Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Tuesday, February 17, 2004 11:54 PM > To: AccessD List > Subject: [AccessD] A2K: Can anyone tell me why this fails? > > > Hello all > I get a very long runtime error number along with the text... No value > given for one or more required parameters > > The sql string works well as a query > '########################################### > Dim selSQL As String > Dim rs As Object > Dim con As Object > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > FROM tblStudents WHERE > (((tblStudents.FormattedStudentID)=[Forms]![frmStudentSearch]![txtStud > en > tIDSearch]));" > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > rs.Open selSQL, con, 1, 3 '<=====DEBUG YELLOWS OUT THIS LINE > > With rs > .MoveFirst > .MoveLast > .MoveFirst > MsgBox .RecordCount > End With > '########################################### > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 18 04:19:19 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 18 Feb 2004 10:19:19 +0000 Subject: [AccessD] Column Index Message-ID: Thanks Ken, I'll try that...looks like exactly what I want. Cheers RS This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From carbonnb at sympatico.ca Wed Feb 18 04:29:12 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 18 Feb 2004 05:29:12 -0500 Subject: [AccessD] Determining Scope of Project In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A912@cpixchng-1.cpiqpc.net> Message-ID: <4032F828.9367.190A9F@localhost> On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng From greggs at msn.com Wed Feb 18 07:07:14 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 07:07:14 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <001401c3f5e9$3f7da5d0$0b08a8c0@carltonone.local> Message-ID: I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg From prodevmg at yahoo.com Wed Feb 18 07:33:12 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 05:33:12 -0800 (PST) Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: <20040218133312.73928.qmail@web20419.mail.yahoo.com> Are you using the aggregate function dlookup? Those things can be very slow. You may want to look at getting values from a recordset object. Just a thought. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jimdettman at earthlink.net Wed Feb 18 08:06:53 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 09:06:53 -0500 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 08:35:44 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 08:35:44 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <20040218133312.73928.qmail@web20419.mail.yahoo.com> Message-ID: You're right! I did change it to a record set and got some speed back. But the fact that my second copy spends 4 times as much time as my first copy makes me think something is set up wrong, and maybe EVERYTHING is slower than it should be. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, February 18, 2004 7:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Stumped on A97 Speed Problem Are you using the aggregate function dlookup? Those things can be very slow. You may want to look at getting values from a recordset object. Just a thought. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 08:33:35 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 09:33:35 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Would any of you with 2002 or 2003 be willing to receive this db and try to convert it for me? If so, shoot me a note offline and I'll send you the db. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 7:53 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Hi Rueben: > > The DB may be in a more recent format. I have only seen that prompt when a > MDB was made in A2002 or A2003. In which case by going into say > Access 2003 > and converting the MDB to A2K (tools-->Database > Utilities-->Convert-->2000), > problem is solved. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 7:56 AM > To: AccessD > Subject: [AccessD] Unrecognized Database Format > > > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it > correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything > with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Wed Feb 18 08:33:34 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 09:33:34 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: It's nice to know that we all deal with goof balls! Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 8:03 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Or, on the lighter side... > > ...tell them to back up... > and then they coasted, in their chair, back to the wall > ...and they nod their heads and look stupid. > > This is not made up; one client actually did this and I had to > excuse myself > from the room. :-) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 10:20 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > I was afraid someone would ask that! > > My guess, knowing this client, is no. They have the copies created by the > BEU, but I'm not sure when that happened. > > Typical client - you tell them to back up and they nod their > heads and look > stupid. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Tuesday, February 17, 2004 12:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > DO they have a recent backup? > > > > Rocky > > > > ----- Original Message ----- > > From: "Reuben Cummings" > > To: "Access Developers discussion and problem solving" > > > > Sent: Tuesday, February 17, 2004 8:31 AM > > Subject: RE: [AccessD] Unrecognized Database Format > > > > > > > I didn't explain enough. > > > > > > The download of the FE went fine. > > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > > I had them send me the BE and I have tried several things to > open it. I > > > can't decompile. I can't open to compact and repair. Can't > link to it > > from > > > anything. > > > > > > Reuben Cummings > > > GFC, LLC > > > phone: 812.523.1017 > > > email: reuben at gfconsultants.com > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > Rocky Smolin - > > > > Beach Access Software > > > > Sent: Tuesday, February 17, 2004 11:08 AM > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > > > > > > > Could it have been corrupted on the download? Did she try > > re-downloading > > > > it? How about decompile? > > > > > > > > Rocky > > > > > > > > ----- Original Message ----- > > > > From: "Reuben Cummings" > > > > To: "AccessD" > > > > Sent: Tuesday, February 17, 2004 7:55 AM > > > > Subject: [AccessD] Unrecognized Database Format > > > > > > > > > > > > > I have a semi urgent problem. > > > > > > > > > > A customer downloaded an update from our website and installed it > > > > correctly. > > > > > > > > > > However, upon opening and attempting to link to the tables she > > > > received a > > > > > message "Unrecognized Database Format". > > > > > > > > > > We've all seen it. However, this time, A2K won't do > > anything with it. > > > > When > > > > > I have had problems in the past A2K would open and repair > > it. Nothing > > > > > happens to this one. It always responds "unrecognized..." > > > > > > > > > > Any suggestions on how to go about saving it. > > > > > > > > > > Thanks. > > > > > > > > > > Reuben Cummings > > > > > GFC, LLC > > > > > phone: 812.523.1017 > > > > > email: reuben at gfconsultants.com > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Wed Feb 18 08:55:14 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 18 Feb 2004 08:55:14 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402181410.i1IEAKm30390@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040218085422.02a749e0@pop3.highstream.net> Have someone with 2002 open it and see if it displays as (2000 format or 2002 format). At 08:10 AM 2/18/2004 -0600, you wrote: >Date: Tue, 17 Feb 2004 13:56:05 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Re: Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="us-ascii" > >Could be. They have 2002 installed. > >How can I find out for sure without going down there? > >Reuben Cummings From weeden1949 at hotmail.com Wed Feb 18 09:08:10 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Wed, 18 Feb 2004 09:08:10 -0600 Subject: [AccessD] Toasted? References: Message-ID: Is AccessD down? I've not received ANY messages for two days. However, I am receiving some on Dba-Tech. Curious. Greg Smith Weeden1949 at hotmail.com From jimdettman at earthlink.net Wed Feb 18 09:11:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 10:11:45 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: Reuben, I have all versions of Access. Send it along if you'd like. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format Would any of you with 2002 or 2003 be willing to receive this db and try to convert it for me? If so, shoot me a note offline and I'll send you the db. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence > (AccessD) > Sent: Tuesday, February 17, 2004 7:53 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Hi Rueben: > > The DB may be in a more recent format. I have only seen that prompt when a > MDB was made in A2002 or A2003. In which case by going into say > Access 2003 > and converting the MDB to A2K (tools-->Database > Utilities-->Convert-->2000), > problem is solved. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben > Cummings > Sent: Tuesday, February 17, 2004 7:56 AM > To: AccessD > Subject: [AccessD] Unrecognized Database Format > > > I have a semi urgent problem. > > A customer downloaded an update from our website and installed it > correctly. > > However, upon opening and attempting to link to the tables she received a > message "Unrecognized Database Format". > > We've all seen it. However, this time, A2K won't do anything > with it. When > I have had problems in the past A2K would open and repair it. Nothing > happens to this one. It always responds "unrecognized..." > > Any suggestions on how to go about saving it. > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:32:58 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:32:58 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro From Mark.Mitsules at ngc.com Wed Feb 18 10:41:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 18 Feb 2004 11:41:41 -0500 Subject: [AccessD] MS Asscess OverFlow Message-ID: 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Feb 18 10:45:36 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 18 Feb 2004 11:45:36 -0500 Subject: [AccessD] MS Asscess OverFlow Message-ID: 2nd guess... Very rare, but could any one control have more than 32,767 characters? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:53:12 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:53:12 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: the query for the report is only 1700 records, and there are only 8 fields. Thanks "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:41 AM Please respond to Access Developers discussion and problem solving 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ggonzalez at cccis.com Wed Feb 18 10:56:55 2004 From: ggonzalez at cccis.com (ggonzalez at cccis.com) Date: Wed, 18 Feb 2004 10:56:55 -0600 Subject: [AccessD] MS Asscess OverFlow Message-ID: most of the fileds are numeric, the format is Percent with 2 decimal places selected "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:45 AM Please respond to Access Developers discussion and problem solving 2nd guess... Very rare, but could any one control have more than 32,767 characters? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 18 10:57:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 08:57:51 -0800 (PST) Subject: [AccessD] MS Asscess OverFlow In-Reply-To: Message-ID: <20040218165751.37337.qmail@web20405.mail.yahoo.com> Is there any division going on? Maybe by an expression that could equal zero or null? ggonzalez at cccis.com wrote: the query for the report is only 1700 records, and there are only 8 fields. Thanks "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] MS Asscess OverFlow dvisors.com 02/18/2004 10:41 AM Please respond to Access Developers discussion and problem solving 1st guess... Is the data larger than 65,536 rows or 256 columns? Mark -----Original Message----- From: ggonzalez at cccis.com [mailto:ggonzalez at cccis.com] Sent: Wednesday, February 18, 2004 11:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS Asscess OverFlow I am trying to export a report to excel and I get an MS access error that just says Overflow. Any clue why this is happening. TIA Gumaro _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From adtp at touchtelindia.net Wed Feb 18 10:57:29 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 18 Feb 2004 22:27:29 +0530 Subject: [AccessD] Hiding Table in mde References: Message-ID: <003a01c3f640$67d7ed90$8c1865cb@winxp> Rocky, Could you kindly confirm that you wish to add a new program module for manipulating existing objects in an mde - without having to go through the conventional steps of first altering the code in original mdb and then converting it into a fresh mde. If this be the case, an interesting solution could be adopted, so as to meet your requirement. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 17, 2004 23:10 Subject: RE: [AccessD] Hiding Table in mde Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software From bchacc at san.rr.com Wed Feb 18 11:24:00 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 18 Feb 2004 09:24:00 -0800 Subject: [AccessD] Hiding Table in mde References: <003a01c3f640$67d7ed90$8c1865cb@winxp> Message-ID: <022701c3f643$ffe7aa00$6601a8c0@HAL9002> A.D.: What I'm trying to do is copy protect my program by putting a data bomb in the opening form. Right now it's hard coded into the module's OnOpen event. I was going to put the date bomb into a table but that table is accessible to the user even in an mde. So I was trying to hide the table. But a more direct way would be to be able to alter the line of code in the mde which contains the expire date. I've cooked up a more elaborate scheme now but haven't settled on a final approach. I want the user to be able to call or email their serial number and I give them a code to change the expiration date in their system. I've done a key like this before for another client so I've got all the code/decode stuff worked out. I'm just searching around for the simplest solution to protecting my product. Regards, Rocky ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 18, 2004 8:57 AM Subject: Re: [AccessD] Hiding Table in mde Rocky, Could you kindly confirm that you wish to add a new program module for manipulating existing objects in an mde - without having to go through the conventional steps of first altering the code in original mdb and then converting it into a fresh mde. If this be the case, an interesting solution could be adopted, so as to meet your requirement. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 17, 2004 23:10 Subject: RE: [AccessD] Hiding Table in mde Code can't be modified in an mde at all, programmatically or otherwise. That's the whole point. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, February 15, 2004 9:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hiding Table in mde Doug: That would work but I'd prefer not to have the file external. Can code be modified programmatically in an mde? Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 15, 2004 12:38 PM Subject: RE: [AccessD] Hiding Table in mde > One way to do this is to not put it in the database, but use an > external file that is encrypted. Set the system up so it won't run if > the file isn't present and make the file hard for folks to find. > > Doug > > Douglas Murphy > Murphy's Creativity > (619) 334-5121 > doug at murphyscreativity.com > www.murphyscreativity.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Sunday, February 15, 2004 7:41 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Hiding Table in mde > > > Dear List: > > Is there a way to prevent a user from importing a table from an mde > into an mdb without putting a password on the mde? I'm trying to > build a serial number/upgrade/license extension function into an app > and will be storing the data in a front end table. > > TIA, > > Rocky Smolin > Beach Access Software _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Feb 18 11:28:24 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 18 Feb 2004 22:58:24 +0530 Subject: [AccessD] Date data entry References: Message-ID: <009f01c3f644$e8fa9090$8c1865cb@winxp> John, This thread was initiated by you in Oct 2003. It is not clear whether the best possible solution was eventually reached. In this context, you might like to take a look at my recent sample db named InputMask_Dynamic - at Rogers Access Library (Other Developers Section). It features dynamic masks for pure dates with pre-filled values of month & year part as per chosen settings (default is current month & year). Text strings prefixed/suffixed with current month-year are also covered separately. Apart from the above, data entry for phone numbers featuring pre-filled area codes (if given), is also demonstrated. Two styles are shown (with or without saving the formatting details along with the source data). Regards, A.D.Tejpal -------------- ----- Original Message ----- From: John Colby To: Access Developers discussion and problem solving Sent: Monday, October 06, 2003 21:00 Subject: RE: [AccessD] Date data entry >Would they accept the default set to =date()? Where logical I do that, however in these cases they are entering dates out in the future or in the past. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Monday, October 06, 2003 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date data entry Would they accept the default set to =date()? Mark -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, October 06, 2003 10:44 AM To: AccessD Subject: [AccessD] Date data entry I have a specific client that LOVES the input masks for dates. I don't understand this as I personally hate them, but... What they want is to have something like that but which "assumes current year", i.e. all they have to enter is the ddmm and the rest (the year) is filled in. Does anyone do this? Know how to do this? John W. Colby www.colbyconsulting.com From garykjos at hotmail.com Wed Feb 18 11:40:17 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Wed, 18 Feb 2004 11:40:17 -0600 Subject: [AccessD] Toasted? Message-ID: No. Alive and kicking...Not a HUGE volume of messages but there are some. Gary Kjos garykjos at hotmail.com >From: "Greg Smith" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Toasted? >Date: Wed, 18 Feb 2004 09:08:10 -0600 > >Is AccessD down? I've not received ANY messages for two days. However, I >am receiving some on Dba-Tech. > >Curious. > >Greg Smith >Weeden1949 at hotmail.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx From greggs at msn.com Wed Feb 18 12:43:54 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 12:43:54 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 earthlink.net Wed Feb 18 13:15:47 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 18 Feb 2004 14:15:47 -0500 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Gregg, Thought for sure that's what you were bumping into. Only other thing that comes to mind is to check for any virus scanning that may be going on. Outside of that, I'm out of ideas. What I posted usually takes care of things. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 1:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 13:26:06 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 14:26:06 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: <832758864.20040217175735@cactus.dk> Message-ID: Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, Jim. I have opened the db in a hex editor. There is something wrong for sure, but I don't know what to do. At the top of the bad file there is a line "This program cannot be run in DOS mode" In a healthy mdb, the line is "Standard Jet DB" Also, looking down thru the file, it seems as thought everything is gibberish as opposed to a good mdb which has some text in it I can recognize. That's as far as I can go without a little more help. Is there anything else that can be done (other than throwing in the towel)? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Wed Feb 18 13:35:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Feb 2004 13:35:05 -0600 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <2F8793082E00D4119A1700B0D0216BF80222789A@main2.marlow.com> Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Feb 18 13:43:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Feb 2004 20:43:51 +0100 Subject: [AccessD] Unrecognized Database Format In-Reply-To: References: Message-ID: <4942647704.20040218204351@cactus.dk> Hi Reuben If you in the hex editor after browsing down a few pages still don't see anything that looks like the pages from a new file, you can't do anything. Somehow (network or file server error) the file has been overwritten with an executable file of some sort. /gustav > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, > Jim. > I have opened the db in a hex editor. There is something wrong for sure, > but I don't know what to do. > At the top of the bad file there is a line "This program cannot be run in > DOS mode" > In a healthy mdb, the line is "Standard Jet DB" > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > That's as far as I can go without a little more help. > Is there anything else that can be done (other than throwing in the towel)? From joconnell at indy.rr.com Wed Feb 18 13:55:01 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Wed, 18 Feb 2004 14:55:01 -0500 Subject: [AccessD] Hiding Table in mde Message-ID: <037301c3f659$1abcaa00$6701a8c0@joe> Rocky, Search the archives for "Copy Protection". There was a long discussion of this topic and recommendations for several add-in products during October 2001. Joe O'Connell -----Original Message----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Date: Wednesday, February 18, 2004 12:45 PM Subject: Re: [AccessD] Hiding Table in mde |A.D.: | |What I'm trying to do is copy protect my program by putting a data bomb in |the opening form. Right now it's hard coded into the module's OnOpen event. |I was going to put the date bomb into a table but that table is accessible |to the user even in an mde. | |So I was trying to hide the table. But a more direct way would be to be |able to alter the line of code in the mde which contains the expire date. | |I've cooked up a more elaborate scheme now but haven't settled on a final |approach. I want the user to be able to call or email their serial number |and I give them a code to change the expiration date in their system. I've |done a key like this before for another client so I've got all the |code/decode stuff worked out. | |I'm just searching around for the simplest solution to protecting my |product. | |Regards, | |Rocky | |----- Original Message ----- |From: "A.D.Tejpal" |To: "Access Developers discussion and problem solving" | |Sent: Wednesday, February 18, 2004 8:57 AM |Subject: Re: [AccessD] Hiding Table in mde | | |Rocky, | | Could you kindly confirm that you wish to add a new program module for |manipulating existing objects in an mde - without having to go through the |conventional steps of first altering the code in original mdb and then |converting it into a fresh mde. | | If this be the case, an interesting solution could be adopted, so as to |meet your requirement. | |Regards, |A.D.Tejpal |-------------- | ----- Original Message ----- | From: Charlotte Foust | To: Access Developers discussion and problem solving | Sent: Tuesday, February 17, 2004 23:10 | Subject: RE: [AccessD] Hiding Table in mde | | | Code can't be modified in an mde at all, programmatically or otherwise. | That's the whole point. | | Charlotte Foust | | -----Original Message----- | From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] | Sent: Sunday, February 15, 2004 9:55 PM | To: Access Developers discussion and problem solving | Subject: Re: [AccessD] Hiding Table in mde | | | Doug: | | That would work but I'd prefer not to have the file external. Can code | be modified programmatically in an mde? | | Rocky | | ----- Original Message ----- | From: "Doug Murphy" | To: "'Access Developers discussion and problem solving'" | | Sent: Sunday, February 15, 2004 12:38 PM | Subject: RE: [AccessD] Hiding Table in mde | | | > One way to do this is to not put it in the database, but use an | > external file that is encrypted. Set the system up so it won't run if | | > the file isn't present and make the file hard for folks to find. | > | > Doug | > | > Douglas Murphy | > Murphy's Creativity | > (619) 334-5121 | > doug at murphyscreativity.com | > www.murphyscreativity.com | > | > | > | > | > -----Original Message----- | > From: accessd-bounces at databaseadvisors.com | > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky | > Smolin | > - Beach Access Software | > Sent: Sunday, February 15, 2004 7:41 AM | > To: AccessD at databaseadvisors.com | > Subject: [AccessD] Hiding Table in mde | > | > | > Dear List: | > | > Is there a way to prevent a user from importing a table from an mde | > into an mdb without putting a password on the mde? I'm trying to | > build a serial number/upgrade/license extension function into an app | > and will be storing the data in a front end table. | > | > TIA, | > | > Rocky Smolin | > Beach Access Software |_______________________________________________ |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com | |_______________________________________________ |AccessD mailing list |AccessD at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/accessd |Website: http://www.databaseadvisors.com From James at fcidms.com Wed Feb 18 13:59:28 2004 From: James at fcidms.com (James Barash) Date: Wed, 18 Feb 2004 14:59:28 -0500 Subject: [AccessD] Unrecognized Database Format In-Reply-To: Message-ID: I hate to say this but it looks like the file was overwritten with an exe file. The line "This program cannot be run in DOS mode" is part of the standard header for a Window exe that would display an error message if someone tried to run the program in DOS from the days where you could just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the same line. If that is indeed the case, then you are out of luck. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 2:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, Jim. I have opened the db in a hex editor. There is something wrong for sure, but I don't know what to do. At the top of the bad file there is a line "This program cannot be run in DOS mode" In a healthy mdb, the line is "Standard Jet DB" Also, looking down thru the file, it seems as thought everything is gibberish as opposed to a good mdb which has some text in it I can recognize. That's as far as I can go without a little more help. Is there anything else that can be done (other than throwing in the towel)? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Tuesday, February 17, 2004 11:58 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Unrecognized Database Format > > > Hi Reuben > > Open it in a hex editor. If the header is overwritten with garbage the > file is beyond normal repair, except if you can manage to overwrite > with data copied form a freshly created database file. > > /gustav > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > I had them send me the BE and I have tried several things to open it. I > > can't decompile. I can't open to compact and repair. Can't > link to it from > > anything. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:11:42 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:11:42 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: Message-ID: Jim, After reading the Tech Info on it I was convinced that would do it. When I saw no change I thought maybe I missed a step or something. It turned out to be door #3 (below). My main form is open for the life of the app so I just connected it to a BE table. I went back and tried it with a dummy form and it worked!!! Thanks very much for your help! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 1:16 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Thought for sure that's what you were bumping into. Only other thing that comes to mind is to check for any virus scanning that may be going on. Outside of that, I'm out of ideas. What I posted usually takes care of things. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 1:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Jim I implemented the opportunistic locking registry change. Added these data types one by one testing in between. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter s Value Name: EnableOplocks Data Type: REG_DWORD Data: 0 Value Name: CachedOpenLimit Data Type: REG_DWORD Data: 0 Value Name: autodisconnect Data Type: REG_DWORD Data: ffffffff The key did not exist before the change. Rebooted the server but saw no improvement. The other 2 suggestions I had already implemented. Any other ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:13:45 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:13:45 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789A@main2.marlow.com> Message-ID: Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Wed Feb 18 14:17:42 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 18 Feb 2004 15:17:42 -0500 Subject: [AccessD] Unrecognized Database Format - SOLVED In-Reply-To: Message-ID: Thanks to everyone who helped. The file was overwritten by our own exe update file. Our user, for some reason, saved the update to the data folder and actually saved it using the datafile name. I confirmed this by changing the extension of the 'mdb' to exe and ran it. It was the Winzip self extractor. Thanks for everyone's time and help. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of James Barash > Sent: Wednesday, February 18, 2004 2:59 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Unrecognized Database Format > > > I hate to say this but it looks like the file was overwritten with an > exe file. The line "This program cannot be run in DOS mode" is part of > the standard header for a Window exe that would display an error message > if someone tried to run the program in DOS from the days where you could > just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the > same line. If that is indeed the case, then you are out of luck. > > James Barash > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Wednesday, February 18, 2004 2:26 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. > Thanks, > Jim. > > I have opened the db in a hex editor. There is something wrong for > sure, > but I don't know what to do. > > At the top of the bad file there is a line "This program cannot be run > in > DOS mode" > > In a healthy mdb, the line is "Standard Jet DB" > > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > > That's as far as I can go without a little more help. > > Is there anything else that can be done (other than throwing in the > towel)? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > > Sent: Tuesday, February 17, 2004 11:58 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Hi Reuben > > > > Open it in a hex editor. If the header is overwritten with garbage the > > file is beyond normal repair, except if you can manage to overwrite > > with data copied form a freshly created database file. > > > > /gustav > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > I had them send me the BE and I have tried several things to open > it. I > > > can't decompile. I can't open to compact and repair. Can't > > link to it from > > > anything. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Wed Feb 18 14:23:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Feb 2004 14:23:31 -0600 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Just an FYI, this is a VERY good practice to get into. Using the 'hidden' frmLink method is very easy to setup, and relatively fool proof, since the form closes with the db, so there is no real 'handling' necessary once it's setup. With Aggregate functions, it is an absolute must, because they will constantly connect and disconnect from the backend, which will really bog things down. Access 97's help file had a description/recommendation for this process in the 'How to split a database' section. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 2:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Wed Feb 18 14:54:25 2004 From: greggs at msn.com (Gregg) Date: Wed, 18 Feb 2004 14:54:25 -0600 Subject: [AccessD] Stumped on A97 Speed Problem In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Message-ID: Guess I missed that "How to split a database 101" course. How embarrassing. Thanks again! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 2:24 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Just an FYI, this is a VERY good practice to get into. Using the 'hidden' frmLink method is very easy to setup, and relatively fool proof, since the form closes with the db, so there is no real 'handling' necessary once it's setup. With Aggregate functions, it is an absolute must, because they will constantly connect and disconnect from the backend, which will really bog things down. Access 97's help file had a description/recommendation for this process in the 'How to split a database' section. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 2:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Stumped on A97 Speed Problem Drew, I thought I was but when I tried it a second time using a dummy form instead of my main form it worked!!! Thanks a heap! I chased this one a couple of days. :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 18, 2004 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Stumped on A97 Speed Problem Are you maintaining the link to the backend? It's very easy to do. Create a table (anything will work, but I commonly use tblLink), just one field, no data necessary. Then, in your FE, the VERY first thing you need to do (after you verify the links are good), open a form bound to that table, in hidden view. That will create and maintain a link to the backend, and should speed things up quite a bit. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 7:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Wed Feb 18 15:58:16 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 18 Feb 2004 16:58:16 -0500 Subject: [AccessD] Unrecognized Database Format - SOLVED In-Reply-To: Message-ID: Bummer Indeed!! Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Wednesday, February 18, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unrecognized Database Format - SOLVED Thanks to everyone who helped. The file was overwritten by our own exe update file. Our user, for some reason, saved the update to the data folder and actually saved it using the datafile name. I confirmed this by changing the extension of the 'mdb' to exe and ran it. It was the Winzip self extractor. Thanks for everyone's time and help. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of James Barash > Sent: Wednesday, February 18, 2004 2:59 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Unrecognized Database Format > > > I hate to say this but it looks like the file was overwritten with an > exe file. The line "This program cannot be run in DOS mode" is part of > the standard header for a Window exe that would display an error message > if someone tried to run the program in DOS from the days where you could > just run DOS. If you open MSACCESS.EXE in a hex editor, you will see the > same line. If that is indeed the case, then you are out of luck. > > James Barash > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Wednesday, February 18, 2004 2:26 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Unrecognized Database Format > > > Jim Dettman tried opeing the db in A2002 and 2003, but that failed. > Thanks, > Jim. > > I have opened the db in a hex editor. There is something wrong for > sure, > but I don't know what to do. > > At the top of the bad file there is a line "This program cannot be run > in > DOS mode" > > In a healthy mdb, the line is "Standard Jet DB" > > Also, looking down thru the file, it seems as thought everything is > gibberish as opposed to a good mdb which has some text in it I can > recognize. > > That's as far as I can go without a little more help. > > Is there anything else that can be done (other than throwing in the > towel)? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > > Sent: Tuesday, February 17, 2004 11:58 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Unrecognized Database Format > > > > > > Hi Reuben > > > > Open it in a hex editor. If the header is overwritten with garbage the > > file is beyond normal repair, except if you can manage to overwrite > > with data copied form a freshly created database file. > > > > /gustav > > > > > The problem is in this clients BE only. The BE is 'unrecognized'. > > > > > I had them send me the BE and I have tried several things to open > it. I > > > can't decompile. I can't open to compact and repair. Can't > > link to it from > > > anything. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Feb 18 16:01:22 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 18 Feb 2004 14:01:22 -0800 (PST) Subject: [AccessD] Turn off message Message-ID: <20040218220122.96654.qmail@web20422.mail.yahoo.com> I'm using Access XP... I have a SHELL command that runs a batch file that registers a dll that I copy from a folder. When it gets done it pops up a message that says... DllRegisterServer in C:\blah blah blah succeeded. Does anyone know if there any way to suppress that message? Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From BBarabash at TappeConstruction.com Wed Feb 18 16:09:41 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 18 Feb 2004 16:09:41 -0600 Subject: [AccessD] Turn off message Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE386@TAPPEEXCH01> I assume you are using regsvr32. In which case, the /s switch will run it in silent mode. -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, February 18, 2004 4:01 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Turn off message I'm using Access XP... I have a SHELL command that runs a batch file that registers a dll that I copy from a folder. When it gets done it pops up a message that says... DllRegisterServer in C:\blah blah blah succeeded. Does anyone know if there any way to suppress that message? Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From d.dick at uws.edu.au Wed Feb 18 20:54:32 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 19 Feb 2004 13:54:32 +1100 Subject: [AccessD] A2K: Can anyone tell me why this fails? References: <40339014.9176.1AED0E1@localhost> Message-ID: <00e701c3f693$b387c230$48619a89@DDICK> Thanks Bryan Vlad and Stuart et al The first post I saw this morning was from Stuart - I tried his SQL and away she went - excellent. Many thanks to those who replied this list is awesome Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, February 18, 2004 5:17 PM Subject: Re: [AccessD] A2K: Can anyone tell me why this fails? > I'd guess that FomattedStudentID is a text filed in which case you > need: > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)='" & > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "'));" > > Note the single quote after the "=" and before the first ")" in the > second line. > > On 18 Feb 2004 at 16:53, Darren DICK wrote: > > > Thanks Steve > > Now I get > > Data Type mismatch in expression as the error message > > > > ----- Original Message ----- > > From: "Developer" > > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, February 18, 2004 4:29 PM > > Subject: RE: [AccessD] A2K: Can anyone tell me why this fails? > > > > > > > You hve to build the string like this: > > > > > > selSQL = "SELECT tblStudents.StudentID, tblStudents.FormattedStudentID > > > FROM tblStudents WHERE (((tblStudents.FormattedStudentID)=" & > > > [Forms]![frmStudentSearch]![txtStudentIDSearch] & "));" > > > > > > --Steve > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 18 21:38:19 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 18 Feb 2004 19:38:19 -0800 Subject: [AccessD] Determining Scope of Project In-Reply-To: <4032F828.9367.190A9F@localhost> Message-ID: Where... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 18, 2004 2:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Wed Feb 18 21:43:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 18 Feb 2004 22:43:21 -0500 Subject: [AccessD] Determining Scope of Project In-Reply-To: References: <4032F828.9367.190A9F@localhost> Message-ID: <4033EA89.7913.E94BF6@localhost> On 18 Feb 2004 at 19:38, Jim Lawrence (AccessD) wrote: > Where... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan > Carbonnell > On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > > > There's one at www.candace-tripp.com > > > > Hover over MS Access at the top of the page, select downloads. At > > the bottom of the downloads page is an Application Profile form. > > Thanks Rusty. This is similar to the one I was thinking of. I finally > got it after having to resort to using IE. The site *only* seems to > work with IE. Firefox and Opera don't load the site :( Where what? -- Bryan Carbonnell - carbonnb at sympatico.ca I've learned.... That there's nothing sweeter than sleeping with your babies and feeling their breath on your cheeks. From jwcolby at colbyconsulting.com Wed Feb 18 23:07:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 19 Feb 2004 00:07:41 -0500 Subject: [AccessD] C2DbShutdown Message-ID: I have put C2DbShutdown up on my site. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Go to www.colbyconsulting.com and click on the top blue button - C2DbShutdown. That will take you to the page with the hotlink that allows download. I have been working on it, ironing out a few bugs and writing up a document so if you saw it or downloaded it previously, please download it again. Feedback welcome. I developed this for my own use and will be integrating it into a client application in the coming week. I'll let you know how it goes but it appears to be functioning quite well at this point. It is a pretty simple tool, with a pair of classes and a module with init code. Nothing too strenuous there. The source code is available and is reasonably well commented. Check it out and tell me what you think. Thanks, John W. Colby www.ColbyConsulting.com From Erwin.Craps at ithelps.be Thu Feb 19 01:38:57 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 08:38:57 +0100 Subject: [AccessD] Stumped on A97 Speed Problem Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4F8@stekelbes.ithelps.local> Just a tought. Do you have virusscanners on both server and clients? I usealy remove the MD? Extension from the to be scanned files (that is default on in McAfee) on both server and client. If you have both on client and server a virusscanner you must set outbound scanning off on both client and server. Otherswise a files get scanned twice for same operation. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gregg Verzonden: woensdag 18 februari 2004 14:07 Aan: Access Developers discussion and problem solving Onderwerp: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 19 02:37:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Feb 2004 09:37:09 +0100 Subject: [AccessD] Re: xform design tools In-Reply-To: <753426316.20031008100637@cactus.dk> References: <753426316.20031008100637@cactus.dk> Message-ID: <894356263.20040219093709@cactus.dk> Hi those of you interested in XForms. I noted these comments and useful links on the present status of XForms which might be of interest for some of you. I'm quoting as the letter is not on-line yet. The SitePoint TECH TIMES #83 Copyright (c) 2004 February 18th, 2004 PLEASE FORWARD EDITORIAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - THE STATE OF XFORMS Back in the Tech Times #53 [1], I introduced XForms as the latest candidate recommendation to come out of the W3C. I explained the advantages it had over HTML forms, and even showed a simple example of how XForms work. At the time, the media buzz surrounding XForms came from the fact that Microsoft was building something called XDocs into its upcoming Office 2003 software. Many attributed Microsoft's refusal to endorse XForms to similarities that the recommendation bore to XDocs. Over a year later, Office 2003 has been released, XDocs is now called InfoPath [2], XForms has become a full-fledged W3C recommendation [3], and the fine folks at x-port.net have just released formsPlayer 1.0 [4], a free plug-in for Internet Explorer that fully complies with the XForms standard. So why aren't we seeing XForms springing up all over the Web? After all, the most popular Web browser in the world now supports them with a free plug-in! Due to the stagnation of Internet Explorer [5], all the ultra-keen Web developers who would normally jump on a technology like this have moved to Mozilla [6] (and Firefox [7]) as their development platform of choice. To put it bluntly, no one really cares what Internet Explorer can do now, because there is so much that it can't do (like properly support CSS2 [8]). So, the question is, what are the other browser makers doing about XForms? Mozilla is tracking requests for XForms support and volunteers interested in working on it in bug 97806 [9]. The comments on this bug, which dates back to the days when XForms was a working draft, make interesting reading. There are many opinions on why XForms may or may not be worthy of consideration for inclusion in Mozilla, but the status quo is that it remains a relatively low-priority feature request in need of good developers, despite having nearly 500 votes from community members. Apple (whose Safari browser has become a serious consideration for developers) and Opera issued a combined statement [10] last September in response to XForms becoming a proposed recommendation. In it, they outlined a list of "substantial issues" in the standard that they felt made XForms inappropriate as a replacement for HTML forms. When pressed, they admitted [11] that XForms was probably worthy as a platform for advanced forms development, as long as HTML forms remained as the mainstream choice in XHTML 2.0. So why all this negative sentiment towards XForms? Is it really so flawed? Like any new technology, XForms has a rough spot or two, but the productivity it offers to developers cannot be denied. Yet, while XForms itself isn't all that complex, it relies on a host of technologies that are fairly complex, and are not widely implemented in today's browsers. Quoting from Apple and Opera's statement, "XForms has too many dependencies. In addition to XForms itself, an XForms implementation needs to support XML with namespaces, XML Schema, XPath, XML Events, DOM Events, DOM Core, CSS, a stylesheet linking technology (e.g. the XML Stylesheet PI), and a host language (e.g. XHTML or SVG). In particular, its dependency on XML Schema is of great concern to us." The Mozilla bug discussion suggests that XML Schema [12] support is not strictly necessary for a basic implementation of XForms, but XML Events [13] is a definite piece of the puzzle that has yet to be built into Mozilla. Meanwhile, browsers like Opera and Safari are even further behind the curve. >From what I can tell, XForms has the dubious distinction of being one of the first implementations of a number of XML technolgies with mass appeal to Web developers. Though well thought out, none of these technologies has had a compelling reason to be buit into a Web browser before, and now, all of a sudden, they would all have to be built at once in order to support XForms. Even with a free, fully compliant plug-in for Internet Explorer, XForms has some serious hurdles to overcome before developers can consider it as a serious tool for general Web development. If you want to pitch in, I would definitely encourage you to contribute your services to the Mozilla project, but it will take some smart brains and a lot of work to bring XForms into the spotlight. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] The Archives are located at: http://www.sitepoint.com/newsletter/archives.php /gustav > Strangely, just this morning I received this link from Novell: > http://developer.novell.com/research/appnotes/2003/septembe/04/a0309046.htm#1849119 > Notice the headline and link > The Novell XForms Technology Preview (NXTP) > I have, however, no idea of the cost for this tool. > /gustav >> Date: 2003-10-08 03:58 >> I saw both of you had posted ?'s asking about the existence of any xforms design tools at the w3c-forms site. >> Have either of you found any? >> I am exploring QLink and Liquid Office, both of which seem to be much more than xforms, same story with holosofx (now ibm) >> Appreciate any help. >> Gene McKenna From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [AccessD] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [AccessD] [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From tomk at multiline.com.au Thu Feb 19 03:14:36 2004 From: tomk at multiline.com.au (Tom Keatley) Date: Thu, 19 Feb 2004 17:14:36 +0800 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> Message-ID: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Hi all.... I have a CSV file that I need to get information from and build a table in Access ....it contains 600 fields and of course I cant simply import it as it hits the access limit of 255 fields and will not import the whole file It is simply an Order for goods with 150 or so records but from 500 different locations. so ... Fields in the CSV file [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 fields I need to bring those into access and populate a table so.... [Item ] [itemcode][storeid1] [Item ] [itemcode][storeid2] [Item ] [itemcode][storeid3] [Item ] [itemcode][storeid4] [Item ] [itemcode][storeid5] [Item ] [itemcode][storeid6] etc using the data contained in [Item ] [itemcode] fields and using the fieldname from the 500 odd [storeid] fields as my store id. I have been playing with this for some hours so far and dont seem to be able to acheive what I need can anyone help? Regards Tom Keatley From gustav at cactus.dk Thu Feb 19 03:39:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Feb 2004 10:39:40 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) In-Reply-To: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <588107738.20040219103940@cactus.dk> Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need From Erwin.Craps at ithelps.be Thu Feb 19 04:03:54 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 11:03:54 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4FB@stekelbes.ithelps.local> You could open the file in Excel and split fields in multiple files keeping the UID in each excel files. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 19, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a > table in Access ....it contains 600 fields and of course I cant > simply import it as it hits the access limit of 255 fields and will > not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] > [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 > fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to > be able to acheive what I need _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Feb 19 04:04:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 19 Feb 2004 11:04:17 +0100 Subject: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Message-ID: <46B976F2B698FF46A4FE7636509B22DF0AD4FC@stekelbes.ithelps.local> That in case its a one time shot.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 19, 2004 10:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] URGENT HELP importing a very large CSV file (manyFields) Hi Tom How are you "playing"? Anyway, you'll need to read the file line by line and break each line up for import. Here's a link to the site of Seth with code to get you started: http://puma.agron.ksu.edu/~sgsax/ Look for "My downloads", then "File I/O in VB": Code snippets demonstrating reading from and writing to plain text files. /gustav > I have a CSV file that I need to get information from and build a > table in Access ....it contains 600 fields and of course I cant > simply import it as it hits the access limit of 255 fields and will > not import the whole file > It is simply an Order for goods with 150 or so records but from 500 > different locations. > so ... > Fields in the CSV file > [Item ] > [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to 600 > fields > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > I have been playing with this for some hours so far and dont seem to > be able to acheive what I need _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ayishakca at yahoo.ca Thu Feb 19 04:37:11 2004 From: ayishakca at yahoo.ca (Ayisha) Date: Thu, 19 Feb 2004 13:37:11 +0300 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) References: <001e01c3c0be$87295ce0$d401a8c0@tbig1> <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <015901c3f6d4$59fe3f00$95d15dd4@ali> Hello Tom, The simple way is to create a store table with storeid, import the item. You can import all records, you dont need 600 Tables. Just need 2 tables. Can you just upload some sample, we can have a look. Ayisha ----- Original Message ----- From: "Tom Keatley" To: "Access Developers discussion and problem solving" Sent: Thursday, February 19, 2004 12:14 PM Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) > Hi all.... > > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > > It is simply an Order for goods with 150 or so records but from 500 > different locations. > > so ... > > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need > > can anyone help? > > Regards > > Tom Keatley > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 19 05:37:59 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Feb 2004 21:37:59 +1000 Subject: [AccessD] URGENT HELP importing a very large CSV file (many Fields) In-Reply-To: <006801c3f6c8$cba5aaf0$f700a8c0@TomDownload> Message-ID: <40352CB7.19925.7FAA164@localhost> On 19 Feb 2004 at 17:14, Tom Keatley wrote: > Hi all.... > > I have a CSV file that I need to get information from and build a table in > Access ....it contains 600 fields and of course I cant simply import it as > it hits the access limit of 255 fields and will not import the whole file > > It is simply an Order for goods with 150 or so records but from 500 > different locations. > > so ... > > Fields in the CSV file > [Item ] [itemcode][storeid1][storeid2][storeid3][storeid4][storeid5]etc to > 600 fields > > I need to bring those into access and populate a table so.... > [Item ] [itemcode][storeid1] > [Item ] [itemcode][storeid2] > [Item ] [itemcode][storeid3] > [Item ] [itemcode][storeid4] > [Item ] [itemcode][storeid5] > [Item ] [itemcode][storeid6] > etc > using the data contained in [Item ] [itemcode] fields and using the > fieldname from the 500 odd [storeid] fields as my store id. > > I have been playing with this for some hours so far and dont seem to be able > to acheive what I need > You need something like the following (air code, so will proably need some tweeking). Note this use DAO, ADO would be similar Dim strTemp as string Dim rs as DAO.Recordset Dim myArray() as String Dim Loopcount as long Set rs = Currentdb.OpenRecordset("tblMyTable") Open "MyFile.CSV" for input as #1 While Not EOF(1) 'Read the next line in Line Input #1, strTemp 'Split the fields into an Array myArray = Split(strTemp,",") 'Loop through the elements of the Array and create then the records For Loopcount = 2 to Ubound(myArray) rs.AddNew rs(0) = myArray(0) 'Item rs(1) = myArray(1) 'ItemCode rs(2) = Loopcount - 1 'StoreID rs(3) = myArray(Loopcount) 'Qty rs.Update Next Wend -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From rl_stewart at highstream.net Thu Feb 19 07:50:24 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 19 Feb 2004 07:50:24 -0600 Subject: [AccessD] Re: Unrecognized Database Format In-Reply-To: <200402190837.i1J8b9U06280@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040219074924.02a90868@pop3.highstream.net> I remember reading about a year ago that if you opened the MDB in Word by accident that you would trash it completely. Could that have happened? At 02:37 AM 2/19/2004 -0600, you wrote: >Date: Wed, 18 Feb 2004 14:26:06 -0500 >From: "Reuben Cummings" >Subject: RE: [AccessD] Unrecognized Database Format >To: "Access Developers discussion and problem solving" > >Message-ID: >Content-Type: text/plain; charset="us-ascii" > >Jim Dettman tried opeing the db in A2002 and 2003, but that failed. Thanks, >Jim. > >I have opened the db in a hex editor. There is something wrong for sure, >but I don't know what to do. > >At the top of the bad file there is a line "This program cannot be run in >DOS mode" > >In a healthy mdb, the line is "Standard Jet DB" > >Also, looking down thru the file, it seems as thought everything is >gibberish as opposed to a good mdb which has some text in it I can >recognize. > >That's as far as I can go without a little more help. > >Is there anything else that can be done (other than throwing in the towel)? > >Thanks. > >Reuben Cummings From tinanfields at torchlake.com Thu Feb 19 07:58:13 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 19 Feb 2004 08:58:13 -0500 Subject: [AccessD] Administrivia - Software Updates Done References: <61F915314798D311A2F800A0C9C83188047C6AD4@dibble.observatory.donnslaw.co.uk> Message-ID: <4034C0F5.9020901@torchlake.com> Me too !!!!! T. Roz Clarke wrote: >yikes! > >me too, me too! > >;) > >Roz > >-----Original Message----- >From: Andy Lacey [mailto:andy at minstersystems.co.uk] >Sent: 15 February 2004 17:13 >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Administrivia - Software Updates Done > > >(Thinks) perhaps we should flame anyone who doesn't 'me too' this one. > >Andy Lacey >http://www.minstersystems.co.uk > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Susan Harkins >>Sent: 14 February 2004 23:32 >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Administrivia - Software Updates Done >> >> >>And at the risk of being flamed for a me too -- I'll brave it >>-- thank you for all you do for us. :) >> >>Susan H. >> >>Thank you Bryan! >> >>I'll say once that here and on each of the dba lists which I >>got the good news on ;-) >> >>Great job. Can't thank you enough. Happy Valentines day too. >> >>Gary Kjos >>garykjos at hotmail.com >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/a> ccessd >>Website: >>http://www.databaseadvisors.com >> >> >> >> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From prodevmg at yahoo.com Thu Feb 19 08:05:57 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:05:57 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used Message-ID: <20040219140557.80382.qmail@web20416.mail.yahoo.com> Is there a general windows feature, maybe an API or something that can detect key or mouse movement? I want to shutdown user front end applications if no activity occurs after a certain period of time. Thanks in advance. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From prodevmg at yahoo.com Thu Feb 19 08:21:51 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:21:51 -0800 (PST) Subject: [AccessD] [dba-VB] DataGrid Buttons In-Reply-To: <16335556.1077180981123.JavaMail.www@wwinf3004> Message-ID: <20040219142151.85162.qmail@web20416.mail.yahoo.com> Assuming you are talking about the datasheet view of a form or subform, you may be able to just change the field in question to a combo box and change the row source type to value list, put in the values in the row source separated by a semi-colon and then set the limit to list property to yes. paul.hartland at fsmail.net wrote:To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this?? Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From wdhindman at bellsouth.net Thu Feb 19 08:30:55 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 19 Feb 2004 09:30:55 -0500 Subject: [AccessD] Shutting down applications if they are not being used References: <20040219140557.80382.qmail@web20416.mail.yahoo.com> Message-ID: <007101c3f6f4$fbfd7210$6101a8c0@dejpolsys> http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prodevmg at yahoo.com Thu Feb 19 08:59:17 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 06:59:17 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <007101c3f6f4$fbfd7210$6101a8c0@dejpolsys> Message-ID: <20040219145917.95470.qmail@web20413.mail.yahoo.com> Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From John.Clark at niagaracounty.com Thu Feb 19 09:21:46 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 10:21:46 -0500 Subject: [AccessD] InputBox sizing Message-ID: Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John From paul.hartland at fsmail.net Thu Feb 19 09:40:10 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 16:40:10 +0100 (CET) Subject: [AccessD] InputBox sizing Message-ID: <424351.1077205210872.JavaMail.www@wwinf3005> John, The way I have got round this in the past is to put the InputBox command inside a loop checking for the required entry. Paul Message date : Feb 19 2004, 03:30 PM >From : "John Clark" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] InputBox sizing Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Lambert.Heenan at AIG.com Thu Feb 19 09:53:53 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 19 Feb 2004 10:53:53 -0500 Subject: [AccessD] InputBox sizing Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7E7B@xlivmbx12.aig.com> This looks like a case for a custom dialog box. Design a small form with two buttons on it, "Report" and "Labels", also on the form you need a hidden textbox, call it "Answer". Make sure the form does *not* have a close button, and make it a modal popup. The two button's OnClick events would do the following Answer = "Labels" ' or "Report" depending on which button is clicked Me.Visible = False Then the code that calls this form (we'll call it "RepOrLab_frm") would look like this... DoCmd.OpenForm "RepOrLab_frm",,,,,acDialog ' opening the form in dialog mode halts this code until the ' form either closes or is made invisible Opt=Forms("RepOrLab_frm").Answer DoCmd.Close acForm ,"RepOrLAb" ' and then on with the show. HTH Lambert > -----Original Message----- > From: John Clark [SMTP:John.Clark at niagaracounty.com] > Sent: Thursday, February 19, 2004 10:22 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] InputBox sizing > > Caution--Potential 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and I > would like to shorten it up, if possible. It isn't simply that it looks > dumb, but you just know user will try to type more if there is room. Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Thu Feb 19 10:19:53 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 08:19:53 -0800 (PST) Subject: [AccessD] InputBox sizing In-Reply-To: Message-ID: <20040219161953.16816.qmail@web20413.mail.yahoo.com> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From cfoust at infostatsystems.com Thu Feb 19 10:36:03 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 08:36:03 -0800 Subject: [AccessD] Determining Scope of Project Message-ID: http://www.candace-tripp.com/_pages/access_downloads.asp Charlotte Foust -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, February 18, 2004 7:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project Where... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 18, 2004 2:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Scope of Project On 17 Feb 2004 at 21:27, rusty.hammond at cpiqpc.com wrote: > There's one at www.candace-tripp.com > > Hover over MS Access at the top of the page, select downloads. At the > bottom of the downloads page is an Application Profile form. Thanks Rusty. This is similar to the one I was thinking of. I finally got it after having to resort to using IE. The site *only* seems to work with IE. Firefox and Opera don't load the site :( -- Bryan Carbonnell - carbonnb at sympatico.ca f u cn rd ths, u cn gt a gd jb n cmptr prgmmng _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From weeden1949 at hotmail.com Thu Feb 19 10:40:52 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Thu, 19 Feb 2004 10:40:52 -0600 Subject: [AccessD] OT Outlook 2003 Outbound Image/Attach Corruption References: Message-ID: I know this is off-topic a bit for this group but I also know that a lot of you have a lot of experience with Outlook and maybe you've run into this before. I hope. Any embedded images or attachments to my outbound emails are being corrupted. Sometimes just part of the images (if there are three or four in the body of the email, then two of them are damaged or corrupted...partially or completely) are damaged. Sometimes NONE of them. Sometimes the attachments, sometimes not. Size does not seem to matter...except it takes longer for me to find out they were corrupted if it's a large image. If I set up my ISP email on Outlook Express and send emails that way...they get corrupted as well. So it happens in both OE (latest ver on XP) and Outlook 2003. I use Starband as my ISP (no choice...vs phone line...blech...), it's kind of slow outbound, but if I send emails out with attachments through hotmail...no problem...using Starband. Took out firewall. No change. Shut down Norton AV. No change. Connected my laptop (WinXP & Outlook 2003) to the network...sends everything just FINE, using same ISP. Everything seems to point to my installation of Outlook 2003 on my desktop. Ran MSOffice Repair utility from CD: No change. Uninstalled Outlook 2003 (using M$ install CD), reinstalled. No change. Set security in Outlook to Zip, zero, nada..nothing: No change. Both my laptop and my desktop are patched to the latest MSOffice critical service packs. And one works, one doesn't. Both receive everything ok...no problem on the inbound. I've looked all over tech support at M$, but didn't find anything that gave me any clues as to what to check. Anyone ever see this behavior before? TIA...Greg Smith Weeden1949 at hotmail.com From John.Clark at niagaracounty.com Thu Feb 19 10:55:15 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 11:55:15 -0500 Subject: [AccessD] InputBox sizing...leading into yet another question...using a drop-down for reports Message-ID: Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Feb 19 11:08:53 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 19 Feb 2004 12:08:53 -0500 Subject: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports References: Message-ID: <003001c3f70b$0d652820$6101a8c0@dejpolsys> John ...I think you may be approaching this in the wrong way ...you might want to define basic report queries and then provide a generic means for your users to temporarily modify them as needed without changing your query definitions ...I use a modified version of Nyberg's RFil sample mdb to accomplish this ...makes my life a whole lot simpler while keeping the users happy: http://www.mile50.com/access/index.htm ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Clark" To: Sent: Thursday, February 19, 2004 11:55 AM Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports > Yeah, that's what I figured. Thanks for the help though. I figured on > doing something like the form Lambert had suggested, but I hadn't > thought to use check boxes. But this does give me another idea though. > > I originally had this issue because the users quickly outgrew my > reports menu--they said they wouldn't need more that a couple and I had > made room for five despite what they said. Well they have come up with > a bunch that are very similar, but each has a different specialty--as a > bunch I am referring to them as 'Program Reports', since they each > feature a different program that the department runs. > > Since I am doing a separate pop-up, I am thinking of using a drop-down > list with the report names in it--there may be around 12-15 or so of > these reports. Is there a way of creating a table or query listing > available reports, or more specifically, but less probable, certain > types of reports--I could flag them somehow--and have them pipe into a > drop-down. Or will I need to place these in myself, which I think I will > probably have to do? > > Thanks again! > > John > > >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> > > Bottom line, the Input Box IS NOT sizable. You will have to create your > own custom dialog box as suggested. > > John Clark wrote:Caution--Potential > 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and > I > would like to shorten it up, if possible. It isn't simply that it > looks > dumb, but you just know user will try to type more if there is room. > Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Feb 19 11:39:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 09:39:17 -0800 Subject: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Message-ID: What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Thu Feb 19 12:14:19 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 13:14:19 -0500 Subject: [AccessD] InputBox sizing...leading into yetanotherquestion...using a drop-down for reports Message-ID: Thank you William and Charlotte! It would be great to do what you suggest William, but I'm not sure I can--although the reports are very much alike, there are a couple of them that have slight differences. I am going to look into accounting for these differences programmically though, in which case this would work for me. I think I was trying to say exactly what Charlotte ended up saying--regarding the custom property. I'm looking forward to checking this out. Thanks again! John W Clark >>> wdhindman at bellsouth.net 2/19/2004 12:08:53 PM >>> John ...I think you may be approaching this in the wrong way ...you might want to define basic report queries and then provide a generic means for your users to temporarily modify them as needed without changing your query definitions ...I use a modified version of Nyberg's RFil sample mdb to accomplish this ...makes my life a whole lot simpler while keeping the users happy: http://www.mile50.com/access/index.htm ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Clark" To: Sent: Thursday, February 19, 2004 11:55 AM Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports > Yeah, that's what I figured. Thanks for the help though. I figured on > doing something like the form Lambert had suggested, but I hadn't > thought to use check boxes. But this does give me another idea though. > > I originally had this issue because the users quickly outgrew my > reports menu--they said they wouldn't need more that a couple and I had > made room for five despite what they said. Well they have come up with > a bunch that are very similar, but each has a different specialty--as a > bunch I am referring to them as 'Program Reports', since they each > feature a different program that the department runs. > > Since I am doing a separate pop-up, I am thinking of using a drop-down > list with the report names in it--there may be around 12-15 or so of > these reports. Is there a way of creating a table or query listing > available reports, or more specifically, but less probable, certain > types of reports--I could flag them somehow--and have them pipe into a > drop-down. Or will I need to place these in myself, which I think I will > probably have to do? > > Thanks again! > > John > > >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> > > Bottom line, the Input Box IS NOT sizable. You will have to create your > own custom dialog box as suggested. > > John Clark wrote:Caution--Potential > 'Dumb Question' warning!!! > > I have placed an InputBox behind a command button, and it is a short > question: > > 'Opt = InputBox("eport or abels", "Report Choice")' > > My problem is that this box is huge compared to the needed entry, and > I > would like to shorten it up, if possible. It isn't simply that it > looks > dumb, but you just know user will try to type more if there is room. > Is > there a way to control the size? > > Thanks, John > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 12:17:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 10:17:58 -0800 Subject: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Message-ID: Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Feb 19 13:05:11 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 19 Feb 2004 13:05:11 -0600 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports In-Reply-To: <200402191800.i1JI0QU30152@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040219130059.02a01a20@pop3.highstream.net> John, The code below will populate a table with a list of reports. Note that the Description is used to hold specific information. An Autonumber column for the Unique ID of the report. The English title for the report The type of the report (i.e. Summary, Monthly, Annual, etc.) The form to open if the report requires criteria. By doing it this way, you do not have to open each report in design view to get information about it. And, since this code runs on open of the form, you will always get the most recent list of reports. You can also reduce the number of report options on your menu to one...the one that opens this form. For those interested, I also do something similar for my lookup tables. So there is only one menu option for maintaining that list. WATCH FOR LINE WRAP Robert Private Sub Form_Open(Cancel As Integer) Dim db As Database Dim cntr As Container Dim intI As Integer Dim strS As String Dim rs As Recordset On Error Resume Next strS = "" Set db = CurrentDb() db.Execute "DELETE * FROM tsys_Report;" Set rs = db.OpenRecordset("tsys_Report", dbOpenDynaset) Set cntr = db.Containers("REPORTS") For intI = 0 To cntr.Documents.Count If cntr.Documents(intI).Properties("Description") <> "" Then rs.AddNew rs!ReportName = cntr.Documents(intI).Name rs!ReportDescription = cntr.Documents(intI).Properties("Description") strS = cntr.Documents(intI).Properties("Description") ' Parse the data out to other fields rs!ReportTitle = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!ReportType = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!FormToOpen = strS rs.Update End If Next rs.Close db.Close Set db = Nothing End Sub At 12:00 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:55:15 -0500 >From: "John Clark" >Subject: Re: [AccessD] InputBox sizing...leading into yet another > question...using a drop-down for reports >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Yeah, that's what I figured. Thanks for the help though. I figured on >doing something like the form Lambert had suggested, but I hadn't >thought to use check boxes. But this does give me another idea though. > >I originally had this issue because the users quickly outgrew my >reports menu--they said they wouldn't need more that a couple and I had >made room for five despite what they said. Well they have come up with >a bunch that are very similar, but each has a different specialty--as a >bunch I am referring to them as 'Program Reports', since they each >feature a different program that the department runs. > >Since I am doing a separate pop-up, I am thinking of using a drop-down >list with the report names in it--there may be around 12-15 or so of >these reports. Is there a way of creating a table or query listing >available reports, or more specifically, but less probable, certain >types of reports--I could flag them somehow--and have them pipe into a >drop-down. Or will I need to place these in myself, which I think I will >probably have to do? > >Thanks again! > >John From John.Clark at niagaracounty.com Thu Feb 19 13:14:16 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 19 Feb 2004 14:14:16 -0500 Subject: [AccessD] Help Charlotte! Message-ID: I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Thu Feb 19 13:27:27 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 19 Feb 2004 11:27:27 -0800 (PST) Subject: [AccessD] Help Charlotte! In-Reply-To: Message-ID: <20040219192727.58985.qmail@web20415.mail.yahoo.com> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jwcolby at colbyconsulting.com Thu Feb 19 13:32:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 19 Feb 2004 14:32:40 -0500 Subject: [AccessD] Help Charlotte! In-Reply-To: Message-ID: Look for a missing reference. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Thursday, February 19, 2004 2:14 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help Charlotte! I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 13:43:32 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 11:43:32 -0800 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports Message-ID: I prefer to use a custom property so that the description property can be used for other things. Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Thursday, February 19, 2004 11:05 AM To: accessd at databaseadvisors.com Cc: John.Clark at niagaracounty.com Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports John, The code below will populate a table with a list of reports. Note that the Description is used to hold specific information. An Autonumber column for the Unique ID of the report. The English title for the report The type of the report (i.e. Summary, Monthly, Annual, etc.) The form to open if the report requires criteria. By doing it this way, you do not have to open each report in design view to get information about it. And, since this code runs on open of the form, you will always get the most recent list of reports. You can also reduce the number of report options on your menu to one...the one that opens this form. For those interested, I also do something similar for my lookup tables. So there is only one menu option for maintaining that list. WATCH FOR LINE WRAP Robert Private Sub Form_Open(Cancel As Integer) Dim db As Database Dim cntr As Container Dim intI As Integer Dim strS As String Dim rs As Recordset On Error Resume Next strS = "" Set db = CurrentDb() db.Execute "DELETE * FROM tsys_Report;" Set rs = db.OpenRecordset("tsys_Report", dbOpenDynaset) Set cntr = db.Containers("REPORTS") For intI = 0 To cntr.Documents.Count If cntr.Documents(intI).Properties("Description") <> "" Then rs.AddNew rs!ReportName = cntr.Documents(intI).Name rs!ReportDescription = cntr.Documents(intI).Properties("Description") strS = cntr.Documents(intI).Properties("Description") ' Parse the data out to other fields rs!ReportTitle = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!ReportType = Mid(strS, 1, InStr(1, strS, ";") - 1) strS = Mid(strS, InStr(1, strS, ";") + 2) rs!FormToOpen = strS rs.Update End If Next rs.Close db.Close Set db = Nothing End Sub At 12:00 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:55:15 -0500 >From: "John Clark" >Subject: Re: [AccessD] InputBox sizing...leading into yet another > question...using a drop-down for reports >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Yeah, that's what I figured. Thanks for the help though. I figured on >doing something like the form Lambert had suggested, but I hadn't >thought to use check boxes. But this does give me another idea though. > >I originally had this issue because the users quickly outgrew my >reports menu--they said they wouldn't need more that a couple and I had >made room for five despite what they said. Well they have come up with >a bunch that are very similar, but each has a different specialty--as a >bunch I am referring to them as 'Program Reports', since they each >feature a different program that the department runs. > >Since I am doing a separate pop-up, I am thinking of using a drop-down >list with the report names in it--there may be around 12-15 or so of >these reports. Is there a way of creating a table or query listing >available reports, or more specifically, but less probable, certain >types of reports--I could flag them somehow--and have them pipe into a >drop-down. Or will I need to place these in myself, which I think I >will probably have to do? > >Thanks again! > >John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 19 13:45:57 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Feb 2004 11:45:57 -0800 Subject: [AccessD] Help Charlotte! Message-ID: If you downloaded the 2000 version, you may have a missing reference to one of the ADO libraries. Try downloading the 97 version instead. They do the same things in DAO, but the 97 version doesn't have the ADO alternative. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 11:14 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help Charlotte! I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Thu Feb 19 15:28:33 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Thu, 19 Feb 2004 16:28:33 -0500 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: Thanks for all the suggestions Mark Matte sent me a db that gave me what I needed. It searched out and enter into a table. all the directories in the drive. Then searched for the MDB's and put the filename, size, time, and full path into another table. I was able to create a nicely formatted report with the full path name, file name, size, and date to send to our unit. I tweaked the forms to allow me to search for all files or just A specific file extension. Drew's Drive Mapper was another good utility. The only problem I had with it was getting the full file path to print correctly. If there were several levels of subdirectories I had to try to loop through to rebuild the full path. I just really didn't have time to play with the code needed to do this. The karenware powertool was ok but with the db I was able to get a better looking report. Thanks again Patti From pedro at plex.nl Thu Feb 19 15:24:54 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 19 Feb 2004 22:24:54 +0100 Subject: [AccessD] Re: need help with filter code References: <5.1.0.14.2.20040217121458.02a4ed18@pop3.highstream.net> Message-ID: <006601c3f72e$f2d75360$f4c581d5@pedro> Hello Robert (and others), i used your code to filter on multiple fields. I works, but in the query, not in the form. When i enter a value in the txtbox and click the command button, nothing happens. Looking in the query_1 i see that the Like ... Or statement is placed in the fields. Looking in the queryview it also filters the right values. Then returning to the form and looking in its view, then it is showing the exact values. I tried to requery and refresh in the code, but nothing changed. Do you know how this is possible? Pedro Janssen ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 17, 2004 7:34 PM Subject: [AccessD] Re: need help with filter code > Here are the steps that I would take: > > 1. Create a base query with all the fields you want to display. > i.e. sqry_FilterQuery_0 > > 2. Do a save as and save the same query with an _1 on the end instead of _0. > > In the code behind the OnClick event of your command button place the > following: > > dim db as dao.database > dim qdf as dao.querydef > dim strSql as string > dim strWhere as string > set db=currentdb() > set qdf=db.querydefs("base query name") > ' removes the ; from the end of the query string > strsql = mid(qdf.sql,1,len(qdf.sql)-3) > strwhere = " WHERE (" > ' build the string for each of the 6 columns you want to search in > strwhere = strwhere & "(column1 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column2 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column3 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column4 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column5 Like '*" & me!textbox & "*') OR" > strwhere = strwhere & "(column6 Like '*" & me!textbox & "*'));" > set qdf = db.querydefs("_1 query name") > qdf.sql = strsql & strwhere > db.close > set db=nothing > ' enter the code here to open either the _1 query or a form/report > ' based on the _1 query > > By doing it this way, you do not have to fool around with the filter property. > > Robert > > Replace the column1-6 with the names of the columns that you want to search > in. Replace me!textbox with the name of the text box you are entering the > criteria in. Replace "base query name" with the name of the _0 > query. Replace "_1 query name" with the name of the _1 query. > > At 11:57 AM 2/17/2004 -0600, you wrote: > >Date: Tue, 17 Feb 2004 10:35:01 +0100 > >From: "Pedro Janssen" > >Subject: [AccessD] need help with filter code > >To: > >Message-ID: <003401c3f539$727cac20$f7c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Group, > > > >i have 6 patients fields in which i want to do a search on their names. > >I don't want to use the existing filter in access, but search with a > >commandbutton and a textbox. > >I can use the following code with 6 cmdbuttons and 6 textboxes, > >but that doesn't work in practice. > >What i want is one cmdbutton and one txtbox that searches true all 6 fields > >Can you help me on this? > > > > > >Private sub cmdsearch1_Click() > >Me.Filter = "qryPatientData.Patient1ID Like'*" & Me.txtboxSearch1 & "*'" > >Me.FilterOn = True > >Me.Requery > >Me.Refresh > > > >End Sub > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Thu Feb 19 18:05:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 19 Feb 2004 18:05:37 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278AE@main2.marlow.com> Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 19 18:31:41 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 19 Feb 2004 18:31:41 -0600 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278AF@main2.marlow.com> ROTFL! Sorry, completely forgot about that! I normalized the path structure that way, because it was much smaller to represent everything with it's own ID. Put the following function into that db... Function GetFullPath(intRootID As Long, strDriveLetter As String, strCurrentFolder As String) As String Dim rs As Recordset Dim intRoot As Long Dim strPath As String Dim strSQL As String Dim strFolderName As String intRoot = intRootID If intRoot = 0 Then strFolderName = "" Else strFolderName = strCurrentFolder & "\" End If Do Until intRoot = 0 strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE FolderKey=" & intRoot Set rs = CurrentDb.OpenRecordset(strSQL) intRoot = rs.Fields(1).Value If intRoot = 0 Then Exit Do strPath = strPath & rs.Fields(0).Value & "\" rs.Close Loop GetFullPath = strDriveLetter & ":\" & strFolderName & strPath End Function Then use this query...the last field will be the full path of the file. SELECT tblFiles.FileName, tblFiles.FileSize, GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderName]) AS Path FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON tblFolders.DriveKey = tblDriveHeader.DriveKey) ON tblFiles.RootFolder = tblFolders.FolderKey; Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Thursday, February 19, 2004 3:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save - Thanks solved Thanks for all the suggestions Mark Matte sent me a db that gave me what I needed. It searched out and enter into a table. all the directories in the drive. Then searched for the MDB's and put the filename, size, time, and full path into another table. I was able to create a nicely formatted report with the full path name, file name, size, and date to send to our unit. I tweaked the forms to allow me to search for all files or just A specific file extension. Drew's Drive Mapper was another good utility. The only problem I had with it was getting the full file path to print correctly. If there were several levels of subdirectories I had to try to loop through to rebuild the full path. I just really didn't have time to play with the code needed to do this. The karenware powertool was ok but with the db I was able to get a better looking report. Thanks again Patti _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Feb 19 20:30:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 20 Feb 2004 13:30:12 +1100 Subject: [AccessD] A2K:Data Type Mismatch in expression Message-ID: <019801c3f759$77449840$48619a89@DDICK> Hi Guys This is basically the same question I asked the other day that Stuart and some others answered This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly different SQL. I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single quotes and stuff, but I just cant get it right I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ Dim selSQL As String Dim rs As Object Dim con As Object Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection selSQL = "SELECT tblStudents, tblStudents.StudentID " _ & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here With rs MsgBox .RecordCount x = .RecordCount End With '++++++++++++++++++++++++++++++++++++++++++++++++++++++ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 19 21:19:46 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 20 Feb 2004 13:19:46 +1000 Subject: [AccessD] A2K:Data Type Mismatch in expression In-Reply-To: <019801c3f759$77449840$48619a89@DDICK> Message-ID: <40360972.2392.146DCE1@localhost> This time, I'd guess that StudentID in NOT a text field, so you don't want the two single quotes at all. You seem to be missing the first field name in the select statement You are missing a closing double quote after & "FROM tblStudents (note you also need a space after the tblStudents and before the double quote) So try: selSQL = "SELECT tblStudents, tblStudents.StudentID " _ & "FROM tblStudents " _ & "WHERE (((tblStudents.StudentID)=" _ & [Forms]![frmStudents]![txtStudentID] & "));" On 20 Feb 2004 at 13:30, Darren DICK wrote: > Hi Guys > This is basically the same question I asked the other day that Stuart and some others answered > This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly > different SQL. > I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single > quotes and stuff, but I just cant get it right > > I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type > "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! > > '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Dim selSQL As String > Dim rs As Object > Dim con As Object > > Set rs = CreateObject("ADODB.Recordset") > Set con = Application.CurrentProject.Connection > > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" > > rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here > > With rs > MsgBox .RecordCount > x = .RecordCount > End With > '++++++++++++++++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [AccessD] [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [AccessD] [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Feb 19 22:15:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 19 Feb 2004 23:15:25 -0500 Subject: [AccessD] Name of page header and footer section Message-ID: <20040220041522.FVAX22977.imf23aec.mail.bellsouth.net@SUSANONE> I've noticed that the report page header and footer section is PageHeaderSection and PageFooterSection -- it seems to be the only section with "section" tacked on. Looking at reports in Northwind, some sections are named just PageHeader and PageFooter. Is this a throw back to a much earlier version? I've checked back to 2000, and that version has "section" tacked on. Can someone with 97 or 95 check the default names of these page sections and see what they are? Thanks -- I don't have an older version installed. Susan H. From lists at jbsolutions.com.au Thu Feb 19 22:29:13 2004 From: lists at jbsolutions.com.au (Joshua B) Date: Fri, 20 Feb 2004 14:29:13 +1000 Subject: [AccessD] Name of page header and footer section Message-ID: <200402200428.i1K4SrU04752@databaseadvisors.com> Hello Susan, '97 is just PageHeader and PageFooter by default, no "Section"... ======= At 2004-02-19, 23:15:00 you wrote: ======= >I've noticed that the report page header and footer section is >PageHeaderSection and PageFooterSection -- it seems to be the only section >with "section" tacked on. > >Looking at reports in Northwind, some sections are named just PageHeader and >PageFooter. Is this a throw back to a much earlier version? I've checked >back to 2000, and that version has "section" tacked on. > >Can someone with 97 or 95 check the default names of these page sections and >see what they are? Thanks -- I don't have an older version installed. > >Susan H. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-20 From andy at minstersystems.co.uk Fri Feb 20 01:50:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 20 Feb 2004 07:50:43 -0000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 In-Reply-To: <4035324D.32194.1193E41@localhost> Message-ID: <00fa01c3f786$3deb1240$b274d0d5@minster33c3r25> 2 of each on SQL server list and 5 !!! Of each on AccessD. Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 20 February 2004 03:02 > To: accessd at databaseadvisors.com; > dba-vb at databaseadvisors.com; dba-sqlserver at databaseadvisors.com > Subject: [AccessD] [dba-SQLServer] [dba-VB] Test 1/2 > > > Test 1 of 2. > > DO NOT REPLY!!! > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > I'm not a complete idiot some parts are missing. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Fri Feb 20 07:11:57 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 20 Feb 2004 07:11:57 -0600 Subject: [AccessD] Re: InputBox sizing...leading into yet another question...using a drop-down for reports In-Reply-To: <200402200320.i1K3KCU26331@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040220070937.029a2e80@pop3.highstream.net> Charlotte, Is the custom property available in the Documents collection? One of the reasons I started doing it this way was so I did not have to generated the list of reports for the table by opening all the reports in design view. Robert At 09:20 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 11:43:32 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Re: InputBox sizing...leading into yet another > question...using a drop-down for reports >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I prefer to use a custom property so that the description property can >be used for other things. > >Charlotte Foust From rl_stewart at highstream.net Fri Feb 20 07:18:25 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 20 Feb 2004 07:18:25 -0600 Subject: [AccessD] Re: need help with filter code In-Reply-To: <200402200320.i1K3KCU26331@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040220071410.02982a48@pop3.highstream.net> Pedro, Is the form based on the _1 query? Are you filtering the current form, or opening a different form from the button? If you are filtering the current form. you need to do me.requery. If it is a new form you are opening, then you just need to check and make sure you are using the _1 query and not the _0 query. I use this for reports and forms all the time to filter the information for them. If you continue to have problems with it, send me a zip with the forms, querys, and tables that are involved and I will look at it for you. Robert At 09:20 PM 2/19/2004 -0600, you wrote: >Date: Thu, 19 Feb 2004 22:24:54 +0100 >From: "Pedro Janssen" >Subject: Re: [AccessD] Re: need help with filter code >To: "Access Developers discussion and problem solving" > >Message-ID: <006601c3f72e$f2d75360$f4c581d5 at pedro> >Content-Type: text/plain; charset="iso-8859-1" > >Hello Robert (and others), > >i used your code to filter on multiple fields. >I works, but in the query, not in the form. >When i enter a value in the txtbox and click the command button, >nothing happens. Looking in the query_1 i see that the Like ... Or statement >is placed in the fields. Looking in the queryview it also filters the right >values. >Then returning to the form and looking in its view, then it is showing the >exact >values. I tried to requery and refresh in the code, but nothing changed. >Do you know how this is possible? > >Pedro Janssen From pedro at plex.nl Fri Feb 20 14:43:07 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 20 Feb 2004 14:43:07 (MET) Subject: [AccessD] Re: need help with filter code Message-ID: <200402201343.i1KDh7RM028562@mailhostC.plex.net> Hello Robert, the form is based on the _1 query, and i allready places me.requery in the code , between the last line of code you gave me and the End Sub. Pedro Janssen In antwoord op: > From: "Robert L. Stewart" > To: accessd at databaseadvisors.com > Cc: pedro at plex.nl > Date: Fri, 20 Feb 2004 07:18:25 -0600 > Subject: [AccessD] Re: need help with filter code > > > Pedro, > > Is the form based on the _1 query? > > Are you filtering the current form, or > opening a different form from the button? > > If you are filtering the current form. you > need to do me.requery. If it is a new form > you are opening, then you just need to check > and make sure you are using the _1 query and > not the _0 query. > > I use this for reports and forms all the time > to filter the information for them. > > If you continue to have problems with it, send > me a zip with the forms, querys, and tables > that are involved and I will look at it for you. > > Robert > > At 09:20 PM 2/19/2004 -0600, you wrote: > >Date: Thu, 19 Feb 2004 22:24:54 +0100 > >From: "Pedro Janssen" > >Subject: Re: [AccessD] Re: need help with filter code > >To: "Access Developers discussion and problem solving" > > > >Message-ID: <006601c3f72e$f2d75360$f4c581d5 at pedro> > >Content-Type: text/plain; charset="iso-8859-1" > > > >Hello Robert (and others), > > > >i used your code to filter on multiple fields. > >I works, but in the query, not in the form. > >When i enter a value in the txtbox and click the command button, > >nothing happens. Looking in the query_1 i see that the Like ... Or statement > >is placed in the fields. Looking in the queryview it also filters the right > >values. > >Then returning to the form and looking in its view, then it is showing the > >exact > >values. I tried to requery and refresh in the code, but nothing changed. > >Do you know how this is possible? > > > >Pedro Janssen > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Fri Feb 20 08:10:11 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Feb 2004 14:10:11 +0000 Subject: [AccessD] Table Structure questions Message-ID: Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx From markamatte at hotmail.com Fri Feb 20 08:17:21 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Feb 2004 14:17:21 +0000 Subject: [AccessD] Pass-Through Query Message-ID: Hello All, I've never really looked at Pass-Through Queries...often heard about them...even read through the archives and help...lots of examples...but what are some practical uses, purposes or benefits? Thanks, Mark _________________________________________________________________ Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From ssharkins at bellsouth.net Fri Feb 20 09:24:10 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 20 Feb 2004 10:24:10 -0500 Subject: [AccessD] Name of page header and footer section In-Reply-To: <200402200428.i1K4SrU04752@databaseadvisors.com> Message-ID: <20040220152432.JYRA15673.imf22aec.mail.bellsouth.net@SUSANONE> Thanks -- that answers my question. I wonder why they changed it -- seems like an odd thing to do. ;) Thanks again! Susan H. Hello Susan, '97 is just PageHeader and PageFooter by default, no "Section"... ======= At 2004-02-19, 23:15:00 you wrote: ======= >I've noticed that the report page header and footer section is >PageHeaderSection and PageFooterSection -- it seems to be the only >section with "section" tacked on. > >Looking at reports in Northwind, some sections are named just >PageHeader and PageFooter. Is this a throw back to a much earlier >version? I've checked back to 2000, and that version has "section" tacked on. > >Can someone with 97 or 95 check the default names of these page >sections and see what they are? Thanks -- I don't have an older version installed. > >Susan H. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com = = = = = = = = = = = = = = = = = = = = Best regards. Joshua B lists at jbsolutions.com.au www.jbsolutions.com.au 2004-02-20 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Feb 20 09:52:08 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 20 Feb 2004 10:52:08 -0500 Subject: [AccessD] Help Charlotte! Message-ID: I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 20 10:05:19 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 20 Feb 2004 11:05:19 -0500 Subject: [AccessD] Pass-Through Query Message-ID: Mark, I use passthru queries quite a bit. The major thing is that is does the work on the server side in the native language. We have oracle databases that are huge. I can write sql in native oracle which has options not available in Access. Create temporary tables on the server side (if you have permission) to use in other queries without having to transport the data back and forth over line. I can write more complex queries and control them better. Access has a tendency to make assumptions that you don't expect, by using passthru you have a bit more control over what you want. example 1: using multiple fields in a subquery In select x, y, z from A where (e, f, g) in (select e, f, g from H) example 2: use another query as if it were a table without having to run 2 access queries bringing the data from the 1st query back over the line to do the 2nd query select a.x, a.y, h.e, h.f from A, (select e, f, g from D where .....) H These are my observations Patti > -----Original Message----- > From: Mark A Matte [mailto:markamatte at hotmail.com] > Sent: Friday, February 20, 2004 09:17 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Pass-Through Query > > > Hello All, > > I've never really looked at Pass-Through Queries...often heard about > them...even read through the archives and help...lots of > examples...but what > are some practical uses, purposes or benefits? > > Thanks, > > Mark > > _________________________________________________________________ > Get a FREE online computer virus scan from McAfee when you > click here. > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at DFA.STATE.NY.US Fri Feb 20 10:16:40 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 20 Feb 2004 11:16:40 -0500 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: Thank you works like a charm Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Thursday, February 19, 2004 07:32 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > ROTFL! Sorry, completely forgot about that! I normalized the path > structure that way, because it was much smaller to represent > everything with > it's own ID. > > Put the following function into that db... > > Function GetFullPath(intRootID As Long, strDriveLetter As String, > strCurrentFolder As String) As String > Dim rs As Recordset > Dim intRoot As Long > Dim strPath As String > Dim strSQL As String > Dim strFolderName As String > intRoot = intRootID > If intRoot = 0 Then > strFolderName = "" > Else > strFolderName = strCurrentFolder & "\" > End If > Do Until intRoot = 0 > strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE > FolderKey=" & intRoot > Set rs = CurrentDb.OpenRecordset(strSQL) > intRoot = rs.Fields(1).Value > If intRoot = 0 Then Exit Do > strPath = strPath & rs.Fields(0).Value & "\" > rs.Close > Loop > GetFullPath = strDriveLetter & ":\" & strFolderName & strPath > End Function > > Then use this query...the last field will be the full path of > the file. > > SELECT tblFiles.FileName, tblFiles.FileSize, > GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderNam > e]) AS Path > FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON > tblFolders.DriveKey = tblDriveHeader.DriveKey) ON > tblFiles.RootFolder = > tblFolders.FolderKey; > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Thursday, February 19, 2004 3:29 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > > Thanks for all the suggestions > > Mark Matte sent me a db that gave me what I needed. It > searched out and > enter into a table. all the directories in the drive. Then > searched for the > MDB's and put the filename, size, time, and full path into > another table. I > was able to create a nicely formatted report with the full > path name, file > name, size, and date to send to our unit. I tweaked the forms > to allow me to > search for all files or just A specific file extension. > > Drew's Drive Mapper was another good utility. The only > problem I had with it > was getting the full file path to print correctly. If there > were several > levels of subdirectories I had to try to loop through to > rebuild the full > path. I just really didn't have time to play with the code > needed to do > this. > > The karenware powertool was ok but with the db I was able to > get a better > looking report. > > > Thanks again > Patti > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Feb 20 10:22:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Feb 2004 08:22:36 -0800 Subject: [AccessD] Help Charlotte! Message-ID: Replace it with whatever version of the ADO Ext library for DDL and Security you have on your machine. As long as you have version 2.5 or later installed, it should work. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 20, 2004 7:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Help Charlotte! I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 20 11:40:02 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 20 Feb 2004 09:40:02 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278AE@main2.marlow.com> Message-ID: <20040220174002.10545.qmail@web20416.mail.yahoo.com> Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From bchacc at san.rr.com Fri Feb 20 13:05:48 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 20 Feb 2004 11:05:48 -0800 Subject: [AccessD] BOD Election Message-ID: <031401c3f7e4$8ced1e20$6801a8c0@HAL9002> Dear AccessD members: The annual election for The Database Advisors Board of Directors will be held early in March. For the next few days the cyber-floor will be open for additional nominations to the Board. At the moment, the entire current board is standing for re-election plus John Bartow. Only shareholders are allowed to vote - one share, one vote. To be on the Board you must also be a shareholder. You do not have to be a shareholder to run, but you must be a shareholder to serve. Tentative schedule for the election is: 02/20 - open the floor for nominations 02/24 - floor closed for nominations. 02/26 - list of candidates, candidates statements (if any) distributed 03/04 - ballots distributed to shareholders. 03/08 - polls close 03/10 - results of election announced The election committee consists of myself, Donna Cook, and Lembit Soobik. Please address any question you have to me at bchacc at san.rr.com. and copy Donna at DBCfour at aol.com and Lembit at lembit.soobik at t-online.de. If you can remember, please put BOD Election as the subject so it will get routed to the election mail folder. Regards, Rocky Smolin Beach Access Software From prodevmg at yahoo.com Fri Feb 20 13:04:33 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) Subject: [AccessD] Faster way to copy files Message-ID: <20040220190433.57499.qmail@web20413.mail.yahoo.com> I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From John.Clark at niagaracounty.com Fri Feb 20 13:15:22 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 20 Feb 2004 14:15:22 -0500 Subject: [AccessD] Help Charlotte! Message-ID: Yeah, I've actually gotten up to the point where it works. I have been looking at your code on and off, when I could, all day. I've gotta tell you; this is some pretty cool coding--I like it. There are some things I don't understand, but I want to try to figure them out, before I bug you too much more. I have a self-imposed rule; I basically cannot 'borrow' code, unless I understand what it does and how it does it. I have broken this rule once or twice, because of time constraints, but even then I have gone back and learned the code, after the fact. Thanks again for you help! John W Clark >>> cfoust at infostatsystems.com 2/20/2004 11:22:36 AM >>> Replace it with whatever version of the ADO Ext library for DDL and Security you have on your machine. As long as you have version 2.5 or later installed, it should work. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, February 20, 2004 7:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Help Charlotte! I kinda figured this was the problem, but to be honest, I don't know much of anything about references. I know that given the level I am now at, I should know this, and I am embarassed that I do not, but I've never ran into it and I've learned most of what I know from doing, with the help of this list. I am now doing a search on the archives on references. In the meantime, I was getting the 'MISSING' on 'Microsoft ADO Ext. 2.6 for DDL and Security', if this means anything to anybody. Gotta go play and learn! Take care! John >>> prodevmg at yahoo.com 2/19/2004 2:27:27 PM >>> The database you downloaded may have some references that you don't have on your computer. Go to any module, select tools, references and look for one that says MISSING. Uncheck it and re-compile your db. John Clark wrote:I downloaded your zip, but as soon as I ran it, I got an error that comes up at the following line ...If Left(strFrmName, 10) = "fdlgselect" Then... the error is: 'Compile Erro: Can't find project or library. I've seen things about this before, but I've never had any problems like this in the past, so I do not know what to do. I'm looking now, but I figured the list usually beats me to it....or usually, I'll find it, get on Email and the answer is there waiting for me. >>> cfoust at infostatsystems.com 2/19/2004 1:17:58 PM >>> Actually, top make it easy, you can download a sample in either 97 or 2000 format from my samples here: http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,Charlotte Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 10:10 AM To: Charlotte Foust Subject: RE: [AccessD] InputBox sizing...leading intoyetanotherquestion...using a drop-down for reports Thanks for the offer Charlotte. I would be very interested in seeing this! It sounds like it is exactly what I am looking for, and if it isn't, well I guess I learn something new and maybe get more ideas...which might be a dangerous thing! Thanks again...I'll look forward to view this! John W. Clark Computer Programmer Niagara County Central Data Processing >>> cfoust at infostatsystems.com 2/19/2004 12:39:17 PM >>> What I do is create a custom property called DisplayName for each report that should appear in a list like that. Then I populate a listbox on a popup form with only the reports that have a value in DisplayName. That way I can give the reports a user-friendly display name without abandoning naming conventions. I believe I have a demo somewhere that shows that and I can send if you would like. Let me know offlist. Charlotte Foust -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, February 19, 2004 8:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InputBox sizing...leading into yet anotherquestion...using a drop-down for reports Yeah, that's what I figured. Thanks for the help though. I figured on doing something like the form Lambert had suggested, but I hadn't thought to use check boxes. But this does give me another idea though. I originally had this issue because the users quickly outgrew my reports menu--they said they wouldn't need more that a couple and I had made room for five despite what they said. Well they have come up with a bunch that are very similar, but each has a different specialty--as a bunch I am referring to them as 'Program Reports', since they each feature a different program that the department runs. Since I am doing a separate pop-up, I am thinking of using a drop-down list with the report names in it--there may be around 12-15 or so of these reports. Is there a way of creating a table or query listing available reports, or more specifically, but less probable, certain types of reports--I could flag them somehow--and have them pipe into a drop-down. Or will I need to place these in myself, which I think I will probably have to do? Thanks again! John >>> prodevmg at yahoo.com 2/19/2004 11:19:53 AM >>> Bottom line, the Input Box IS NOT sizable. You will have to create your own custom dialog box as suggested. John Clark wrote:Caution--Potential 'Dumb Question' warning!!! I have placed an InputBox behind a command button, and it is a short question: 'Opt = InputBox("eport or abels", "Report Choice")' My problem is that this box is huge compared to the needed entry, and I would like to shorten it up, if possible. It isn't simply that it looks dumb, but you just know user will try to type more if there is room. Is there a way to control the size? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Feb 20 13:58:11 2004 From: James at fcidms.com (James Barash) Date: Fri, 20 Feb 2004 14:58:11 -0500 Subject: [AccessD] DataGrid Buttons In-Reply-To: Message-ID: Paul, I assume you are talking about the msdatgrd.ocx control. I have a vba example somewhere but I can't find it right now. What you need to do is create a hidden combo box populated with the values you want to select from. On the ButtonClick event for the datagrid, you need to unhide the combo box, set its properties so that it appears on top of the datagrid cell and then call the dropdown method. Then, on the combo box Change event you need to populate the combo box value back to the datagrid and hide the combo box. If you have more than one button, you will either need separate combo boxes for each or you need to set the rowsource in the ButtonClick event. If you want, I can see if I can find the example but this should help you get started. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 19, 2004 3:56 AM To: dba-vb Cc: accessd Subject: [AccessD] DataGrid Buttons To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 20 16:09:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:09:48 -0800 Subject: [AccessD] Re: xform design tools References: <753426316.20031008100637@cactus.dk> <894356263.20040219093709@cactus.dk> Message-ID: <403685AC.30000@shaw.ca> I didn't know anyone had created a browser addin yet. Interesting was waiting for that rather than using old XSL-FO Gustav Brock wrote: >Hi those of you interested in XForms. > >I noted these comments and useful links on the present status of >XForms which might be of interest for some of you. >I'm quoting as the letter is not on-line yet. > > > >The SitePoint TECH TIMES #83 Copyright (c) 2004 >February 18th, 2004 PLEASE FORWARD > >EDITORIAL - - - - - - - - - - - - - - - - - - - - - - - - - - - - > >THE STATE OF XFORMS > >Back in the Tech Times #53 [1], I introduced XForms as the >latest candidate recommendation to come out of the W3C. I >explained the advantages it had over HTML forms, and even showed >a simple example of how XForms work. > >At the time, the media buzz surrounding XForms came from the >fact that Microsoft was building something called XDocs into its >upcoming Office 2003 software. Many attributed Microsoft's >refusal to endorse XForms to similarities that the >recommendation bore to XDocs. > >Over a year later, Office 2003 has been released, XDocs is now >called InfoPath [2], XForms has become a full-fledged W3C >recommendation [3], and the fine folks at x-port.net have just >released formsPlayer 1.0 [4], a free plug-in for Internet >Explorer that fully complies with the XForms standard. > >So why aren't we seeing XForms springing up all over the Web? >After all, the most popular Web browser in the world now >supports them with a free plug-in! > >Due to the stagnation of Internet Explorer [5], all the >ultra-keen Web developers who would normally jump on a >technology like this have moved to Mozilla [6] (and Firefox [7]) >as their development platform of choice. To put it bluntly, >no one really cares what Internet Explorer can do now, because >there is so much that it can't do (like properly support CSS2 >[8]). > >So, the question is, what are the other browser makers doing >about XForms? > >Mozilla is tracking requests for XForms support and volunteers >interested in working on it in bug 97806 [9]. The comments on >this bug, which dates back to the days when XForms was a working >draft, make interesting reading. There are many opinions on why >XForms may or may not be worthy of consideration for inclusion >in Mozilla, but the status quo is that it remains a relatively >low-priority feature request in need of good developers, despite >having nearly 500 votes from community members. > >Apple (whose Safari browser has become a serious consideration >for developers) and Opera issued a combined statement [10] last >September in response to XForms becoming a proposed >recommendation. In it, they outlined a list of "substantial >issues" in the standard that they felt made XForms inappropriate >as a replacement for HTML forms. When pressed, they admitted >[11] that XForms was probably worthy as a platform for advanced >forms development, as long as HTML forms remained as the >mainstream choice in XHTML 2.0. > >So why all this negative sentiment towards XForms? Is it really >so flawed? > >Like any new technology, XForms has a rough spot or two, but the >productivity it offers to developers cannot be denied. Yet, >while XForms itself isn't all that complex, it relies on a host >of technologies that are fairly complex, and are not widely >implemented in today's browsers. Quoting from Apple and Opera's >statement, > >"XForms has too many dependencies. In addition to XForms itself, >an XForms implementation needs to support XML with namespaces, >XML Schema, XPath, XML Events, DOM Events, DOM Core, CSS, a >stylesheet linking technology (e.g. the XML Stylesheet PI), and >a host language (e.g. XHTML or SVG). In particular, its >dependency on XML Schema is of great concern to us." > >The Mozilla bug discussion suggests that XML Schema [12] >support is not strictly necessary for a basic implementation of >XForms, but XML Events [13] is a definite piece of the puzzle >that has yet to be built into Mozilla. Meanwhile, browsers like >Opera and Safari are even further behind the curve. > >>From what I can tell, XForms has the dubious distinction of >being one of the first implementations of a number of XML >technolgies with mass appeal to Web developers. Though well >thought out, none of these technologies has had a compelling >reason to be buit into a Web browser before, and now, all of a >sudden, they would all have to be built at once in order to >support XForms. > >Even with a free, fully compliant plug-in for Internet Explorer, >XForms has some serious hurdles to overcome before developers >can consider it as a serious tool for general Web development. >If you want to pitch in, I would definitely encourage you to >contribute your services to the Mozilla project, but it will >take some smart brains and a lot of work to bring XForms into >the spotlight. > >[1] >[2] >[3] >[4] >[5] >[6] >[7] >[8] >[9] >[10] >[11] >[12] >[13] > >The Archives are located at: >http://www.sitepoint.com/newsletter/archives.php > > > >/gustav > > > > >>Strangely, just this morning I received this link from Novell: >> >> > > > >>http://developer.novell.com/research/appnotes/2003/septembe/04/a0309046.htm#1849119 >> >> > > > >>Notice the headline and link >> >> > > > >> The Novell XForms Technology Preview (NXTP) >> >> > > > >>I have, however, no idea of the cost for this tool. >> >> > > > >>/gustav >> >> > > > > >>>Date: 2003-10-08 03:58 >>> >>> > > > >>>I saw both of you had posted ?'s asking about the existence of any xforms design tools at the w3c-forms site. >>> >>> > > > >>>Have either of you found any? >>> >>> > > > >>>I am exploring QLink and Liquid Office, both of which seem to be much more than xforms, same story with holosofx (now ibm) >>> >>> > > > >>>Appreciate any help. >>> >>> > > > >>>Gene McKenna >>> >>> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 20 16:13:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:13:47 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> Message-ID: <4036869B.4080601@shaw.ca> You can sort of hide the table if you preface table name with USys. It can then only be seen if you turn on System Objects view in options Joseph O'Connell wrote: >Rocky, > >Search the archives for "Copy Protection". There was a long discussion of >this topic and recommendations for several add-in products during October >2001. > >Joe O'Connell > > >-----Original Message----- >From: Rocky Smolin - Beach Access Software >To: Access Developers discussion and problem solving > >Date: Wednesday, February 18, 2004 12:45 PM >Subject: Re: [AccessD] Hiding Table in mde > > >|A.D.: >| >|What I'm trying to do is copy protect my program by putting a data bomb in >|the opening form. Right now it's hard coded into the module's OnOpen >event. >|I was going to put the date bomb into a table but that table is accessible >|to the user even in an mde. >| >|So I was trying to hide the table. But a more direct way would be to be >|able to alter the line of code in the mde which contains the expire date. >| >|I've cooked up a more elaborate scheme now but haven't settled on a final >|approach. I want the user to be able to call or email their serial number >|and I give them a code to change the expiration date in their system. I've >|done a key like this before for another client so I've got all the >|code/decode stuff worked out. >| >|I'm just searching around for the simplest solution to protecting my >|product. >| >|Regards, >| >|Rocky >| >|----- Original Message ----- >|From: "A.D.Tejpal" >|To: "Access Developers discussion and problem solving" >| >|Sent: Wednesday, February 18, 2004 8:57 AM >|Subject: Re: [AccessD] Hiding Table in mde >| >| >|Rocky, >| >| Could you kindly confirm that you wish to add a new program module for >|manipulating existing objects in an mde - without having to go through the >|conventional steps of first altering the code in original mdb and then >|converting it into a fresh mde. >| >| If this be the case, an interesting solution could be adopted, so as to >|meet your requirement. >| >|Regards, >|A.D.Tejpal >|-------------- >| ----- Original Message ----- >| From: Charlotte Foust >| To: Access Developers discussion and problem solving >| Sent: Tuesday, February 17, 2004 23:10 >| Subject: RE: [AccessD] Hiding Table in mde >| >| >| Code can't be modified in an mde at all, programmatically or otherwise. >| That's the whole point. >| >| Charlotte Foust >| >| -----Original Message----- >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >| Sent: Sunday, February 15, 2004 9:55 PM >| To: Access Developers discussion and problem solving >| Subject: Re: [AccessD] Hiding Table in mde >| >| >| Doug: >| >| That would work but I'd prefer not to have the file external. Can code >| be modified programmatically in an mde? >| >| Rocky >| >| ----- Original Message ----- >| From: "Doug Murphy" >| To: "'Access Developers discussion and problem solving'" >| >| Sent: Sunday, February 15, 2004 12:38 PM >| Subject: RE: [AccessD] Hiding Table in mde >| >| >| > One way to do this is to not put it in the database, but use an >| > external file that is encrypted. Set the system up so it won't run if >| >| > the file isn't present and make the file hard for folks to find. >| > >| > Doug >| > >| > Douglas Murphy >| > Murphy's Creativity >| > (619) 334-5121 >| > doug at murphyscreativity.com >| > www.murphyscreativity.com >| > >| > >| > >| > >| > -----Original Message----- >| > From: accessd-bounces at databaseadvisors.com >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >| > Smolin >| > - Beach Access Software >| > Sent: Sunday, February 15, 2004 7:41 AM >| > To: AccessD at databaseadvisors.com >| > Subject: [AccessD] Hiding Table in mde >| > >| > >| > Dear List: >| > >| > Is there a way to prevent a user from importing a table from an mde >| > into an mdb without putting a password on the mde? I'm trying to >| > build a serial number/upgrade/license extension function into an app >| > and will be storing the data in a front end table. >| > >| > TIA, >| > >| > Rocky Smolin >| > Beach Access Software >|_______________________________________________ >|AccessD mailing list >|AccessD at databaseadvisors.com >|http://databaseadvisors.com/mailman/listinfo/accessd >|Website: http://www.databaseadvisors.com >| >|_______________________________________________ >|AccessD mailing list >|AccessD at databaseadvisors.com >|http://databaseadvisors.com/mailman/listinfo/accessd >|Website: http://www.databaseadvisors.com > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Fri Feb 20 16:31:08 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 20 Feb 2004 15:31:08 -0700 Subject: [AccessD] Faster way to copy files Message-ID: <310980-22004252022318911@christopherhawkins.com> I can't say for usre, but I'd bet good money that if you used that same FileSystemObject approach in a VB6 .dll instead of from inside Access, you'd see a marked performance improvement. Just a thought. -C- ---- Original Message ---- From: prodevmg at yahoo.com To: ms-access-l at po.missouri.edu, accessdevelopers at yahoogroups.com, ms_access at yahoogroups.com, accessd at databaseadvisors.com, Subject: RE: [AccessD] Faster way to copy files Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) >I have used both the CreateObject("Scripting.FileSystemObject") and >the MS Access FileCopy method to copy MS Access front end databases >from a network folder to multiple (upwards to 50) user home >directories and they are both too slow for me. > >Is there a faster method or any optimizing tips anyone can share? > >Thanks again to the Gurus of the Tech World! > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From Lambert.Heenan at AIG.com Fri Feb 20 16:29:46 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 20 Feb 2004 17:29:46 -0500 Subject: [AccessD] Faster way to copy files Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7E92@xlivmbx12.aig.com> The limiting factors when copying files are the sizes of the files and the speed of your network. I don't believe you are going to be able to improve on FileCopy, the Scripting objects method of copying or the CopyFile API. ;-( Lambert > -----Original Message----- > From: Lonnie Johnson [SMTP:prodevmg at yahoo.com] > Sent: Friday, February 20, 2004 2:05 PM > To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; > AccessD solving' > Subject: [AccessD] Faster way to copy files > > I have used both the CreateObject("Scripting.FileSystemObject") and the MS > Access FileCopy method to copy MS Access front end databases from a > network folder to multiple (upwards to 50) user home directories and they > are both too slow for me. > > Is there a faster method or any optimizing tips anyone can share? > > Thanks again to the Gurus of the Tech World! > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 20 16:32:53 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 20 Feb 2004 15:32:53 -0700 Subject: [AccessD] Faster way to copy files Message-ID: <81760-220042520223253428@christopherhawkins.com> P.S. There is also the CopyFile API, whcih you should be able to use form either whthin Access or from within a .dll. Here's the link: http://vbnet.mvps.org/index.html?code/fileapi/copyfile.htm Good luck! -Christopher- ---- Original Message ---- From: prodevmg at yahoo.com To: ms-access-l at po.missouri.edu, accessdevelopers at yahoogroups.com, ms_access at yahoogroups.com, accessd at databaseadvisors.com, Subject: RE: [AccessD] Faster way to copy files Date: Fri, 20 Feb 2004 11:04:33 -0800 (PST) >I have used both the CreateObject("Scripting.FileSystemObject") and >the MS Access FileCopy method to copy MS Access front end databases >from a network folder to multiple (upwards to 50) user home >directories and they are both too slow for me. > >Is there a faster method or any optimizing tips anyone can share? > >Thanks again to the Gurus of the Tech World! > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Fri Feb 20 16:30:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 14:30:00 -0800 Subject: [AccessD] TOAD for MS SQL 2000 References: Message-ID: <40368A68.9030600@shaw.ca> For those of you who like TOAD for Oracle, there is now a version for MS SQL 2000 It appears to work for MSDE too. So might be handy for those without Enterprise Manager. http://www.toadsoft.com/toadss.html Sort of handy to know for consultants; on Oracle sites I am usually always asked if I am familar with TOAD. TOAD is an application development tool built around an advanced Data Browser and a SQL and T-SQL editor. Using TOAD, developers can build and test T-SQL code and can use the Data Browser to quickly access, create and edit database objects. TOAD lets you view tables, indexes, stored procedures and more - all through a multi-tabbed browser. -- Marty Connelly Victoria, B.C. Canada From rusty.hammond at cpiqpc.com Fri Feb 20 17:09:14 2004 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 20 Feb 2004 17:09:14 -0600 Subject: [AccessD] Faster way to copy files Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A0811A92D@cpixchng-1.cpiqpc.net> Just a thought - instead of using a program to copy front ends to everyone, could you put something into the login script that would copy the file every time they login to the network? Rusty -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Friday, February 20, 2004 1:05 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Faster way to copy files I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:49:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:49:35 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B7@main2.marlow.com> May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:51:04 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:51:04 -0600 Subject: [AccessD] OT - file search results save - Thanks solved Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B8@main2.marlow.com> Let me know if you want the VB source code to that .exe. I'd be more then happy to send that to you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Friday, February 20, 2004 10:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - file search results save - Thanks solved Thank you works like a charm Patti > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Thursday, February 19, 2004 07:32 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > ROTFL! Sorry, completely forgot about that! I normalized the path > structure that way, because it was much smaller to represent > everything with > it's own ID. > > Put the following function into that db... > > Function GetFullPath(intRootID As Long, strDriveLetter As String, > strCurrentFolder As String) As String > Dim rs As Recordset > Dim intRoot As Long > Dim strPath As String > Dim strSQL As String > Dim strFolderName As String > intRoot = intRootID > If intRoot = 0 Then > strFolderName = "" > Else > strFolderName = strCurrentFolder & "\" > End If > Do Until intRoot = 0 > strSQL = "SELECT FolderName, RootFolder FROM tblFolders WHERE > FolderKey=" & intRoot > Set rs = CurrentDb.OpenRecordset(strSQL) > intRoot = rs.Fields(1).Value > If intRoot = 0 Then Exit Do > strPath = strPath & rs.Fields(0).Value & "\" > rs.Close > Loop > GetFullPath = strDriveLetter & ":\" & strFolderName & strPath > End Function > > Then use this query...the last field will be the full path of > the file. > > SELECT tblFiles.FileName, tblFiles.FileSize, > GetFullPath([tblFolders].[RootFolder],[DriveLetter],[FolderNam > e]) AS Path > FROM tblFiles INNER JOIN (tblFolders INNER JOIN tblDriveHeader ON > tblFolders.DriveKey = tblDriveHeader.DriveKey) ON > tblFiles.RootFolder = > tblFolders.FolderKey; > > > Drew > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, > Patricia > Sent: Thursday, February 19, 2004 3:29 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT - file search results save - Thanks solved > > > > Thanks for all the suggestions > > Mark Matte sent me a db that gave me what I needed. It > searched out and > enter into a table. all the directories in the drive. Then > searched for the > MDB's and put the filename, size, time, and full path into > another table. I > was able to create a nicely formatted report with the full > path name, file > name, size, and date to send to our unit. I tweaked the forms > to allow me to > search for all files or just A specific file extension. > > Drew's Drive Mapper was another good utility. The only > problem I had with it > was getting the full file path to print correctly. If there > were several > levels of subdirectories I had to try to loop through to > rebuild the full > path. I just really didn't have time to play with the code > needed to do > this. > > The karenware powertool was ok but with the db I was able to > get a better > looking report. > > > Thanks again > Patti > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 17:51:34 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:51:34 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278B9@main2.marlow.com> Let me know how it works for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. From DWUTKA at marlow.com Fri Feb 20 17:53:52 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 17:53:52 -0600 Subject: [AccessD] Faster way to copy files Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BA@main2.marlow.com> There is an API to copy files. Don't know if it's faster or not. When I am manually copying files, command line copies are always faster then copy/pastes from windows. So you may want to try a batch file approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 1:05 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Faster way to copy files I have used both the CreateObject("Scripting.FileSystemObject") and the MS Access FileCopy method to copy MS Access front end databases from a network folder to multiple (upwards to 50) user home directories and they are both too slow for me. Is there a faster method or any optimizing tips anyone can share? Thanks again to the Gurus of the Tech World! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ 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 Feb 20 18:14:41 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2004 10:14:41 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278B7@main2.marlow.com> Message-ID: <40372F91.1375.39EFC9@localhost> On 20 Feb 2004 at 17:49, DWUTKA at marlow.com wrote: > > Instead of have a record per question, why not store all of the answers in 1 > record. The easiest method would be to just create a string, of the > answers. (12012111002211000). Question 1 would be mid([MyField],1,1) > Question 2 would be Mid([MyField],2,1), and so on. > > That does 2 things for you. One record a call, will knock quite a bit of > storage space, and by using a string, instead of Long values, you are only > using 1 byte per question + 1 extra byte per call, instead of 4 bytes for > each question. > Aren't strings stored in A2K onwards as Unicode ie two bytes per character? Storing the answers as 25 separate Byte fields takes up less space (even if it is only one byte per character + 1 extra) and saves all that string manipulation. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Fri Feb 20 18:23:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Feb 2004 16:23:53 -0800 Subject: [AccessD] Table Structure questions Message-ID: The problem with that approach shows up when you want to analyze the data, Drew. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Friday, February 20, 2004 3:50 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Table Structure questions May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 18:25:02 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 18:25:02 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BD@main2.marlow.com> Sorry, use 97 for almost all of my backends....so I keep forgetting about the Unicode issue! However, what are you LINKING the records in that table with? Each record, in a one per question table, would need a caller ID (Long), Question Number (could be byte), then the answer (another byte). Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Friday, February 20, 2004 6:15 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Table Structure questions On 20 Feb 2004 at 17:49, DWUTKA at marlow.com wrote: > > Instead of have a record per question, why not store all of the answers in 1 > record. The easiest method would be to just create a string, of the > answers. (12012111002211000). Question 1 would be mid([MyField],1,1) > Question 2 would be Mid([MyField],2,1), and so on. > > That does 2 things for you. One record a call, will knock quite a bit of > storage space, and by using a string, instead of Long values, you are only > using 1 byte per question + 1 extra byte per call, instead of 4 bytes for > each question. > Aren't strings stored in A2K onwards as Unicode ie two bytes per character? Storing the answers as 25 separate Byte fields takes up less space (even if it is only one byte per character + 1 extra) and saves all that string manipulation. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 20 18:57:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 20 Feb 2004 18:57:40 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BE@main2.marlow.com> Not too difficult to display the data in a query that splits the answers up. I know, it's a trade off. Normalize the data, for easy reporting, but suck up a lot of extra storage space. Or crunch what you store, to save space, and lose speed when you want to display/analyze the data. Now there's a suggestion for an upgrade to Jet. Provide a crunching/speed capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, February 20, 2004 6:24 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Table Structure questions The problem with that approach shows up when you want to analyze the data, Drew. Charlotte Foust -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Friday, February 20, 2004 3:50 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Table Structure questions May I make a little suggestion, if you worried about the number of rows? Instead of have a record per question, why not store all of the answers in 1 record. The easiest method would be to just create a string, of the answers. (12012111002211000). Question 1 would be mid([MyField],1,1) Question 2 would be Mid([MyField],2,1), and so on. That does 2 things for you. One record a call, will knock quite a bit of storage space, and by using a string, instead of Long values, you are only using 1 byte per question + 1 extra byte per call, instead of 4 bytes for each question. Now, you could get even 'skimpier' then that, if you decided to get into a little bit masking: With 3 values, you have to use at least 2 bits. But that still means you can record 4 answers with 1 byte. You could do this with a class. For ease of math, you could use the first bit as 1, the second as 2 and no bits for 0. Or, you could think in advance, and leave yourself a possibility of 0,1,2, and 3. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Friday, February 20, 2004 8:10 AM To: accessd at databaseadvisors.com Subject: [AccessD] Table Structure questions Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark _________________________________________________________________ Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 27 21:42:46 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 27 Feb 2004 19:42:46 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> <4036869B.4080601@shaw.ca> Message-ID: <03f501c3fdac$ee527750$6801a8c0@HAL9002> Can it be imported from an mde into another MDB like a regular table or will it not show in the list of objects to be imported? Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2004 2:13 PM Subject: Re: [AccessD] Hiding Table in mde > You can sort of hide the table if you preface table name with USys. It > can then only be seen if you turn on System Objects view in options > > Joseph O'Connell wrote: > > >Rocky, > > > >Search the archives for "Copy Protection". There was a long discussion of > >this topic and recommendations for several add-in products during October > >2001. > > > >Joe O'Connell > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software > >To: Access Developers discussion and problem solving > > > >Date: Wednesday, February 18, 2004 12:45 PM > >Subject: Re: [AccessD] Hiding Table in mde > > > > > >|A.D.: > >| > >|What I'm trying to do is copy protect my program by putting a data bomb in > >|the opening form. Right now it's hard coded into the module's OnOpen > >event. > >|I was going to put the date bomb into a table but that table is accessible > >|to the user even in an mde. > >| > >|So I was trying to hide the table. But a more direct way would be to be > >|able to alter the line of code in the mde which contains the expire date. > >| > >|I've cooked up a more elaborate scheme now but haven't settled on a final > >|approach. I want the user to be able to call or email their serial number > >|and I give them a code to change the expiration date in their system. I've > >|done a key like this before for another client so I've got all the > >|code/decode stuff worked out. > >| > >|I'm just searching around for the simplest solution to protecting my > >|product. > >| > >|Regards, > >| > >|Rocky > >| > >|----- Original Message ----- > >|From: "A.D.Tejpal" > >|To: "Access Developers discussion and problem solving" > >| > >|Sent: Wednesday, February 18, 2004 8:57 AM > >|Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >|Rocky, > >| > >| Could you kindly confirm that you wish to add a new program module for > >|manipulating existing objects in an mde - without having to go through the > >|conventional steps of first altering the code in original mdb and then > >|converting it into a fresh mde. > >| > >| If this be the case, an interesting solution could be adopted, so as to > >|meet your requirement. > >| > >|Regards, > >|A.D.Tejpal > >|-------------- > >| ----- Original Message ----- > >| From: Charlotte Foust > >| To: Access Developers discussion and problem solving > >| Sent: Tuesday, February 17, 2004 23:10 > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| Code can't be modified in an mde at all, programmatically or otherwise. > >| That's the whole point. > >| > >| Charlotte Foust > >| > >| -----Original Message----- > >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >| Sent: Sunday, February 15, 2004 9:55 PM > >| To: Access Developers discussion and problem solving > >| Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >| Doug: > >| > >| That would work but I'd prefer not to have the file external. Can code > >| be modified programmatically in an mde? > >| > >| Rocky > >| > >| ----- Original Message ----- > >| From: "Doug Murphy" > >| To: "'Access Developers discussion and problem solving'" > >| > >| Sent: Sunday, February 15, 2004 12:38 PM > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| > One way to do this is to not put it in the database, but use an > >| > external file that is encrypted. Set the system up so it won't run if > >| > >| > the file isn't present and make the file hard for folks to find. > >| > > >| > Doug > >| > > >| > Douglas Murphy > >| > Murphy's Creativity > >| > (619) 334-5121 > >| > doug at murphyscreativity.com > >| > www.murphyscreativity.com > >| > > >| > > >| > > >| > > >| > -----Original Message----- > >| > From: accessd-bounces at databaseadvisors.com > >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >| > Smolin > >| > - Beach Access Software > >| > Sent: Sunday, February 15, 2004 7:41 AM > >| > To: AccessD at databaseadvisors.com > >| > Subject: [AccessD] Hiding Table in mde > >| > > >| > > >| > Dear List: > >| > > >| > Is there a way to prevent a user from importing a table from an mde > >| > into an mdb without putting a password on the mde? I'm trying to > >| > build a serial number/upgrade/license extension function into an app > >| > and will be storing the data in a front end table. > >| > > >| > TIA, > >| > > >| > Rocky Smolin > >| > Beach Access Software > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > >| > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Fri Feb 20 22:24:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 20 Feb 2004 20:24:57 -0800 Subject: [AccessD] Hiding Table in mde References: <037301c3f659$1abcaa00$6701a8c0@joe> <4036869B.4080601@shaw.ca> <03f501c3fdac$ee527750$6801a8c0@HAL9002> Message-ID: <4036DD99.1040205@shaw.ca> In Access 97 unless you have system objects option set to visible in the mde, you cannot see it to import a copy of the table. I don't know about grabbing it via vba code though. Rocky Smolin - Beach Access Software wrote: >Can it be imported from an mde into another MDB like a regular table or will >it not show in the list of objects to be imported? > >Rocky > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 20, 2004 2:13 PM >Subject: Re: [AccessD] Hiding Table in mde > > > > >>You can sort of hide the table if you preface table name with USys. It >>can then only be seen if you turn on System Objects view in options >> >>Joseph O'Connell wrote: >> >> >> >>>Rocky, >>> >>>Search the archives for "Copy Protection". There was a long discussion >>> >>> >of > > >>>this topic and recommendations for several add-in products during October >>>2001. >>> >>>Joe O'Connell >>> >>> >>>-----Original Message----- >>>From: Rocky Smolin - Beach Access Software >>>To: Access Developers discussion and problem solving >>> >>>Date: Wednesday, February 18, 2004 12:45 PM >>>Subject: Re: [AccessD] Hiding Table in mde >>> >>> >>>|A.D.: >>>| >>>|What I'm trying to do is copy protect my program by putting a data bomb >>> >>> >in > > >>>|the opening form. Right now it's hard coded into the module's OnOpen >>>event. >>>|I was going to put the date bomb into a table but that table is >>> >>> >accessible > > >>>|to the user even in an mde. >>>| >>>|So I was trying to hide the table. But a more direct way would be to be >>>|able to alter the line of code in the mde which contains the expire >>> >>> >date. > > >>>| >>>|I've cooked up a more elaborate scheme now but haven't settled on a >>> >>> >final > > >>>|approach. I want the user to be able to call or email their serial >>> >>> >number > > >>>|and I give them a code to change the expiration date in their system. >>> >>> >I've > > >>>|done a key like this before for another client so I've got all the >>>|code/decode stuff worked out. >>>| >>>|I'm just searching around for the simplest solution to protecting my >>>|product. >>>| >>>|Regards, >>>| >>>|Rocky >>>| >>>|----- Original Message ----- >>>|From: "A.D.Tejpal" >>>|To: "Access Developers discussion and problem solving" >>>| >>>|Sent: Wednesday, February 18, 2004 8:57 AM >>>|Subject: Re: [AccessD] Hiding Table in mde >>>| >>>| >>>|Rocky, >>>| >>>| Could you kindly confirm that you wish to add a new program module >>> >>> >for > > >>>|manipulating existing objects in an mde - without having to go through >>> >>> >the > > >>>|conventional steps of first altering the code in original mdb and then >>>|converting it into a fresh mde. >>>| >>>| If this be the case, an interesting solution could be adopted, so as >>> >>> >to > > >>>|meet your requirement. >>>| >>>|Regards, >>>|A.D.Tejpal >>>|-------------- >>>| ----- Original Message ----- >>>| From: Charlotte Foust >>>| To: Access Developers discussion and problem solving >>>| Sent: Tuesday, February 17, 2004 23:10 >>>| Subject: RE: [AccessD] Hiding Table in mde >>>| >>>| >>>| Code can't be modified in an mde at all, programmatically or >>> >>> >otherwise. > > >>>| That's the whole point. >>>| >>>| Charlotte Foust >>>| >>>| -----Original Message----- >>>| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>>| Sent: Sunday, February 15, 2004 9:55 PM >>>| To: Access Developers discussion and problem solving >>>| Subject: Re: [AccessD] Hiding Table in mde >>>| >>>| >>>| Doug: >>>| >>>| That would work but I'd prefer not to have the file external. Can >>> >>> >code > > >>>| be modified programmatically in an mde? >>>| >>>| Rocky >>>| >>>| ----- Original Message ----- >>>| From: "Doug Murphy" >>>| To: "'Access Developers discussion and problem solving'" >>>| >>>| Sent: Sunday, February 15, 2004 12:38 PM >>>| Subject: RE: [AccessD] Hiding Table in mde >>>| >>>| >>>| > One way to do this is to not put it in the database, but use an >>>| > external file that is encrypted. Set the system up so it won't run >>> >>> >if > > >>>| >>>| > the file isn't present and make the file hard for folks to find. >>>| > >>>| > Doug >>>| > >>>| > Douglas Murphy >>>| > Murphy's Creativity >>>| > (619) 334-5121 >>>| > doug at murphyscreativity.com >>>| > www.murphyscreativity.com >>>| > >>>| > >>>| > >>>| > >>>| > -----Original Message----- >>>| > From: accessd-bounces at databaseadvisors.com >>>| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>>| > Smolin >>>| > - Beach Access Software >>>| > Sent: Sunday, February 15, 2004 7:41 AM >>>| > To: AccessD at databaseadvisors.com >>>| > Subject: [AccessD] Hiding Table in mde >>>| > >>>| > >>>| > Dear List: >>>| > >>>| > Is there a way to prevent a user from importing a table from an mde >>>| > into an mdb without putting a password on the mde? I'm trying to >>>| > build a serial number/upgrade/license extension function into an app >>>| > and will be storing the data in a front end table. >>>| > >>>| > TIA, >>>| > >>>| > Rocky Smolin >>>| > Beach Access Software >>>|_______________________________________________ >>>|AccessD mailing list >>>|AccessD at databaseadvisors.com >>>|http://databaseadvisors.com/mailman/listinfo/accessd >>>|Website: http://www.databaseadvisors.com >>>| >>>|_______________________________________________ >>>|AccessD mailing list >>>|AccessD at databaseadvisors.com >>>|http://databaseadvisors.com/mailman/listinfo/accessd >>>|Website: http://www.databaseadvisors.com >>> >>> >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sat Feb 21 04:02:26 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Feb 2004 11:02:26 +0100 Subject: [AccessD] Faster way to copy files In-Reply-To: <20040220190433.57499.qmail@web20413.mail.yahoo.com> References: <20040220190433.57499.qmail@web20413.mail.yahoo.com> Message-ID: <1695414435.20040221110226@cactus.dk> Hi Lonnie You may set up a task scheduler on the server or pick a separate utility: http://windows.about.com/cs/batchjobschedprod/ or setup VNC or other remote control of the server. /gustav > I have used both the CreateObject("Scripting.FileSystemObject") and > the MS Access FileCopy method to copy MS Access front end databases > from a network folder to multiple (upwards to 50) user home > directories and they are both too slow for me. > Is there a faster method or any optimizing tips anyone can share? From stuart at lexacorp.com.pg Sat Feb 21 04:30:17 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2004 20:30:17 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278BD@main2.marlow.com> Message-ID: <4037BFD9.25690.26D8437@localhost> On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > Sorry, use 97 for almost all of my backends....so I keep forgetting about > the Unicode issue! > > However, what are you LINKING the records in that table with? Each record, > in a one per question table, would need a caller ID (Long), Question Number > (could be byte), then the answer (another byte). > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) > No, I agreed completely with your idea of storing all the answers in one record, I just suggested stotring the anwers in separate fields rather than a string - so you have CallerID plus 25 byte fields rather than CallerID plus one string field storing 25 characters. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Sat Feb 21 10:25:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 21 Feb 2004 11:25:10 -0500 Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: <20040220174002.10545.qmail@web20416.mail.yahoo.com> Message-ID: Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [AccessD] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:39:53 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:39:53 -0000 Subject: [AccessD] Table Structure questions In-Reply-To: <4037BFD9.25690.26D8437@localhost> Message-ID: <003f01c3f8a1$b6fb9530$bf00a8c0@dabsight> I think you've all lost the plot, mostly: 1. Each individual answer *has* to identify the question it relates to, if you want to make any sense of the analysis! (Re-read Mark's posting, repeated below. There are different simultaneously existing sets of 25 questions, and each set varies with time.) 2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've been working too much with SQLS lately, but this minuscule amount, coupled with the simplicity and flexibility of design, and ease of querying/reporting, is "more efficient" (Mark's phrase) than groping about in strings. IF (really?) you think that disk space is the only criterion, then you shouldn't be wasting a whole byte on each answer, when a couple of bits would do! Stick to Normal form, unless there's a GOOD reason not to. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 21 February 2004 10:30 > To: Access Developers discussion and problemsolving > Subject: RE: [AccessD] Table Structure questions > > > On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > > > Sorry, use 97 for almost all of my backends....so I keep forgetting > > about the Unicode issue! > > > > However, what are you LINKING the records in that table with? Each > > record, in a one per question table, would need a caller ID (Long), > > Question Number (could be byte), then the answer (another byte). > > > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in > > Unicode!) > > > > No, I agreed completely with your idea of storing all the answers in > one record, I just suggested stotring the anwers in separate fields > rather than a string - so you have CallerID plus 25 byte fields > rather than CallerID plus one string field storing 25 characters. > > ****************************************** Mark's original posting: ****************************************** Hello All, I have been asked to set up a call monitoring db for several different groups. A few pieces of data will be captured for each call and then 25 questions will be answered for each call. Each group may or may not have the same 25 questions...which they can add or remove throughout the month. Initially I wanted 2 main tables for data collection(1 for call info and 1 for Answers)...The Answers table would have 1 row per question(instead of a column for each)...so 25 records per call monitored. I thought this would be best so as new questions were added and discontinued...there would be no need to change the forms,tables, or reports...but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?(Also, the answers are all 1,2,or 0...so its very little info...just a lot of rows) Thanks, Mark ****************************************** From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From jwelz at hotmail.com Sat Feb 21 11:53:21 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 10:53:21 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Pet peeve - Microsoft documentation and book authors that insist that the the first dimension of 2 dimensional array is the row and the second is the column. I see that this carries over into the .Net books I'm reading. When was the last time you used a Recordset .getRows method and had the first index refer to the record and the second to the field? When was the last time you redimensioned an array to add a column rather than to add or remove a number of rows (records)? How often does a table/query change in size as to the number of rows (records) in comparison to the number of columns (fields)? It doesn't really matter which it is, but with the old versions of VB/A, you could only resize the last index of a multi-dimensioned array (without copying to a new array anyway) so the only practical usage is to add rows to a fixed number of columns which is in fact how it was implemented. Then the authors (Dianne Zak for example) and even Microsoft help deliberately explain them to be varArray(RowIndex, ColIndex) when in the actual practical implementation it is nearly always (ColIndex, RowIndex). It doesn't matter which it is because it is really just an abstract data structure that you can in theory map as you please. The problem I have is when documentation insists on defining it in an impractical manner in the context of getrows and other database usage making it obvious that the VB data people didn't speak with the VB language people. I had hoped that by .Net they would have a chance to write new documentation and finally get it right but I've been reading the Sybex Maastering Visual Basic .NET Database Programming, Visual Basic .NET Developer's Handbook and Mastering Visual Basic .NET and Evangelos Petroutsos keeps right on defining it backwards when he could have just shut up. Why is it that within a single company and a single development platform, developers insist on driving on different sides of the road? Is there a means to lodge a complaint with Microsoft so that the next time they replace the entire language they might finally get the documentaion consistent? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From jwelz at hotmail.com Sat Feb 21 12:09:40 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 11:09:40 -0700 Subject: [AccessD] Table Structure questions Message-ID: Start normalized and denormalize should performance issues arise. Querying bit flags can be very fast and efficient but there is a learning curve and it is quite steep if you want to return a recordset using a where condition of 'Answered yes to a certain set of questions, A to another and not D to yet another set ''OR'' another set of criteria'. If there are standard groups of questions that are asked over a period of time, you may want to use a junction table between a table of questions and a defined question block. If the questions in a ResponderSurvey are generated ad hoc it will be necessary to store the foreign key of each question and its answer in each survey record. I didn't catch the start of this thread but the topic is one of my favorites. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "DJK(John) Robinson" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] Table Structure questions >Date: Sat, 21 Feb 2004 17:39:53 -0000 >MIME-Version: 1.0 >X-Originating-IP: [81.129.30.231] >X-Originating-Email: [djkr at msn.com] >X-Sender: djkr at msn.com >Received: from mc12-f1.hotmail.com ([65.54.167.137]) by mc12-s4.hotmail.com >with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 09:42:13 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f1.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >09:41:27 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LHeBM32066;Sat, 21 Feb 2004 11:40:11 -0600 >Received: from hotmail.com (bay5-dav21.bay5.hotmail.com [65.54.172.125])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LHduM31764for >; Sat, 21 Feb 2004 11:39:56 -0600 >Received: from mail pickup service by hotmail.com with Microsoft >SMTPSVC;Sat, 21 Feb 2004 09:39:56 -0800 >Received: from 81.129.30.231 by bay5-dav21.bay5.hotmail.com with DAV;Sat, >21 Feb 2004 17:39:56 +0000 >X-Message-Info: vGzX0e+ktu7ZFEgZNgxxTXZAKJwb4Y3e/D28QRQNxYg= >Message-ID: <003f01c3f8a1$b6fb9530$bf00a8c0 at dabsight> >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook, Build 10.0.4510 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 >In-Reply-To: <4037BFD9.25690.26D8437 at localhost> >X-OriginalArrivalTime: 21 Feb 2004 17:39:56.0131 >(UTC)FILETIME=[B842BB30:01C3F8A1] >X-MIME-Autoconverted: from quoted-printable to 8bit by databaseadvisors.com >idi1LHduM31764 >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com > >I think you've all lost the plot, mostly: > >1. Each individual answer *has* to identify the question it relates to, >if you want to make any sense of the analysis! (Re-read Mark's posting, >repeated below. There are different simultaneously existing sets of 25 >questions, and each set varies with time.) > >2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've >been working too much with SQLS lately, but this minuscule amount, coupled >with the simplicity and flexibility of design, and ease of >querying/reporting, is "more efficient" (Mark's phrase) than groping about >in strings. >IF (really?) you think that disk space is the only criterion, then you >shouldn't be wasting a whole byte on each answer, when a couple of bits >would do! > >Stick to Normal form, unless there's a GOOD reason not to. > >John > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Stuart McLachlan > > Sent: 21 February 2004 10:30 > > To: Access Developers discussion and problemsolving > > Subject: RE: [AccessD] Table Structure questions > > > > > > On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > > > > > Sorry, use 97 for almost all of my backends....so I keep forgetting > > > about the Unicode issue! > > > > > > However, what are you LINKING the records in that table with? Each > > > record, in a one per question table, would need a caller ID (Long), > > > Question Number (could be byte), then the answer (another byte). > > > > > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in > > > Unicode!) > > > > > > > No, I agreed completely with your idea of storing all the answers in > > one record, I just suggested stotring the anwers in separate fields > > rather than a string - so you have CallerID plus 25 byte fields > > rather than CallerID plus one string field storing 25 characters. > > > > >****************************************** >Mark's original posting: >****************************************** >Hello All, > >I have been asked to set up a call monitoring db for several different >groups. A few pieces of data will be captured for each call and then 25 >questions will be answered for each call. Each group may or may not have >the same 25 questions...which they can add or remove throughout the month. >Initially I wanted 2 main tables for data collection(1 for call info and 1 >for Answers)...The Answers table would have 1 row per question(instead of a >column for each)...so 25 records per call monitored. I thought this would >be best so as new questions were added and discontinued...there would be no >need to change the forms,tables, or reports...but with this method I will >be > >over 1 million records in 6 months. I've informed them they will need some >BE other than access for this scenario. > >The question I have...is there a more efficient way to store this type of >data?(Also, the answers are all 1,2,or 0...so its very little info...just a >lot of rows) > >Thanks, > >Mark >****************************************** >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From gustav at cactus.dk Sat Feb 21 12:10:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Feb 2004 19:10:45 +0100 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: References: Message-ID: <1634712864.20040221191045@cactus.dk> Hi J?rgen! Are you back with us ... or is this a standalone rant? /gustav From Subscriptions at servicexp.com Sat Feb 21 12:13:10 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Sat, 21 Feb 2004 13:13:10 -0500 Subject: [AccessD] Shutting down applications if they are not being used In-Reply-To: Message-ID: That is exactly what I ran into.... Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 21, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Sat Feb 21 13:05:38 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 14:05:38 -0500 Subject: [AccessD] Thanks, Bryan In-Reply-To: <004001c3f8a2$b907c370$bf00a8c0@dabsight> References: <40374635.14782.C02296@localhost> Message-ID: <403765B2.27469.13B24C9@localhost> On 21 Feb 2004 at 17:47, DJK(John) Robinson wrote: > Thanks for your work in analysing and solving the cross-posting > problem. Those of us subscribed to more than one list will truly > benefit! Alas, as you have probably noticed, it's not fixed. It's not something that I can fix. I need to contact an external postmaster to fix their relay server :( -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-SQLServer] [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [AccessD] [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From prodevmg at yahoo.com Sat Feb 21 13:45:28 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sat, 21 Feb 2004 11:45:28 -0800 (PST) Subject: [AccessD] Hiding Table in mde In-Reply-To: <03f501c3fdac$ee527750$6801a8c0@HAL9002> Message-ID: <20040221194528.69998.qmail@web20405.mail.yahoo.com> Why not just hardcode an expiration date in a module and call it from an autoexec? If Date() >= #06/30/04# Then MsgBox "Sorry, this db has expired" Quit 'Shutdown the db End If Rocky Smolin - Beach Access Software wrote: Can it be imported from an mde into another MDB like a regular table or will it not show in the list of objects to be imported? Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2004 2:13 PM Subject: Re: [AccessD] Hiding Table in mde > You can sort of hide the table if you preface table name with USys. It > can then only be seen if you turn on System Objects view in options > > Joseph O'Connell wrote: > > >Rocky, > > > >Search the archives for "Copy Protection". There was a long discussion of > >this topic and recommendations for several add-in products during October > >2001. > > > >Joe O'Connell > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software > >To: Access Developers discussion and problem solving > > > >Date: Wednesday, February 18, 2004 12:45 PM > >Subject: Re: [AccessD] Hiding Table in mde > > > > > >|A.D.: > >| > >|What I'm trying to do is copy protect my program by putting a data bomb in > >|the opening form. Right now it's hard coded into the module's OnOpen > >event. > >|I was going to put the date bomb into a table but that table is accessible > >|to the user even in an mde. > >| > >|So I was trying to hide the table. But a more direct way would be to be > >|able to alter the line of code in the mde which contains the expire date. > >| > >|I've cooked up a more elaborate scheme now but haven't settled on a final > >|approach. I want the user to be able to call or email their serial number > >|and I give them a code to change the expiration date in their system. I've > >|done a key like this before for another client so I've got all the > >|code/decode stuff worked out. > >| > >|I'm just searching around for the simplest solution to protecting my > >|product. > >| > >|Regards, > >| > >|Rocky > >| > >|----- Original Message ----- > >|From: "A.D.Tejpal" > >|To: "Access Developers discussion and problem solving" > >| > >|Sent: Wednesday, February 18, 2004 8:57 AM > >|Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >|Rocky, > >| > >| Could you kindly confirm that you wish to add a new program module for > >|manipulating existing objects in an mde - without having to go through the > >|conventional steps of first altering the code in original mdb and then > >|converting it into a fresh mde. > >| > >| If this be the case, an interesting solution could be adopted, so as to > >|meet your requirement. > >| > >|Regards, > >|A.D.Tejpal > >|-------------- > >| ----- Original Message ----- > >| From: Charlotte Foust > >| To: Access Developers discussion and problem solving > >| Sent: Tuesday, February 17, 2004 23:10 > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| Code can't be modified in an mde at all, programmatically or otherwise. > >| That's the whole point. > >| > >| Charlotte Foust > >| > >| -----Original Message----- > >| From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >| Sent: Sunday, February 15, 2004 9:55 PM > >| To: Access Developers discussion and problem solving > >| Subject: Re: [AccessD] Hiding Table in mde > >| > >| > >| Doug: > >| > >| That would work but I'd prefer not to have the file external. Can code > >| be modified programmatically in an mde? > >| > >| Rocky > >| > >| ----- Original Message ----- > >| From: "Doug Murphy" > >| To: "'Access Developers discussion and problem solving'" > >| > >| Sent: Sunday, February 15, 2004 12:38 PM > >| Subject: RE: [AccessD] Hiding Table in mde > >| > >| > >| > One way to do this is to not put it in the database, but use an > >| > external file that is encrypted. Set the system up so it won't run if > >| > >| > the file isn't present and make the file hard for folks to find. > >| > > >| > Doug > >| > > >| > Douglas Murphy > >| > Murphy's Creativity > >| > (619) 334-5121 > >| > doug at murphyscreativity.com > >| > www.murphyscreativity.com > >| > > >| > > >| > > >| > > >| > -----Original Message----- > >| > From: accessd-bounces at databaseadvisors.com > >| > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >| > Smolin > >| > - Beach Access Software > >| > Sent: Sunday, February 15, 2004 7:41 AM > >| > To: AccessD at databaseadvisors.com > >| > Subject: [AccessD] Hiding Table in mde > >| > > >| > > >| > Dear List: > >| > > >| > Is there a way to prevent a user from importing a table from an mde > >| > into an mdb without putting a password on the mde? I'm trying to > >| > build a serial number/upgrade/license extension function into an app > >| > and will be storing the data in a front end table. > >| > > >| > TIA, > >| > > >| > Rocky Smolin > >| > Beach Access Software > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > >| > >|_______________________________________________ > >|AccessD mailing list > >|AccessD at databaseadvisors.com > >|http://databaseadvisors.com/mailman/listinfo/accessd > >|Website: http://www.databaseadvisors.com > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From jwelz at hotmail.com Sat Feb 21 14:31:52 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 21 Feb 2004 13:31:52 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Hi Gustav: I thought I'd hang around a bit. Did some schooling for a year and dabbled a bit in some ASP, Java and more recently, the .Net technologies and now my former employers have decided to upgrade everything I did for them to Office 2003. Subscribing to this list seemed like a good idea as I expect I may need some pointers here or there. The conversion project looks like it will probably begin next weekend. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Gustav Brock >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row >Date: Sat, 21 Feb 2004 19:10:45 +0100 >MIME-Version: 1.0 >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >10:11:04 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb >2004 10:11:04 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 >Received: from relay.webpartner.dk (relay.webpartner.dk [195.184.96.12])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for >; Sat, 21 Feb 2004 12:10:47 -0600 >Received: from gustav (unknown [213.150.48.58])by relay.webpartner.dk >(Postfix) with ESMTP id CACBFCB5A7for ;Sat, >21 Feb 2004 19:10:45 +0100 (CET) >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= >X-Mailer: The Bat! (v1.62i) Business >Organization: Cactus Data ApS >Message-ID: <1634712864.20040221191045 at cactus.dk> >In-Reply-To: >References: >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From mwp.reid at qub.ac.uk Sat Feb 21 14:42:03 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 21 Feb 2004 20:42:03 -0000 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <000d01c3f8bb$2b46f830$e60a6351@martin1> Great to see you back home Martin ----- Original Message ----- From: "J?rgen Welz" To: Sent: Saturday, February 21, 2004 8:31 PM Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row Hi Gustav: I thought I'd hang around a bit. Did some schooling for a year and dabbled a bit in some ASP, Java and more recently, the .Net technologies and now my former employers have decided to upgrade everything I did for them to Office 2003. Subscribing to this list seemed like a good idea as I expect I may need some pointers here or there. The conversion project looks like it will probably begin next weekend. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Gustav Brock >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row >Date: Sat, 21 Feb 2004 19:10:45 +0100 >MIME-Version: 1.0 >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb 2004 >10:11:04 -0800 >Received: from databaseadvisors.com ([209.135.140.44]) by >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sat, 21 Feb >2004 10:11:04 -0800 >Received: from databaseadvisors.com (databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 >Received: from relay.webpartner.dk (relay.webpartner.dk [195.184.96.12])by >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for >; Sat, 21 Feb 2004 12:10:47 -0600 >Received: from gustav (unknown [213.150.48.58])by relay.webpartner.dk >(Postfix) with ESMTP id CACBFCB5A7for ;Sat, >21 Feb 2004 19:10:45 +0100 (CET) >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= >X-Mailer: The Bat! (v1.62i) Business >Organization: Cactus Data ApS >Message-ID: <1634712864.20040221191045 at cactus.dk> >In-Reply-To: >References: >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.4 >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Help: >List-Post: >List-Subscribe: >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Sat Feb 21 15:04:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 21 Feb 2004 15:04:33 -0600 Subject: [AccessD] Table Structure questions Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278BF@main2.marlow.com> Ya, but that leads to 'fixing' the number of questions to 25, unless you make table design changes. The original question asked for an approach where size would be smaller, and no table changes would be needed in the future. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 4:30 AM Subject: RE: [AccessD] Table Structure questions On 20 Feb 2004 at 18:25, DWUTKA at marlow.com wrote: > Sorry, use 97 for almost all of my backends....so I keep forgetting about > the Unicode issue! > > However, what are you LINKING the records in that table with? Each record, > in a one per question table, would need a caller ID (Long), Question Number > (could be byte), then the answer (another byte). > > Now you have 6 bytes per answer (instead of 1 in ASCII, or 2 in Unicode!) > No, I agreed completely with your idea of storing all the answers in one record, I just suggested stotring the anwers in separate fields rather than a string - so you have CallerID plus 25 byte fields rather than CallerID plus one string field storing 25 characters. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Sat Feb 21 15:07:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 21 Feb 2004 15:07:57 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 10:25 AM Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Sat Feb 21 15:34:48 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 21:34:48 -0000 Subject: [AccessD] Thanks, Bryan In-Reply-To: <403765B2.27469.13B24C9@localhost> Message-ID: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> Ouch, yes! I got six non-deliveries *and* bounced off this list! Let me know off-list if you want any details, Bryan. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 21 February 2004 19:06 > To: Access Developers discussion and problemsolving > Subject: Re: [AccessD] Thanks, Bryan > > > On 21 Feb 2004 at 17:47, DJK(John) Robinson wrote: > > > Thanks for your work in analysing and solving the cross-posting > > problem. Those of us subscribed to more than one list will truly > > benefit! > > Alas, as you have probably noticed, it's not fixed. > > It's not something that I can fix. I need to contact an external > postmaster to fix their relay server :( > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Code so clean...you can eat off it. > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > From d.dick at uws.edu.au Sat Feb 21 17:01:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Sun, 22 Feb 2004 10:01:00 +1100 Subject: [AccessD] A2K:Data Type Mismatch in expression References: <40360972.2392.146DCE1@localhost> Message-ID: <003701c3f8ce$94215630$25669a89@DDICK> Hi Stuart Thank you, Thank you, Thank you Awesome I'll never get this SQL syntax :-( < sigh> That's why I have this list :-)) Thanks again Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Friday, February 20, 2004 2:19 PM Subject: Re: [AccessD] A2K:Data Type Mismatch in expression > This time, I'd guess that StudentID in NOT a text field, so you don't > want the two single quotes at all. > > You seem to be missing the first field name in the select statement > > You are missing a closing double quote after & "FROM tblStudents > (note you also need a space after the tblStudents and before the > double quote) > > So try: > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > & "FROM tblStudents " _ > & "WHERE (((tblStudents.StudentID)=" _ > & [Forms]![frmStudents]![txtStudentID] & "));" > > > On 20 Feb 2004 at 13:30, Darren DICK wrote: > > > Hi Guys > > This is basically the same question I asked the other day that Stuart and some others answered > > This is basically the same code (that works elsewhere by the way) copied and pasted but with a slightly > > different SQL. > > I have tried to follow (as closely as possible) the syntax that Stuart recommended with the single > > quotes and stuff, but I just cant get it right > > > > I am continually getting either "Data Type Mismatch in expression" or, depending on what I do or do not type > > "No Value give for one or more parameters" AAAAARRRRGGGHHHHH!!!!! > > > > '+++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Dim selSQL As String > > Dim rs As Object > > Dim con As Object > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > selSQL = "SELECT tblStudents, tblStudents.StudentID " _ > > & "FROM tblStudents & "WHERE (((tblStudents.StudentID)='" & [Forms]![frmStudents]![txtStudentID] & "'));" > > > > rs.Open selSQL, con, 1 ', 3 '<====================Debug fails here > > > > With rs > > MsgBox .RecordCount > > x = .RecordCount > > End With > > '++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Feb 21 17:24:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 22 Feb 2004 09:24:19 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278BF@main2.marlow.com> Message-ID: <40387543.11550.118C8D@localhost> On 21 Feb 2004 at 15:04, DWUTKA at marlow.com wrote: > Ya, but that leads to 'fixing' the number of questions to 25, unless you > make table design changes. > > The original question asked for an approach where size would be smaller, and > no table changes would be needed in the future. > Actually, I read it as always 25 questions, but the specific questions could change over time, so 25 byte fields would do it is as long as you also had a pointer to the question set at the time. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Sat Feb 21 17:30:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 22 Feb 2004 09:30:33 +1000 Subject: [AccessD] Table Structure questions In-Reply-To: <003f01c3f8a1$b6fb9530$bf00a8c0@dabsight> References: <4037BFD9.25690.26D8437@localhost> Message-ID: <403876B9.2769.174268@localhost> On 21 Feb 2004 at 17:39, DJK(John) Robinson wrote: > I think you've all lost the plot, mostly: > > 1. Each individual answer *has* to identify the question it relates to, > if you want to make any sense of the analysis! (Re-read Mark's posting, > repeated below. There are different simultaneously existing sets of 25 > questions, and each set varies with time.) > > 2. So a million records at 6 bytes each gives you ... 6 MB! Maybe I've > been working too much with SQLS lately, but this minuscule amount, coupled > with the simplicity and flexibility of design, and ease of > querying/reporting, is "more efficient" (Mark's phrase) than groping about > in strings. > IF (really?) you think that disk space is the only criterion, then you > shouldn't be wasting a whole byte on each answer, when a couple of bits > would do! > > Stick to Normal form, unless there's a GOOD reason not to. > It's not the overall size, it's the number of records. As Mark said: ".but with this method I will be over 1 million records in 6 months. I've informed them they will need some BE other than access for this scenario. The question I have...is there a more efficient way to store this type of data?" Manipulating 1,000,000+ records in an Access table can be a real PITA. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd at shaw.ca Sat Feb 21 17:30:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 21 Feb 2004 15:30:01 -0800 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: Message-ID: Hi J?rgen: Your back! Good to see you, email-wise again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of J?rgen Welz Sent: Saturday, February 21, 2004 9:53 AM To: accessd at databaseadvisors.com Subject: [AccessD] Array dimensions, Row - Col or Col Row Pet peeve - Microsoft documentation and book authors that insist that the the first dimension of 2 dimensional array is the row and the second is the column. I see that this carries over into the .Net books I'm reading. When was the last time you used a Recordset .getRows method and had the first index refer to the record and the second to the field? When was the last time you redimensioned an array to add a column rather than to add or remove a number of rows (records)? How often does a table/query change in size as to the number of rows (records) in comparison to the number of columns (fields)? It doesn't really matter which it is, but with the old versions of VB/A, you could only resize the last index of a multi-dimensioned array (without copying to a new array anyway) so the only practical usage is to add rows to a fixed number of columns which is in fact how it was implemented. Then the authors (Dianne Zak for example) and even Microsoft help deliberately explain them to be varArray(RowIndex, ColIndex) when in the actual practical implementation it is nearly always (ColIndex, RowIndex). It doesn't matter which it is because it is really just an abstract data structure that you can in theory map as you please. The problem I have is when documentation insists on defining it in an impractical manner in the context of getrows and other database usage making it obvious that the VB data people didn't speak with the VB language people. I had hoped that by .Net they would have a chance to write new documentation and finally get it right but I've been reading the Sybex Maastering Visual Basic .NET Database Programming, Visual Basic .NET Developer's Handbook and Mastering Visual Basic .NET and Evangelos Petroutsos keeps right on defining it backwards when he could have just shut up. Why is it that within a single company and a single development platform, developers insist on driving on different sides of the road? Is there a means to lodge a complaint with Microsoft so that the next time they replace the entire language they might finally get the documentaion consistent? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin .msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sun Feb 22 02:31:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Feb 2004 09:31:33 +0100 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: References: Message-ID: <1412999943.20040222093133@cactus.dk> Hi J?rgen > I thought I'd hang around a bit. Did some schooling for a year and dabbled > a bit in some ASP, Java and more recently, the .Net technologies and now my > former employers have decided to upgrade everything I did for them to Office > 2003. Subscribing to this list seemed like a good idea as I expect I may > need some pointers here or there. The conversion project looks like it will > probably begin next weekend. OK. Things have gone into polite mode here; JC at present is in nice-guy-no-rant mode, William doesn't react anymore on trigger words like "Novell", Drew has stopped burning down his homes, Arthur has disappeared in the forest of SQL Server, and Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. So, welcome back! We need some solid input and experience from Access 2003 developers. Most of us - including myself - hang around with older versions. /gustav >>Are you back with us ... or is this a standalone rant? From mwp.reid at qub.ac.uk Sun Feb 22 03:32:38 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 22 Feb 2004 09:32:38 -0000 Subject: [AccessD] OT Quick Question References: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> Message-ID: <001101c3f926$d048a0c0$e60a6351@martin1> You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin From jwcolby at colbyconsulting.com Sun Feb 22 06:57:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 22 Feb 2004 07:57:04 -0500 Subject: [AccessD] OT Quick Question In-Reply-To: <001101c3f926$d048a0c0$e60a6351@martin1> Message-ID: Top 5 what? Words of advice? Books? Subjects to study? Places to get my head examined? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 4:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Feb 22 07:25:43 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 22 Feb 2004 13:25:43 -0000 Subject: [AccessD] OT Quick Question References: Message-ID: <000701c3f947$61094ea0$1b02a8c0@MARTINREID> Well is sunday (<: Top basic access for example How to create parameter queries etc Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 22, 2004 12:57 PM Subject: RE: [AccessD] OT Quick Question > Top 5 what? Words of advice? Books? Subjects to study? Places to get my > head examined? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 4:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know more. > No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Feb 22 07:38:15 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 08:38:15 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <1412999943.20040222093133@cactus.dk> Message-ID: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. From ssharkins at bellsouth.net Sun Feb 22 07:42:43 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 08:42:43 -0500 Subject: [AccessD] OT Quick Question In-Reply-To: <000701c3f947$61094ea0$1b02a8c0@MARTINREID> Message-ID: <20040222134243.EEZM1898.imf19aec.mail.bellsouth.net@SUSANONE> Why just 5? Are these users complete novices to databases or just Access? Susan H. Well is sunday (<: Top basic access for example How to create parameter queries etc Martin ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Sunday, February 22, 2004 12:57 PM Subject: RE: [AccessD] OT Quick Question > Top 5 what? Words of advice? Books? Subjects to study? Places to get my > head examined? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 4:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know more. > No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Feb 22 08:22:45 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 22 Feb 2004 09:22:45 -0500 Subject: [AccessD] Thanks, Bryan In-Reply-To: <006201c3f8c2$87f9ba20$bf00a8c0@dabsight> References: <403765B2.27469.13B24C9@localhost> Message-ID: <403874E5.5039.C062D@localhost> On 21 Feb 2004 at 21:34, DJK(John) Robinson wrote: > Ouch, yes! I got six non-deliveries *and* bounced off this list! Let > me know off-list if you want any details, Bryan. Don't feel bad about the bounce. Yesterday was a bad day for MSN and Hotmail subscibers. Quite a few got bounced. I think their e-mail server was down. for a while. -- Bryan Carbonnell - carbonnb at sympatico.ca An unkind remark is like a killing frost. No matter how much it warms up later, the damage remains. From carbonnb at sympatico.ca Sun Feb 22 08:25:54 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 22 Feb 2004 09:25:54 -0500 Subject: [AccessD] Cross Post test Message-ID: <403875A2.22791.EEA93@localhost> Just to get some traffic on Visio :) DO NOT REPLY. -- Bryan Carbonnell - carbonnb at sympatico.ca I try to take one day at a time, but sometimes several days attack me at once. From mikedorism at adelphia.net Sun Feb 22 09:58:24 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Sun, 22 Feb 2004 10:58:24 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c3f95c$b4545900$a1194244@hargrove.internal> Hi Susan, I haven't done much yet with Access2003 but I have started moving down the .Net westward trail. I've done several projects and really like the UI changes in Visual Basic. If you need a co-author for any articles (Access or otherwise), let me know. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 8:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Feb 22 10:40:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 22 Feb 2004 16:40:53 -0000 Subject: [AccessD] Array dimensions, Row - Col or Col Row In-Reply-To: Message-ID: <014701c3f962$a418dd30$b274d0d5@minster33c3r25> Good to see you back Jurgen. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J?rgen Welz > Sent: 21 February 2004 20:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row > > > Hi Gustav: > > I thought I'd hang around a bit. Did some schooling for a > year and dabbled > a bit in some ASP, Java and more recently, the .Net > technologies and now my > former employers have decided to upgrade everything I did for > them to Office > 2003. Subscribing to this list seemed like a good idea as I > expect I may > need some pointers here or there. The conversion project > looks like it will > probably begin next weekend. > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > > >From: Gustav Brock > >Reply-To: Access Developers discussion and problem > >solving > >To: Access Developers discussion and problem > >solving > >Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row > >Date: Sat, 21 Feb 2004 19:10:45 +0100 > >MIME-Version: 1.0 > >Received: from mc12-f24.hotmail.com ([65.54.167.160]) by > >mc12-s8.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); > Sat, 21 Feb 2004 > >10:11:04 -0800 > >Received: from databaseadvisors.com ([209.135.140.44]) by > >mc12-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); > Sat, 21 Feb > >2004 10:11:04 -0800 > >Received: from databaseadvisors.com (databaseadvisors.com > >[209.135.140.44])by databaseadvisors.com (8.11.6/8.11.6) > with ESMTP id > >i1LIApM00382;Sat, 21 Feb 2004 12:10:51 -0600 > >Received: from relay.webpartner.dk (relay.webpartner.dk > [195.184.96.12])by > >databaseadvisors.com (8.11.6/8.11.6) with ESMTP id i1LIAlM00345for > >; Sat, 21 Feb 2004 12:10:47 -0600 > >Received: from gustav (unknown [213.150.48.58])by > relay.webpartner.dk > >(Postfix) with ESMTP id CACBFCB5A7for > ;Sat, > >21 Feb 2004 19:10:45 +0100 (CET) > >X-Message-Info: vGzX0e+ktu5bqQtkL6QF+nE/wxSqwsBBBl7UfKgJCgw= > >X-Mailer: The Bat! (v1.62i) Business > >Organization: Cactus Data ApS > >Message-ID: <1634712864.20040221191045 at cactus.dk> > >In-Reply-To: > >References: > >X-BeenThere: accessd at databaseadvisors.com > >X-Mailman-Version: 2.1.4 > >Precedence: list > >List-Id: Access Developers discussion and problem > >solving > >List-Help: > >List-Post: > >List-Subscribe: > >, >List-Archive: >List-Unsubscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 21 Feb 2004 18:11:04.0137 (UTC) >FILETIME=[11ADD390:01C3F8A6] > >Hi J?rgen! > >Are you back with us ... or is this a standalone rant? > >/gustav > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoi n.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sun Feb 22 10:50:03 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 09:50:03 -0700 Subject: [AccessD] OT Quick Question Message-ID: >From: "Martin Reid" >You just starting out with Access, bit of experience but want to know more. >No programming just basic skills. > >What would be the top 5 > > >Martin Most problems I see with amateur databases arise from 6 general areas: - Table structure/relationships/3NF basics (and use a numeric unique key) - Queries, understanding the different joins, union, append, update, make table (you need to know most of this before you can do your database table structural design) - Indexes, cost/benefit and performance (that numeric key again) - Understand the datatypes and sizes, table record field limitations and type delimiter issues (delimiters for beginning coders-especially datetime-input mast and formatted display v storage) - The hows and whys of cascade updates/deletes - Understanding concurrency: Bound v Unbound, connected v disconnected Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From ssharkins at bellsouth.net Sun Feb 22 11:23:35 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 12:23:35 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <000001c3f95c$b4545900$a1194244@hargrove.internal> Message-ID: <20040222172338.DQVI1895.imf21aec.mail.bellsouth.net@SUSANONE> I will -- I haven't even started my adventure yet -- other than to install it and poke around. ) Susan H. I haven't done much yet with Access2003 but I have started moving down the .Net westward trail. I've done several projects and really like the UI changes in Visual Basic. If you need a co-author for any articles (Access or otherwise), let me know. From jwelz at hotmail.com Sun Feb 22 11:52:39 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 10:52:39 -0700 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Message-ID: I did a little file list demo a couple years ago that MTM might take a look at. Just starting with 2003 which I neither own nor have installed on any machine I can get my hands on. It is installed on a security hypochondriac's terminal server to which I will obtain a login later next week. If any addins are needed, it will probably be a struggle. Very likely no VBA help will be installed so if and when object dependencies arise, it will be something I may have to address. There are 20 concurrent users and 6 may open two instances of the same database at the same time, all at the end of 6 dsl connections to different offices. Ten of the users share a single dsl connection. Six laptops will need to synchronize files (11 gigabytes are managed by the system) and data (BE sits at 19 megabytes at present). There will be no replication tools. A great many people are not moving to .NET. Look at www.mvps.org and you'll see little mention of it. VB 6 is not about to expire and there is little need to expose mature objects in MS Office applications to modification at the root levels. There was a period of time where I believed that I would need to learn C++ or Java to do programming from the ground up but it looks like Microsoft has taken much of the best from both of these to build a newer and somewhat more mature Javaesqe language. That is not to say I would want to build a replacement for Word as there is so little sense in doing so. There is a world of difference between building your own object heirarchy and using a mature documented and well understood object model. The transition to .NET requires a large investment in understanding and developing object hierarchies before writing any code. With VB and VBA it was relatively safe to dive in once the tables were designed. An acquaintance told me a story of an impossible development task with a ridiculous delivery date. He had to deliver a .NET application in a few weeks and he firmly believed that the task was impossible given the time constraints. Rather than panic, he decided to work with the schedule and devote time to planning the hierarchy and overall structure believing that if he documented his work, he would demonstrate to his employer that he worked hard but the task was impossible. He was shocked to find that he completed the project with time to spare. I don't have that comfort with .NET. There are times when I live and breathe code and there have been many times where I would have to go to excessive lengths to get Access to do what I wanted and as a result, I'm finding that .NET is a pretty good fit. I believe users need drag and drop and more flexible formatting in lists, combos and continuous forms. When I look at what I've done in ASP in the past and do the comparison with ASP.NET and how learning VB.NET yeilds returns in that area as well, I'm convinced that learning .NET will give me a good return on my investment. I have also heard from numerous acquaintances that many of the jobs that are offered require either open source or .NET experience. Every fundamental concept I learned about Java translates well to .NET. If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Susan Harkins" > > Susan is too busy to post those "impossible" questions which did catalyze >threads with 100+ messages. > >===========I apologize for all my failings. :) > >I have been busy -- working on my third book with Mike G since fall. >Nothing >this crowd will be interested in though I don't think. :) An interesting >one >will be out next month and I'll be glad to talk about it then -- cause I'd >like to get this crowd's reaction to the whole move. > >I've been using Outlook 2003 and there are things that just don't work that >seem to work for other people -- I have no clue what's wrong with it (aside >from my incompetence in this area). :( For instance, the new AutoComplete >feature uses names from my Outlook Express address book instead of the >Outlook contacts I've entered. It did that before I imported the address >book from OE. I imported it, but Outlook still won't read names entered as >contacts--it only uses the names in my original OE address book. Truly >strange. But overall, I like it better than OE, even if it is still a >memory >hog. If anyone's using the BCM and has some good documentation they could >point me to I'd be grateful. > >I don't have any articles for the next issue of MTM, so somebody needs to >get busy. :) > >I followed the article on Access becoming extinct and found it interesting >-- how many of you are actually using or supporting Access 2003? > >I'm curious if any of you are actually using any of the new features like >the Object Dependencies task pane and so on. I have to upgrade each time, >but at this point, publishers are wanting to cover up to 4 versions in one >article -- I tell them, "no, but thank you for asking..." ;) Collaboration >seems to be the big push and I just don't have any need for it personally, >but that is the push so my guess is a large part of the user base wants it. >We don't need no stinkin' smart tags... ;) > >How many of you are moving to .NET? Seems like the next frontier, but I may >not go west. ;) I'm getting to old to keep up. ;) I'll be working with >basics, but I can't imagine ever taking it on at a development level. I >don't like working that hard. Unlike so many of you, this is just something >I do to make money, not something I'm passionate about. I don't code in my >sleep -- unless I'm having a nightmare. :) > >Shouldn't TechEd be just around the corner? Anyone going? I haven't been in >years. > >Susan H. _________________________________________________________________ Say ?good-bye? to spam, viruses and pop-ups with MSN Premium -- free trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ From martyconnelly at shaw.ca Sun Feb 22 14:37:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 22 Feb 2004 12:37:15 -0800 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <403912FB.80703@shaw.ca> Generally in mathematical matrix notation for a Matrix M i,j i is the row and j is the column, However in computers Arrays are either broken down as column major or row major. Meaning what part of the Array is stored contiguously in memory. Those who wish to consider a 2-D numeric array as an analogue for a matrix consider column-major (columns stored contiguously) to be more "natural," since the mathematical convention is to divide matrices into "column vectors." When linear systems, linear eigensystems, or other linear-algebra-based disciplines are discussed in the mechanical engineering, electrical engineering, physics, and mathmatical literature , it is far more common to speak of "column vectors" than "row vectors". All programs that manipulate matrices take advantage of one particular memory layout. If you ignore it, you'll suffer a huge performance hit. In Fortran the memory layout for arrays is column-major. Fortran orders things the way the mathematical literature has made us accustomed to seeing them. I am not sure which is contiguous in memory in VBA. rows or columns. I would have to fiddle around to find out. If I remember right APL treats an ordinary vector as either a column vector or row vector depending on use or context. However: Compilers don't know anything about rows or columns. Most C and C++ compilers store two dimensional arrays in exactly the same way that Fortran compilers store them. The only difference is that C array subscripts appear in reverse order from Fortran array subscripts. The problem is that both C and Fortran programmers associate the left and right subscripts of a two dimensional array with the row and column indices respectively. Fortran programmers tend to think of two dimensional arrays as collections of column vectors so they naturally think of one dimensional arrays as column vectors. C programmers,on the other hand, tend to think of two dimensional arrays as collections of row vectors so they naturally think of one dimensional arrays as row vectors. This screws you up calling C routines from Fortran because you have to generally transpose the matrix or array. To further mess up things, Some Fortran compilers have an option to take care of the following: For the inner loop of a matrix-matrix product Most RISC machines like DOT (dot-product) operation best, but some vector-instruction machines like the AXPY(constant-times-a-vector-plus-a-vector) best. This can be a real bag of worms! Welz wrote: > Pet peeve - Microsoft documentation and book authors that insist that > the the first dimension of 2 dimensional array is the row and the > second is the column. I see that this carries over into the .Net > books I'm reading. When was the last time you used a Recordset > .getRows method and had the first index refer to the record and the > second to the field? When was the last time you redimensioned an > array to add a column rather than to add or remove a number of rows > (records)? How often does a table/query change in size as to the > number of rows (records) in comparison to the number of columns (fields)? > > It doesn't really matter which it is, but with the old versions of > VB/A, you could only resize the last index of a multi-dimensioned > array (without copying to a new array anyway) so the only practical > usage is to add rows to a fixed number of columns which is in fact how > it was implemented. Then the authors (Dianne Zak for example) and > even Microsoft help deliberately explain them to be varArray(RowIndex, > ColIndex) when in the actual practical implementation it is nearly > always (ColIndex, RowIndex). > > It doesn't matter which it is because it is really just an abstract > data structure that you can in theory map as you please. The problem > I have is when documentation insists on defining it in an impractical > manner in the context of getrows and other database usage making it > obvious that the VB data people didn't speak with the VB language > people. I had hoped that by .Net they would have a chance to write > new documentation and finally get it right but I've been reading the > Sybex Maastering Visual Basic .NET Database Programming, Visual Basic > .NET Developer's Handbook and Mastering Visual Basic .NET and > Evangelos Petroutsos keeps right on defining it backwards when he > could have just shut up. > > Why is it that within a single company and a single development > platform, developers insist on driving on different sides of the > road? Is there a means to lodge a complaint with Microsoft so that > the next time they replace the entire language they might finally get > the documentaion consistent? > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Sun Feb 22 16:02:20 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 22 Feb 2004 15:02:20 -0700 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: Thanks Marty: Thinking about file streams and the manner in which records are stored in text files, a record is appended contiguously (row major) and it is implicit from the 2 k page locks in Access databases where you can fill a record with extra fields with up to 255 characters each to fake single record locking in Jet 3.5, it would appear that Access and .GetRows should be row major and that redim preserve would work to add or remove a record. I remember dabbling with 'safe arrays' to write a quick sort that moved rows at a time (or was it structs?) and my recollection is that arrays were akin to a sequential series of records, each made up of repeating column values. Can you imagine how inefficient it would be to sort records in a column major array? It's been 15 or so years since I've done any matrix math but your comments ring a bell. There is no doubt that an array assigned to the return value of getrows uses a (col, row) order and the help and every author I've read who says anything about it states that the indexes are (row, col). In terms of priority in retrieving a value from a record, it would make sense to locate the record first and then the value from the appropriate column. ie, find the person and then determine the age of that person rather than find the age column and then check them for the person. If one seeks the record first, perhaps the first index should be the record and the second the column but that reverses the index order resulting from getrows. When it comes to iterating elements, there is no advantage to row, col or col row as they are simply memory addresses. Working with blocks of memory rather than addresses is another matter entirely (ie sorting entire records). I would have been much happier about the help if it were consistent. If getrows returned (row, col) and the language allowed one only to redim the first dimension (so much easier to determine and code), then the help and the usage would be reconciled. Most programmers don't need to know how the array is stored in memory but they should know how to access the value of a row and column of a particular 'record' and all the help does is reverse the manner in which it is used with databases. I'd still like to know where a complaint of this nature stands a hope of getting consideration that will result in the help at least saying that arrays are (row, col) except when dealing with database records. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: MartyConnelly > >Generally in mathematical matrix notation for a Matrix M i,j i is the >row and j is the column, However in computers Arrays are either broken down >as column major or row major. Meaning what part of the Array is stored >contiguously in memory. Those who wish to consider a 2-D numeric array as >an analogue for a >matrix consider column-major (columns stored contiguously) to be more >"natural," since the mathematical convention is to divide matrices into >"column vectors." When linear systems, linear eigensystems, or other >linear-algebra-based disciplines are discussed in the mechanical >engineering, electrical >engineering, physics, and mathmatical literature , it is far more common to >speak of "column vectors" than "row vectors". >All programs that manipulate matrices take advantage of one particular >memory layout. If you ignore it, you'll suffer a huge performance hit. >In Fortran the memory layout for arrays is column-major. Fortran orders >things the way the mathematical literature has made us accustomed to seeing >them. >I am not sure which is contiguous in memory in VBA. rows or columns. I >would have to fiddle around to find out. > >If I remember right APL treats an ordinary vector as either a column vector >or row vector depending on use or context. > >However: >Compilers don't know anything about rows or columns. Most C and C++ >compilers store two dimensional arrays >in exactly the same way that Fortran compilers store them. The only >difference is that C array subscripts appear >in reverse order from Fortran array subscripts. The problem is that both C >and Fortran programmers >associate the left and right subscripts of a two dimensional array with the >row and column indices respectively. >Fortran programmers tend to think of two dimensional arrays as collections >of column vectors so they naturally think of >one dimensional arrays as column vectors. C programmers,on the other hand, >tend to think of two dimensional arrays >as collections of row vectors so they naturally think of one dimensional >arrays as row vectors. >This screws you up calling C routines from Fortran because you have to >generally transpose the matrix or array. > >To further mess up things, Some Fortran compilers have an option to take >care of the following: >For the inner loop of a matrix-matrix product >Most RISC machines like DOT (dot-product) operation best, but some >vector-instruction machines like the >AXPY(constant-times-a-vector-plus-a-vector) best. > >This can be a real bag of worms! > > > >Welz wrote: > >>Pet peeve - Microsoft documentation and book authors that insist that the >>the first dimension of 2 dimensional array is the row and the second is >>the column. I see that this carries over into the .Net books I'm reading. >> When was the last time you used a Recordset .getRows method and had the >>first index refer to the record and the second to the field? When was the >>last time you redimensioned an array to add a column rather than to add or >>remove a number of rows (records)? How often does a table/query change in >>size as to the number of rows (records) in comparison to the number of >>columns (fields)? >> >>It doesn't really matter which it is, but with the old versions of VB/A, >>you could only resize the last index of a multi-dimensioned array (without >>copying to a new array anyway) so the only practical usage is to add rows >>to a fixed number of columns which is in fact how it was implemented. >>Then the authors (Dianne Zak for example) and even Microsoft help >>deliberately explain them to be varArray(RowIndex, ColIndex) when in the >>actual practical implementation it is nearly always (ColIndex, RowIndex). >> >>It doesn't matter which it is because it is really just an abstract data >>structure that you can in theory map as you please. The problem I have is >>when documentation insists on defining it in an impractical manner in the >>context of getrows and other database usage making it obvious that the VB >>data people didn't speak with the VB language people. I had hoped that by >>.Net they would have a chance to write new documentation and finally get >>it right but I've been reading the Sybex Maastering Visual Basic .NET >>Database Programming, Visual Basic .NET Developer's Handbook and Mastering >>Visual Basic .NET and Evangelos Petroutsos keeps right on defining it >>backwards when he could have just shut up. >> >>Why is it that within a single company and a single development platform, >>developers insist on driving on different sides of the road? Is there a >>means to lodge a complaint with Microsoft so that the next time they >>replace the entire language they might finally get the documentaion >>consistent? >> >> >>Ciao >>J?rgen Welz >>Edmonton, Alberta >>jwelz at hotmail.com _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From Mark.Mitsules at ngc.com Sun Feb 22 16:17:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Sun, 22 Feb 2004 17:17:51 -0500 Subject: [AccessD] Array dimensions, Row - Col or Col Row Message-ID: To put it more basic terms, consider geometry. The x-y coordinate system is always defined as x (the horizontal component), then y (the vertical component). Just looking at a 2-d matrix, columns should be the x, rows should be the y. The theory behind why it should be any different is beyond me. Mark -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Sunday, February 22, 2004 3:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array dimensions, Row - Col or Col Row Generally in mathematical matrix notation for a Matrix M i,j i is the row and j is the column, However in computers Arrays are either broken down as column major or row major. Meaning what part of the Array is stored contiguously in memory. Those who wish to consider a 2-D numeric array as an analogue for a matrix consider column-major (columns stored contiguously) to be more "natural," since the mathematical convention is to divide matrices into "column vectors." When linear systems, linear eigensystems, or other linear-algebra-based disciplines are discussed in the mechanical engineering, electrical engineering, physics, and mathmatical literature , it is far more common to speak of "column vectors" than "row vectors". All programs that manipulate matrices take advantage of one particular memory layout. If you ignore it, you'll suffer a huge performance hit. In Fortran the memory layout for arrays is column-major. Fortran orders things the way the mathematical literature has made us accustomed to seeing them. I am not sure which is contiguous in memory in VBA. rows or columns. I would have to fiddle around to find out. If I remember right APL treats an ordinary vector as either a column vector or row vector depending on use or context. However: Compilers don't know anything about rows or columns. Most C and C++ compilers store two dimensional arrays in exactly the same way that Fortran compilers store them. The only difference is that C array subscripts appear in reverse order from Fortran array subscripts. The problem is that both C and Fortran programmers associate the left and right subscripts of a two dimensional array with the row and column indices respectively. Fortran programmers tend to think of two dimensional arrays as collections of column vectors so they naturally think of one dimensional arrays as column vectors. C programmers,on the other hand, tend to think of two dimensional arrays as collections of row vectors so they naturally think of one dimensional arrays as row vectors. This screws you up calling C routines from Fortran because you have to generally transpose the matrix or array. To further mess up things, Some Fortran compilers have an option to take care of the following: For the inner loop of a matrix-matrix product Most RISC machines like DOT (dot-product) operation best, but some vector-instruction machines like the AXPY(constant-times-a-vector-plus-a-vector) best. This can be a real bag of worms! Welz wrote: > Pet peeve - Microsoft documentation and book authors that insist that > the the first dimension of 2 dimensional array is the row and the > second is the column. I see that this carries over into the .Net > books I'm reading. When was the last time you used a Recordset > .getRows method and had the first index refer to the record and the > second to the field? When was the last time you redimensioned an > array to add a column rather than to add or remove a number of rows > (records)? How often does a table/query change in size as to the > number of rows (records) in comparison to the number of columns (fields)? > > It doesn't really matter which it is, but with the old versions of > VB/A, you could only resize the last index of a multi-dimensioned > array (without copying to a new array anyway) so the only practical > usage is to add rows to a fixed number of columns which is in fact how > it was implemented. Then the authors (Dianne Zak for example) and > even Microsoft help deliberately explain them to be varArray(RowIndex, > ColIndex) when in the actual practical implementation it is nearly > always (ColIndex, RowIndex). > > It doesn't matter which it is because it is really just an abstract > data structure that you can in theory map as you please. The problem > I have is when documentation insists on defining it in an impractical > manner in the context of getrows and other database usage making it > obvious that the VB data people didn't speak with the VB language > people. I had hoped that by .Net they would have a chance to write > new documentation and finally get it right but I've been reading the > Sybex Maastering Visual Basic .NET Database Programming, Visual Basic > .NET Developer's Handbook and Mastering Visual Basic .NET and > Evangelos Petroutsos keeps right on defining it backwards when he > could have just shut up. > > Why is it that within a single company and a single development > platform, developers insist on driving on different sides of the > road? Is there a means to lodge a complaint with Microsoft so that > the next time they replace the entire language they might finally get > the documentaion consistent? > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Feb 22 16:25:13 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 22 Feb 2004 14:25:13 -0800 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) In-Reply-To: <20040222133815.EEAF1898.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: There is a lot to comment on email but I will just comment on a couple of your other queries. Yes, I have been using Access 2003. I find it work 'nice'. It is prettier, has a few extra feature, that I have not got around to using. It also has some very annoying habits. If I am testing a new application and 'heaven-forbid' an error in code mysterious appears, I have to be careful not to fix it then but get out, shut down the application, go into design mode and fix it. I have found that if I do not, the application will, forever more, disallow me to go directly from running to designing. I now have to exit Access, go back in and then, I can start designing...a major PITA. Lucky my development computer is fast. I have a whole CD from MS explaining Smart Tags and some day, when there is nothing important to do, I plan to take a look at it. If there is ever a hint that a client is remotely interested in .NET, I have a big chunk of .NET samples, web tutorials and feature articles to read. For now it sits on the back burner. That's my two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 5:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sun Feb 22 18:22:32 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 22 Feb 2004 19:22:32 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: Message-ID: <20040223002231.CTRR15673.imf22aec.mail.bellsouth.net@SUSANONE> If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. From artful at rogers.com Sun Feb 22 21:38:06 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:38:06 -0800 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1127DC@nt04.karta.com> Message-ID: <021701c3f9be$735f8c50$6601a8c0@rock> Yes, I published the recipe notion a while back. And am about to revive it with a few bells and whistles :) Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Wednesday, February 11, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Teaching Access Course Thanks Robert and Gustav Excellent! The recipe idea is simple enough for most people to understand. I disliked the typical examples of a dog kennel or Vet office. Everyone eats, everyone should be able to identify with a recipe. I looked up the archive example Arthur did March 2002. Gustav you came up with the answer! Was this puzzle ever published in an article? Thanks all - lots of great advice. Jim -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, February 11, 2004 3:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Teaching Access Course Hi Robert Good example. Arthur Fuller did work with recipes too. Look up the archive for "SQL Puzzle" in Mar. 2002. The question was, given a certain mix of ingredients, how to list which recipes could possibly be chosen ... /gustav > Jim, > I think you are trying to cover way too much in too short of a time. > I > have taught Access, from people who were not sure of the spelling of it to > people who thought they knew everything there was to know about it. > What are they wanting to accomplish? You should tailor the sessions > to the > purpose they want to accomplish. For example, I am teaching a 3 hour > introduction to queries a week from Saturday to a class of 4 or 5 > people. The purpose is for them to be able to query the database for > themselves to get information, create mail merge lists, etc. > Normalization itself is a two day class. But here is the 10 minute version > of it. > We are going to build a database to hold recipes. Write down on a > sheet of > paper the things we need to store about a recipe. Now, look at each > item > and ask the question, "Can there EVER be more than one of this item?" If > the answer is "Yes," then you will need another table to hold the data. If > you follow that without wavering, you will get to 5th normal form. > ;-) > For example "ingredient" Can a recipe ever have more than one > ingredient? Yes, then there needs to be a table to hold them. Can an > ingredient ever use more than one kind of measure? Yes. Then the > measurement method needs to be in a table. Can a recipe fit into more than > one category (dessert, main course, bread, etc)? Yes. Then there > needs to > be a table to hold it. > My guess would be that they want to be able to query the database and > do > reports. Day 1 - Queries Day 2 - Reports ;-) > Robert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Feb 22 21:47:05 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:47:05 -0800 Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure OrSQL View In-Reply-To: <33430946.1076922207517.JavaMail.www@wwinf3002> Message-ID: <021801c3f9bf$b4c82070$6601a8c0@rock> In SQL 2K this is relatively trivial. Write a UDF that does a bunch of IsNull()s. In SQL 7 it is more complex but essentially the same op. Write a bunch of IsNull()s and CASE WHEN them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Monday, February 16, 2004 1:03 AM To: SQL Group Cc: accessd; dba-vb Subject: [AccessD] [dba-VB] Concatenating Fields In SQL Stored Procedure OrSQL View To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Feb 22 21:53:01 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 22 Feb 2004 19:53:01 -0800 Subject: [AccessD] Stored Procedure SQL IN Clause In-Reply-To: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> Message-ID: <021901c3f9c0$8b2c01e0$6601a8c0@rock> I did a piece recently for Builder.com's SQL Tips thing on exactly this. The trick is to disassemble the string and create a temp table containing the fragments (one row per frag) then join this to the relevant query. That way you get 11 rows (say) in your temp table joined to 1000 rows in your query and performance is lightning fast. In() sucks because it's incredibly hard to optimize, even by the smartest optimizers out there. By creating a temp table you get way more performance. The cost of parsing the string and creating the temp table is WAY less than doing a table scan, assuming that the table is large. On 100 rows, who cares? On 1000 or 100K rows, the difference is dramatic! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, February 16, 2004 8:16 AM To: accessd at databaseadvisors.com Cc: dba-sqlserver at databaseadvisors.com Subject: [AccessD] Stored Procedure SQL IN Clause All, The end of last week, I was working on a stored procedure in SQL Server. I wanted it to be able to pass in information via a parameter to populate an IN clause in the SQL statement so I could use a multi-select list box for the control on the form. Here is what I was trying: I have a list of residence types (house, hotel, mobile home, homeless, etc.). I wanted to be able to select one or more in the list box. The Stored Procedure looked something like this: CREATE PROCEDURE uspResidenceTypeList @InClause Varchar(200) AS SELECT * FROM tblClient WHERE (ResidenceType IN(@InClause) This works for a single value, i.e. 'Homeless', but it returns no records when I pass in multiple values. Does someone have any ideas about what I can do to get this to work? Thanks, Robert Note Cross posted to dba-sqlserver at databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Feb 22 18:57:15 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 22 Feb 2004 19:57:15 -0500 Subject: [AccessD] Array dimensions, Row - Col or Col Row References: Message-ID: <003201c3f9a7$fac0cd60$6101a8c0@dejpolsys> Jurgen ...nice to see you back among us ...things have been all too quiet around here since kids mellowed JC :))))) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli From Oleg_123 at xuppa.com Sun Feb 22 19:49:32 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 22 Feb 2004 20:49:32 -0500 (EST) Subject: [AccessD] Tab Control question In-Reply-To: <021901c3f9c0$8b2c01e0$6601a8c0@rock> References: <5.1.0.14.2.20040216100141.029bc4a8@pop3.highstream.net> <021901c3f9c0$8b2c01e0$6601a8c0@rock> Message-ID: <2649.24.187.36.171.1077500972.squirrel@heck.bay9.com> I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From bruce_bruen at mlc.com.au Sun Feb 22 20:01:04 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 13:01:04 +1100 Subject: [AccessD] Tab Control question Message-ID: Oleg, Each tab page also has its own events, in particular each page has an onClick event. You can write the handler for Page4_Click to refer to vlaues on Page1 using references of the nature Me.TabCtlName.Pages(0).ControlName.Value hth Bruce Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Tab Control question 23/02/2004 12:49 Please respond to Access Developers discussion and problem solving I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Sun Feb 22 20:16:49 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 13:16:49 +1100 Subject: [AccessD] Tab Control question Message-ID: Oleg, Cancel that! I never knew it didn't work and have been using it for years! Use the onChange event for the tabctl and the value of the tabctl to achieve what you want. Sub MyTabCtl_Change() If Me.MyTabCtl.Value = 3 then ' use numpages less 1 'copy the info from me.MyTabCtl.Pages(0).controls... endif endsub Bruce Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Tab Control question 23/02/2004 12:49 Please respond to Access Developers discussion and problem solving I have a tab control, containing 4 tabs, and I would like (the users actually) that when i click on the 4th tab it transfers the values from the first. The tab control only has - on click, on double click, mouse down, mouse move, and mouse up events. Is it possible to do ? Oleg ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Sun Feb 22 21:09:16 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Sun, 22 Feb 2004 21:09:16 -0600 Subject: [AccessD] RE: I ask impossible questions????? Message-ID: >>>>Susan Harkins said, "Outlook still won't read names entered as >>>>contacts"<<<< In Outlook 2K you have to set a property for the contacts so it uses them as addresses. Right click on the contacts folder, bring up propertys, click Outlook Address Book tab and check the "Show this folder as an address book" checkbox. Of course could be all different in 2003 ;-) Also if you have sub folders, each one needs this setting set. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Find and compare great deals on Broadband access at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ From Oleg_123 at xuppa.com Sun Feb 22 21:46:16 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Sun, 22 Feb 2004 22:46:16 -0500 (EST) Subject: [AccessD] Tab Control question In-Reply-To: References: Message-ID: <1103.24.187.36.171.1077507976.squirrel@heck.bay9.com> great !! is there really a need for if ? i'll just do it this way -- Private Sub TabCtl0_Change() bText.Value = aText.Value End Sub > > > > > Oleg, > > Cancel that! I never knew it didn't work and have been using it for > years! > > Use the onChange event for the tabctl and the value of the tabctl to > achieve what you want. > > > Sub MyTabCtl_Change() > If Me.MyTabCtl.Value = 3 then ' use numpages less 1 > 'copy the info from me.MyTabCtl.Pages(0).controls... > endif > endsub > > > Bruce > > > > > > Sent by: > To: > > accessd-bounces at databasea cc: > > dvisors.com > Subject: [AccessD] Tab Control question > > > > 23/02/2004 12:49 > > Please respond to Access > > Developers > discussion and > > problem solving > > > > > > > > > I have a tab control, containing 4 tabs, and I would like (the users > actually) that when i click on the 4th tab it transfers the values from > the first. > The tab control only has - on click, on double click, mouse down, mouse > move, and mouse up events. Is it possible to do ? > > Oleg > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From bruce_bruen at mlc.com.au Sun Feb 22 21:54:21 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Mon, 23 Feb 2004 14:54:21 +1100 Subject: [AccessD] Tab Control question Message-ID: The if statement checks to see if the user has clicked on tab page 4, so the copy is only executed then. B Sent by: To: accessd-bounces at databasea cc: dvisors.com Subject: Re: [AccessD] Tab Control question 23/02/2004 14:46 Please respond to Access Developers discussion and problem solving great !! is there really a need for if ? i'll just do it this way -- Private Sub TabCtl0_Change() bText.Value = aText.Value End Sub > > > > > Oleg, > > Cancel that! I never knew it didn't work and have been using it for > years! > > Use the onChange event for the tabctl and the value of the tabctl to > achieve what you want. > > > Sub MyTabCtl_Change() > If Me.MyTabCtl.Value = 3 then ' use numpages less 1 > 'copy the info from me.MyTabCtl.Pages(0).controls... > endif > endsub > > > Bruce > > > > > > Sent by: > To: > > accessd-bounces at databasea cc: > > dvisors.com > Subject: [AccessD] Tab Control question > > > > 23/02/2004 12:49 > > Please respond to Access > > Developers > discussion and > > problem solving > > > > > > > > > I have a tab control, containing 4 tabs, and I would like (the users > actually) that when i click on the 4th tab it transfers the values from > the first. > The tab control only has - on click, on double click, mouse down, mouse > move, and mouse up events. Is it possible to do ? > > Oleg > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at pacific.net.hk Sun Feb 22 22:03:38 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 23 Feb 2004 12:03:38 +0800 Subject: [AccessD] RE: I ask impossible questions????? In-Reply-To: Message-ID: Don't know whether she means what you say, or the autocomplete. Autocompleted addresses are different to the address book and if there is method to the madness of which addresses get remembered, or how to remove a specific one. I have never worked it out. I read something recently in W2KNews which showed how to delete the address cache. "To remove all the saved addresses, delete the .NK2 file where Outlook stores them. The file is normally located in C:\Documents and Settings\username\Application Data\Microsoft\Outlook folder for each Outlook profile. Some of these folders are hidden so you will need to turn on the unhide file feature to in Windows Explorer to see them (Click Tools -> Folder Options and select the View tab)." Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, 23 February, 2004 11:09 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] RE: I ask impossible questions????? > > > >>>>Susan Harkins said, "Outlook still won't read names entered as > >>>>contacts"<<<< > > In Outlook 2K you have to set a property for the contacts so > it uses them as > addresses. Right click on the contacts folder, bring up > propertys, click > Outlook Address Book tab and check the "Show this folder as > an address book" > checkbox. Of course could be all different in 2003 ;-) > > Also if you have sub folders, each one needs this setting set. > > Gary Kjos > garykjos at hotmail.com > > _________________________________________________________________ > Find and compare great deals on Broadband access at the MSN > High-Speed > Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at touchtelindia.net Sun Feb 22 23:18:20 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 23 Feb 2004 10:48:20 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: Message-ID: <006201c3f9cc$abce8970$df1865cb@winxp> This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From gustav at cactus.dk Mon Feb 23 02:24:11 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Feb 2004 09:24:11 +0100 Subject: [AccessD] Re: Teaching Access Course In-Reply-To: <021701c3f9be$735f8c50$6601a8c0@rock> References: <021701c3f9be$735f8c50$6601a8c0@rock> Message-ID: <492143301.20040223092411@cactus.dk> Hi Arthur > Yes, I published the recipe notion a while back. Where? Is it viewable? > And am about to revive it with a few bells and whistles :) Great! /gustav > Arthur Fuller did work with recipes too. > Look up the archive for "SQL Puzzle" in Mar. 2002. > The question was, given a certain mix of ingredients, how to list which > recipes could possibly be chosen ... From d.dick at uws.edu.au Mon Feb 23 04:40:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 23 Feb 2004 21:40:01 +1100 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <001701c3f9f9$6511bca0$2b669a89@DDICK> Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next From jwcolby at colbyconsulting.com Mon Feb 23 05:40:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 23 Feb 2004 06:40:02 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <001701c3f9f9$6511bca0$2b669a89@DDICK> Message-ID: Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any equivalent in ADO. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Monday, February 23, 2004 5:40 AM To: AccessD List Subject: [AccessD] A2K:ADO Version of the following Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 07:06:37 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 00:06:37 +1100 Subject: [AccessD] A2K:ADO Version of the following References: Message-ID: <004301c3fa0d$dfd54240$2b669a89@DDICK> Bugger Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 10:40 PM Subject: RE: [AccessD] A2K:ADO Version of the following > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any > equivalent in ADO. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:40 AM > To: AccessD List > Subject: [AccessD] A2K:ADO Version of the following > > > Hello all > I have a nice bit of code (Thanks Deano) that drops all the linked tables in > a dB - cool > Does anyone know the ADO version of the code below? > > Many thanks > > Darren > > """""""""""""""""""""""""""""""""""""""""""""" > Dim lnk As DAO.tabledef > > For Each lnk In CurrentDb.TableDefs > If lnk.Attributes = dbAttachedTable Then > CurrentDb.TableDefs.Delete lnk.Name > End If > Next > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Feb 23 07:21:53 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Feb 2004 14:21:53 +0100 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <004301c3fa0d$dfd54240$2b669a89@DDICK> References: <004301c3fa0d$dfd54240$2b669a89@DDICK> Message-ID: <15720005656.20040223142153@cactus.dk> Hi Darren Can't you use a pass-through query and SQL: DROP TABLE ... /gustav > Bugger >> Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >> equivalent in ADO. --- >> I have a nice bit of code (Thanks Deano) that drops all the linked tables in >> a dB - cool >> Does anyone know the ADO version of the code below? >> >> Many thanks >> >> Darren >> >> """""""""""""""""""""""""""""""""""""""""""""" >> Dim lnk As DAO.tabledef >> >> For Each lnk In CurrentDb.TableDefs >> If lnk.Attributes = dbAttachedTable Then >> CurrentDb.TableDefs.Delete lnk.Name >> End If >> Next From prodevmg at yahoo.com Mon Feb 23 08:06:35 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 23 Feb 2004 06:06:35 -0800 (PST) Subject: [AccessD] Shutting down applications if they are not being us ed In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Message-ID: <20040223140635.81659.qmail@web20419.mail.yahoo.com> Thanks guys for (John and Gracie) for pointing that out. Also, thank you Drew for the quick fix. DWUTKA at marlow.com wrote:Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/21/04 10:25 AM Subject: RE: [AccessD] Shutting down applications if they are not being used Drew, I looked at this and immediately ran into "no vba332.dll" error. I am hesitant to use a method that requires specific dlls in order to work. Is there any way to make this "generic" where it can use any vbxxx.dll instead of a specific version? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Friday, February 20, 2004 12:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being used Thanks Drew, This is exciting. I am going to take a look right now. DWUTKA at marlow.com wrote: Just an FYI, I took a look at that sample database, it is is going off of the activeform/activecontrol. So, if the user doesn't change the focus from one control to another, it will still 'close' the app. Just for a simple test. Take the sample database, (hold the shift key down when starting, to bypass the startup stuff). Modify the switchboard to have a textbox control. Then restart the database. When the database opens, start typing in that textbox. 30 seconds later, it will still close the app.....not a good thing, to kick out a user, when they are still typing. Now, here's the problem. To use it's method (which is a hidden 'timer' form, watching for the active control/form), to counter the lack of movement from one control to another, you would have to put KeyPress events on all of your forms, in order to prevent the loss of activity. WORSE yet, what if a user opens a report, and is just scrolling back and forth through the data on the report. No form/control change, and blammo, the db closes on them! Now, with VBA, you can practically do anything you want. Simply because you can use API calls. You can use the SetWindowsHookEx API, to hook into a lot of stuff, including the Mouse and Keyboard. The catch is that VBA doesn't have AddressOf, but there is code on Dev Ashish's website (http://mvps.org/Access) for that. So, since I needed a break from my current work, I whipped up an example for you. Go to the Access section of wolfwares.com and download 'Inactivity.zip'. It's an Access 97 .mdb with one form, open that form, and watch the 'timer'. Don't touch anything, and the timer counts up. Move the mouse, or hit anything on the keyboard, and the timer resets. Now, it's only watching the current Access thread. I have multiple monitors, but if you don't have multiple monitors, simply resize the Access window to so that you can get to the rest of your desktop, but still see that 'timer'. Now move the mouse around your desktop, open notepad....type in there...no affect to the 'timer', it only catches stuff sent to Access. Now, my sample database doesn't shut itself down, it's only showing the length of inactivity time. I would recommend setting the Timer Interval to as large as you can go, up until the amount of activity you want to monitor. (So if you want 10 minutes of inactivity to kick out the user, set the timer to 60000, and wait until the global variable representing the last keyboard/mouse event to be more then 10 minutes from Now()). HTH, Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Thursday, February 19, 2004 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shutting down applications if they are not being used Thanks William, it tried it and it works. I will have to incorporate into my situation. Thanks again. William Hindman wrote: http://www.candace-tripp.com/_pages/access_downloads.asp#13 ...Candace has a Detect and Logoff Idle Users sample mdb ...HTH :) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Lonnie Johnson" To: "'MS-ACCESS-L at lists.missouri.edu'" ; "AccessDevelopers" ; "ms_access" ; "AccessD solving'" Sent: Thursday, February 19, 2004 9:05 AM Subject: [AccessD] Shutting down applications if they are not being used > Is there a general windows feature, maybe an API or something that can detect key or mouse movement? > > I want to shutdown user front end applications if no activity occurs after a certain period of time. > > Thanks in advance. > > > > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From Developer at UltraDNT.com Mon Feb 23 08:40:59 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 23 Feb 2004 09:40:59 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <004301c3fa0d$dfd54240$2b669a89@DDICK> Message-ID: <001001c3fa1b$10905020$7001a8c0@COA3> You need to use ADOX, which is ADO for DDL and Security. If you have ADO, you have ADOX. Add the reference, and then use something like: Public Sub DelLinkedADO() Dim c As New ADOX.Catalog Dim t As ADOX.Table Set c.ActiveConnection = CurrentProject.Connection For Each t In c.Tables If t.Type = "link" Then c.Tables.Delete t.Name End If Next End Sub Hth, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, February 23, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following Bugger Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 10:40 PM Subject: RE: [AccessD] A2K:ADO Version of the following > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > any equivalent in ADO. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:40 AM > To: AccessD List > Subject: [AccessD] A2K:ADO Version of the following > > > Hello all > I have a nice bit of code (Thanks Deano) that drops all the linked > tables in a dB - cool Does anyone know the ADO version of the code > below? > > Many thanks > > Darren > > """""""""""""""""""""""""""""""""""""""""""""" > Dim lnk As DAO.tabledef > > For Each lnk In CurrentDb.TableDefs > If lnk.Attributes = dbAttachedTable Then > CurrentDb.TableDefs.Delete lnk.Name > End If > Next > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 bellsouth.net Mon Feb 23 09:15:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 10:15:09 -0500 Subject: OT (RE: [AccessD] RE: I ask impossible questions????? ) In-Reply-To: Message-ID: <20040223151508.CHVW1897.imf18aec.mail.bellsouth.net@SUSANONE> That property is checked. :) Still doesn't work. There are a number of things that don't work just right for me in Outlook 2003. Often, the tools stay enabled at inappropriate times, and then like magic, suddenly enable themselves -- just weird stuff that I just can't account for. It's a shame, because I like it better than OE now. Older versions of Outlook were more complicated to use. Susan H. In Outlook 2K you have to set a property for the contacts so it uses them as addresses. Right click on the contacts folder, bring up propertys, click Outlook Address Book tab and check the "Show this folder as an address book" checkbox. Of course could be all different in 2003 ;-) Also if you have sub folders, each one needs this setting set. From ssharkins at bellsouth.net Mon Feb 23 09:17:42 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 10:17:42 -0500 Subject: [AccessD] RE: I ask impossible questions????? In-Reply-To: Message-ID: <20040223151740.CJRG1897.imf18aec.mail.bellsouth.net@SUSANONE> Don't know whether she means what you say, or the autocomplete. Autocompleted addresses are different to the address book and if there is method to the madness of which addresses get remembered, or how to remove a specific one. I have never worked it out. =======AutoComplete works more like OE now == Outlook generates a list of matching contact names from the To control. "To remove all the saved addresses, delete the .NK2 file where Outlook stores them. The file is normally located in C:\Documents and Settings\username\Application Data\Microsoft\Outlook folder for each Outlook profile. Some of these folders are hidden so you will need to turn on the unhide file feature to in Windows Explorer to see them (Click Tools -> Folder Options and select the View tab)." =======I tried uninstalling -- didn't help. I'll take a look at this. I guess we should probably end this thread before someone fusses at us for being OT -- thanks for the ideas. :) Susan H. From Oleg_123 at xuppa.com Mon Feb 23 09:17:51 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 10:17:51 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <20040223140635.81659.qmail@web20419.mail.yahoo.com> References: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> <20040223140635.81659.qmail@web20419.mail.yahoo.com> Message-ID: <51014.63.251.87.214.1077549471.squirrel@heck.bay9.com> Good Morning Group I have a transform query, and I would like for it to show only the columns that actually contain data, so if there is no data for September and October, just show August column followed by November. Is it possible ? Thank yo Oleg TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From BBarabash at TappeConstruction.com Mon Feb 23 09:28:06 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 09:28:06 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> Oleg, This is the default functionality of cross-tab queries (i.e. supress blank columns). It is overridden by specifying an IN clause in the PIVOT statement, to force the specfied columns to show regardless of whether or not they contain data. Omit the In ("Jan","Feb"... from the query and it should return what you want, e.g.: TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm"); -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 9:18 AM To: accessd at databaseadvisors.com Subject: [AccessD] Transform query question Good Morning Group I have a transform query, and I would like for it to show only the columns that actually contain data, so if there is no data for September and October, just show August column followed by November. Is it possible ? Thank yo Oleg TRANSFORM Count([Ron Data enf].ID) AS CountOfID SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) AS Total FROM [Ron Data enf] WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report Form]![Start_Date] And [Ron Data enf]![Date Case Ref Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Oleg_123 at xuppa.com Mon Feb 23 09:47:36 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 10:47:36 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE396@TAPPEEXCH01> Message-ID: <35428.63.251.87.214.1077551256.squirrel@heck.bay9.com> I get an error -- Microsoft Jet Database Engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field name of expression It works fine when the lest line is present :--\ > Oleg, > This is the default functionality of cross-tab queries (i.e. supress > blank columns). It is overridden by specifying an IN clause in the > PIVOT statement, to force the specfied columns to show regardless of > whether or not they contain data. > > Omit the In ("Jan","Feb"... from the query and it should return what you > want, e.g.: > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm"); > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:18 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Transform query question > > > Good Morning Group > > I have a transform query, and I would like for it to show only the > columns that actually contain data, so if there is no data for September > and October, just show August column followed by November. Is it > possible ? > > Thank yo > Oleg > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Mon Feb 23 09:57:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 09:57:20 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 10:07:12 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:07:12 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> Took a look at the MSKB and found the following article: ACC2000: Error When Running Crosstab Query with a Parameter http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 00 Jet is confusing your form control parameters with column names. In the Query designer, select Query > Parameters, and enter the name of the controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with the appropriate data type, and all will be well. So there. We both learned something today... -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transform query question I get an error -- Microsoft Jet Database Engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field name of expression It works fine when the lest line is present :--\ > Oleg, > This is the default functionality of cross-tab queries (i.e. supress > blank columns). It is overridden by specifying an IN clause in the > PIVOT statement, to force the specfied columns to show regardless of > whether or not they contain data. > > Omit the In ("Jan","Feb"... from the query and it should return what you > want, e.g.: > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm"); > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:18 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Transform query question > > > Good Morning Group > > I have a transform query, and I would like for it to show only the > columns that actually contain data, so if there is no data for September > and October, just show August column followed by November. Is it > possible ? > > Thank yo > Oleg > > TRANSFORM Count([Ron Data enf].ID) AS CountOfID > SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data enf].ID) > AS Total > FROM [Ron Data enf] > WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report > Form]![Start_Date] And [Ron Data enf]![Date Case Ref > Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not > Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ---------------------------------------------------------------------------- ---------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From Oleg_123 at xuppa.com Mon Feb 23 10:23:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 11:23:31 -0500 (EST) Subject: [AccessD] Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE397@TAPPEEXCH01> Message-ID: <33832.63.251.87.214.1077553411.squirrel@heck.bay9.com> :)) thanks, it worked, only it doesn't sort the records right, did alphabetically I guess- Feb, Jan, March.. can I sort it in normal way ? > Took a look at the MSKB and found the following article: > > ACC2000: Error When Running Crosstab Query with a Parameter > http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 > 00 > > Jet is confusing your form control parameters with column names. In the > Query designer, select Query > Parameters, and enter the name of the > controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with > the appropriate data type, and all will be well. > > So there. We both learned something today... > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:48 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Transform query question > > > I get an error -- > Microsoft Jet Database Engine does not recognise '[Forms]![Report > Form]![Start_Date]' as a valid field name of expression > It works fine when the lest line is present :--\ > > >> Oleg, >> This is the default functionality of cross-tab queries (i.e. supress >> blank columns). It is overridden by specifying an IN clause in the >> PIVOT statement, to force the specfied columns to show regardless of >> whether or not they contain data. >> >> Omit the In ("Jan","Feb"... from the query and it should return what >> you want, e.g.: >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref > > >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm"); >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Monday, February 23, 2004 9:18 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Transform query question >> >> >> Good Morning Group >> >> I have a transform query, and I would like for it to show only the >> columns that actually contain data, so if there is no data for >> September and October, just show August column followed by November. >> Is it possible ? >> >> Thank yo >> Oleg >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > ---------------------------------------------------------------------------- > ---------------------------------------- >> This email and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom >> they are addressed. >> If you have received this email in error please notify the >> originator of the message. This footer also confirms that this >> email message has been scanned for the presence of computer viruses. >> >> Any views expressed in this message are those of the individual >> sender, except where the sender specifies and with authority, >> states them to be the views of Tappe Construction Co. >> >> Scanning of this message and addition of this footer is performed by >> SurfControl E-mail Filter software in conjunction with >> virus detection software. >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Mon Feb 23 10:48:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 08:48:30 -0800 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Message-ID: Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Sunday, February 22, 2004 4:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions,Row - Col or Col Row) If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 10:48:30 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 10:48:30 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C2@main2.marlow.com> Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 10:51:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 10:51:37 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C3@main2.marlow.com> In Outlook 2k, what determines the 'AutoComplete' feature for addresses, is in the Address book window. Once in that window, click Tools, then Options. You should have a window that has a listbox at the bottom, which has something along these lines above it... When sending mail, check names using these address lists in the following order. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 7:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 10:54:19 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:54:19 -0600 Subject: [AccessD] Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> You could try an ORDER BY Format([AMTS Date Opened],"mmm"). -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 10:24 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transform query question :)) thanks, it worked, only it doesn't sort the records right, did alphabetically I guess- Feb, Jan, March.. can I sort it in normal way ? > Took a look at the MSKB and found the following article: > > ACC2000: Error When Running Crosstab Query with a Parameter > http://support.microsoft.com/default.aspx?scid=kb;en-us;209778&Product=acc20 > 00 > > Jet is confusing your form control parameters with column names. In the > Query designer, select Query > Parameters, and enter the name of the > controls (i.e. [Forms]![Report Form]![Start_Date]) as parameters with > the appropriate data type, and all will be well. > > So there. We both learned something today... > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 9:48 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Transform query question > > > I get an error -- > Microsoft Jet Database Engine does not recognise '[Forms]![Report > Form]![Start_Date]' as a valid field name of expression > It works fine when the lest line is present :--\ > > >> Oleg, >> This is the default functionality of cross-tab queries (i.e. supress >> blank columns). It is overridden by specifying an IN clause in the >> PIVOT statement, to force the specfied columns to show regardless of >> whether or not they contain data. >> >> Omit the In ("Jan","Feb"... from the query and it should return what >> you want, e.g.: >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref > > >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm"); >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Monday, February 23, 2004 9:18 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Transform query question >> >> >> Good Morning Group >> >> I have a transform query, and I would like for it to show only the >> columns that actually contain data, so if there is no data for >> September and October, just show August column followed by November. >> Is it possible ? >> >> Thank yo >> Oleg >> >> TRANSFORM Count([Ron Data enf].ID) AS CountOfID >> SELECT [Ron Data enf].REFERDEPTorSRO AS Origin, Count([Ron Data >> enf].ID) AS Total >> FROM [Ron Data enf] >> WHERE (((IIf([Ron Data enf]![Date Case Ref Received]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data enf]![Date Case Ref >> Received]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not >> Null)) GROUP BY [Ron Data enf].REFERDEPTorSRO >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > ---------------------------------------------------------------------------- > ---------------------------------------- >> This email and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom >> they are addressed. >> If you have received this email in error please notify the >> originator of the message. This footer also confirms that this >> email message has been scanned for the presence of computer viruses. >> >> Any views expressed in this message are those of the individual >> sender, except where the sender specifies and with authority, >> states them to be the views of Tappe Construction Co. >> >> Scanning of this message and addition of this footer is performed by >> SurfControl E-mail Filter software in conjunction with >> virus detection software. >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ---------------------------------------------------------------------------- ---------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From DWUTKA at marlow.com Mon Feb 23 11:07:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 11:07:32 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C4@main2.marlow.com> Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. Yes, it is relatively easy to get into, and thus can be seen as a 'power user' language, however, I believe the real 'purpose' of VB/VBA, is to drive computer 'programming' where it needs to go. Whenever I get into a discussion about VB, I always think of the phrase 'Standing on the shoulders of giants', because that is what VB is, really. In VB, there is quite frankly very little that you cannot do. Most of those are by design. For instance, you can't have a -0 in VB. But that is by design. Sure, at some very basic level, there may be a need for a negative zero, but not in regular math. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 6:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) If I had to guess at the future, I would see VB/A surviving as a kind of power user programming language and a new crop of programmers steeped in UML and object hierarchy design since their teens that will embrace the true object oriented languages. ====I think you've hit the nail on the head, but I think the truth is, VBA was always intended as a user programming language -- that developers have pushed its limits are to its credits, but I don't think it was ever meant to do some of the things you guys make it do. ;) Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Feb 23 11:25:27 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 12:25:27 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE39C@TAPPEEXCH01> Message-ID: <59922.63.251.87.214.1077557127.squirrel@heck.bay9.com> Why is it prompting me for status ? TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) AS Total FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Mon Feb 23 11:26:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 11:26:32 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278C5@main2.marlow.com> Sure, use this: Function RemoveLinkedTables(strPath As String) Dim cnn As New ADODB.Connection Dim rs As New ADODB.Recordset cnn.Provider = "Microsoft.JET.OLEDB.4.0" cnn.Open "D:\Databases\AccessD.mdb" Set rs = cnn.OpenSchema(adSchemaTables) rs.MoveFirst Do Until rs.EOF = True If rs.Fields("TABLE_TYPE") = "LINK" Then cnn.Execute "DROP Table " & rs.Fields("TABLE_NAME") End If rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing End Function Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Monday, February 23, 2004 4:40 AM To: AccessD List Subject: [AccessD] A2K:ADO Version of the following Hello all I have a nice bit of code (Thanks Deano) that drops all the linked tables in a dB - cool Does anyone know the ADO version of the code below? Many thanks Darren """""""""""""""""""""""""""""""""""""""""""""" Dim lnk As DAO.tabledef For Each lnk In CurrentDb.TableDefs If lnk.Attributes = dbAttachedTable Then CurrentDb.TableDefs.Delete lnk.Name End If Next _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Feb 23 11:40:33 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 11:40:33 -0600 Subject: [AccessD] another Transform query question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> You included your aggregate field (Count([Ron Data Mid OP].ID)) twice in the query. It should only appear in the TRANSFORM portion: TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" as [Status] FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); I'm assuming that you want a single row with overall totals by month, right? -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Monday, February 23, 2004 11:25 AM To: accessd at databaseadvisors.com Subject: [AccessD] another Transform query question Why is it prompting me for status ? TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) AS Total FROM [Ron Data Mid OP] GROUP BY [Status] PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: Message-ID: <20040223174720.GUZP1897.imf18aec.mail.bellsouth.net@SUSANONE> I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C4@main2.marlow.com> Message-ID: <20040223174726.GVAR1897.imf18aec.mail.bellsouth.net@SUSANONE> Doesn't matter what it "is" or has become -- what we were discussing was its original market. ;) Susan H. Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. From ssharkins at bellsouth.net Mon Feb 23 11:47:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 12:47:21 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C3@main2.marlow.com> Message-ID: <20040223174732.GVBZ1897.imf18aec.mail.bellsouth.net@SUSANONE> Similar in 2003 -- changed it, still ignoring every new address I've added. Only sees the old OE list that I imported -- the same list it saw before I imported it. "... Something is not right..." Susan H. In Outlook 2k, what determines the 'AutoComplete' feature for addresses, is in the Address book window. Once in that window, click Tools, then Options. You should have a window that has a listbox at the bottom, which has something along these lines above it... When sending mail, check names using these address lists in the following order. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, February 22, 2004 7:38 AM To: 'Access Developers discussion and problem solving' Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Susan is too busy to post those "impossible" questions which did catalyze threads with 100+ messages. ===========I apologize for all my failings. :) I have been busy -- working on my third book with Mike G since fall. Nothing this crowd will be interested in though I don't think. :) An interesting one will be out next month and I'll be glad to talk about it then -- cause I'd like to get this crowd's reaction to the whole move. I've been using Outlook 2003 and there are things that just don't work that seem to work for other people -- I have no clue what's wrong with it (aside from my incompetence in this area). :( For instance, the new AutoComplete feature uses names from my Outlook Express address book instead of the Outlook contacts I've entered. It did that before I imported the address book from OE. I imported it, but Outlook still won't read names entered as contacts--it only uses the names in my original OE address book. Truly strange. But overall, I like it better than OE, even if it is still a memory hog. If anyone's using the BCM and has some good documentation they could point me to I'd be grateful. I don't have any articles for the next issue of MTM, so somebody needs to get busy. :) I followed the article on Access becoming extinct and found it interesting -- how many of you are actually using or supporting Access 2003? I'm curious if any of you are actually using any of the new features like the Object Dependencies task pane and so on. I have to upgrade each time, but at this point, publishers are wanting to cover up to 4 versions in one article -- I tell them, "no, but thank you for asking..." ;) Collaboration seems to be the big push and I just don't have any need for it personally, but that is the push so my guess is a large part of the user base wants it. We don't need no stinkin' smart tags... ;) How many of you are moving to .NET? Seems like the next frontier, but I may not go west. ;) I'm getting to old to keep up. ;) I'll be working with basics, but I can't imagine ever taking it on at a development level. I don't like working that hard. Unlike so many of you, this is just something I do to make money, not something I'm passionate about. I don't code in my sleep -- unless I'm having a nightmare. :) Shouldn't TechEd be just around the corner? Anyone going? I haven't been in years. 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 prodevmg at yahoo.com Mon Feb 23 11:48:14 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 23 Feb 2004 09:48:14 -0800 (PST) Subject: [AccessD] ListView or TreeView to show directory listing Message-ID: <20040223174814.7206.qmail@web20405.mail.yahoo.com> I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From adtp at touchtelindia.net Mon Feb 23 11:50:22 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 23 Feb 2004 23:20:22 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Message-ID: <004501c3fa35$a3826bb0$121865cb@winxp> My sincere thanks Drew! I shall try it out and let you know. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From Oleg_123 at xuppa.com Mon Feb 23 11:59:13 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 12:59:13 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE39F@TAPPEEXCH01> Message-ID: <54769.63.251.87.214.1077559153.squirrel@heck.bay9.com> I would hope it would be that simple.. nee, it keeps prompting me for status :(( (not to mention that it takes like 4 minutes for a query to open) Also, they change their mind, they now want it to prompt, like I had in the first one.. TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" AS Status FROM [Ron Data Mid OP] WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY [Status] PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); whats the better way to do prompts ? > You included your aggregate field (Count([Ron Data Mid OP].ID)) twice in > the query. It should only appear in the TRANSFORM portion: > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" as [Status] > FROM [Ron Data Mid OP] > GROUP BY [Status] > PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); > > I'm assuming that you want a single row with overall totals by month, > right? > > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 11:25 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] another Transform query question > > > Why is it prompting me for status ? > > TRANSFORM Count([Ron Data Mid OP].ID) AS CountOfID > SELECT "Investigation Opened" as [Status], Count([Ron Data Mid OP].ID) > AS Total > FROM [Ron Data Mid OP] > GROUP BY [Status] > PIVOT Format([MS Date Opened],"mmm") In ("Sep","Oct","Nov","Dec"); > > -------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. > If you have received this email in error please notify the > originator of the message. This footer also confirms that this > email message has been scanned for the presence of computer viruses. > > Any views expressed in this message are those of the individual > sender, except where the sender specifies and with authority, > states them to be the views of Tappe Construction Co. > > Scanning of this message and addition of this footer is performed > by SurfControl E-mail Filter software in conjunction with > virus detection software. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mikedorism at adelphia.net Mon Feb 23 12:03:06 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 23 Feb 2004 13:03:06 -0500 Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <20040223174814.7206.qmail@web20405.mail.yahoo.com> Message-ID: <000001c3fa37$4a507d00$a1194244@hargrove.internal> You want a treeview control. I have code I can send you offline to show you how to populate the tree. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 12:48 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at DFA.STATE.NY.US Mon Feb 23 12:51:18 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Mon, 23 Feb 2004 13:51:18 -0500 Subject: [AccessD] another Transform query question Message-ID: Try TRANSFORM Count([Ron Data Mid OP].ID) AS Total SELECT "Investigation Opened" AS Status FROM [Ron Data Mid OP] WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report Form]![End_Date],"Cases Closed")) Is Not Null)) GROUP BY "Investigation Opened" PIVOT Format([AMTS Date Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); Patti > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Monday, February 23, 2004 12:59 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] another Transform query question > > > I would hope it would be that simple.. nee, it keeps prompting me for > status :(( > (not to mention that it takes like 4 minutes for a query to open) > Also, they change their mind, they now want it to prompt, > like I had in > the first one.. > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > Opened]<=[Forms]![Report > Form]![End_Date],"Cases Closed")) Is Not Null)) > GROUP BY [Status] > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > > > whats the better way to do prompts ? > > From my.lists at verizon.net Mon Feb 23 13:12:36 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 23 Feb 2004 11:12:36 -0800 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <15720005656.20040223142153@cactus.dk> References: <004301c3fa0d$dfd54240$2b669a89@DDICK> <15720005656.20040223142153@cactus.dk> Message-ID: <403A50A4.7090508@verizon.net> That would delete the table :S -- -Francisco Gustav Brock wrote: >Hi Darren > >Can't you use a pass-through query and SQL: > > DROP TABLE ... > >/gustav > > > > >>Bugger >> >> > > > >>>Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >>>equivalent in ADO. >>> >>> > >--- > > > >>>I have a nice bit of code (Thanks Deano) that drops all the linked tables in >>>a dB - cool >>>Does anyone know the ADO version of the code below? >>> >>>Many thanks >>> >>>Darren >>> >>>"""""""""""""""""""""""""""""""""""""""""""""" >>> Dim lnk As DAO.tabledef >>> >>> For Each lnk In CurrentDb.TableDefs >>> If lnk.Attributes = dbAttachedTable Then >>> CurrentDb.TableDefs.Delete lnk.Name >>> End If >>> Next >>> >>> From Patricia.O'Connor at DFA.STATE.NY.US Mon Feb 23 13:29:43 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Mon, 23 Feb 2004 14:29:43 -0500 Subject: [AccessD] another Transform query question Message-ID: Oleg, I don't think you really need the IIF. The where statement using just the dates should be enough and might speed up the query. > TRANSFORM Count([Ron Data Mid OP].[ID]) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE ([Ron Data Mid OP].[MS Date Opened] >= [Forms]![Report > Form]![Start_Date]) And ([Ron Data Mid OP].[MS Date > Opened]<=[Forms]![Report Form]![End_Date]) > > > GROUP BY "Investigation Opened" > > > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > Patti > -----Original Message----- > From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] > Sent: Monday, February 23, 2004 01:51 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] another Transform query question > > > > Try > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > SELECT "Investigation Opened" AS Status > FROM [Ron Data Mid OP] > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > Opened]<=[Forms]![Report > Form]![End_Date],"Cases Closed")) Is Not Null)) > > > GROUP BY "Investigation Opened" > > > PIVOT Format([AMTS Date Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > Nov","Dec"); > > > Patti > > > -----Original Message----- > > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > > Sent: Monday, February 23, 2004 12:59 PM > > To: accessd at databaseadvisors.com > > Subject: RE: [AccessD] another Transform query question > > > > > > I would hope it would be that simple.. nee, it keeps > prompting me for > > status :(( > > (not to mention that it takes like 4 minutes for a query to open) > > Also, they change their mind, they now want it to prompt, > > like I had in > > the first one.. > > > > TRANSFORM Count([Ron Data Mid OP].ID) AS Total > > SELECT "Investigation Opened" AS Status > > FROM [Ron Data Mid OP] > > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report > > Form]![Start_Date] And [Ron Data Mid OP]![MS Date > > Opened]<=[Forms]![Report > > Form]![End_Date],"Cases Closed")) Is Not Null)) > > GROUP BY [Status] > > PIVOT Format([AMTS Date Opened],"mmm") In > > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," > > Nov","Dec"); > > > > > > whats the better way to do prompts ? > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Mon Feb 23 13:38:27 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 23 Feb 2004 14:38:27 -0500 (EST) Subject: [AccessD] another Transform query question In-Reply-To: References: Message-ID: <59866.63.251.87.214.1077565107.squirrel@heck.bay9.com> thanks a lot, seems to be working :--) now I'll do another one taking away the missing months llike Brett suggested, and see which the like better > Oleg, > > I don't think you really need the IIF. The where statement using just > the dates should be enough and might speed up the query. > > > >> TRANSFORM Count([Ron Data Mid OP].[ID]) AS Total >> SELECT "Investigation Opened" AS Status >> FROM [Ron Data Mid OP] > >> WHERE ([Ron Data Mid OP].[MS Date Opened] >= [Forms]![Report >> Form]![Start_Date]) And ([Ron Data Mid OP].[MS Date >> Opened]<=[Forms]![Report Form]![End_Date]) >> >> >> GROUP BY "Investigation Opened" >> >> >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> > > Patti > >> -----Original Message----- >> From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >> Sent: Monday, February 23, 2004 01:51 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] another Transform query question >> >> >> >> Try >> >> TRANSFORM Count([Ron Data Mid OP].ID) AS Total >> SELECT "Investigation Opened" AS Status >> FROM [Ron Data Mid OP] >> WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data Mid OP]![MS Date >> Opened]<=[Forms]![Report >> Form]![End_Date],"Cases Closed")) Is Not Null)) >> >> >> GROUP BY "Investigation Opened" >> >> >> PIVOT Format([AMTS Date Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> >> >> Patti >> >> > -----Original Message----- >> > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> > Sent: Monday, February 23, 2004 12:59 PM >> > To: accessd at databaseadvisors.com >> > Subject: RE: [AccessD] another Transform query question >> > >> > >> > I would hope it would be that simple.. nee, it keeps >> prompting me for >> > status :(( >> > (not to mention that it takes like 4 minutes for a query to open) >> Also, they change their mind, they now want it to prompt, >> > like I had in >> > the first one.. >> > >> > TRANSFORM Count([Ron Data Mid OP].ID) AS Total >> > SELECT "Investigation Opened" AS Status >> > FROM [Ron Data Mid OP] >> > WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >> Form]![Start_Date] And [Ron Data Mid OP]![MS Date >> > Opened]<=[Forms]![Report >> > Form]![End_Date],"Cases Closed")) Is Not Null)) >> > GROUP BY [Status] >> > PIVOT Format([AMTS Date Opened],"mmm") In >> > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"," >> Nov","Dec"); >> > >> > >> > whats the better way to do prompts ? >> > >> >> >> > >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Mon Feb 23 13:57:32 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 23 Feb 2004 13:57:32 -0600 Subject: [AccessD] Re: another Transform query question In-Reply-To: <200402231800.i1NI0MM31016@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040223135557.03601010@pop3.highstream.net> The best way of doing this is to design a form to gather the data. Then create the SQL Statement based on the form. Then replace the SQL statement in an existing query for use with reports and/or forms for displaying the resulting data. Robert At 12:00 PM 2/23/2004 -0600, you wrote: >Date: Mon, 23 Feb 2004 12:59:13 -0500 (EST) >From: >Subject: RE: [AccessD] another Transform query question >To: >Message-ID: <54769.63.251.87.214.1077559153.squirrel at heck.bay9.com> >Content-Type: text/plain; charset=iso-8859-1 > >I would hope it would be that simple.. nee, it keeps prompting me for >status :(( >(not to mention that it takes like 4 minutes for a query to open) >Also, they change their mind, they now want it to prompt, like I had in >the first one.. > >TRANSFORM Count([Ron Data Mid OP].ID) AS Total >SELECT "Investigation Opened" AS Status >FROM [Ron Data Mid OP] >WHERE (((IIf([Ron Data Mid OP]![MS Date Opened]>=[Forms]![Report >Form]![Start_Date] And [Ron Data Mid OP]![MS Date Opened]<=[Forms]![Report >Form]![End_Date],"Cases Closed")) Is Not Null)) >GROUP BY [Status] >PIVOT Format([AMTS Date Opened],"mmm") In >("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > >whats the better way to do prompts ? From serbach at new.rr.com Mon Feb 23 14:04:23 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 23 Feb 2004 14:04:23 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040223140423.1720397048.serbach@new.rr.com> Dear Group, Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Mon Feb 23 14:01:31 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 14:01:31 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> Yes, and if it's a linked table, it just deletes the link. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 1:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following That would delete the table :S -- -Francisco Gustav Brock wrote: >Hi Darren > >Can't you use a pass-through query and SQL: > > DROP TABLE ... > >/gustav > > > > >>Bugger >> >> > > > >>>Unfortunately all that stuff is DAO specific. There is no (AFAIAA) any >>>equivalent in ADO. >>> >>> > >--- > > > >>>I have a nice bit of code (Thanks Deano) that drops all the linked tables in >>>a dB - cool >>>Does anyone know the ADO version of the code below? >>> >>>Many thanks >>> >>>Darren >>> >>>"""""""""""""""""""""""""""""""""""""""""""""" >>> Dim lnk As DAO.tabledef >>> >>> For Each lnk In CurrentDb.TableDefs >>> If lnk.Attributes = dbAttachedTable Then >>> CurrentDb.TableDefs.Delete lnk.Name >>> End If >>> Next >>> >>> _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Feb 23 14:19:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 15:19:06 -0500 Subject: [AccessD] What do you think about DAPs? In-Reply-To: <20040223140423.1720397048.serbach@new.rr.com> Message-ID: <20040223201908.JCOP22977.imf23aec.mail.bellsouth.net@SUSANONE> Because they're easy to create... But they're only useful in tbe right circumstances. Susan H. Dear Group, Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? From mwp.reid at qub.ac.uk Mon Feb 23 14:46:39 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Feb 2004 20:46:39 -0000 Subject: [AccessD] What do you think about DAPs? References: <20040223140423.1720397048.serbach@new.rr.com> Message-ID: <000b01c3fa4e$24c550d0$1b02a8c0@MARTINREID> Absolutly. Nice from a technical point of view and in a closed environment OK, otherwise I would not touch them. Martin ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Monday, February 23, 2004 8:04 PM Subject: [AccessD] What do you think about DAPs? > Dear Group, > > Are Data Access Pages a waste of space, time, and money? The Access 2000 Developers Handbook has so many gotchas and warnings that it seems hardly worth the effort. Why would anyone want to use them? > > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Without men, civilization would last until the oil needed changing." - Fred Reed > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Mon Feb 23 15:05:04 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 23 Feb 2004 16:05:04 -0500 Subject: [AccessD] ActiveX Calendar Control range Message-ID: <20040223210514.UQKG1830.imf16aec.mail.bellsouth.net@SUSANONE> I'm using text controls to display a range, but the control itself only seems to let you click one day on the actual calendar layout. Can't seem to extend the visual selection. Is this true? Susan H. From cfoust at infostatsystems.com Mon Feb 23 15:10:34 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 13:10:34 -0800 Subject: [AccessD] ActiveX Calendar Control range Message-ID: Try the MonthView control instead of the Calendar Control. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, February 23, 2004 1:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Calendar Control range I'm using text controls to display a range, but the control itself only seems to let you click one day on the actual calendar layout. Can't seem to extend the visual selection. Is this true? Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Mon Feb 23 15:41:56 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 23 Feb 2004 13:41:56 -0800 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278CC@main2.marlow.com> Message-ID: <403A73A4.4070602@verizon.net> wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > From DWUTKA at marlow.com Mon Feb 23 16:31:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 16:31:18 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D2@main2.marlow.com> It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce_bruen at mlc.com.au Mon Feb 23 16:40:29 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Tue, 24 Feb 2004 09:40:29 +1100 Subject: [AccessD] A2K:ADO Version of the following Message-ID: NO ARCHIVE Drew, You never know who might be listening mate - dont give any ideas! B DWUTKA at marlow.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] A2K:ADO Version of the following 24/02/2004 09:31 Please respond to Access Developers discussion and problem solving It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Mon Feb 23 16:57:11 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 23 Feb 2004 16:57:11 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040223165711.283524285.serbach@new.rr.com> Susan and Martin, Hey! Nice for the frequent book collaborators to be right in there on the reply! I'm just curious, really. I have one client who says he wants the application I wrote for him to go up on the Internet. Talk about taking the guts out of a perfectly good application! Besides which he's going to be chary about the (considerable) additional expense. That's why I thought that keeping it in an Access-based thing might be the way to go. Susan, any elaboration on what you mean by "the right circumstances?" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Mon Feb 23 16:54:50 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 16:54:50 -0600 Subject: [AccessD] A2K:ADO Version of the following Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D4@main2.marlow.com> I think Access WOULD be dead if MS did that in their next version! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of bruce_bruen at mlc.com.au Sent: Monday, February 23, 2004 4:40 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K:ADO Version of the following NO ARCHIVE Drew, You never know who might be listening mate - dont give any ideas! B DWUTKA at marlow.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] A2K:ADO Version of the following 24/02/2004 09:31 Please respond to Access Developers discussion and problem solving It would kind of suck if you lost the BE tables when you deleted the links in the FE! LOL! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 23, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following wow you learn something new everyday :D -- -Francisco DWUTKA at marlow.com wrote: >Yes, and if it's a linked table, it just deletes the link. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H >Tapia >Sent: Monday, February 23, 2004 1:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A2K:ADO Version of the following > > >That would delete the table :S > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 16:58:22 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 09:58:22 +1100 Subject: [AccessD] A2K:ADO Version of the following References: <001001c3fa1b$10905020$7001a8c0@COA3> Message-ID: <00c401c3fa60$8963cf50$48619a89@DDICK> Hi Steve Thank for the response What ref do I need to set? many thanks Darren ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 1:40 AM Subject: RE: [AccessD] A2K:ADO Version of the following > You need to use ADOX, which is ADO for DDL and Security. If you have > ADO, you have ADOX. Add the reference, and then use something like: > > Public Sub DelLinkedADO() > Dim c As New ADOX.Catalog > Dim t As ADOX.Table > > Set c.ActiveConnection = CurrentProject.Connection > > For Each t In c.Tables > If t.Type = "link" Then > c.Tables.Delete t.Name > End If > Next > End Sub > > Hth, > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Bugger > > Thanks John > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 23, 2004 10:40 PM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > any equivalent in ADO. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > > Sent: Monday, February 23, 2004 5:40 AM > > To: AccessD List > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > Hello all > > I have a nice bit of code (Thanks Deano) that drops all the linked > > tables in a dB - cool Does anyone know the ADO version of the code > > below? > > > > Many thanks > > > > Darren > > > > """""""""""""""""""""""""""""""""""""""""""""" > > Dim lnk As DAO.tabledef > > > > For Each lnk In CurrentDb.TableDefs > > If lnk.Attributes = dbAttachedTable Then > > CurrentDb.TableDefs.Delete lnk.Name > > End If > > Next > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 23 17:10:54 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 24 Feb 2004 09:10:54 +1000 Subject: [AccessD] OT Quick Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C2@main2.marlow.com> Message-ID: <403B151E.23967.148F00@localhost> On 23 Feb 2004 at 10:48, DWUTKA at marlow.com wrote: > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't outright do > for you. After that, there is VBA. I know you said 'no programming', but I > think everyone on the list, who has delved into VBA, would agree, that it's > a vital skill. I personally don't know what I did before I knew VBA. > Built a lot of horrific macros ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Mon Feb 23 17:16:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 24 Feb 2004 09:16:13 +1000 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <00c401c3fa60$8963cf50$48619a89@DDICK> Message-ID: <403B165D.18198.196C5C@localhost> On 24 Feb 2004 at 9:58, Darren DICK wrote: > Hi Steve > Thank for the response > What ref do I need to set? > Look for something like "Microsoft ADO Ext 2.x for DDL and Security." -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Mon Feb 23 17:16:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Feb 2004 15:16:46 -0800 Subject: [AccessD] What do you think about DAPs? Message-ID: It you're talking about INTERNet instead of INTRANet, those are not the right circumstances. DAPs are intended to be used within a network on machines with the relevant version of Access installed. Charlotte Foust -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Monday, February 23, 2004 2:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What do you think about DAPs? Susan and Martin, Hey! Nice for the frequent book collaborators to be right in there on the reply! I'm just curious, really. I have one client who says he wants the application I wrote for him to go up on the Internet. Talk about taking the guts out of a perfectly good application! Besides which he's going to be chary about the (considerable) additional expense. That's why I thought that keeping it in an Access-based thing might be the way to go. Susan, any elaboration on what you mean by "the right circumstances?" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Mon Feb 23 17:26:05 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 23 Feb 2004 18:26:05 -0500 Subject: [AccessD] A2K:ADO Version of the following In-Reply-To: <00c401c3fa60$8963cf50$48619a89@DDICK> Message-ID: <000701c3fa64$6d28a640$7001a8c0@COA3> On the pc I am at right now, it's: "Microsoft ADO Ext. 2.5 for DDL and Security" (the filename is msadox.dll). G2H (glad to help!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, February 23, 2004 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:ADO Version of the following Hi Steve Thank for the response What ref do I need to set? many thanks Darren ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 1:40 AM Subject: RE: [AccessD] A2K:ADO Version of the following > You need to use ADOX, which is ADO for DDL and Security. If you have > ADO, you have ADOX. Add the reference, and then use something like: > > Public Sub DelLinkedADO() > Dim c As New ADOX.Catalog > Dim t As ADOX.Table > > Set c.ActiveConnection = CurrentProject.Connection > > For Each t In c.Tables > If t.Type = "link" Then > c.Tables.Delete t.Name > End If > Next > End Sub > > Hth, > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 8:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Bugger > > Thanks John > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 23, 2004 10:40 PM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > any equivalent in ADO. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren > > DICK > > Sent: Monday, February 23, 2004 5:40 AM > > To: AccessD List > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > Hello all > > I have a nice bit of code (Thanks Deano) that drops all the linked > > tables in a dB - cool Does anyone know the ADO version of the code > > below? > > > > Many thanks > > > > Darren > > > > """""""""""""""""""""""""""""""""""""""""""""" > > Dim lnk As DAO.tabledef > > > > For Each lnk In CurrentDb.TableDefs > > If lnk.Attributes = dbAttachedTable Then > > CurrentDb.TableDefs.Delete lnk.Name > > End If > > Next > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 23 17:34:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Feb 2004 17:34:17 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278D6@main2.marlow.com> Ya, but I was the Macro KING! ! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Monday, February 23, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question On 23 Feb 2004 at 10:48, DWUTKA at marlow.com wrote: > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't outright do > for you. After that, there is VBA. I know you said 'no programming', but I > think everyone on the list, who has delved into VBA, would agree, that it's > a vital skill. I personally don't know what I did before I knew VBA. > Built a lot of horrific macros ? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Feb 23 19:37:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 24 Feb 2004 12:37:04 +1100 Subject: [AccessD] A2K:ADO Version of the following References: <000701c3fa64$6d28a640$7001a8c0@COA3> Message-ID: <012001c3fa76$b51fc930$48619a89@DDICK> NO ARCHIVE Thanks Steve I worked it out Thanks again ----- Original Message ----- From: "Developer" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 24, 2004 10:26 AM Subject: RE: [AccessD] A2K:ADO Version of the following > On the pc I am at right now, it's: "Microsoft ADO Ext. 2.5 for DDL and > Security" (the filename is msadox.dll). > > G2H (glad to help!) > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, February 23, 2004 5:58 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:ADO Version of the following > > > Hi Steve > Thank for the response > What ref do I need to set? > > many thanks > > Darren > > ----- Original Message ----- > From: "Developer" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, February 24, 2004 1:40 AM > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > You need to use ADOX, which is ADO for DDL and Security. If you have > > ADO, you have ADOX. Add the reference, and then use something like: > > > > Public Sub DelLinkedADO() > > Dim c As New ADOX.Catalog > > Dim t As ADOX.Table > > > > Set c.ActiveConnection = CurrentProject.Connection > > > > For Each t In c.Tables > > If t.Type = "link" Then > > c.Tables.Delete t.Name > > End If > > Next > > End Sub > > > > Hth, > > Steve > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > > Sent: Monday, February 23, 2004 8:07 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K:ADO Version of the following > > > > > > Bugger > > > > Thanks John > > > > ----- Original Message ----- > > From: "John W. Colby" > > To: "Access Developers discussion and problem solving" > > > > Sent: Monday, February 23, 2004 10:40 PM > > Subject: RE: [AccessD] A2K:ADO Version of the following > > > > > > > Unfortunately all that stuff is DAO specific. There is no (AFAIAA) > > > any equivalent in ADO. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren > > > DICK > > > Sent: Monday, February 23, 2004 5:40 AM > > > To: AccessD List > > > Subject: [AccessD] A2K:ADO Version of the following > > > > > > > > > Hello all > > > I have a nice bit of code (Thanks Deano) that drops all the linked > > > tables in a dB - cool Does anyone know the ADO version of the code > > > below? > > > > > > Many thanks > > > > > > Darren > > > > > > """""""""""""""""""""""""""""""""""""""""""""" > > > Dim lnk As DAO.tabledef > > > > > > For Each lnk In CurrentDb.TableDefs > > > If lnk.Attributes = dbAttachedTable Then > > > CurrentDb.TableDefs.Delete lnk.Name > > > End If > > > Next > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Mon Feb 23 23:42:21 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 24 Feb 2004 16:42:21 +1100 Subject: [AccessD] One Record to MS Word Message-ID: <002701c3fa98$f96a1d80$0100000a@mirridong> Hi Folks I need to move the current record in an Access (2000) form into a MS Word document which has the appropriate merge fields created .... return to Access and do it again with another record as required. What's the most expedient method to achieve this? I have played around with a few methods but there must be an easier way! Martin From caa at highway.com.br Tue Feb 24 05:59:31 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Tue, 24 Feb 2004 08:59:31 -0300 Subject: [AccessD] Backup routines Message-ID: Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From bheid at appdevgrp.com Tue Feb 24 06:18:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 24 Feb 2004 07:18:38 -0500 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA307A78CC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> I think the answer is: it depends. If this is data that cannot be recreated easily and you have no other backup mechanism in place, I'd say that this is not over-cautious. On my machine at home, I do weekly backups. But I use a program called Replicator to replicate several key folders to another drive, just in case. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto Alves Sent: Tuesday, February 24, 2004 7:00 AM To: AccessD List Subject: [AccessD] Backup routines Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Feb 24 07:47:29 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 08:47:29 -0500 Subject: [AccessD] OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD4F@TTNEXCHSRV1.hshhp.com> No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Tue Feb 24 09:58:41 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 24 Feb 2004 09:58:41 -0600 Subject: [AccessD] Add records with sequential numbers Message-ID: I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina _________________________________________________________________ Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ From prodevmg at yahoo.com Tue Feb 24 10:18:00 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 24 Feb 2004 08:18:00 -0800 (PST) Subject: [AccessD] Add records with sequential numbers In-Reply-To: Message-ID: <20040224161800.21133.qmail@web20414.mail.yahoo.com> You could append to the table using a recordset object. This way you could get your next invoice number as you usually do, then increment it as you desire inside the vba that is doing the appending. Gina Hoopes wrote: I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina _________________________________________________________________ Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From caa at highway.com.br Tue Feb 24 10:27:05 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Tue, 24 Feb 2004 13:27:05 -0300 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> Message-ID: On Tue, 24 Feb 2004 07:18:38 -0500, Bobby Heid wrote: > I think the answer is: it depends. > > If this is data that cannot be recreated easily and you have no other > backup > mechanism in place, I'd say that this is not over-cautious. > > On my machine at home, I do weekly backups. But I use a program called > Replicator to replicate several key folders to another drive, just in > case. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto > Alves > Sent: Tuesday, February 24, 2004 7:00 AM > To: AccessD List > Subject: [AccessD] Backup routines > > > Dear Members: > I would like to have your input on this subject. I wrote a Sub to execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > Do you think that such a 30-day backup routine is overzealous??? Thanks > for > your opinion, Hi Bobby! It is a commercial medical app and hospital?s network administrator set just 5 backup copies (Mon thru Fri). Last year we faced a BE corruption and lost data because there was no backup copy older than 5 days. :( -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From rl_stewart at highstream.net Tue Feb 24 10:31:40 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 24 Feb 2004 10:31:40 -0600 Subject: [AccessD] Re: Add records with sequential numbers In-Reply-To: <200402241559.i1OFxWM30683@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040224102719.029cccf8@pop3.highstream.net> Gina, The simple way is to create a table with all of the invoice number she could use. As they are used delete them. Use the autonumber field as the PK and set the Invoice Number field to a unique index that ignores nulls. Add a field to the Invoice ProcessFlag (Yes/No) default it to No. Have her use that to select the ones to process and limit the list to those not processed. In the "Process Button," add code that will loop through all those selected for processing and get an invoice number from the table you created. As you get the invoice number, delete it from the list of available invoice numbers. Robert At 09:59 AM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 09:58:41 -0600 >From: "Gina Hoopes" >Subject: [AccessD] Add records with sequential numbers >To: AccessD at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >I've got an invoicing database that the end user has used to create invoices >on an individual basis. Each time she clicks the "new invoice" button, I've >coded the form to give her the next number in sequence. She has a specific >range of numbers she's required to use, so it can't just be an Auto Number. >Anyway, it's been working great, but now they want to automate the process >so that the db automatically generates all invoices for the month after I've >presented her with a screen to check or uncheck those that should be >created. So, what I need help with doing is taking the temp table which >contains those items she's checked, appending them to the Invoices table, >and assigning them numbers in sequence. If this was a straight auto number >situation it would be easy, but I can't figure out how to get it to work >using her numbering system. The invoice number field is a text field >because it contains non-numeric characters, but I've been able to get it to >behave as a number for the individual creation purpose I described above by >stripping the alpha characters, adding 1, then putting the alpha characters >back in. Can someone give me an idea of how to use an append query, or >something similar, that will allow me to automate this process? > >Thanks, >Gina From Oleg_123 at xuppa.com Tue Feb 24 10:32:58 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 11:32:58 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <20040224161800.21133.qmail@web20414.mail.yahoo.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> Message-ID: <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> Hi Group i have a CrossTab query that gives result in a following order Jan Feb Mar Apr Jun Jul etc... 4 55 2 12 43 6 If the user selects as dates March 1 to April 31, i'll need to show the data combining everything before and after -- (the field names don't matter) Feb Mar Apr Jun 59 2 12 49 is it possible to do in a crosstab query ? oleg TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format([Preliminary Investigation Opened],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From adtp at touchtelindia.net Tue Feb 24 10:35:54 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 24 Feb 2004 22:05:54 +0530 Subject: [AccessD] Add records with sequential numbers References: Message-ID: <007801c3faf4$6ec69c60$811865cb@winxp> Gina, You could consider a query for appending new records having values incrementing by 1, starting with MaxVal + 1 . (MaxVal is existing maximum value of the field holding series data) It involves an interesting use of simple custom functions based upon global variables. Relevant SQL as well as the code details are given below. Regards, A.D.Tejpal -------------- ====================== Let main table be named T_Series having one of the fields named RefValue (Number type long) for holding a series of numerical values. Table T_SeriesAppend is the table from which data is to be appended to table T_Series and has same structure. ====================== SQL Statement (Append Query) - INSERT INTO T_Series ( RefValue ) SELECT Fn_SeriesNext([T_SeriesAppend].[RefValue]*0) AS RFV FROM T_SeriesAppend WHERE Fn_SeriesMax()>=0; Note - (i) Where clause is meant to set initial values for global variables MaxVal and NextVal via custom function Fn_SeriesMax() (ii) Multiplication by zero in the argument passed to function Fn_SeriesNext() in the Append SQL is meant to force discarding of existing value for field RefValue in the second table i.e. T_SeriesAppend so that newly appended records will only carry series of values in continuation to the existing maximum in the main table. (iii) In the sample SQL for append action, only the series field has been mentioned for illustration. Other fields can be included as desired. Code Module - Option Compare Database Option Explicit Public MaxVal As Long, NextVal As Long Function Fn_SeriesMax() As Long MaxVal = Nz(DMax("RefValue", "T_Series"), 0) NextVal = MaxVal + 1 Fn_SeriesMax = MaxVal End Function Function Fn_SeriesNext(ByVal FValue As Variant) As Long FValue = Nz(FValue, 0) If FValue > 0 Then Fn_SeriesNext = FValue Else Fn_SeriesNext = NextVal NextVal = NextVal + 1 End If End Function ===================================== ----- Original Message ----- From: Gina Hoopes To: AccessD at databaseadvisors.com Sent: Tuesday, February 24, 2004 21:28 Subject: [AccessD] Add records with sequential numbers I've got an invoicing database that the end user has used to create invoices on an individual basis. Each time she clicks the "new invoice" button, I've coded the form to give her the next number in sequence. She has a specific range of numbers she's required to use, so it can't just be an Auto Number. Anyway, it's been working great, but now they want to automate the process so that the db automatically generates all invoices for the month after I've presented her with a screen to check or uncheck those that should be created. So, what I need help with doing is taking the temp table which contains those items she's checked, appending them to the Invoices table, and assigning them numbers in sequence. If this was a straight auto number situation it would be easy, but I can't figure out how to get it to work using her numbering system. The invoice number field is a text field because it contains non-numeric characters, but I've been able to get it to behave as a number for the individual creation purpose I described above by stripping the alpha characters, adding 1, then putting the alpha characters back in. Can someone give me an idea of how to use an append query, or something similar, that will allow me to automate this process? Thanks, Gina From gustav at cactus.dk Tue Feb 24 10:37:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 17:37:18 +0100 Subject: [AccessD] Add records with sequential numbers In-Reply-To: References: Message-ID: <10621241453.20040224173718@cactus.dk> Hi Gina For your append query which copies the invoices to the invoice table, you may be able to modify the functions we use for tasks of this type. The _Set function is used for setting the initial value (the first number), the _Get function is used in the query. For varDummy you may use any field from your source (temp) table. ' Declaration. Public lngKeyCounter As Long Public Function NextKey_Get(Optional ByVal varDummy, Optional ByVal intIncrement As Integer = 1, Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set(Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function Have fun! /gustav > I've got an invoicing database that the end user has used to create invoices > on an individual basis. Each time she clicks the "new invoice" button, I've > coded the form to give her the next number in sequence. She has a specific > range of numbers she's required to use, so it can't just be an Auto Number. > Anyway, it's been working great, but now they want to automate the process > so that the db automatically generates all invoices for the month after I've > presented her with a screen to check or uncheck those that should be > created. So, what I need help with doing is taking the temp table which > contains those items she's checked, appending them to the Invoices table, > and assigning them numbers in sequence. If this was a straight auto number > situation it would be easy, but I can't figure out how to get it to work > using her numbering system. The invoice number field is a text field > because it contains non-numeric characters, but I've been able to get it to > behave as a number for the individual creation purpose I described above by > stripping the alpha characters, adding 1, then putting the alpha characters > back in. Can someone give me an idea of how to use an append query, or > something similar, that will allow me to automate this process? From gustav at cactus.dk Tue Feb 24 11:07:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 18:07:14 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> Message-ID: <5923037986.20040224180714@cactus.dk> Hi Oleg Adjust your WHERE statement assuming you look at one calendar year only: WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= Year(CDate([Forms]![Report Form]![Start_Date]))) And [PreliminaryInvestigation Opened] Is Not Null Then, in your PIVOT statement, shift the dates outside your date range: PIVOT Format( IIf([Preliminary Investigation Opened] < CDate([Forms]![ReportForm]![Start_Date]), DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), IIf([Preliminary Investigation Opened] > CDate([Forms]![ReportForm]![End_Date]), DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), [Preliminary Investigation Opened])), "mmm") /gustav > i have a CrossTab query that gives result in a following order > Jan Feb Mar Apr Jun Jul etc... > 4 55 2 12 43 6 > If the user selects as dates March 1 to April 31, i'll need to show the > data combining everything before and after -- (the field names don't > matter) > Feb Mar Apr Jun > 59 2 12 49 > is it possible to do in a crosstab query ? > oleg > TRANSFORM Count([Ron Data spr].[ID]) AS Total > SELECT "Investigation Caseload" AS Status > FROM [Ron Data spr] > WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= > [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary > Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary > Investigation Opened] is not null > GROUP BY "Investigation Caseload" > PIVOT Format([Preliminary Investigation Opened],"mmm") In > ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); From DWUTKA at marlow.com Tue Feb 24 11:13:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:13:16 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Tue Feb 24 11:15:45 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Tue, 24 Feb 2004 12:15:45 -0500 Subject: [AccessD] Strange corruption Message-ID: <078201c3faf9$db6d9b20$6701a8c0@joe> Cross posted AccessD and Access-L I recently sent a zipped Access 2000 database to a friend. He was able to unzip and run the Access application with no problem, but he had a question about the code. So that I could look at the code while talking with him, I opened the oroiginal version on the computer that was used for development, a Win XP Pro laptop. When I attempted to open any module, the message box informing me that there is a fatal error in Access appeared, the only options are whether or not to send a report to Microsoft. After trying this several times with the same result, I thought that the database might have become corrupted so I extracted the Access application from the zip file and tried again. Same result. Copying the zip file to a Windows 2000 Terminal Server, unzipping and trying to look at a module generated the same error. I then unzipped again, but before attempting to open a module, I verified that several local tables were intact and could be opened with no problem. Opening forms which are bound to queries that use the tables also did not produce any error. After opening tables and forms, the modules then opened as expected without any errors! I tried the same procedure on the Win XP machine--unzip, look at a table, open a form, open a module. No error, it worked as expected. Has anyone else experienced strange behavior like this? Any ideas as to what could cause this situation? Joe O'Connell From DWUTKA at marlow.com Tue Feb 24 11:24:16 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:24:16 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E3@main2.marlow.com> There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Feb 24 11:25:00 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 12:25:00 -0500 Subject: [AccessD] OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD5F@TTNEXCHSRV1.hshhp.com> The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 11:26:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:26:33 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E4@main2.marlow.com> Now are we talking about much earlier versions? Or VB 6.0 and A97+ VBA? It's a little hard to discuss much about 'original markets', because Excel is still overused as a database system, and I don't think MS is pushing hard to change that! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) Doesn't matter what it "is" or has become -- what we were discussing was its original market. ;) Susan H. Actually, in my humble opinion, VB/VBA is the exact opposite. It's a language that rarely gets used to it's full potential. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Tue Feb 24 11:24:20 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Tue, 24 Feb 2004 17:24:20 +0000 Subject: [AccessD] Strange corruption Message-ID: Joe, I have had some similar problems recently. No proper solutions but I found that if I opened the database (shift-key down) and then opened one of the modules, commented the entire module out, compacted and closed...I was then able to open the database again, uncomment the module and it worked fine?! I know this sounds like voodoo, but it has happened more than once and doing this seems to work...not sure why, can only assume it has something to do with the code being compiled, but the fact that it compiles and runs fine after all that that is a little wierd to say the least. HTH Ryan "Joseph O'Connell" Sent by: accessd-bounces at databaseadvisors.com 24/02/2004 17:15 Please respond to Access Developers discussion and problem solving To: "Microsoft Access Database Discussion List" , cc: Subject: [AccessD] Strange corruption Cross posted AccessD and Access-L I recently sent a zipped Access 2000 database to a friend. He was able to unzip and run the Access application with no problem, but he had a question about the code. So that I could look at the code while talking with him, I opened the oroiginal version on the computer that was used for development, a Win XP Pro laptop. When I attempted to open any module, the message box informing me that there is a fatal error in Access appeared, the only options are whether or not to send a report to Microsoft. After trying this several times with the same result, I thought that the database might have become corrupted so I extracted the Access application from the zip file and tried again. Same result. Copying the zip file to a Windows 2000 Terminal Server, unzipping and trying to look at a module generated the same error. I then unzipped again, but before attempting to open a module, I verified that several local tables were intact and could be opened with no problem. Opening forms which are bound to queries that use the tables also did not produce any error. After opening tables and forms, the modules then opened as expected without any errors! I tried the same procedure on the Win XP machine--unzip, look at a table, open a form, open a module. No error, it worked as expected. Has anyone else experienced strange behavior like this? Any ideas as to what could cause this situation? Joe O'Connell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From DWUTKA at marlow.com Tue Feb 24 11:28:24 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:28:24 -0600 Subject: [AccessD] ListView or TreeView to show directory listing Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E5@main2.marlow.com> A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 24 11:34:08 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 12:34:08 -0500 (EST) Subject: [AccessD] OT Quick Question In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Message-ID: <46333.63.251.87.214.1077644048.squirrel@heck.bay9.com> basic SQL i would think, its not really programming Drew mentioned Union Query it can only be done in SQL window There is also Pass-through query, and Data definition query (which i don't think are oftened used) > Granted, but which UI's work the best, one's done strictly in Access, or > ones that utilize VBA? Sure, it may depend on the application itself, > but VBA certainly provides a lot more capability. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco > Sent: Tuesday, February 24, 2004 7:47 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT Quick Question > > > No there's one more that you're overlooking (that Access leads you to > believe it does for you) and that's UI. Access is a bit more than a > database (if we interpret DB to be a place to store your data) since it > also allows us to create the user interface/experience. In addition to > some of the down and dirty "guts" items from Jurgen's post I'd like to > see UI in that list. > > Jim DeMarco > Director Product Development > Hudson Health Plan > T 914.631.1611 x2309 > > > -----Original Message----- > From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] > Sent: Monday, February 23, 2004 11:49 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] OT Quick Question > > > Subquerries and union querries. > > Those are the only two 'skills' I can think of that Access won't > outright do for you. After that, there is VBA. I know you said 'no > programming', but I think everyone on the list, who has delved into VBA, > would agree, that it's a vital skill. I personally don't know what I > did before I knew VBA. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Sunday, February 22, 2004 3:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Quick Question > > > You just starting out with Access, bit of experience but want to know > more. No programming just basic skills. > > What would be the top 5 > > > Martin > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Tue Feb 24 11:36:18 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:36:18 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E6@main2.marlow.com> Good point. Guess I'm biased from the path I took. I started using Access 97 in July of 1999, and by August of 2000, I was beginning to delve into VBA. (it was about a month an a half.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Tue Feb 24 11:39:08 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 12:39:08 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <5923037986.20040224180714@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> Message-ID: <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> Hi Gustav I am getting this erroe -- The Microsoft Jet database engine does not recognise '[Forms]![Report Form]![Start_Date]' as a valid field or expression... It works fine with original pivot, and [Forms]![Report Form]![Start_Date] is written everywhere in the same way.. TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format( IIf([Preliminary Investigation Opened] < CDate([Forms]![Report Form]![Start_Date]), DateAdd("d", -1, CDate([Forms]![Report Form]![Start_Date])), IIf([Preliminary Investigation Opened] > CDate([Forms]![Report Form]![End_Date]), DateAdd("d", 1, CDate([Forms]![Report Form]![End_Date])), [Preliminary Investigation Opened])), "mmm") p.s. doesn't nmatter about calendar year > Hi Oleg > > Adjust your WHERE statement assuming you look at one calendar year only: > > WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= > Year(CDate([Forms]![Report Form]![Start_Date]))) > And [PreliminaryInvestigation Opened] Is Not Null > > Then, in your PIVOT statement, shift the dates outside your date > range: > > PIVOT Format( > IIf([Preliminary Investigation Opened] < > CDate([Forms]![ReportForm]![Start_Date]), > DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), > IIf([Preliminary Investigation Opened] > > CDate([Forms]![ReportForm]![End_Date]), > DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), > [Preliminary Investigation Opened])), "mmm") > > /gustav > > >> i have a CrossTab query that gives result in a following order > >> Jan Feb Mar Apr Jun Jul etc... > >> 4 55 2 12 43 6 > >> If the user selects as dates March 1 to April 31, i'll need to show >> the data combining everything before and after -- (the field names >> don't matter) > >> Feb Mar Apr Jun > >> 59 2 12 49 > >> is it possible to do in a crosstab query ? > >> oleg > > >> TRANSFORM Count([Ron Data spr].[ID]) AS Total >> SELECT "Investigation Caseload" AS Status >> FROM [Ron Data spr] >> WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= >> [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary >> Investigation Opened]<=[Forms]![Report Form]![End_Date]) and >> [Preliminary Investigation Opened] is not null >> GROUP BY "Investigation Caseload" >> PIVOT Format([Preliminary Investigation Opened],"mmm") In >> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From DWUTKA at marlow.com Tue Feb 24 11:40:56 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 11:40:56 -0600 Subject: [AccessD] OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E7@main2.marlow.com> Whoops, that is August of 1999, I was using VBA....not August of 2000. (That would be a year and a month....not a month and a half! ) Apparently I musted have missed the keeping track of time class I was supposed to take, by jumping into VBA so fast! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 11:36 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Good point. Guess I'm biased from the path I took. I started using Access 97 in July of 1999, and by August of 2000, I was beginning to delve into VBA. (it was about a month an a half.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 11:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question The original post said "just starting out with Access" so my comment follows that line of reason. Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 12:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Granted, but which UI's work the best, one's done strictly in Access, or ones that utilize VBA? Sure, it may depend on the application itself, but VBA certainly provides a lot more capability. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Tuesday, February 24, 2004 7:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Quick Question No there's one more that you're overlooking (that Access leads you to believe it does for you) and that's UI. Access is a bit more than a database (if we interpret DB to be a place to store your data) since it also allows us to create the user interface/experience. In addition to some of the down and dirty "guts" items from Jurgen's post I'd like to see UI in that list. Jim DeMarco Director Product Development Hudson Health Plan T 914.631.1611 x2309 -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, February 23, 2004 11:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT Quick Question Subquerries and union querries. Those are the only two 'skills' I can think of that Access won't outright do for you. After that, there is VBA. I know you said 'no programming', but I think everyone on the list, who has delved into VBA, would agree, that it's a vital skill. I personally don't know what I did before I knew VBA. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Sunday, February 22, 2004 3:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Quick Question You just starting out with Access, bit of experience but want to know more. No programming just basic skills. What would be the top 5 Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Tue Feb 24 12:13:46 2004 From: hoopesg at hotmail.com (Gina Hoopes) Date: Tue, 24 Feb 2004 12:13:46 -0600 Subject: [AccessD] Add records with sequential numbers Message-ID: Wow! Great solutions from several of you. I'm going to try at least this one from Gustav, and probably the others to see which one fits our situation best. Thank you for such good ideas so quickly! Gina From: Gustav Brock Reply-To: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add records with sequential numbers Date: Tue, 24 Feb 2004 17:37:18 +0100 Hi Gina For your append query which copies the invoices to the invoice table, you may be able to modify the functions we use for tasks of this type. The _Set function is used for setting the initial value (the first number), the _Get function is used in the query. For varDummy you may use any field from your source (temp) table. ' Declaration. Public lngKeyCounter As Long Public Function NextKey_Get(Optional ByVal varDummy, Optional ByVal intIncrement As Integer = 1, Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set(Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter in Declarations: ' ' Public lngKeyCounter As Long ' ' to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function Have fun! /gustav _________________________________________________________________ Dream of owning a home? Find out how in the First-time Home Buying Guide. http://special.msn.com/home/firsthome.armx From rl_stewart at highstream.net Tue Feb 24 12:23:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 24 Feb 2004 12:23:51 -0600 Subject: [AccessD] Re: OT Quick Question In-Reply-To: <200402241800.i1OI0aM10680@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040224121711.02912b98@pop3.highstream.net> Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew From gustav at cactus.dk Tue Feb 24 12:27:19 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 19:27:19 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> Message-ID: <17227843076.20040224192719@cactus.dk> Hi Oleg Try removing the CDate(..)s. Then add to the query these parameters of date type Date/Time: [Forms]![Report Form]![Start_Date] [Forms]![Report Form]![End_Date] If you wish to include any date outside the interval, just remove that from the WHERE clause: WHERE [Preliminary Investigation Opened] Is Not Null /gustav > I am getting this erroe -- The Microsoft Jet database engine does not > recognise '[Forms]![Report Form]![Start_Date]' as a valid field or > expression... > It works fine with original pivot, and [Forms]![Report Form]![Start_Date] > is written everywhere in the same way.. > TRANSFORM Count([Ron Data spr].[ID]) AS Total > SELECT "Investigation Caseload" AS Status > FROM [Ron Data spr] > WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= > [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary > Investigation Opened]<=[Forms]![Report Form]![End_Date]) and [Preliminary > Investigation Opened] is not null > GROUP BY "Investigation Caseload" > PIVOT Format( > IIf([Preliminary Investigation Opened] < CDate([Forms]![Report > Form]![Start_Date]), DateAdd("d", -1, CDate([Forms]![Report > Form]![Start_Date])), > IIf([Preliminary Investigation Opened] > CDate([Forms]![Report > Form]![End_Date]), DateAdd("d", 1, CDate([Forms]![Report > Form]![End_Date])), > [Preliminary Investigation Opened])), "mmm") > p.s. doesn't nmatter about calendar year >> Hi Oleg >> >> Adjust your WHERE statement assuming you look at one calendar year only: >> >> WHERE (Year([Ron Data spr].[Preliminary Investigation Opened])= >> Year(CDate([Forms]![Report Form]![Start_Date]))) >> And [PreliminaryInvestigation Opened] Is Not Null >> >> Then, in your PIVOT statement, shift the dates outside your date >> range: >> >> PIVOT Format( >> IIf([Preliminary Investigation Opened] < >> CDate([Forms]![ReportForm]![Start_Date]), >> DateAdd("d", -1, CDate([Forms]![ReportForm]![Start_Date])), >> IIf([Preliminary Investigation Opened] > >> CDate([Forms]![ReportForm]![End_Date]), >> DateAdd("d", 1, CDate([Forms]![ReportForm]![End_Date])), >> [Preliminary Investigation Opened])), "mmm") >> >> /gustav >> >> >>> i have a CrossTab query that gives result in a following order >> >>> Jan Feb Mar Apr Jun Jul etc... >> >>> 4 55 2 12 43 6 >> >>> If the user selects as dates March 1 to April 31, i'll need to show >>> the data combining everything before and after -- (the field names >>> don't matter) >> >>> Feb Mar Apr Jun >> >>> 59 2 12 49 >> >>> is it possible to do in a crosstab query ? >> >>> oleg >> >> >>> TRANSFORM Count([Ron Data spr].[ID]) AS Total >>> SELECT "Investigation Caseload" AS Status >>> FROM [Ron Data spr] >>> WHERE ([Ron Data spr].[Preliminary Investigation Opened] >= >>> [Forms]![Report Form]![Start_Date]) And ([Ron Data spr].[Preliminary >>> Investigation Opened]<=[Forms]![Report Form]![End_Date]) and >>> [Preliminary Investigation Opened] is not null >>> GROUP BY "Investigation Caseload" >>> PIVOT Format([Preliminary Investigation Opened],"mmm") In >>> ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); From gustav at cactus.dk Tue Feb 24 12:35:50 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Feb 2004 19:35:50 +0100 Subject: [AccessD] another CrossTabulation question In-Reply-To: <17227843076.20040224192719@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> <17227843076.20040224192719@cactus.dk> Message-ID: <16928353730.20040224193550@cactus.dk> Hi Oleg This was not clear: If you wish to include any date outside the interval, just remove the year filtering from the WHERE clause so it reads: WHERE [Preliminary Investigation Opened] Is Not Null /gustav From Oleg_123 at xuppa.com Tue Feb 24 13:03:53 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 24 Feb 2004 14:03:53 -0500 (EST) Subject: [AccessD] another CrossTabulation question In-Reply-To: <16928353730.20040224193550@cactus.dk> References: <20040224161800.21133.qmail@web20414.mail.yahoo.com> <30340.63.251.87.214.1077640378.squirrel@heck.bay9.com> <5923037986.20040224180714@cactus.dk> <10699.63.251.87.214.1077644348.squirrel@heck.bay9.com> <17227843076.20040224192719@cactus.dk> <16928353730.20040224193550@cactus.dk> Message-ID: <11295.63.251.87.214.1077649433.squirrel@heck.bay9.com> beautiful, thank u Gustav. Now the only thing left is the sorting, which i'll be thinking off now PARAMETERS [Forms]![Report Form]![Start_Date] DateTime, [Forms]![Report Form]![End_Date] DateTime; TRANSFORM Count([Ron Data spr].[ID]) AS Total SELECT "Investigation Caseload" AS Status FROM [Ron Data spr] WHERE [Preliminary Investigation Opened] is not null GROUP BY "Investigation Caseload" PIVOT Format( IIf([Preliminary Investigation Opened] < ([Forms]![Report Form]![Start_Date]), DateAdd("d", -1, ([Forms]![Report Form]![Start_Date])), IIf([Preliminary Investigation Opened] > ([Forms]![Report Form]![End_Date]), DateAdd("d", 1, ([Forms]![Report Form]![End_Date])), [Preliminary Investigation Opened])), "mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); > Hi Oleg > > This was not clear: > > If you wish to include any date outside the interval, just remove the > year filtering from the WHERE clause so it reads: > > WHERE [Preliminary Investigation Opened] Is Not Null > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From shait at mindspring.com Tue Feb 24 13:05:16 2004 From: shait at mindspring.com (Stephen Hait) Date: Tue, 24 Feb 2004 14:05:16 -0500 Subject: [AccessD] Strange corruption In-Reply-To: <078201c3faf9$db6d9b20$6701a8c0@joe> Message-ID: <403B5A1C.5401.19B06B5A@localhost> I had a somewhat similar problem arise out of the blue the other day. What fixed it for me was to [re]install the latest MDAC from MS. You might try that. Regards, Stephen > Cross posted AccessD and Access-L > > > I recently sent a zipped Access 2000 database to a friend. He was > able to unzip and run the Access application with no problem, but he > had a question about the code. So that I could look at the code > while talking with him, I opened the oroiginal version on the > computer that was used for development, a Win XP Pro laptop. When I > attempted to open any module, the message box informing me that > there is a fatal error in Access appeared, the only options are > whether or not to send a report to Microsoft. After trying this > several times with the same result, I thought that the database > might have become corrupted so I extracted the Access application > from the zip file and tried again. Same result. > > Copying the zip file to a Windows 2000 Terminal Server, unzipping > and trying to look at a module generated the same error. I then > unzipped again, but before attempting to open a module, I verified > that several local tables were intact and could be opened with no > problem. Opening forms which are bound to queries that use the > tables also did not produce any error. After opening tables and > forms, the modules then opened as expected without any errors! > > I tried the same procedure on the Win XP machine--unzip, look at a > table, open a form, open a module. No error, it worked as expected. > > Has anyone else experienced strange behavior like this? Any ideas > as to what could cause this situation? > > Joe O'Connell > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at hotmail.com Tue Feb 24 13:32:10 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Tue, 24 Feb 2004 13:32:10 -0600 Subject: [AccessD] Backup routines Message-ID: You can't back up too much. Anytime a change is made to a database if disaster were to strike, that change could be lost. How big of a problem that would be to redo varies a lot by application. In most cases backing up a database every time an change is made is simply not feasible, so you find a balance between the pain of doing the backup verses the risk of having to redo the changes. Only you and the users of your database can really determine how frequent of a backup is necessary. If you have the disk space - and disk space is relatively cheap nowadays, once a day is pretty good insurance. Now a bigger question might be, how often are those 30 days of backups backed up? What do you do if the drive they are on fails? Or what if there is a fire in the building? Copying those backups off to a CD or a tape or a removable hard drive on a regular basis and taking those removable media to an offsite location or at least a fireproof safe would give you security against a different kind of disaster. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ From mikedorism at adelphia.net Tue Feb 24 13:37:04 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 24 Feb 2004 14:37:04 -0500 Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E5@main2.marlow.com> Message-ID: <001201c3fb0d$94850cc0$a1194244@hargrove.internal> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] ListView or TreeView to show directory listing A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 14:00:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 14:00:40 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> Um, yeah. Kind of what I was saying! Technically, whether people like it or not, if you use a form, you are using VBA, because Forms are Class Objects. Whether you put code behind them or not, they are still using VBA. VBA can be used with the UI, for reasons other then business rules. In fact, the first VBA code I ever used was to hide the Access Window, something that you can't do without VBA, and also part of the UI. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: OT Quick Question Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Feb 24 14:39:39 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 24 Feb 2004 12:39:39 -0800 (PST) Subject: [AccessD] ListView or TreeView to show directory listing In-Reply-To: <001201c3fb0d$94850cc0$a1194244@hargrove.internal> Message-ID: <20040224203939.39113.qmail@web20418.mail.yahoo.com> Thanks guys, those were great responses. The user actually settled for a list box that was populated from the Dir function of a predetermined path. Mike & Doris Manning wrote: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] ListView or TreeView to show directory listing A treeview would be 'collapsable', however, it would be a bit more complex to program. You could create the VB equivalent of a DriveList, FolderList and Filelist box. (Or just use them, but those would be extra ActiveX controls in your project). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Monday, February 23, 2004 11:48 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] ListView or TreeView to show directory listing I want to be able to display the folders and files of a directory in a list box type manner. Would this be a listview or treeview control? If so, is there a wizard you can install to do this on Access XP? I want a collapsable list to allow the user to highlight a file in any folder they desire. p.s. The user does not want the Windows Common Dialog Box. Thanks in advance Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. From Jdemarco at hudsonhealthplan.org Tue Feb 24 14:45:07 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 24 Feb 2004 15:45:07 -0500 Subject: [AccessD] Re: OT Quick Question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD6F@TTNEXCHSRV1.hshhp.com> I don't know if the mention of UI in these posts has to do with my post but I just want to clarify that I meant "designing user interface" in general as opposed to learning/using Access UI. I know this is not just an Access issue but sure has a lot to with an application's success. Jim D. -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, February 24, 2004 3:01 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, yeah. Kind of what I was saying! Technically, whether people like it or not, if you use a form, you are using VBA, because Forms are Class Objects. Whether you put code behind them or not, they are still using VBA. VBA can be used with the UI, for reasons other then business rules. In fact, the first VBA code I ever used was to hide the Access Window, something that you can't do without VBA, and also part of the UI. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: OT Quick Question Drew, VBA is not part of the UI. And, since it is used in Access, it would still be "strictly done in Access." VBA is what adds business rule functionality into the UI for things that the UI cannot do on its own. For example, you can set a control on a form to be required, and do minimal validation of the data entered into the control. But, you can use VBA to open a recordset or check many more values as a validation of the data where you cannot do that from the UI without VBA. In order to implement a real application with Access, you have to know VBA. You have to house the business logic somewhere. And normally, in an Access application, that is in the VBA code somewhere, either code-behind or in modules. If you do not use VBA, you simply have a simple data entry system and not an application. Robert At 12:00 PM 2/24/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 11:13:16 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E1 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Granted, but which UI's work the best, one's done strictly in Access, or >ones that utilize VBA? Sure, it may depend on the application itself, but >VBA certainly provides a lot more capability. > >Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 24 15:39:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 24 Feb 2004 16:39:43 -0500 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E3@main2.marlow.com> Message-ID: >However, there is very little that you can do in one, that you can't do in the other. Well... not exactly. VBA is Visual Basic for Applications and is simultaneously a superset of and a subset of VB (Visual Basic). VBA is different for each "Application" that is the A portion of VBA. VBA for Access is not the same as VBA for Word as VBA for Excel etc. VBA for Access understands Database things, VBA for Word understands document things (paragraphs for example), VBA for Excel understands Cells for example. That is the "Superset" part of VB. It is VB with something (a LOT!) added. It is also a subset because there are a handful of things that VB can do that VBA can't. Thus to say that "there is very little you can do in one that you can't in the other" is very misleading. I can apply formatting to selected test in VBA for Word where VB hasn't a clue what text even exists. Now I understand that these "objects" exist in libraries and VB can access these libraries, but... and this is a BIG but... if Office is loaded then VBA exists whether or not VB is loaded on a machine, whereas the Word.OLB does NOT exist unless Office is loaded. Thus VBA for word can do paragraphs regardless of anything else. If Word is loaded, VBA for word can do that stuff. A VB programmer on the other hand has to make sure that Word is loaded before he can use the .olb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Feb 24 15:51:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Feb 2004 15:51:17 -0600 Subject: I ask impossible questions????? (RE: [AccessD] Array dimensio ns, Row - Col or Col Row) Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278EC@main2.marlow.com> True. Very true. I was glossing over the minor details! LOL! There are other differences, I just didn't want to bog the list down by going into them all. Like VBA allows for 'Eval', which cannot be used in VB. VB has no problems with using AddressOf in callback functions. VB also creates true 'forms' instead of highly subclassed forms (like Access). This list goes on..... However, my statement still holds true, in the manner in which I 'meant' it. There is little you can do in one or the other, which you can't do in the opposite. True, VBA inside of Access uses Access a default object, so it is easier to do database stuff within Access (though I tend to use ADO in VB, which to me, is just as easy as using Access). However, that 'capability' is still there, it's just more difficult to do it. Likewise, there are things which are easier to do in VB, but you can still replicate the capability (most of the time) with VBA. It all boils down to using the right tool for the job. Which is what we generally agreed on in the great bound/unbound debate! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 3:40 PM To: Access Developers discussion and problem solving Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) >However, there is very little that you can do in one, that you can't do in the other. Well... not exactly. VBA is Visual Basic for Applications and is simultaneously a superset of and a subset of VB (Visual Basic). VBA is different for each "Application" that is the A portion of VBA. VBA for Access is not the same as VBA for Word as VBA for Excel etc. VBA for Access understands Database things, VBA for Word understands document things (paragraphs for example), VBA for Excel understands Cells for example. That is the "Superset" part of VB. It is VB with something (a LOT!) added. It is also a subset because there are a handful of things that VB can do that VBA can't. Thus to say that "there is very little you can do in one that you can't in the other" is very misleading. I can apply formatting to selected test in VBA for Word where VB hasn't a clue what text even exists. Now I understand that these "objects" exist in libraries and VB can access these libraries, but... and this is a BIG but... if Office is loaded then VBA exists whether or not VB is loaded on a machine, whereas the Word.OLB does NOT exist unless Office is loaded. Thus VBA for word can do paragraphs regardless of anything else. If Word is loaded, VBA for word can do that stuff. A VB programmer on the other hand has to make sure that Word is loaded before he can use the .olb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 24, 2004 12:24 PM To: accessd at databaseadvisors.com Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) There are differences between VBA and VB, but not that many. The core language itself is the same, and 99% of the capabilities are shared. The big difference is how the code actually works. However, there is very little that you can do in one, that you can't do in the other. I understand you can speak 'separately' about VB and VBA. I want to say that I disagree that either are 'user' programming languages, however, I think I need to rephrase my stance to be that both VB and VBA are languages which can be used by a user, but have enough power for advanced programmers. How's that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Monday, February 23, 2004 11:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: I ask impossible questions????? (RE: [AccessD] Array dimensions, Row - Col or Col Row) I'm not talking about VB, I'm talking about VBA and VBA, and yes, I can say what I just said and it still makes sense to me. ;) I can speak of VB and VBA separately. Susan H. Um, Susan? Are you saying that VB was intended as a user programming language? I'm sure there are more than a few programmers out there who would take exception to that. VBA is the language part of VB, so you can't really call one a user language without carrying that over to the other. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 24 15:54:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 24 Feb 2004 16:54:54 -0500 Subject: [AccessD] validation Message-ID: I added rudimentary validation code to my text and combo framework classes today, and a validate function to my form class. As I call a ValidationSetup method of the form class I pass in the control name and message text. Since I have a control scanner that finds every object (with a class) and loads a class instance for each such control, as I call the ValidationSetup I grab a pointer to the instance of the class for that control and place the pointer in a colValidate collection keyed on the control's name. When I am finished setting up the validation for any controls I want to validate I have a collection with exactly and only the control classes that need their Validate method called. Now I can do code like: sub myform_Open(Cancel) with fdclsFrm .ValidationSetup "txtCtlName1", "Last Name" .ValidationSetup "cboCltName2", "Title" end with end sub Having done that there form events are sunk in the form class so BeforeUpdate calls the validate event for each control in the colValidate collection passing in Cancel. If Cancel comes back True, the collection iterator exits, and cancel True is passed back to the BeforeUpdate which prevents the record from being saved. The control's Validate method does things like put up a message informing the user that they need to enter data in a control and sets the focus in that control. Likewise the setup code causes the background color of any validated control to be set to a specific color so that all controls needing validation are visually distinct. Works swimmingly and now validating controls is a simple line of code for each control to validate that "does it all". John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Tue Feb 24 17:21:58 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Feb 2004 15:21:58 -0800 Subject: [AccessD] Backup routines References: Message-ID: <403BDC96.8070707@shaw.ca> Many years ago I was a systems programmer on a mainframe, I ran a daily tape backup, rotating the tapes with a weekly backup, then a monthly and a yearly. Today I would go with 30 days, and the oldest of thirty days or at the end of the month it would become the next monthly backup. Yes you need a yearly backup to possibly restore old financial data or whatever your countries' or state's expiration or retention periods are on specific types of data (some medical periods are 30 years under state laws). This method also allows you to trace back or correct a mistake that may have been made months ago.This backup procedure is usually called "grandfather father son". Most hospitals have a records officer, so I would discuss backup retention periods with them. Gary is right about offsite backup. I was once involved with a hospital that burned down, had to fly in a new hospital that was then reset up in an school. Also at least a couple of times a year test your backup is viable. Not much fun finding out your tape drive has been out of synch for 3 months and the tapes are unreadable. Oracle has a 500 page manual on backup practices and methodology. Gary Kjos wrote: > You can't back up too much. Anytime a change is made to a database if > disaster were to strike, that change could be lost. How big of a > problem that would be to redo varies a lot by application. In most > cases backing up a database every time an change is made is simply not > feasible, so you find a balance between the pain of doing the backup > verses the risk of having to redo the changes. Only you and the users > of your database can really determine how frequent of a backup is > necessary. If you have the disk space - and disk space is relatively > cheap nowadays, once a day is pretty good insurance. Now a bigger > question might be, how often are those 30 days of backups backed up? > What do you do if the drive they are on fails? Or what if there is a > fire in the building? Copying those backups off to a CD or a tape or a > removable hard drive on a regular basis and taking those removable > media to an offsite location or at least a fireproof safe would give > you security against a different kind of disaster. > > Gary Kjos > garykjos at hotmail.com > > _________________________________________________________________ > Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose > from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Feb 24 17:33:35 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 25 Feb 2004 09:33:35 +1000 Subject: [AccessD] Backup routines In-Reply-To: Message-ID: <403C6BEF.22774.C6B572@localhost> On 24 Feb 2004 at 8:59, Carlos Alberto Alves wrote: > Dear Members: > I would like to have your input on this subject. I wrote a Sub to execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > Do you think that such a 30-day backup routine is overzealous??? Depends on the application and why you are backing up. Several possible reasons: 1. To keep historical records which you can refer back to. 2. To provide fallback if you discover that data has been "messed up" (bad data entry, incorrect deletions etc) 3. For data entry audit purposes 4. For data recovery in the event of a major disaster For Type 1 - Some accounting applications, keep monthly/annual backups that go back years. for Type 2 - it depends on how long you expect it to take to discover such errors for Type 3 - similar reasoning to type 2 for Type 4, you don't need to store more that a single generation as long as you are sure it is retrievable. Ask yourself why you want the 20 day old copy for example. If you have the 21 day old copy and the 19 day old copy, is there *any* reason you would ever want to access or restore the 20 day one? If the answer is No, there is no poiont in maintaining such as long line of backups. A common way of covering these contingencies is something like: 1. Save daily backups which you normally delete after a week 2. Keep a weekly copy for more than a month 3. Keep a monthly copy for more than a year 4. Keep an Annual copy permanently. You can do this by checking the data and doing appropriate file deletes One way would be: If it's a Friday, delete previous Friday files if they are a month old else delete any files that exactly a week old. If it's the first of the month delete files that are more than 12 months old unless they are dated the 1st Jan (or whatever) That means that you will have less than 30 copies but would have a much better archive. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Feb 24 17:05:40 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 25 Feb 2004 09:05:40 +1000 Subject: [AccessD] OT Quick Question In-Reply-To: <46333.63.251.87.214.1077644048.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E1@main2.marlow.com> Message-ID: <403C6564.18620.AD267A@localhost> On 24 Feb 2004 at 12:34, Oleg_123 at xuppa.com wrote: > basic SQL i would think, its not really programming Why not. SQL is a language. It provides variables, conditional operations and flow control and produces outputs - in what way is it not "really programming"? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Tue Feb 24 23:23:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 00:23:32 -0500 Subject: [AccessD] C2DbShutdown Message-ID: Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. John W. Colby www.ColbyConsulting.com From adtp at touchtelindia.net Tue Feb 24 23:26:53 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 25 Feb 2004 10:56:53 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278C1@main2.marlow.com> Message-ID: <016101c3fb60$beb2d8d0$b41865cb@winxp> Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From JOHNWARDBELL at aol.com Wed Feb 25 09:30:43 2004 From: JOHNWARDBELL at aol.com (JOHNWARDBELL at aol.com) Date: Wed, 25 Feb 2004 10:30:43 EST Subject: [AccessD] Using Access as a cash register Message-ID: <107.2c892592.2d6e19a3@aol.com> Hi Setting up an A2k form as the input for point-of-sale transaction is not too difficult. My problem is how to trigger a serial or UBS port to open a till draw by hitting a cmd button. Anyone hit this problem before or any suggestions? johnwb From Oleg_123 at xuppa.com Wed Feb 25 09:35:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 10:35:31 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> Message-ID: <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> Good Mornig Group. Is it possible for one query to count how many records are up to 150 days old and have been chechked and the ones that haven't ? I understand how to do in 2 queris, i am wondering if its possible to do in one thanks, Oleg SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data mid AP].FileToSupervisor) Is not Null)); SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data mid AP].FileToSupervisor) Is Null)); ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From gustav at cactus.dk Wed Feb 25 09:49:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 16:49:35 +0100 Subject: [AccessD] Count query In-Reply-To: <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> Message-ID: <1528123779.20040225164935@cactus.dk> Hi Oleg How about this: SELECT Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); /gustav > Is it possible for one query to count how many records are up to 150 days > old and have been chechked and the ones that haven't ? I understand how to > do in 2 queris, i am wondering if its possible to do in one > thanks, > Oleg > SELECT Count([Ron Data mid AP].ID) AS CountOfID > FROM [Ron Data mid AP] > WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data > mid AP].FileToSupervisor) Is not Null)); > SELECT Count([Ron Data mid AP].ID) AS CountOfID > FROM [Ron Data mid AP] > WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron Data > mid AP].FileToSupervisor) Is Null)); From gustav at cactus.dk Wed Feb 25 09:58:26 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 16:58:26 +0100 Subject: [AccessD] Using Access as a cash register In-Reply-To: <107.2c892592.2d6e19a3@aol.com> References: <107.2c892592.2d6e19a3@aol.com> Message-ID: <10028655294.20040225165826@cactus.dk> Hi John Traditionally this is done by sending some (arbitrary) chars to the serial port, but the manual or the dealer must confirm this. If so, it's very simple: Dim strPort as String Dim strOpenDrawer as String strPort = "1" ' Adjust for 1, 2 or 3 as needed. strPort = "LPT" & strPort strOpenDrawer = Chr(130) ' Send special character string to the cash drawer via PC port. Open strPort For Output As #1 Print #1, strOpenDrawer Close #1 If this is the setup, remember that WinNT+ for some reason doesn't feed that much power to the serial port which means that you'll need to have an external power supply to the cash drawer. I haven't worked with the USB interface. /gustav > Setting up an A2k form as the input for point-of-sale transaction is not too > difficult. My problem is how to trigger a serial or UBS port to open a till > draw by hitting a cmd button. > Anyone hit this problem before or any suggestions? > johnwb From carbonnb at sympatico.ca Wed Feb 25 10:04:36 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 25 Feb 2004 11:04:36 -0500 Subject: [AccessD] Determining Time for Project Message-ID: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From Oleg_123 at xuppa.com Wed Feb 25 10:05:30 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 11:05:30 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <1528123779.20040225164935@cactus.dk> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> <1528123779.20040225164935@cactus.dk> Message-ID: <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From paul.hartland at fsmail.net Wed Feb 25 10:12:00 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 25 Feb 2004 17:12:00 +0100 (CET) Subject: [AccessD] Count query Message-ID: <32880125.1077725520253.JavaMail.www@wwinf3006> Oleg, If the FileToSupervisor contains the same value when not null, you could try this: SELECT Count([Ron Data mid AP].ID) AS CountOfID FROM [Ron Data mid AP] WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149)) GROUP BY [Ron Data mid AP].FileToSupervisor; Paul Message date : Feb 25 2004, 04:09 PM >From : Oleg_123 at xuppa.com To : accessd at databaseadvisors.com Copy to : Subject : Re: [AccessD] Count query Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Wed Feb 25 10:12:46 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 17:12:46 +0100 Subject: [AccessD] Count query In-Reply-To: <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> References: <2F8793082E00D4119A1700B0D0216BF8022278E9@main2.marlow.com> <32778.63.251.87.214.1077723331.squirrel@heck.bay9.com> <1528123779.20040225164935@cactus.dk> <20611.63.251.87.214.1077725130.squirrel@heck.bay9.com> Message-ID: <12929514830.20040225171246@cactus.dk> Hi Oleg Yes, adding the two sums should equal the total count ... /gustav > i need a count, not a sum :--) > when i am trying count this way -- i just get a same number in both columns. > I don't think Union Query would work here > SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, > Count((IsNull(FileToSupervisor))) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)); >> Hi Oleg >> >> How about this: >> >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> Is it possible for one query to count how many records are up to 150 >>> days old and have been chechked and the ones that haven't ? I >>> understand how to do in 2 queris, i am wondering if its possible to do >>> in one >> >>> thanks, >>> Oleg >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is not Null)); >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is Null)); From ssharkins at bellsouth.net Wed Feb 25 10:18:36 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 25 Feb 2004 11:18:36 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <20040225161834.OHOC1898.imf19aec.mail.bellsouth.net@SUSANONE> Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. From rsmethurst at UK.EY.COM Wed Feb 25 10:17:37 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 25 Feb 2004 16:17:37 +0000 Subject: [AccessD] Count query Message-ID: Hi All, I think Gustav was on the right track with the SUM. If you include and IIF statement and attribute 1's and 0's depending on whether they meet the criteria, you could then put a count on each respective column to get the totals you want. Something along the lines of...(not sure if the syntax is correct here, have just added it to give you an idea) SELECT Sum(IIF(Not IsNull(FileToSupervisor),1,0)) AS CheckedID, Sum(IIF(IsNull(FileToSupervisor),1,0)) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)) This will give you the totals for the checked and unchecked in one query, if that is what you want. Cheers Ryan Sent by: accessd-bounces at databaseadvisors.com 25/02/2004 16:05 Please respond to Access Developers discussion and problem solving To: cc: Subject: Re: [AccessD] Count query Hi Gustav, i need a count, not a sum :--) when i am trying count this way -- i just get a same number in both columns. I don't think Union Query would work here SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, Count((IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (((Date()-[MS Date Opened])<149)); > Hi Oleg > > How about this: > > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> Is it possible for one query to count how many records are up to 150 >> days old and have been chechked and the ones that haven't ? I >> understand how to do in 2 queris, i am wondering if its possible to do >> in one > >> thanks, >> Oleg > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is not Null)); > >> SELECT Count([Ron Data mid AP].ID) AS CountOfID >> FROM [Ron Data mid AP] >> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >> Data mid AP].FileToSupervisor) Is Null)); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Jdemarco at hudsonhealthplan.org Wed Feb 25 10:25:16 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 25 Feb 2004 11:25:16 -0500 Subject: [AccessD] Determining Time for Project Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FD8B@TTNEXCHSRV1.hshhp.com> Exactly right (subjectively of course)!! I usually make a task list that shows every object I have to create and an estimate of how long to do each item (create table A, create table B, create Form A, etc). Then like Susan says triple it. The number will look ridiculous but given the little "gotchas" that pop up you'll be glad you did. HTH, Jim DeMarco -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, February 25, 2004 11:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Determining Time for Project Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Wed Feb 25 10:24:12 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Wed, 25 Feb 2004 16:24:12 +0000 Subject: [AccessD] Determining Time for Project Message-ID: Good advice...me thinks. Better to end early, than late. Since it's only you, you won't have to take into account what other people are doing, or what is the critical path of the project, you'll only be able to do things one at a time and in a step by step process. Roughly, break the project as a whole down into small, manageable 'modules' or tasks. (At least into packages that you will be able to have a guestimate as to how long you will take to get them done.) Then have a look at how long each module will take. If you are reliant on anyone or anything to get modules done, be sure to build this into your timeframes, and as Susan said, be generous...there's always something out there just waiting to trip you up! :) Ryan "Susan Harkins" Sent by: accessd-bounces at databaseadvisors.com 25/02/2004 16:18 Please respond to Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" cc: Subject: RE: [AccessD] Determining Time for Project Yes, subjective. :) I have learned, the hard way, that the initial estimate is always way too short -- I now triple it -- and ignore that nagging voice that says, "You're an idiot!" Then, if you finish early, you're a hero. Susan H. I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From cfoust at infostatsystems.com Wed Feb 25 10:27:26 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 08:27:26 -0800 Subject: [AccessD] Determining Time for Project Message-ID: Stan Leszynski's Book Expert Access 97 has an approach to estimating time based on how many tables, reports, etc. are involved and the average time required to build each one. Charlotte Foust -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 8:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Wed Feb 25 10:31:14 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 11:31:14 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: References: Message-ID: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, the one below gave 321017 and 25515793... (they wish they had that many cases) :--) SELECT Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); > Hi All, > > I think Gustav was on the right track with the SUM. If you include and > IIF statement and attribute 1's and 0's depending on whether they meet > the criteria, you could then put a count on each respective column to > get the totals you want. > > Something along the lines of...(not sure if the syntax is correct here, > have just added it to give you an idea) > > SELECT Sum(IIF(Not IsNull(FileToSupervisor),1,0)) AS CheckedID, > Sum(IIF(IsNull(FileToSupervisor),1,0)) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)) > > This will give you the totals for the checked and unchecked in one > query, if that is what you want. > > Cheers > Ryan > > > > > > > > Sent by: accessd-bounces at databaseadvisors.com > 25/02/2004 16:05 > Please respond to Access Developers discussion and problem solving > > > To: > cc: > Subject: Re: [AccessD] Count query > > > Hi Gustav, > > i need a count, not a sum :--) > when i am trying count this way -- i just get a same number in both > columns. > I don't think Union Query would work here > > SELECT Count((Not IsNull(FileToSupervisor))) AS CheckedID, > Count((IsNull(FileToSupervisor))) AS NotCheckedID > FROM [Ron Data mid AP] > WHERE (((Date()-[MS Date Opened])<149)); > > > >> Hi Oleg >> >> How about this: >> >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> Is it possible for one query to count how many records are up to 150 >>> days old and have been chechked and the ones that haven't ? I >>> understand how to do in 2 queris, i am wondering if its possible to >>> do in one >> >>> thanks, >>> Oleg >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is not Null)); >> >>> SELECT Count([Ron Data mid AP].ID) AS CountOfID >>> FROM [Ron Data mid AP] >>> WHERE (((Date()-[Ron Data mid AP].[MS Date Opened])<149))AND (([Ron >>> Data mid AP].FileToSupervisor) Is Null)); >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > This e-mail and any attachment are confidential and contain proprietary > information, some or all of which may be legally privileged. It is > intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient, please notify the > author immediately by telephone or by replying to this e-mail, and then > delete all copies of the e-mail on your system. If you are not the > intended recipient, you must not use, disclose, distribute, copy, print > or rely on this e-mail. > > Whilst we have taken reasonable precautions to ensure that this e-mail > and any attachment has been checked for viruses, we cannot guarantee > that they are virus free and we cannot accept liability for any damage > sustained as a result of software viruses. We would advise that you > carry out your own virus checks, especially before opening an > attachment. > > The UK firm Ernst & Young LLP is a limited liability partnership > registered in England and Wales with registered number OC300001 and is a > member practice of Ernst & Young Global. A list of members? names is > available for inspection at 1 More London Place, London, SE1 2AF, the > firm?s principal place of business and its registered office. -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rl_stewart at highstream.net Wed Feb 25 10:44:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 25 Feb 2004 10:44:00 -0600 Subject: [AccessD] Re: OT Quick Question In-Reply-To: <200402251612.i1PGCXM24842@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040225103642.02938e30@pop3.highstream.net> UI - user interface VBA - Programming language VBA is not part of the UI, it is how the UI is programmed. Using VBA the way you said is programming the UI. By your definition, the UI is a subset of VBA, not the other way around. A form is VBA but VBA is not a form. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew From rl_stewart at highstream.net Wed Feb 25 10:51:51 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 25 Feb 2004 10:51:51 -0600 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <200402251612.i1PGCXM24842@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040225105031.029dd4f8@pop3.highstream.net> See if you can find the book Access Expert Solutions. The first 9 or 10 chapters are on project management and estimating. The best book I have seen on it for Access projects. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Wed, 25 Feb 2004 11:04:36 -0500 >From: Bryan Carbonnell >Subject: [AccessD] Determining Time for Project >To: >Message-ID: > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.net> > >Content-Type: text/plain; charset=iso-8859-1 > >I know that this is all subjective, but... > >How do you determine the amount of time required to build an application? > >I need to do it for an internal project, but I have NO idea how to >estimate the time. I already know what the application needs to do and >produce, but I haven't got the foggiest idea how to estimate time. > >I will be the only one that will be developing it, so I don't have to >worry about other people, just me. > >Thanks for any hints, tips or ideas. From gustav at cactus.dk Wed Feb 25 11:02:48 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 18:02:48 +0100 Subject: [AccessD] Count query In-Reply-To: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> Message-ID: <18832517527.20040225180248@cactus.dk> Hi Oleg Ahh, got it now, omit the ID: SELECT Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID FROM [Ron Data mid AP] WHERE (Date() - [MS Date Opened] < 149); /gustav > hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, > the one below gave 321017 and 25515793... > (they wish they had that many cases) :--) > SELECT > Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); From cfoust at infostatsystems.com Wed Feb 25 11:05:32 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 09:05:32 -0800 Subject: [AccessD] Re: Determining Time for Project Message-ID: Ack! That's the title of Stan Leszynski's book: Access 97 Expert Solutions. My copy is at home and the office copy is in another cubicle, so I got it wrong. :-{ Charlotte Foust -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Wednesday, February 25, 2004 8:52 AM To: accessd at databaseadvisors.com Cc: carbonnb at sympatico.ca Subject: [AccessD] Re: Determining Time for Project See if you can find the book Access Expert Solutions. The first 9 or 10 chapters are on project management and estimating. The best book I have seen on it for Access projects. At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Wed, 25 Feb 2004 11:04:36 -0500 >From: Bryan Carbonnell >Subject: [AccessD] Determining Time for Project >To: >Message-ID: > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.ne >t> > >Content-Type: text/plain; charset=iso-8859-1 > >I know that this is all subjective, but... > >How do you determine the amount of time required to build an >application? > >I need to do it for an internal project, but I have NO idea how to >estimate the time. I already know what the application needs to do and >produce, but I haven't got the foggiest idea how to estimate time. > >I will be the only one that will be developing it, so I don't have to >worry about other people, just me. > >Thanks for any hints, tips or ideas. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Feb 25 10:57:51 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 25 Feb 2004 16:57:51 -0000 Subject: [AccessD] Re: Determining Time for Project References: <5.1.0.14.2.20040225105031.029dd4f8@pop3.highstream.net> Message-ID: <000501c3fbc0$81677700$9111758f@aine> http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm Dont know how legal this is re copyright etc but its on the web Martin ----- Original Message ----- From: "Robert L. Stewart" To: Cc: Sent: Wednesday, February 25, 2004 4:51 PM Subject: [AccessD] Re: Determining Time for Project > See if you can find the book Access Expert Solutions. The first 9 or 10 > chapters are on project management and estimating. The best book I have > seen on it for Access projects. > > At 10:12 AM 2/25/2004 -0600, you wrote: > >Date: Wed, 25 Feb 2004 11:04:36 -0500 > >From: Bryan Carbonnell > >Subject: [AccessD] Determining Time for Project > >To: > >Message-ID: > > > ><20040225160441.XBVI13528.tomts24-srv.bellnexxia.net at smtp.bellnexxia.net> > > > >Content-Type: text/plain; charset=iso-8859-1 > > > >I know that this is all subjective, but... > > > >How do you determine the amount of time required to build an application? > > > >I need to do it for an internal project, but I have NO idea how to > >estimate the time. I already know what the application needs to do and > >produce, but I haven't got the foggiest idea how to estimate time. > > > >I will be the only one that will be developing it, so I don't have to > >worry about other people, just me. > > > >Thanks for any hints, tips or ideas. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Feb 25 11:11:38 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 12:11:38 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <18832517527.20040225180248@cactus.dk> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> Message-ID: <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> Ahh, they now wont in 2 rows (there also 150 to 179, 180 - 209, aabove 210, etc.) one row on target' the other - behind schedule,, so i guess I'have to stick to selecting it by one, then do Union Query > Hi Oleg > > Ahh, got it now, omit the ID: > > SELECT > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >> the one below gave 321017 and 25515793... >> (they wish they had that many cases) :--) > >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From gustav at cactus.dk Wed Feb 25 11:32:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 18:32:30 +0100 Subject: [AccessD] Count query In-Reply-To: <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> <18535.63.251.87.214.1077729098.squirrel@heck.bay9.com> Message-ID: <18334299339.20040225183230@cactus.dk> Hi Oleg You could Group By: IIf(DateDiff("d", [MS Date Opened], Date()) < 150, 4, DateDiff("d", [MS Date Opened], Date()) \ 30) /gustav > Ahh, they now wont in 2 rows (there also 150 to 179, 180 - 209, aabove > 210, etc.) one row on target' the other - behind schedule,, so i guess > I'have to stick to selecting it by one, then do Union Query >> Hi Oleg >> >> Ahh, got it now, omit the ID: >> >> SELECT >> Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); >> >> /gustav >> >> >>> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >>> the one below gave 321017 and 25515793... >>> (they wish they had that many cases) :--) >> >>> SELECT >>> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >>> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >>> FROM >>> [Ron Data mid AP] >>> WHERE >>> (Date() - [MS Date Opened] < 149); From carbonnb at sympatico.ca Wed Feb 25 12:07:22 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 25 Feb 2004 13:07:22 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: <20040225180726.SBEC23238.tomts31-srv.bellnexxia.net@smtp.bellnexxia.net> > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From cfoust at infostatsystems.com Wed Feb 25 12:30:36 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 10:30:36 -0800 Subject: [AccessD] Re: Determining Time for Project Message-ID: Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gdb at AllenandAllen.com Wed Feb 25 12:44:44 2004 From: gdb at AllenandAllen.com (Boehm, Gary D.) Date: Wed, 25 Feb 2004 13:44:44 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: I remember sitting in a meeting with a client and the head of our company. The client asked if we could do a particular thing and the boss said, "yes, these guys can just push a button" while pointing to me and a co-worker. It took us three months to build the button. Gary -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, February 25, 2004 1:31 PM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From jwelz at hotmail.com Wed Feb 25 13:14:03 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Wed, 25 Feb 2004 12:14:03 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: It has begun. I was given the IP of a Terminal Server that I can log into from dial up. I opened a copy of the 97 FE applciation and it offered to convert. Three times I was given various messages that there were unsafe expressions and notwithstanding my agreement to all, the program failed to open and offered no error message. There were conversion errors logged to a table but they all appeared to be errors relating to linked data tables. There was an offer to turn off warnings about unsafe expression messages but when I tried to accept, I was given a message that I had no rights to the registry. I could open the application with the bypass key when I changed it before conversion and I was able to open forms in design mode and view code. I also found that the conversion was to an Access 2000 version of the database rather than 2003. I have had no problem with 'upgrading' (now therre's a misnomer) to Access 2000 as the file simply converted and opened without complaint. I may have to attempt to convert in stages to see if that will work. Fortunately they now allow floppy disk and WinZip on one of the machines so there is a way to do the interim upgrade by Access 2000 off site and move it (no other versions of Access are available on the otherwise highly secured network and there is no dial up file tranfer ability nor ftp and email is restricted by attachment size) to the server after the intervening upgrade to a format that 2003 seems to say it can open. I have the Sybex Word 2000 Developers Handbook that I read about a year ago and I recall that Word permitted digital certificates to supress macro warnings on self signed certificates for use on an intranet. Given that the powers that be like to view the application as a virus and Access in general as a threat to security, does anyone know whether Access 2003 has a capability similar to that of Word. I have been told that there will be no commercially issued certificates such as by Verisign as the cost exceeds what they will allow, but a self signed free certificate to allow home grown 'macros' may be allowed. I'll give dial up another shot tonight. I built the application secured as an mde with login coded in the mde by network login and the accounts they gave me on the test server use a different login name. I should have at least received an 'Unauthorized User' message before I was dumped unless it was the unsafe expressions that forced the abort. Now the big questions: Is there a reason that it didn't offer to convert to 2003 format? What disadvantages does the new format force upon developers. If I build a single unbound form without any code and open it in 2003, will it still only upgrade to 2000? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From gustav at cactus.dk Wed Feb 25 13:23:12 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Feb 2004 20:23:12 +0100 Subject: [AccessD] A97 - 2003 conversion In-Reply-To: References: Message-ID: <15440940699.20040225202312@cactus.dk> Hi J?rgen You should look up Helen's article (part one only, part two to follow!) http://www.helenfeddema.com/access.htm on this topic: accarch119.zip /gustav > It has begun. .. From Lambert.Heenan at AIG.com Wed Feb 25 13:26:25 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 25 Feb 2004 14:26:25 -0500 Subject: [AccessD] A97 - 2003 conversion Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7EC9@xlivmbx12.aig.com> Digital certs for Access 2003 were just covered in Woody's Access watch. Pop over here... http://www.helenfeddema.com/access.htm and go to the bottom of the page and download accarch119.zip. Lambert > -----Original Message----- > From: J?rgen Welz [SMTP:jwelz at hotmail.com] > Sent: Wednesday, February 25, 2004 2:14 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] A97 - 2003 conversion > > It has begun. I was given the IP of a Terminal Server that I can log into > > from dial up. I opened a copy of the 97 FE applciation and it offered to > convert. Three times I was given various messages that there were unsafe > expressions and notwithstanding my agreement to all, the program failed to > > open and offered no error message. > > There were conversion errors logged to a table but they all appeared to be > > errors relating to linked data tables. There was an offer to turn off > warnings about unsafe expression messages but when I tried to accept, I > was > given a message that I had no rights to the registry. I could open the > application with the bypass key when I changed it before conversion and I > was able to open forms in design mode and view code. I also found that > the > conversion was to an Access 2000 version of the database rather than 2003. > > I have had no problem with 'upgrading' (now therre's a misnomer) to Access > > 2000 as the file simply converted and opened without complaint. I may > have > to attempt to convert in stages to see if that will work. Fortunately > they > now allow floppy disk and WinZip on one of the machines so there is a way > to > do the interim upgrade by Access 2000 off site and move it (no other > versions of Access are available on the otherwise highly secured network > and > there is no dial up file tranfer ability nor ftp and email is restricted > by > attachment size) to the server after the intervening upgrade to a format > that 2003 seems to say it can open. > > I have the Sybex Word 2000 Developers Handbook that I read about a year > ago > and I recall that Word permitted digital certificates to supress macro > warnings on self signed certificates for use on an intranet. Given that > the > powers that be like to view the application as a virus and Access in > general > as a threat to security, does anyone know whether Access 2003 has a > capability similar to that of Word. I have been told that there will be > no > commercially issued certificates such as by Verisign as the cost exceeds > what they will allow, but a self signed free certificate to allow home > grown > 'macros' may be allowed. > > I'll give dial up another shot tonight. I built the application secured > as > an mde with login coded in the mde by network login and the accounts they > gave me on the test server use a different login name. I should have at > least received an 'Unauthorized User' message before I was dumped unless > it > was the unsafe expressions that forced the abort. > > Now the big questions: Is there a reason that it didn't offer to convert > to > 2003 format? What disadvantages does the new format force upon > developers. > If I build a single unbound form without any code and open it in 2003, > will > it still only upgrade to 2000? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoi > n.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Feb 25 13:52:11 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Wed, 25 Feb 2004 12:52:11 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: Thank you Gustav & Lambert: And thanks to all members who welcomed me back. Helen's document addresses that aspect of my question exactly. The IT people were telling me that I was dreaming about self-signed certificates. I will forward them the doc file and await their response. Hopefully I can browse the Access help (not vba help yet unfortuantely) files a bit tonight and have a peek at the MSDN online as well. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Heenan, Lambert" > >Digital certs for Access 2003 were just covered in Woody's Access watch. > >Pop over here... > >http://www.helenfeddema.com/access.htm > >and go to the bottom of the page and download accarch119.zip. > >Lambert _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From Oleg_123 at xuppa.com Wed Feb 25 14:01:31 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 25 Feb 2004 15:01:31 -0500 (EST) Subject: [AccessD] Count query In-Reply-To: <18832517527.20040225180248@cactus.dk> References: <42696.63.251.87.214.1077726674.squirrel@heck.bay9.com> <18832517527.20040225180248@cactus.dk> Message-ID: <36352.63.251.87.214.1077739291.squirrel@heck.bay9.com> Hello again, what about if more then one condition is required ? Like -- SELECT Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0))as OpenPRE_Inv, Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS Open_Inv, Sum(IIf(Not IsNull([First Investigation Document Review]),1,0))AS FirstDocComplete FROM [Ron Data sprT]; and the condition for the OpenPRE_Inc column should be ([Preliminary Investigation Closed])not Null and another column [Pre Inv Disposition]not Null. Same (or actully the opposite) for Open_Inv is there a way to combine it ? I tried with "and", didn't seenm to work SELECT Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS OpenPRE_Inv, --(IsNull([Pre Inv Disposition])) Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0)) AS Open_Inv, --(Not IsNull([Pre Inv Disposition])) Sum(IIf(Not IsNull([First Investigation Document Review]),1,0)) AS FirstDocComplete --( IsNull([Depos Complete])) FROM [Ron Data sprT]; > Hi Oleg > > Ahh, got it now, omit the ID: > > SELECT > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > FROM > [Ron Data mid AP] > WHERE > (Date() - [MS Date Opened] < 149); > > /gustav > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, >> the one below gave 321017 and 25515793... >> (they wish they had that many cases) :--) > >> SELECT >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID >> FROM >> [Ron Data mid AP] >> WHERE >> (Date() - [MS Date Opened] < 149); > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From serbach at new.rr.com Wed Feb 25 14:16:56 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 25 Feb 2004 14:16:56 -0600 Subject: [AccessD] What do you think about DAPs? Message-ID: <20040225141656.1283356441.serbach@new.rr.com> Charlotte, >> It you're talking about INTERNet instead of INTRANet, those are not the right circumstances. ?DAPs are intended to be used within a network on machines with the relevant version of Access installed. << Thank you for that, Charlotte. This client definitely wants INTERnet access, not INTRAnet. Hah! His network is just a Windows P2P linking XP Home workstations. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From DWUTKA at marlow.com Wed Feb 25 15:36:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:36:37 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F6@main2.marlow.com> Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 15:37:43 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:37:43 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F7@main2.marlow.com> By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 Patricia.O'Connor at DFA.STATE.NY.US Wed Feb 25 15:46:22 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 25 Feb 2004 16:46:22 -0500 Subject: [AccessD] Count query Message-ID: well you could try SELECT Sum(IIf((IsNull([Preliminary Investigation Closed]) AND IsNull([Pre Inv Disposition])),1,0)) AS OpenPRE_Inv, Sum(IIf ((Not IsNull([Preliminary Investigation Closed]) and (Not IsNull([Pre Inv Disposition])) ,1,0)) AS Open_Inv, Sum(IIf((Not IsNull([First Investigation Document Review]) and (IsNull([Depos Complete])),1,0)) AS FirstDocComplete > FROM [Ron Data sprT]; or switch the 1,0 to 0,1 for the open_inv and leave the isnull same as first SELECT Sum(IIf((IsNull([Preliminary Investigation Closed]) AND IsNull([Pre Inv Disposition])),1,0)) AS OpenPRE_Inv, Sum(IIf ((IsNull([Preliminary Investigation Closed]) and (IsNull([Pre Inv Disposition])) ,0,1)) AS Open_Inv, Sum(IIf((Not IsNull([First Investigation Document Review]) and (IsNull([Depos Complete])),1,0)) AS FirstDocComplete FROM [Ron Data sprT]; HTH Patti > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, February 25, 2004 03:02 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Count query > > > Hello again, > what about if more then one condition is required ? Like -- > > SELECT > Sum(IIf(Not IsNull([Preliminary Investigation > Closed]),1,0))as OpenPRE_Inv, > Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS > Open_Inv, > Sum(IIf(Not IsNull([First Investigation Document > Review]),1,0))AS > FirstDocComplete > FROM [Ron Data sprT]; > > and the condition for the OpenPRE_Inc column should be ([Preliminary > Investigation Closed])not Null and another column [Pre Inv > Disposition]not > Null. Same (or actully the opposite) for Open_Inv > > is there a way to combine it ? I tried with "and", didn't > seenm to work > > SELECT > Sum(IIf(IsNull([Preliminary Investigation Closed]),1,0)) AS > OpenPRE_Inv, > --(IsNull([Pre Inv Disposition])) > Sum(IIf(Not IsNull([Preliminary Investigation Closed]),1,0)) > AS Open_Inv, > --(Not IsNull([Pre Inv Disposition])) > Sum(IIf(Not IsNull([First Investigation Document Review]),1,0)) AS > FirstDocComplete > --( IsNull([Depos Complete])) > FROM [Ron Data sprT]; > > > > Hi Oleg > > > > Ahh, got it now, omit the ID: > > > > SELECT > > Sum(Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > > Sum(Abs(IsNull(FileToSupervisor))) AS NotCheckedID > > FROM > > [Ron Data mid AP] > > WHERE > > (Date() - [MS Date Opened] < 149); > > > > /gustav > > > > > >> hey Ryan, yeah this one calcualates correctly -- 4 done, 480 to go, > >> the one below gave 321017 and 25515793... > >> (they wish they had that many cases) :--) > > > >> SELECT > >> Sum(ID * Abs(Not IsNull(FileToSupervisor))) AS CheckedID, > >> Sum(ID * Abs(IsNull(FileToSupervisor))) AS NotCheckedID > >> FROM > >> [Ron Data mid AP] > >> WHERE > >> (Date() - [MS Date Opened] < 149); > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Feb 25 15:48:25 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 16:48:25 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F7@main2.marlow.com> Message-ID: The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:38 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 DWUTKA at marlow.com Wed Feb 25 15:54:58 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 15:54:58 -0600 Subject: [AccessD] Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 16:01:08 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:01:08 -0600 Subject: [AccessD] Re: Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278F9@main2.marlow.com> I have found that I get done in half the time asked (usually) if I am the only one involved in the project. However, for every person that gets involved (even just to comment on fonts), I can easily multiply the time of development by 150% to 200%! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, February 25, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project Bryan, Non-developers never understand why it takes so long. They figure if they throw a few more people at it or leave out a few things, you can do it in a week ... Or a month ... Or 90 days ... Or whatever. I remember telling a former employer that the major system they had been assured by IT could be in place in 6 months would take at least 18, if ever. I was NOT popular, but guess what? Charlotte -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, February 25, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: Re: Re: [AccessD] Re: Determining Time for Project > From: "Martin Reid" > http://c85.cemi.rssi.ru/access/Books/A97ExSol/contents.htm > > Dont know how legal this is re copyright etc but its on the web Thanks Martin. I found this as well. And thanks to everyone who has answered. I appreciate your answers. My boss didn't appreciate *MY* answer on the time it would take, but that's a different story :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 25 16:15:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 25 Feb 2004 16:15:28 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AA@TAPPEEXCH01> Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From cfoust at infostatsystems.com Wed Feb 25 16:17:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Feb 2004 14:17:59 -0800 Subject: [AccessD] Re: OT Quick Question Message-ID: Aren't you talking about the database window? I think Drew is talking about the main Access window. Charlotte Foust -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, February 25, 2004 2:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them >or not, they are still using VBA. VBA can be used with the UI, for >reasons other then business rules. In fact, the first VBA code I ever >used was to hide the Access Window, something that you can't do without >VBA, and also part of the UI. > >Drew ------------------------------------------------------------------------ -------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 16:40:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:40:20 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:38 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown By 'Candace's' shutdown method, do you mean monitoring the active form/control? Just curious why you didn't go for the keyboard/mouse activity approach. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, February 24, 2004 11:24 PM To: AccessD Subject: [AccessD] C2DbShutdown Folks, I just placed a new version of C2DbShutdown on my site. The new version incorporates Candaces' method of inactivity timeout for now, so there are now three shutdown "modes" - Time Windowed, Immediate and Inactivity. I have also worked on the document a bit to add explanations of how to use it. C2DBShutdown is a developer tool designed to provide a quick, easy to use method of forcing the users out of your database. C2DbShutdown is a library with two classes and a module, a table and two forms. To use C2DbShutdown all the developer has to do is: * Place C2DbShutdown.mda in a common location where all FEs being controlled can access it. * Create a reference to C2DbShutdown.mda so that code in that library can be run. * Edit the table to create records for each FE being controlled. * Create a Term function (can be named anything) which includes a line of code Application.Quit acQuitSaveAll. * Place the name of this function in SD_RunAtShutdown for every shutdown record for that application. * Place a call to SDOpenForm in the application startup code BEFORE any other code runs. C2DbShutdown will notify the user with a popup, closeable form that the db will be closing. After the number of warnings that you specify, code in your application will be called allowing you to cleanup and close your application. Feedback welcomed. 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 DWUTKA at marlow.com Wed Feb 25 16:42:14 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 16:42:14 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FB@main2.marlow.com> Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Wed Feb 25 16:46:30 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 25 Feb 2004 17:46:30 -0500 Subject: [AccessD] Determining Time for Project References: <20040225160441.XBVI13528.tomts24-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> ...first things first Bryan ...you MUST write a product spec that defines everything your project is expected to accomplish ...AND get your boss or client to sign off on it IN WRITING ...then and ONLY then can you talk to anyone about how much time it will take ...the fact that you THINK you know what the application needs won't mean diddly if its not in writing before you start ...someone will want this MINOR change ...and then there'll be the "just add this small feature" bits ...etc, etc, ad infinitum ...only if its in writing and your time estimate is based solely on that spec do you have a viable defense against the changes everyone will inevitably ask for ...if its in writing, you can say "Yes I CAN change that but it'll take another 24 man-hours ...just sign here to authorize the additional time" ...but if its only in your head you can't use that because the requester will almost always say it was his understanding that that was how it was supposed to be from the start and its your problem if it needs fixing ...been there, never going back :(((( ...other than that, I find Drew's WAG method as accurate as most :)))) William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Wednesday, February 25, 2004 11:04 AM Subject: [AccessD] Determining Time for Project > I know that this is all subjective, but... > > How do you determine the amount of time required to build an application? > > I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. > > I will be the only one that will be developing it, so I don't have to worry about other people, just me. > > Thanks for any hints, tips or ideas. > > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Unfortunately common sense isn't so common! > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Wed Feb 25 20:17:45 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 25 Feb 2004 18:17:45 -0800 Subject: [AccessD] Backup routines In-Reply-To: Message-ID: <000201c3fc0e$b8f12920$6501a8c0@rock> IMO daily backup routines are not overzealous. At my last place of employ we did more than one daily backup (of the database), in fact: at noon, at 5pm and at midnight. Each morning the midnight copy was burned to a CD and taken off-site. We never had to use one of them in 3+ years. But there's a security in knowing that even if the whole building burns down, there's an offsite backup that can take us back to last midnight. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto Alves Sent: Tuesday, February 24, 2004 4:00 AM To: AccessD List Subject: [AccessD] Backup routines Dear Members: I would like to have your input on this subject. I wrote a Sub to execute regular BE backups. Everyday thru a month a BE copy is compacted (DBEngine.CompactDatabase) and renamed and stored in a different folder. Do you think that such a 30-day backup routine is overzealous??? Thanks for your opinion, -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Feb 25 17:38:52 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 25 Feb 2004 17:38:52 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AB@TAPPEEXCH01> Aha! I see... Never tried that before (tend to favor MDI interfaces anyways). I saw a code sample on Dev Ashish's site that used the ShowWindow API call to hide it. Is this the one you are using? (I think that may be a little out of the realm of Macro commands ) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 25, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From my.lists at verizon.net Wed Feb 25 17:56:39 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 25 Feb 2004 15:56:39 -0800 Subject: [AccessD] Backup routines In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB289@ADGSERVER> Message-ID: <403D3637.6010002@verizon.net> IMNSHO, Access databases in production require at minimum a 30 day cycle I use zip to cd to backup the mdb and zip it off the server to my pc, and then have a seperate backup that backs the server mdb to tape at night. Tape backups are stored by the IS dept offsite under our company contract of a 10yr storage, while the zip files are stored on my 80gig hdd for a minumum of 30 days. When the mdb was in production we also moved the older zips (in 1week intervals) to CD Bobby Heid wrote: >I think the answer is: it depends. > >If this is data that cannot be recreated easily and you have no other backup >mechanism in place, I'd say that this is not over-cautious. > >On my machine at home, I do weekly backups. But I use a program called >Replicator to replicate several key folders to another drive, just in case. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos Alberto >Alves >Sent: Tuesday, February 24, 2004 7:00 AM >To: AccessD List >Subject: [AccessD] Backup routines > > >Dear Members: >I would like to have your input on this subject. I wrote a Sub to execute >regular BE backups. Everyday thru a month a BE copy is compacted >(DBEngine.CompactDatabase) and renamed and stored in a different folder. >Do you think that such a 30-day backup routine is overzealous??? Thanks for >your opinion, > > -- -Francisco From DWUTKA at marlow.com Wed Feb 25 18:17:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 18:17:17 -0600 Subject: [AccessD] Re: OT Quick Question Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FD@main2.marlow.com> I wrote my own eventually. It's just a call to the ShowWindow API. Download and try the AlwaysOnTop demo I have on my site. It not only hides the Access Window, but puts the access form in an 'always on top' state, to stay above the other windows on your desktop. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 5:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Aha! I see... Never tried that before (tend to favor MDI interfaces anyways). I saw a code sample on Dev Ashish's site that used the ShowWindow API call to hide it. Is this the one you are using? (I think that may be a little out of the realm of Macro commands ) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Wednesday, February 25, 2004 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Re: OT Quick Question Um, try again Brett. I said ACCESS Window, NOT the database window. If you know of a way, without VBA (or any other 'code language') to hide the ACCESS Window, I'd love to know. Hiding the access window puts your forms on the desktop, and you don't have Microsoft Access sitting in the taskbar. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, February 25, 2004 4:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: OT Quick Question Can't hide the Access Window without VBA? C'mon now Drew! Some of us who began Access development before VBA recall using DoMenuItem Form, Window, Hide in our AutoExec macros to hide the Access window (alternatively you could use DoCmd DoMenuItem in AccessBasic code, your choice!). In A97 and beyond, the same can be accomplished with RunCommand WindowHide in a Macro. Not the most elegant solution (only works if your database window is active), but I can personally show you one of our A2 apps that uses it, and it hasn't failed once in the last 8 years! At 10:12 AM 2/25/2004 -0600, you wrote: >Date: Tue, 24 Feb 2004 14:00:40 -0600 >From: DWUTKA at marlow.com >Subject: RE: [AccessD] Re: OT Quick Question >To: accessd at databaseadvisors.com >Message-ID: > <2F8793082E00D4119A1700B0D0216BF8022278E9 at main2.marlow.com> >Content-Type: text/plain; charset="iso-8859-1" > >Um, yeah. Kind of what I was saying! > >Technically, whether people like it or not, if you use a form, you are using >VBA, because Forms are Class Objects. Whether you put code behind them or >not, they are still using VBA. VBA can be used with the UI, for reasons >other then business rules. In fact, the first VBA code I ever used was to >hide the Access Window, something that you can't do without VBA, and also >part of the UI. > >Drew ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 25 19:13:48 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:13:48 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: The gold standard for estimating time in software is as follows: Make your best estimate. Multiply the number portion of the estimate by 3 Change the time unit upwards to the next unit. For example. I estimate 2 days 2 X 3 = 6 Days changes to weeks Realistic estimate 6 weeks. Another example. I estimate 1 month 1 X 3 = 3 Months changes to years Realistic estimate = 3 years. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:55 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Determining Time for Project Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 25 19:20:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:20:13 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> Message-ID: You never really said what specifically the problem was, how it expressed itself, nor how it could be avoided. >because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. What does that mean? Just opening ANY MODULE in the application causes Access to lock up? Opening the module with that functionality in it causes ACCESS to go beserk? Stepping into the function with that code? Stepping over that line of code? If opening ANY MODULE causes that then I for one would never use that method. If either of the other three, then I could place it in it's own module and deal with the problem. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Feb 25 19:23:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:23:27 -0500 Subject: [AccessD] Shutting down applications if they are not being us ed In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278C0@main2.marlow.com> Message-ID: Drew, May I suggest that you put your web site in your sig? I don't know how to get to your site to get this thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Saturday, February 21, 2004 4:08 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Shutting down applications if they are not being us ed Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew From DWUTKA at marlow.com Wed Feb 25 19:28:51 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:28:51 -0600 Subject: [AccessD] Determining Time for Project Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FE@main2.marlow.com> LOL, how true that is! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Determining Time for Project The gold standard for estimating time in software is as follows: Make your best estimate. Multiply the number portion of the estimate by 3 Change the time unit upwards to the next unit. For example. I estimate 2 days 2 X 3 = 6 Days changes to weeks Realistic estimate 6 weeks. Another example. I estimate 1 month 1 X 3 = 3 Months changes to years Realistic estimate = 3 years. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 4:55 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Determining Time for Project Take a WAG. Then double it. Add a few hours of hair pulling and teeth grinding. Then, for every form involved, add 15 minutes if their bound, an hour if their unbound. Add 45 minutes for every Global variable that you plan on using. Once all that is done, triple your time. Look at your projected start date, and multiply the current 'time projection' by 100% + the current phase of the moon divided by the average rain fall for that month over the past ten yeats. After all that, a one more day for good luck, and you should be as close as you can get then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, February 25, 2004 10:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Determining Time for Project I know that this is all subjective, but... How do you determine the amount of time required to build an application? I need to do it for an internal project, but I have NO idea how to estimate the time. I already know what the application needs to do and produce, but I haven't got the foggiest idea how to estimate time. I will be the only one that will be developing it, so I don't have to worry about other people, just me. Thanks for any hints, tips or ideas. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 19:31:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:31:05 -0600 Subject: [AccessD] C2DbShutdown Message-ID: <2F8793082E00D4119A1700B0D0216BF8022278FF@main2.marlow.com> Opening ANY module. The problem is the VBE. When it's loaded, the callback function slows to a crawl, and everything goes bonkers. It is simple to create a condition statement to 'block' that functionality from running in development though, and set it to normal in regular mode. Personally, I think it's outrageous that MS would incorporate AddressOf, and then have such a HUGE issue with using it. But sometimes, functionality supercedes convenience. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:20 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown You never really said what specifically the problem was, how it expressed itself, nor how it could be avoided. >because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. What does that mean? Just opening ANY MODULE in the application causes Access to lock up? Opening the module with that functionality in it causes ACCESS to go beserk? Stepping into the function with that code? Stepping over that line of code? If opening ANY MODULE causes that then I for one would never use that method. If either of the other three, then I could place it in it's own module and deal with the problem. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Feb 25 19:31:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 25 Feb 2004 19:31:35 -0600 Subject: [AccessD] Shutting down applications if they are not being us ed Message-ID: <2F8793082E00D4119A1700B0D0216BF802227900@main2.marlow.com> Http://www.wolfwares.com Sorry, I don't like using sigs...used to use them all the time, now I just don't bother with them! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Shutting down applications if they are not being us ed Drew, May I suggest that you put your web site in your sig? I don't know how to get to your site to get this thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Saturday, February 21, 2004 4:08 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Shutting down applications if they are not being us ed Just put Inactivity2k on my website. In Access 97, AddressOf is not a supported function, but Ken Getz wrote a function, AddrOf, where he hacked into the VBA .dll, in order to simulate VB's AddressOf capability. (AddressOf is required for callback functions). Apparently, AddressOf IS supported in A2k (and up). However, this is a BIG BIG BIG BIG BIG warning from Microsoft. (and their right, at least for A2k). Use this code ONLY in your final products, because if the VBE editor has been opened, the callback capability goes bezerk, and sends the VBE into an endless loop, which makes Access look like it has locked up. Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 25 19:39:11 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 25 Feb 2004 20:39:11 -0500 Subject: [AccessD] C2DbShutdown In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278FA@main2.marlow.com> Message-ID: Well I found your site by searching back through dozens of your messages 8(, downloaded and played with the A2K version you discussed. Pretty nasty situation. I think I'll pass on that. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, February 25, 2004 5:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] C2DbShutdown LOL. Figured that. It's really only a development warning, because you should never allow your users to get into your source code anyways, so as an .mde, or a fully developed function, the warning doesn't apply. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, February 25, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] C2DbShutdown The WARNINGWARNINGWARNING mostly. ;-) I haven't decided not to use that method but I likewise haven't decided to use it. John W. Colby www.ColbyConsulting.com From carbonnb at sympatico.ca Thu Feb 26 04:29:58 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:29:58 -0500 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: Message-ID: <403D8456.12641.19ADF1@localhost> On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: <403D8586.20679.1E50C4@localhost> On 25 Feb 2004 at 15:54, DWUTKA at marlow.com wrote: > Take a WAG. Then double it. Add a few hours of hair pulling and :-))) -- Bryan Carbonnell - carbonnb at sympatico.ca Learn from the mistakes of others. You can't live long enough to make them all yourself. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> Message-ID: <403D8586.2397.1E510A@localhost> On 25 Feb 2004 at 17:46, William Hindman wrote: > ...first things first Bryan ...you MUST write a product spec that > defines everything your project is expected to accomplish ...AND get > your boss or client to sign off on it IN WRITING ...then and ONLY then Ick. I've nevre done that before. I guess I'm going to learn now, eh? > ...other than that, I find Drew's WAG method as accurate as most :)))) Oh, boy :)) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From carbonnb at sympatico.ca Thu Feb 26 04:35:02 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 05:35:02 -0500 Subject: [AccessD] Determining Time for Project In-Reply-To: References: <2F8793082E00D4119A1700B0D0216BF8022278F8@main2.marlow.com> Message-ID: <403D8586.31651.1E5088@localhost> On 25 Feb 2004 at 20:13, John W. Colby wrote: > The gold standard for estimating time in software is as follows: > > Make your best estimate. > Multiply the number portion of the estimate by 3 > Change the time unit upwards to the next unit. Cool. 2 years!!!! :) -- Bryan Carbonnell - carbonnb at sympatico.ca Tell me what you need, and I'll tell you how to get along without it. From Oleg_123 at xuppa.com Thu Feb 26 08:09:43 2004 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Thu, 26 Feb 2004 09:09:43 -0500 (EST) Subject: [AccessD] Determining Time for Project In-Reply-To: <403D8586.2397.1E510A@localhost> References: <002601c3fbf1$361769a0$6101a8c0@dejpolsys> <403D8586.2397.1E510A@localhost> Message-ID: <45053.63.251.87.214.1077804583.squirrel@heck.bay9.com> yeah, but the contractor is not always the one to make the rules... > On 25 Feb 2004 at 17:46, William Hindman wrote: > >> ...first things first Bryan ...you MUST write a product spec that >> defines everything your project is expected to accomplish ...AND get >> your boss or client to sign off on it IN WRITING ...then and ONLY then > > Ick. I've nevre done that before. I guess I'm going to learn now, eh? > > > >> ...other than that, I find Drew's WAG method as accurate as most :)))) > > Oh, boy :)) > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > You're just jealous because the voices only talk to me. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From jwcolby at colbyconsulting.com Thu Feb 26 09:07:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 10:07:17 -0500 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <403D8456.12641.19ADF1@localhost> Message-ID: The silly part of this whole thing is "the amount of time she initially thought it would be". That's like ME taking my car to my mechanic (I am NOT a mechanic) and telling him how long it should take to swap out my engine. How on God's green earth can she "think how long it will take"? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 5:30 AM To: Access Developers discussion and problemsolving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 26 09:08:57 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:08:57 +0000 Subject: [AccessD] Progress Bar Message-ID: Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From bridgetd at biostat.umn.edu Thu Feb 26 09:16:06 2004 From: bridgetd at biostat.umn.edu (Bridget Doran) Date: Thu, 26 Feb 2004 09:16:06 -0600 (CST) Subject: [AccessD] IIf Message-ID: Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu From ssharkins at bellsouth.net Thu Feb 26 09:21:54 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 26 Feb 2004 10:21:54 -0500 Subject: [AccessD] Progress Bar In-Reply-To: Message-ID: <20040226152151.ZQIK1860.imf24aec.mail.bellsouth.net@SUSANONE> There's one built-in, with the SysCmd function. I'm sure you could find something slicker, but it works OK. Susan H. Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 26 09:22:12 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:22:12 +0100 (CET) Subject: [AccessD] IIf Message-ID: <21471599.1077808932144.JavaMail.www@wwinf3004> Bridget, Try one of the two possibilities below: =iif(Isnull([4]),0,[4]) or =iif([4]=??,0,[4]) Paul Message date : Feb 26 2004, 03:19 PM >From : "Bridget Doran" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] IIf Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 26 09:24:57 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:24:57 +0100 (CET) Subject: [AccessD] Progress Bar Message-ID: <23690516.1077809097343.JavaMail.www@wwinf3004> The one that comes with Access is pretty straight forward to use, I could send an example if you like (and if I can find it) Paul Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From BBarabash at TappeConstruction.com Thu Feb 26 09:26:09 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 26 Feb 2004 09:26:09 -0600 Subject: [AccessD] IIf Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE3AC@TAPPEEXCH01> Hi Bridget, First of all, yes, IIf can be used in all types of queries. However your syntax is incorrect. The best way to convert null values to zero is to use the built-in Nz function: =Nz([4]) Also, the proper way to check if a field is null is to use the IsNull() function. e.g. IsNull([4]) In a query you can also use the Is Null syntax e.g. [4] Is Null HTH Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Bridget Doran [mailto:bridgetd at biostat.umn.edu] Sent: Thursday, February 26, 2004 9:16 AM To: accessd at databaseadvisors.com Subject: [AccessD] IIf Does anyone know if the Immediate If can be used with crosstab data? I'm trying to report with this data and I've tried this: =IIf([4]=Null,0,[4]) on the report as well as in the query and I don't get any errors but I also don't get what I want which is a zero in the case of no data. Thanks - I'm using Access2K -- Bridget Doran Bridget Doran Biostatistics Consulting Lab University of Minnesota A444 Mayo Building 612.626.7009 bridgetd at biostat.umn.edu -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From rsmethurst at UK.EY.COM Thu Feb 26 09:30:11 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:30:11 +0000 Subject: [AccessD] Progress Bar Message-ID: Thanks Paul, I'd appreciate that. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Feb 26 09:40:57 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:40:57 +0000 Subject: [AccessD] Progress Bar Message-ID: Sorry, Should have elaborated on this a little more. I would like a progress bar that is form based if possible. Thanks Ryan rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 26/02/2004 15:08 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: [AccessD] Progress Bar Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From paul.hartland at fsmail.net Thu Feb 26 09:45:53 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 26 Feb 2004 16:45:53 +0100 (CET) Subject: [AccessD] Progress Bar Message-ID: <12946164.1077810353263.JavaMail.www@wwinf3004> ok, create a form and add the progress bar control call it ProgressBar add a cmdbutton and on the click event of the button add the following code Dim intIncrementBar As Integer Dim intDelay As Integer Me.ProgressBar0.Value = 0 For intIncrementBar = 1 To 100 Me.ProgressBar0.Value = intIncrementBar For intDelay = 0 To 50000 Next intDelay Next intIncrementBar This should get you started, if you need any more help let me know..... Paul Message date : Feb 26 2004, 03:37 PM >From : rsmethurst at UK.EY.COM To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Progress Bar Thanks Paul, I'd appreciate that. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Thu Feb 26 09:42:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 07:42:48 -0800 Subject: [AccessD] ListView or TreeView to show directory listing References: <20040224203939.39113.qmail@web20418.mail.yahoo.com> Message-ID: <403E13F8.1010505@shaw.ca> I have been fiddling around with Dir code recently; to check entire disks and came across one quirk you can get Number 76 Runtime errors with files like page.sys or occasionally files with no extension in the name. I was doing it to determine what type of mdb files are on a disk. 2000, XP, 97 etc. Lonnie Johnson wrote: >Thanks guys, those were great responses. The user actually settled for a list box that was populated from the Dir function of a predetermined path. > > >Mike & Doris Manning wrote: > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com >Sent: Tuesday, February 24, 2004 12:28 PM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] ListView or TreeView to show directory listing > > >A treeview would be 'collapsable', however, it would be a bit more complex >to program. You could create the VB equivalent of a DriveList, FolderList >and Filelist box. (Or just use them, but those would be extra ActiveX >controls in your project). > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson >Sent: Monday, February 23, 2004 11:48 AM >To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD >solving' >Subject: [AccessD] ListView or TreeView to show directory listing > > >I want to be able to display the folders and files of a directory in a list >box type manner. Would this be a listview or treeview control? If so, is >there a wizard you can install to do this on Access XP? I want a collapsable >list to allow the user to highlight a file in any folder they desire. > >p.s. The user does not want the Windows Common Dialog Box. > >Thanks in advance > > > >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Feb 26 09:48:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 10:48:27 -0500 Subject: [AccessD] Many to Many Message-ID: What is the deadline for articles? John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Thu Feb 26 09:53:28 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 26 Feb 2004 07:53:28 -0800 Subject: [AccessD] Re: Determining Time for Project In-Reply-To: <403D8456.12641.19ADF1@localhost> Message-ID: Hi Bryan: There is nothing like 'small p' politics within a government or semi-govern-mental agency. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 2:30 AM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Thu Feb 26 09:56:13 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 26 Feb 2004 15:56:13 +0000 Subject: [AccessD] Progress Bar Message-ID: Thanks a lot Paul, all sorted now. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From martyconnelly at shaw.ca Thu Feb 26 10:07:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 08:07:16 -0800 Subject: [AccessD] A97 - 2003 conversion References: Message-ID: <403E19B4.10006@shaw.ca> There is one caveat I have about Word 2003. If you have any lawyers using it to reproduce or save in Word Perfect format, the conversion driver is no longer there, You can read WP but not write WP type files. so you might want to keep a copy of Word 2002 or 2000 hanging around. I know in the US, you have to submit Superior Court Appeal documents in Word Perfect only. I don't think Canadian courts are that fussy. See http://www.woodyswatch.com/office/archtemplate.asp?v9-n05 Welz wrote: > Thank you Gustav & Lambert: > > And thanks to all members who welcomed me back. > > Helen's document addresses that aspect of my question exactly. The IT > people were telling me that I was dreaming about self-signed > certificates. > > I will forward them the doc file and await their response. > > Hopefully I can browse the Access help (not vba help yet > unfortuantely) files a bit tonight and have a peek at the MSDN online > as well. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > >> From: "Heenan, Lambert" >> >> Digital certs for Access 2003 were just covered in Woody's Access watch. >> >> Pop over here... >> >> http://www.helenfeddema.com/access.htm >> >> and go to the bottom of the page and download accarch119.zip. >> >> Lambert > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Feb 26 10:28:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 11:28:05 -0500 Subject: [AccessD] Progress Bar In-Reply-To: Message-ID: Ryan, Go to my site, click Misc Demos and download the C2DbDemoWaitForm. This is a very nice wait form with the ability to accept messages, cancel button if needed etc. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rsmethurst at uk.ey.com Sent: Thursday, February 26, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Progress Bar Thanks a lot Paul, all sorted now. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Feb 26 10:40:12 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 11:40:12 -0500 Subject: [AccessD] Progress Bar Message-ID: http://www.mvps.org/access/downloads/ProgressBarR1.3.zip is the one I use. It's basically a subform that you drop on your form. You then increment some custom properties of the subform in vba and there is your progress bar. It's pretty easy to use. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> rsmethurst at UK.EY.COM 26-Feb-04 10:08:57 AM >>> Hi All, Does anyone know where I can get an easy to use progress bar. TIA Ryan From Bryan_Carbonnell at cbc.ca Thu Feb 26 10:41:45 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 11:41:45 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: Yea, well... I know here well enough to be fairly confident that she really meant she hoped that it would only take that long. English is such a finicky language :) Bryan Carbonnell bryan_carbonnell at cbc.ca >>> jwcolby at colbyconsulting.com 26-Feb-04 10:07:17 AM >>> The silly part of this whole thing is "the amount of time she initially thought it would be". That's like ME taking my car to my mechanic (I am NOT a mechanic) and telling him how long it should take to swap out my engine. How on God's green earth can she "think how long it will take"? From Bryan_Carbonnell at cbc.ca Thu Feb 26 11:07:47 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 26 Feb 2004 12:07:47 -0500 Subject: [AccessD] Re: Determining Time for Project Message-ID: In this case it isn't anything that resembles politics. Its just repeating what was said and NOT what was meant. I KNOW there is a difference in this case. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> accessd at shaw.ca 26-Feb-04 10:53:28 AM >>> Hi Bryan: There is nothing like 'small p' politics within a government or semi-govern-mental agency. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, February 26, 2004 2:30 AM To: Access Developers discussion and problem solving Subject: RE: Re: [AccessD] Re: Determining Time for Project On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > Non-developers never understand why it takes so long. They figure if > they throw a few more people at it or leave out a few things, you can > do it in a week ... Or a month ... Or 90 days ... Or whatever. I It wasn't so much she didn't understand why I needed that much time. She seemed to understand that, it's just that she didn't like it. We are undergoing some pretty significant changes in the department and I get myself secconded for 4 times the amount of time she initially thought it would be. That's why she didn't appreciate it. Oh well, the seccondment was *HER* idea anyway :) -- Bryan Carbonnell - carbonnb at sympatico.ca Artificial intelligence is no match for natural stupidity. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Feb 26 11:21:53 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 26 Feb 2004 22:51:53 +0530 Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically References: <2F8793082E00D4119A1700B0D0216BF8022278F6@main2.marlow.com> Message-ID: <001201c3fc8d$38cad0f0$8a1865cb@winxp> Drew, I truly appreciate your thoughtfulness and helpful approach in explaining the position in such a nice manner. I would love to have the 2000 version of sample mentioned by you. (My introduction to Access started with version 2000). Thanks a lot for your kind help. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Thursday, February 26, 2004 03:06 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- From ssharkins at bellsouth.net Thu Feb 26 12:06:39 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 26 Feb 2004 13:06:39 -0500 Subject: [AccessD] Many to Many In-Reply-To: Message-ID: <20040226180638.BBLI1827.imf20aec.mail.bellsouth.net@SUSANONE> Anytime. I don't have a thing right now -- so as soon as I get a few, we'll publish again. Susan H. What is the deadline for articles? From jwelz at hotmail.com Thu Feb 26 13:18:45 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 26 Feb 2004 12:18:45 -0700 Subject: [AccessD] A97 - 2003 conversion Message-ID: Thanks Marty: This is for my former Employer - now Client construction company that does not run WordPerfect. I do have lawyer clients running Office 2000 though and will keep track of this tidbit because many run both Word and Wordperfect for their boilderplate. The other news is that the 97 - 2003 conversion appears to run without issue including automation code for Word, Excel, Powerpoint and Project. I haven't tested all aspects yet but those that I have seem to work without issue. A far bigger issue is that they are moving from an MS 2000 Windows to 2003 and the screen fonts are all much smaller. The result of that conversion is that much of my drag and drop pixel based code requires revision. For some reason the drag form now truncates in width notwithstanding that it uses a API calls to determine the width of the text using the actual screen font. The drag distance had a few constants that I hard coded that need to be revised or convert to API based dynamic code. The biggest conversion headache is that a number of fonts have been changed such that they exceed the screen realestate allotted at the original design time. The good news is that the new screen uses smaller screen fonts than the old so while the old and new applications run at 1024*768, the forms use only the left and top 2/3's of the screen. What seems to have messed up the most in the conversion is the fonts on tabs. Most of the other issues relate to ODBC to outside data sources that appear no longer to work. It does look like I can continue to use the Access 97 file ODBC and link data imported into a 97 container to the 2003 application. I'll give this a shot tomorrow. The downside is that I'll have to import into the 97 mdb whereas previously I had only to overwrite the prelinked file. A change in that file format from some kind of text file to a Pervasive SQL database file may yet cause some headaches as the software vendor advises that their ODBC still only works with Access 97 files. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: MartyConnelly > >There is one caveat I have about Word 2003. If you have any lawyers using >it to reproduce or save in Word Perfect format, the conversion driver is no >longer there, You can read WP but not write WP type files. so you might >want to keep a copy of Word 2002 or 2000 hanging around. I know in the US, >you have to submit Superior Court Appeal documents in Word Perfect only. I >don't think Canadian courts are that fussy. >See >http://www.woodyswatch.com/office/archtemplate.asp?v9-n05 _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From DWUTKA at marlow.com Thu Feb 26 13:32:01 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 26 Feb 2004 13:32:01 -0600 Subject: [AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically Message-ID: <2F8793082E00D4119A1700B0D0216BF802227902@main2.marlow.com> There is going to be a problem with a 2000 version. It too is going to use the AddressOf (which the 'shutdown' thread is talking about). So it may get goofy if you run it during development. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Thursday, February 26, 2004 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, I truly appreciate your thoughtfulness and helpful approach in explaining the position in such a nice manner. I would love to have the 2000 version of sample mentioned by you. (My introduction to Access started with version 2000). Thanks a lot for your kind help. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Thursday, February 26, 2004 03:06 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Welcome to the wonderful world of MS Access forms. Access forms seem like normal windows, but they are far from it. The only way to explain the odd behavior, is to just point out the fact that Access forms AREN'T normal windows. Let me give you an example of what I mean. Take ANY other window on your computer. Something from VB, or any application where you have command buttons, textboxes, etc. Now, look at the hWnd of the window (there are dozens of utilities out there to do this, or I can send you one I made in VB. More importantly, look at the 'child windows' of the form/window. You'll find that every control is it's own individual window. Now look at an Access form. It has ONE 'control' child window, which just changes from control to control. So when a control isn't active, it's really just 'drawn' on the Access form. It is VERY odd behavior. Back to your actual system design, may I make a little suggestion? I think I see where you are going, and I think I have a 'slicker' approach. Instead of minimizing Access, why not HIDE access, and put a form into the system tray. That way, you have a presence (with an icon in your system tray), Access is still running, and when you want to display a 'message', just use a msgbox. I have an example of the system tray process in my MiniCalendar. (On my website). Open it, run the 'cycle' mode, and press the 'sleep' button. It will put the Minicalendar into the system tray, as an icon. A little warning. That's an Access 97 db, and it works fine in 97. However, to 'subclass' the form to the system tray, it needs to use the AddressOf function, which Ken Getz wrote a 'cheat' for in 97. In A2k and up, AddressOf is actually available, so my sample won't work in A2k (not the system tray portion). So if you are using A2k or higher, let me know, I'll whip up an example for you. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Tuesday, February 24, 2004 11:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Drew, Your demo has been very helpful in finding a solution. Certain peculiarities encountered in the process are mentioned below - in case you could throw some light. The objective is to have the access application in standby mode (minimized state), with a timer form active. When certain conditions are met, this form causes another form (meant to convey an Alert) to pop up onto the desktop. This pop-up form is required to have the focus on its OK button so that the user is not compelled to use the mouse for dismissing the form. (a) The following code in Timer Form's module achieves the desired results - ShowWindow Application.hWndAccessApp, _ SW_SHOWMINIMIZED ' (A) DoCmd.OpenForm "frmAlert", acNormal FrmHDL = Forms("frmAlert").hwnd ShowWindow FrmHDL, SW_SHOWNORMAL (b) However, if the API call at (A) is replaced by the following line, the pop-up form gets displayed without having a focus (adding the statement Forms("frmAlert").SetFocus at the end of (a) does not appear to be effective) - DoCmd.RunCommand acCmdAppMinimize (c) Again, if (A) is retained, but the timer form is sought to be closed by placing the following line at the very end of (a), the pop-up form appears without focus - DoCmd.Close acForm, Me.Name I shall be thankful if the reason for behaviour outlined at (b) & (c) above could be explained. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Monday, February 23, 2004 21:27 Subject: RE: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically Try the AlwaysOnTop demo off of my site. Drew (http://www.wolfwares.com) -----Original Message----- From: accessd-bounces at databaseadvisors.com To: Access Developers discussion and problem solving Sent: 2/22/04 11:18 PM Subject: [AccessD] Access Form Outside The Application Container - Making It Active Programmatically This relates to a minimized Access 2000 application, where one of its forms is made to pop up on the desktop via API calls. Though everything proceeds as desired, the pop up form itself does not get focus until clicked upon. Following API calls have been tried - but no success in setting focus on the form - ShowWindow BringWindowToTop SetForegroundWindow SetActiveWindow ' SetFocus ' Gives Compile Error Note - FlashWindow and SetWindowText if tried, do what is expected but the focus gets lost eventually I shall be thankful for any help in this regard. Regards, A.D.Tejpal -------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 26 16:07:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 26 Feb 2004 17:07:49 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed there. John W. Colby www.ColbyConsulting.com From Lambert.Heenan at AIG.com Thu Feb 26 16:30:04 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 26 Feb 2004 17:30:04 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7ED9@xlivmbx12.aig.com> Hi John, You could try using Regedit. Take a look at the key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Extensions] with luck you'll find .DB listed there and you ca just delete the entry. Lambert > -----Original Message----- > From: John W. Colby [SMTP:jwcolby at colbyconsulting.com] > Sent: Thursday, February 26, 2004 5:08 PM > To: AccessD > Subject: [AccessD] Paradox and Windows stupidity > > Folks, > > I made the mistake of telling a Paradox .Db file to "open with" Access. > Windows has now decided to place the Access symbol on that and try and > open > it with Access all the time. .Db is NOT an extension listed in the "file > types" dialog box so I can't "undo" what I did. And I can't link to these > things (any more) because Access says "wrong file type". Where do I go to > tell Windows that a .Db file is not anything to do with Access? And > please > don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB > is > not listed 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 pharold at proftesting.com Thu Feb 26 17:33:46 2004 From: pharold at proftesting.com (Perry Harold) Date: Thu, 26 Feb 2004 18:33:46 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <001b01c3fcc0$fab3beb0$082da8c0@D58BT131> Hi John If you're running XP you can add the .db as a new file type in .../FileTypes - don't remember if it was the same in 98 or not. It then "should" say it's already associated with something and ask if you want to unassociate it and then create the new association. You "should" then be able to make it be associated with Paradox again. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, February 26, 2004 5:08 PM To: AccessD Subject: [AccessD] Paradox and Windows stupidity Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 mmm at tbig.com Thu Feb 26 18:40:44 2004 From: mmm at tbig.com (Myke Myers) Date: Thu, 26 Feb 2004 19:40:44 -0500 Subject: [AccessD] FYI: Adp Textbox Limitations Message-ID: <00ca01c3fcca$5881c9c0$d701a8c0@tbig1> After spending several frustrating hours testing and searching newsgroups, I have found a flaw in Access adp textboxes. Here's how it looks from here: If you bind the textbox to a field that is NOT a datatype of NTEXT, you can only put 255 characters in the textbox. The weird thing is, if you have a textbox bound to a varchar data type of size 300 and you put 300 characters in the textbox, sometines Access DROPS the first 255 and only shows the last 45 characters! If anyone knows any way around this, i.e., how to bind a textbox to a varchar size 500 and actually put 500 characters in the database, please share. Myke From d.dick at uws.edu.au Thu Feb 26 20:00:12 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 27 Feb 2004 13:00:12 +1100 Subject: [AccessD] OT:Batch file Question Message-ID: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Hello all WAY OT but... I need a batch file to pause for 'n' seconds Of course the 'pause' command stops a batch file until a key is pressed, but is there something like "pause, 3" where 3 is the delay to pause, in seconds Sorry for the OT post If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au Many thanks Darren From stuart at lexacorp.com.pg Thu Feb 26 20:36:46 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Feb 2004 12:36:46 +1000 Subject: [AccessD] OT:Batch file Question In-Reply-To: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Message-ID: <403F39DE.22181.36B5B3@localhost> On 27 Feb 2004 at 13:00, Darren DICK wrote: > Hello all > WAY OT but... > I need a batch file to pause for 'n' seconds > Of course the 'pause' command stops a batch file until a key is pressed, > but is there something like "pause, 3" where 3 is the delay to pause, in seconds > > Sorry for the OT post > > If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au > Not completely OT, so I'm replying on list since it's also a useful technique within a VBA Shell command. You can do it using CHOICE: CHOICE /T:N,3 >Null will wait for 3 seconds and then continue. It actually puts up a Y/N prompt and waits 3 seconds before defaulting to N. But since you are sending the output to Null - nothing appears to happen for the 3 seconds. You can create a batchfile containing one line File - WAIT.BAT @CHOICE /T:n,%1% > Null Then to wait for 5 seconds, just use WAIT 5 or CALL WAIT 5 -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From d.dick at uws.edu.au Thu Feb 26 21:07:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 27 Feb 2004 14:07:01 +1100 Subject: [AccessD] OT:Batch file Question References: <403F39DE.22181.36B5B3@localhost> Message-ID: <00f301c3fcde$c55b7370$48619a89@DDICK> NO ARCHIVE Again - Stuart to my rescue many many thanks Have a great day DD ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Friday, February 27, 2004 1:36 PM Subject: Re: [AccessD] OT:Batch file Question > On 27 Feb 2004 at 13:00, Darren DICK wrote: > > > Hello all > > WAY OT but... > > I need a batch file to pause for 'n' seconds > > Of course the 'pause' command stops a batch file until a key is pressed, > > but is there something like "pause, 3" where 3 is the delay to pause, in seconds > > > > Sorry for the OT post > > > > If anyone is able to reply can they do it OFF LIST please to d.dick at uws.edu.au > > > Not completely OT, so I'm replying on list since it's also a useful > technique within a VBA Shell command. > > You can do it using CHOICE: > > CHOICE /T:N,3 >Null > will wait for 3 seconds and then continue. > > It actually puts up a Y/N prompt and waits 3 seconds before defaulting to > N. But since you are sending the output to Null - nothing appears to > happen for the 3 seconds. > > You can create a batchfile containing one line > File - WAIT.BAT > @CHOICE /T:n,%1% > Null > > Then to wait for 5 seconds, just use WAIT 5 or CALL WAIT 5 > > > > -- > Stuart McLachlan > Lexacorp Ltd > Application Development, IT Consultancy > http://www.lexacorp.com.pg > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From caa at highway.com.br Thu Feb 26 21:13:18 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Fri, 27 Feb 2004 00:13:18 -0300 Subject: [AccessD] Backup routines In-Reply-To: <000201c3fc0e$b8f12920$6501a8c0@rock> References: <000201c3fc0e$b8f12920$6501a8c0@rock> Message-ID: On Wed, 25 Feb 2004 18:17:45 -0800, Arthur Fuller wrote: > IMO daily backup routines are not overzealous. At my last place of > employ we did more than one daily backup (of the database), in fact: at > noon, at 5pm and at midnight. Each morning the midnight copy was burned > to a CD and taken off-site. > > We never had to use one of them in 3+ years. But there's a security in > knowing that even if the whole building burns down, there's an offsite > backup that can take us back to last midnight. > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carlos > Alberto Alves > Sent: Tuesday, February 24, 2004 4:00 AM > To: AccessD List > Subject: [AccessD] Backup routines > > > Dear Members: > I would like to have your input on this subject. I wrote a Sub to > execute > regular BE backups. Everyday thru a month a BE copy is compacted > (DBEngine.CompactDatabase) and renamed and stored in a different folder. > > Do you think that such a 30-day backup routine is overzealous??? Thanks > for your opinion, Thanks for all replies. Answering some questions, there is a network backup routine that overwrites last week backup (i.e.: this Monday backup overwrites last Monday backup), it is performed on removable tape, users got a corrupted database and all five copies were faulty too and there are no offsite copies. So I decided to set backup on a daily basis. See code below... >>> Dim strPATH As String, strPATH_BKP As String, strCOMPACT As String Dim strBD As String, strPREFIX As String, strTEMP As String, ReturnValue strPATH = "your_forder" strPATH_BKP = "new_folder" strBD = "DB_name" strCOMPACT = "BEFORE_COMPACT" strTEMP = "TEMP" strPREFIX = Format(Day(Date), "00") ReturnValue = SysCmd(acSysCmdSetStatus, "your_msg") If strPREFIX = 31 Then If Dir(strPATH_BKP & strCOMPACT & Chr(95) & strBD) <> "" Then Kill strPATH_BKP & strCOMPACT & Chr(95) & strBD DoEvents End If FileCopy strPATH & strBD, strPATH_BKP & strBD DoEvents Name strPATH_BKP & strBD As strPATH_BKP & strCOMPACT & Chr(95) & strBD DoEvents DBEngine.CompactDatabase strPATH & strBD, _ strPATH & strTEMP & Chr(95) & strBD, , , _ ";pwd=BD_PWD" DoEvents Kill strPATH & strBD DoEvents Name strPATH & strTEMP & Chr(95) & strBD As strPATH & strBD DoEvents Else FileCopy strPATH & strBD, strPATH_BKP & strBD If Dir(strPATH_BKP & strPREFIXO & Chr(95) & strBD) <> "" Then Kill strPATH_BKP & strPREFIXO & Chr(95) & strBD DoEvents End If DBEngine.CompactDatabase strPATH_BKP & strBD, _ strPATH_BKP & strPREFIXO & Chr(95) & strBD, , , _ ";pwd=BD_pwd" DoEvents Kill strPATH_BKP & strBD DoEvents End If ReturnValue = SysCmd(acSysCmdClearStatus) MsgBox "Backup completado com sucesso.", vbExclamation + vbOKOnly, "Backup" >>> ;-) -- ************************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ************************************** From stuart at lexacorp.com.pg Thu Feb 26 21:31:05 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Feb 2004 13:31:05 +1000 Subject: [AccessD] OT:Batch file Question In-Reply-To: <403F39DE.22181.36B5B3@localhost> References: <00d901c3fcd5$6fda58c0$48619a89@DDICK> Message-ID: <403F4699.18227.121A059@localhost> On 27 Feb 2004 at 12:36, Stuart McLachlan wrote: > > > Not completely OT, so I'm replying on list since it's also a useful > technique within a VBA Shell command. > > You can do it using CHOICE: > But only if you are using W9X :-( MS in their wisdom have not used it in NT/2000/XP ! An alternative is to PING an unreachable address PING 0.0.0.1 -n 1 -w 5000 > Null will time out after 5,000 milliseconds ( Just make sure that 0.0.0.1 or whatever IP address use is unreachable) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From martyconnelly at shaw.ca Fri Feb 27 01:37:07 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Feb 2004 23:37:07 -0800 Subject: [AccessD] Re: Determining Time for Project References: Message-ID: <403EF3A3.9070501@shaw.ca> Ack. I just realized you are in Canadian Silly service. Make sure you have a signed agreement with your boss or preferrably the personnel dept. that you have a job to return to. I had a friend who worked with Transport Canada and she was seconded outside the Department for six months to a year to get a major air traffic control system back on track. I insisted that she get a piece of paper saying she would return with same seniority and position. When she returned nobody wanted to know her and they tried to tell her she had abandoned her position, without that paper she would have been in PSAC arbitration for months without pay. Don't trust anyone without it being in writing , I have seen too many people in the Civil Service lie through their teeth. It probably won't happen but protect yourself anway. Bryan Carbonnell wrote: >In this case it isn't anything that resembles politics. > >Its just repeating what was said and NOT what was meant. I KNOW there >is a difference in this case. > >Bryan Carbonnell >bryan_carbonnell at cbc.ca > > > > >>>>accessd at shaw.ca 26-Feb-04 10:53:28 AM >>> >>>> >>>> >Hi Bryan: > >There is nothing like 'small p' politics within a government or >semi-govern-mental agency. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan >Carbonnell >Sent: Thursday, February 26, 2004 2:30 AM >To: Access Developers discussion and problem solving >Subject: RE: Re: [AccessD] Re: Determining Time for Project > > >On 25 Feb 2004 at 10:30, Charlotte Foust wrote: > > > >>Non-developers never understand why it takes so long. They figure >> >> >if > > >>they throw a few more people at it or leave out a few things, you >> >> >can > > >>do it in a week ... Or a month ... Or 90 days ... Or whatever. I >> >> > >It wasn't so much she didn't understand why I needed that much time. > >She seemed to understand that, it's just that she didn't like it. > >We are undergoing some pretty significant changes in the department >and I get myself secconded for 4 times the amount of time she >initially thought it would be. That's why she didn't appreciate it. > >Oh well, the seccondment was *HER* idea anyway :) > >-- >Bryan Carbonnell - carbonnb at sympatico.ca >Artificial intelligence is no match for natural stupidity. > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jarus at amerinet-gpo.com Fri Feb 27 06:18:10 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Fri, 27 Feb 2004 06:18:10 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. From jwcolby at colbyconsulting.com Fri Feb 27 06:48:36 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 07:48:36 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwilliams_78704 at yahoo.com Fri Feb 27 07:32:09 2004 From: dwilliams_78704 at yahoo.com (dan williams) Date: Fri, 27 Feb 2004 05:32:09 -0800 (PST) Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <20040227133209.40520.qmail@web9808.mail.yahoo.com> Well, I still have a need for moving old Paradox data to access, and I keep a copy of Access 2.0 around for that reason. Once we started using Access 97, the import for Paradox stoped working. If you need in of the files for the import - I think it will as about a file named 'pardox.net', I have a copy of it if you need it. --- "John W. Colby" wrote: > LOL. If I HAD paradox I might do that. The job is > to get the data out of > the Paradox DB files into Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Terri Jarus > Sent: Friday, February 27, 2004 7:18 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Paradox and Windows stupidity > > > Not sure exactly the problem - but couldn't you > either start up Paradox and > open the file via the program which should make the > file type change OR > change the extension and do an Open with ... Paradox > or whatever to get > Access off of it? > > Hope this makes sense - don't know if it will help. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> > Folks, > > I made the mistake of telling a Paradox .Db file to > "open with" Access. > Windows has now decided to place the Access symbol > on that and try and open > it with Access all the time. .Db is NOT an > extension listed in the "file > types" dialog box so I can't "undo" what I did. And > I can't link to these > things (any more) because Access says "wrong file > type". Where do I go to > tell Windows that a .Db file is not anything to do > with Access? And please > don't say Explorer/Tools/FolderOptions/File Types > because, as I said, DB is > not listed 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 > > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools From Rich_Lavsa at pghcorning.com Fri Feb 27 08:24:15 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Fri, 27 Feb 2004 09:24:15 -0500 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <833956F5C117124A89417638FDB11290EBD0E7@goexchange.pghcorning.com> I never liked going to "Explorer/Tools/FolderOptions/File Types" to change my file associations. I do it cause I want to keep up, however sometimes I get frustrated and use the old "File Manager". If you remember the old "File Manager" the tool before Windows Explorer and My Computer and how to associate file with it then I'd suggest this as a nice little tool for your tool kit. This version actually works for WinNT, 2000, and XP. Here is a copy of the exe that I found to change file associations with from time to time when the new tools just won't cut it. http://www.kellys-korner-xp.com/regs_edits/WINFILE.EXE G'luck, Rich -----Original Message----- From: dan williams [mailto:dwilliams_78704 at yahoo.com] Sent: Friday, February 27, 2004 8:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity Well, I still have a need for moving old Paradox data to access, and I keep a copy of Access 2.0 around for that reason. Once we started using Access 97, the import for Paradox stoped working. If you need in of the files for the import - I think it will as about a file named 'pardox.net', I have a copy of it if you need it. --- "John W. Colby" wrote: > LOL. If I HAD paradox I might do that. The job is > to get the data out of > the Paradox DB files into Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Terri Jarus > Sent: Friday, February 27, 2004 7:18 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Paradox and Windows stupidity > > > Not sure exactly the problem - but couldn't you > either start up Paradox and > open the file via the program which should make the > file type change OR > change the extension and do an Open with ... Paradox > or whatever to get > Access off of it? > > Hope this makes sense - don't know if it will help. > > Terri Jarus > Director, Contract Support Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> > Folks, > > I made the mistake of telling a Paradox .Db file to > "open with" Access. > Windows has now decided to place the Access symbol > on that and try and open > it with Access all the time. .Db is NOT an > extension listed in the "file > types" dialog box so I can't "undo" what I did. And > I can't link to these > things (any more) because Access says "wrong file > type". Where do I go to > tell Windows that a .Db file is not anything to do > with Access? And please > don't say Explorer/Tools/FolderOptions/File Types > because, as I said, DB is > not listed 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 > > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2004 Amerinet 1nc. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Fri Feb 27 08:58:33 2004 From: actebs at actebs.com.au (ACTEBS) Date: Sat, 28 Feb 2004 01:58:33 +1100 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: <000401c3fd42$2e31f280$0b08a8c0@carltonone.local> John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rsmethurst at UK.EY.COM Fri Feb 27 09:16:25 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 27 Feb 2004 15:16:25 +0000 Subject: [AccessD] Paradox and Windows stupidity Message-ID: Hi All, Does anyone know how I can "autosize " columns in a datasheet form Similar to : Columns("A:B").EntireColumn.AutoFit in Excel. Is this possible? Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From deanellis at iprimus.com.au Fri Feb 27 09:24:43 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Sat, 28 Feb 2004 01:54:43 +1030 (Cen. Australia Daylight Time) Subject: [AccessD] BE UPGRADER Message-ID: <403F613B.000003.43591@jedel> Hi all, I'm at the stage where I need to send out and updated version of my BE DB. Darren put me onto the BE Updater and I've been working through how to use it and have found myself lost with the instructions. I created a backup of the BE and began using this for development. I created some new tables and added them to the BE Upgrader. What I don't understand is how do these new tables get to the users BE DB? Where do I have to put the tables? Do I send the BE along with teh FE to the user and if so how can it be looking for a second BE with the same name in a diferent file path? I'm afraid the instructions that I have are not real clear on the steps needed to finish the task at hand and that's add some tables to the users BE any help would e great. Cheers JEDEL From rsmethurst at UK.EY.COM Fri Feb 27 09:37:19 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Fri, 27 Feb 2004 15:37:19 +0000 Subject: [AccessD] 'Autosize' datasheet columns Message-ID: Sorry, wrong heading! rsmethurst at uk.ey.com Sent by: accessd-bounces at databaseadvisors.com 27/02/2004 15:16 Please respond to Access Developers discussion and problem solving To: Access Developers discussion and problem solving cc: Subject: Re: [AccessD] Paradox and Windows stupidity Hi All, Does anyone know how I can "autosize " columns in a datasheet form Similar to : Columns("A:B").EntireColumn.AutoFit in Excel. Is this possible? Thanks Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From Bryan_Carbonnell at cbc.ca Fri Feb 27 09:50:31 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 10:50:31 -0500 Subject: [AccessD] BE UPGRADER Message-ID: To answer your question, all you need to distrubute to the end user is your FE. No need to send the BE, that is the whole purpose of the BEU. It sounds like you missed the very first step of the whole process, and that is to install the BEU components into your FE. Re-read page 2 and 3 of the instructions. It tells you how to install the BEU into your FE. Once it's in your FE, then you can start using it to create the changes in the BE. Then once you have made all the changes you distribute the FE, with the BEU code in it, to your user. The first time they run the new FE, the BEU code will run and update the BE. If this doesn't make sense, ask and I'll try and be clearer. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> deanellis at iprimus.com.au 27-Feb-04 10:24:43 AM >>> Hi all, I'm at the stage where I need to send out and updated version of my BE DB. Darren put me onto the BE Updater and I've been working through how to use it and have found myself lost with the instructions. I created a backup of the BE and began using this for development. I created some new tables and added them to the BE Upgrader. What I don't understand is how do these new tables get to the users BE DB? Where do I have to put the tables? Do I send the BE along with teh FE to the user and if so how can it be looking for a second BE with the same name in a diferent file path? I'm afraid the instructions that I have are not real clear on the steps needed to finish the task at hand and that's add some tables to the users BE any help would e great. From reuben at gfconsultants.com Fri Feb 27 09:49:47 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 27 Feb 2004 10:49:47 -0500 Subject: [AccessD] BE UPGRADER In-Reply-To: <403F613B.000003.43591@jedel> Message-ID: Dean, the BEU is designed for you to define the parts of the table in steps. You first define the table, then define each field, define any indexes, and finally define any relationships. This may take several steps. I know I have added tables with as many as 20 lines in the BEU. This is all done in the FE and all you send to the user is the new FE. When you issue a new FE to the user, the BEU will create this table upon the next start up. There is no need to create the tables before hand. These days I never create a table manually. Even if I am just testing some ideas I use the BEU to make any needed changes to the BE. I haven't manually changed a BE since we finished the BEU. If you have specific questions please ask them. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dean Ellis > Sent: Friday, February 27, 2004 10:25 AM > To: AccessD > Subject: [AccessD] BE UPGRADER > > > Hi all, I'm at the stage where I need to send out and updated > version of my BE DB. > Darren put me onto the BE Updater and I've been working through how to use > it and have found myself lost with the instructions. I created a backup of > the BE and began using this for development. I created some new tables and > added them to the BE Upgrader. What I don't understand is how do these new > tables get to the users BE DB? Where do I have to put the tables? > Do I send > the BE along with teh FE to the user and if so how can it be looking for a > second BE with the same name in a diferent file path? I'm afraid > the instructions that I have are not real clear on the steps > needed to finish the task at hand and that's add some tables to > the users BE > any help would e great. Cheers JEDEL > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From weeden1949 at hotmail.com Fri Feb 27 10:08:34 2004 From: weeden1949 at hotmail.com (Greg Smith) Date: Fri, 27 Feb 2004 10:08:34 -0600 Subject: [AccessD] Confused-On a Friday... References: Message-ID: This is more of an administrative question...and probably a stupid one...but it's Friday... I'm changing my [accessD] and [dba-tech] delivery from weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is bouncing too many. I already did this on the website. Do I still have to submit any questions thru my weeden1949 or from starband? Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, should I unsubscribe as weeden1949, then resubscribe as GregSmith at starband.net and rejoin the lists? Of course, if this goes through, it'll answer PART of the questions automatically... Thanks! Greg Smith GregSmith at Starband.Net or aka weeden1949 at hotmail.com From garykjos at hotmail.com Fri Feb 27 10:45:11 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 27 Feb 2004 10:45:11 -0600 Subject: [AccessD] Confused-On a Friday... Message-ID: If you don't mind the duplicate mail volume, you can stay subscribed under both addresses and then reply or post from either. Or you could set one as "digest" mode and receive only one post per day of all the posts made that day and still be allowed to post from either address. The e-mail address you are subscribed under is what defines your subscription, not the name you provide. So each e-mail address is a seperate subscription. Gary Kjos garykjos at hotmail.com >From: "Greg Smith" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Confused-On a Friday... >Date: Fri, 27 Feb 2004 10:08:34 -0600 > >This is more of an administrative question...and probably a stupid >one...but >it's Friday... > >I'm changing my [accessD] and [dba-tech] delivery from >weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is >bouncing >too many. I already did this on the website. > >Do I still have to submit any questions thru my weeden1949 or from >starband? >Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, >should I unsubscribe as weeden1949, then resubscribe as >GregSmith at starband.net and rejoin the lists? > >Of course, if this goes through, it'll answer PART of the questions >automatically... > >Thanks! > >Greg Smith >GregSmith at Starband.Net or aka weeden1949 at hotmail.com _________________________________________________________________ Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From GregSmith at starband.net Fri Feb 27 11:05:47 2004 From: GregSmith at starband.net (GregSmith at starband.net) Date: Fri, 27 Feb 2004 12:05:47 -0500 (EST) Subject: [AccessD] Test - Do Not Archive In-Reply-To: References: Message-ID: <1730.216.43.21.235.1077901547.squirrel@cetus.email.starband.net> Testing. Greg From Bryan_Carbonnell at cbc.ca Fri Feb 27 11:08:40 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 12:08:40 -0500 Subject: [AccessD] Confused-On a Friday... Message-ID: It depends. If you subscribed under the new address, then you will need to unsub your hotmail account. If you *CHANGED* your address, and confirmed the change, on the web site, then you don't need to do anything else to your hotmail account but you will need to post from your starband account. Bryan Carbonnell bryan_carbonnell at cbc.ca Your neighbourhood listmaster from work >>> weeden1949 at hotmail.com 27-Feb-04 11:08:34 AM >>> This is more of an administrative question...and probably a stupid one...but it's Friday... I'm changing my [accessD] and [dba-tech] delivery from weeden1949 at hotmail.com to GregSmith at Starband.Net because hotmail is bouncing too many. I already did this on the website. Do I still have to submit any questions thru my weeden1949 or from starband? Am I still a member as weeden1949 at hotmail.com? Or, to really CLEAR it up, should I unsubscribe as weeden1949, then resubscribe as GregSmith at starband.net and rejoin the lists? Of course, if this goes through, it'll answer PART of the questions automatically... Thanks! Greg Smith GregSmith at Starband.Net or aka weeden1949 at hotmail.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Feb 27 11:11:07 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 27 Feb 2004 12:11:07 -0500 Subject: [AccessD] Test - Do Not Archive Message-ID: It archives automatically. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> GregSmith at starband.net 27-Feb-04 12:05:47 PM >>> Testing. Greg -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Feb 27 12:15:41 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 27 Feb 2004 11:15:41 -0700 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report? Message-ID: <108220-220042527181541791@christopherhawkins.com> Here's some behavior that took me completely by surprise. Perhaps you can tell me why it's not working. Be warned, this one's longer than your average mail. THE SITUATION: I am building Yet Another Effing Billing System for a client of mine, an outsourced IT shop that send technicians out to take care of customers' networks. The client wants his guys to be entering their service visits the instant they're done, but in practice they're getting entered a few days leter, when the guys get around to it. So, I've been asked to build a Gap Report - a report that will indicate the number of days between the occurrance of a service and the date it was actually keyed into the database. THE REPORT: I built a query that includes (among other fields) ServiceDate (the date the service was actually performed) and CreateDate (the date the service was keyed into the database) from a table. I've created a field called Gap that uses DateDiff to get the number of days between ServiceDate and Create date. So: "SELECT Technician, CreateDate, ServiceDate, DateDiff("d",CreateDate, ServiceDate) AS Gap, ServiceDescription, CustomerID FROM Service" Now...in the report. I have created a report whose RecordSource is set to my Gap query. I created a header and footer for the Technician, inside which is a header and footer for the ServiceDate. Inside that is the Detail section, which includes the CreateDate, Technician's Name, Customer, Service Description, and most importantly, the Gap field. Here's where it gets interesting. I wanted to calculate an average Gap for each Technician. So I put a field named ItemCount in the footer section of the Technician group with it's ControlSource set to "Count(CustomerID)" and it works perfectly - it gives me the number of rows in the Technician's Details. To get an average, I need to add up all the individual Gap figures, so I put a field named TotalGap in the footer section of the Technician group, with it's ControlSource set to "Sum(Gap)". That works fine too. THE PROBLEM: Now, it's time to divide to get an average. I put a field named AverageGap in the Technician's footer, with the ControlSource "[BlockGapSum]/[ItemCount]". When I run the report, this field displays #Name!. Usually, I only see #Name! if there is no data for a given field. But I have all the elements tha the AverageGap field needs - the calculation in AverageGap simply isn't working, and I'm not sure why. Ideas? -Christopher- From gustav at cactus.dk Fri Feb 27 12:33:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 27 Feb 2004 19:33:34 +0100 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report? In-Reply-To: <108220-220042527181541791@christopherhawkins.com> References: <108220-220042527181541791@christopherhawkins.com> Message-ID: <3438279993.20040227193334@cactus.dk> Hi Christopher Looks like AverageGap is a calculated textbox. Try: =[BlockGapSum]/[ItemCount] But where did [BlockGapSum] come from? Shouldn't it be [TotalGap]? /gustav > THE PROBLEM: > Now, it's time to divide to get an average. I put a field named > AverageGap in the Technician's footer, with the ControlSource > "[BlockGapSum]/[ItemCount]". When I run the report, this field > displays #Name!. > Usually, I only see #Name! if there is no data for a given field. > But I have all the elements tha the AverageGap field needs - the > calculation in AverageGap simply isn't working, and I'm not sure why. > Ideas? > -Christopher- From Lambert.Heenan at AIG.com Fri Feb 27 12:36:47 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 27 Feb 2004 13:36:47 -0500 Subject: [AccessD] SUM-ing results of a DateDiff Operation in a report ? Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7EE5@xlivmbx12.aig.com> Your average calculation is "[BlockGapSum]/[ItemCount]", but you just told us that the control that holds the total gap is called "TotalGap", so change the average calculation to [TotalGap]/ItemCount]. That *should* do it! :-) Lambert > -----Original Message----- > From: Christopher Hawkins [SMTP:clh at christopherhawkins.com] > Sent: Friday, February 27, 2004 1:16 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] SUM-ing results of a DateDiff Operation in a > report? > > THE REPORT: > > I've created a field called Gap that uses DateDiff to get the number of > days between > ServiceDate and Create date. So: > > "SELECT Technician, CreateDate, ServiceDate, DateDiff("d",CreateDate, > ServiceDate) AS Gap, ServiceDescription, CustomerID FROM Service" > I wanted to calculate an average Gap for each Technician. So I put a > field named ItemCount in the footer section of the Technician group > with it's ControlSource set to "Count(CustomerID)" and it works > perfectly - it gives me the number of rows in the Technician's > Details. > > To get an average, I need to add up all the individual Gap figures, > so I put a field named TotalGap in the footer section of the > Technician group, with it's ControlSource set to "Sum(Gap)". That > works fine too. > > THE PROBLEM: > > Now, it's time to divide to get an average. I put a field named > AverageGap in the Technician's footer, with the ControlSource > "[BlockGapSum]/[ItemCount]". When I run the report, this field > displays #Name!. > > Usually, I only see #Name! if there is no data for a given field. > But I have all the elements tha the AverageGap field needs - the > calculation in AverageGap simply isn't working, and I'm not sure why. > > Ideas? > > -Christopher- > From Jdemarco at hudsonhealthplan.org Fri Feb 27 14:22:36 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 27 Feb 2004 15:22:36 -0500 Subject: [AccessD] A2K ODE setup wizard?? Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FDC9@TTNEXCHSRV1.hshhp.com> There's a setup wizard in A97 ODE but I don't see one in A2K. Is there one? Will the A97 version work to set up a run-time A2K install? TIA Jim DeMarco Director Product Development Hudson Health Plan From john at winhaven.net Fri Feb 27 15:15:51 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 15:15:51 -0600 Subject: [AccessD] burned by word Message-ID: Gustav: Is this bad news? http://catless.ncl.ac.uk/Risks/23.12.html#subj4 John From DElam at jenkens.com Fri Feb 27 15:25:52 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 27 Feb 2004 15:25:52 -0600 Subject: [AccessD] burned by word Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BB60@natexch.jenkens.com> We have a security program in place that asks if you want to clean the word document before sending it. That way if you created it from a previous document, that previous information would be removed. We did this after we heard about a case where a real estate company was burned by this same feature. They sent a lease agreement to a potential tenant to look over and sign. It had been created from a previous agreement with a lower rent. The potential tenant discovered the lower rent given to another tenant and demanded the lower price based on the document. Debbie -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, February 27, 2004 3:16 PM To: _DBA-Access Subject: [AccessD] burned by word Gustav: Is this bad news? http://catless.ncl.ac.uk/Risks/23.12.html#subj4 John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jwcolby at colbyconsulting.com Fri Feb 27 15:39:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 16:39:26 -0500 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: <000401c3fd42$2e31f280$0b08a8c0@carltonone.local> Message-ID: The problem is that I don't own Paradox so I can't do that. I can't just say "none" so that doesn't work. Once you "associate" something with a file type you are screwed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Friday, February 27, 2004 9:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Paradox and Windows stupidity John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 27 15:42:55 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 27 Feb 2004 13:42:55 -0800 Subject: [AccessD] A2K ODE setup wizard?? Message-ID: I has a different name in A2k. It's the Packaging Wizard, I believe. And no, each setup version will only work with its own format. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, February 27, 2004 12:23 PM To: AccessD (E-mail) Subject: [AccessD] A2K ODE setup wizard?? There's a setup wizard in A97 ODE but I don't see one in A2K. Is there one? Will the A97 version work to set up a run-time A2K install? TIA Jim DeMarco Director Product Development Hudson Health Plan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 27 15:44:49 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 15:44:49 -0600 Subject: [AccessD] burned by word In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0106BB60@natexch.jenkens.com> Message-ID: I've been converting files into Acrobat 6 for a client lately and noticed that there is a switch to exclude this type of data. It is off by default. I haven't tried it with it set to allow so I'm not sure how much gets through to the acrobat file. John From serbach at new.rr.com Fri Feb 27 15:55:11 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 15:55:11 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <20040227155511.838642399.serbach@new.rr.com> John, I've come late to this discussion. I'll pass your question on to the Paradox forum I subscribe to. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From wdhindman at bellsouth.net Fri Feb 27 15:53:01 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 27 Feb 2004 16:53:01 -0500 Subject: [AccessD] burned by word References: Message-ID: <016001c3fd7c$1209a5a0$6101a8c0@dejpolsys> ...Woody's had a number of articles on this problem recently ...it can be readily controlled by the proper option selections but of course MS never warned anyone about it until Woody forced the issue ...the fixes are all posted on Woody's :( William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "John Bartow" To: "Access Developers discussion and problem solving" Sent: Friday, February 27, 2004 4:44 PM Subject: RE: [AccessD] burned by word > I've been converting files into Acrobat 6 for a client lately and noticed > that there is a switch to exclude this type of data. It is off by default. I > haven't tried it with it set to allow so I'm not sure how much gets through > to the acrobat file. > > John > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Feb 27 16:03:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 17:03:24 -0500 Subject: [AccessD] Watching data Message-ID: I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? John W. Colby www.ColbyConsulting.com From john at winhaven.net Fri Feb 27 16:04:20 2004 From: john at winhaven.net (John Bartow) Date: Fri, 27 Feb 2004 16:04:20 -0600 Subject: [AccessD] Paradox and Windows stupidity In-Reply-To: Message-ID: John, You should be able to completely delete the association. Open Regedit open the HKEY_CLASSES_ROOT tree find .db right click on it and choose delete voila If you want to test it out try it on .txt first. then try to open a text file. Windows will say it can't automatically open it and ask which program you want to try it with. HTH, John R. Bartow WinHaven LLC PO Box 130 Winneconne, WI 54986 920-582-7574 john at winhaven.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity The problem is that I don't own Paradox so I can't do that. I can't just say "none" so that doesn't work. Once you "associate" something with a file type you are screwed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ACTEBS Sent: Friday, February 27, 2004 9:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Paradox and Windows stupidity John, If you're using Windows XP or Win2K right click on the DB file and select properties. On the properties dialogue box you will see a Change button that indicates Open With... Click that and change it what ever you wish to open the file with in the future... HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 27 February 2004 11:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Paradox and Windows stupidity LOL. If I HAD paradox I might do that. The job is to get the data out of the Paradox DB files into Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Terri Jarus Sent: Friday, February 27, 2004 7:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Paradox and Windows stupidity Not sure exactly the problem - but couldn't you either start up Paradox and open the file via the program which should make the file type change OR change the extension and do an Open with ... Paradox or whatever to get Access off of it? Hope this makes sense - don't know if it will help. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> jwcolby at colbyconsulting.com 02/26/04 04:07PM >>> Folks, I made the mistake of telling a Paradox .Db file to "open with" Access. Windows has now decided to place the Access symbol on that and try and open it with Access all the time. .Db is NOT an extension listed in the "file types" dialog box so I can't "undo" what I did. And I can't link to these things (any more) because Access says "wrong file type". Where do I go to tell Windows that a .Db file is not anything to do with Access? And please don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is not listed 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 ------------------------------------------------------------------------ --- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2004 Amerinet 1nc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Feb 27 16:11:52 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 16:11:52 -0600 Subject: [AccessD] Paradox and Windows stupidity Message-ID: <20040227161152.291992971.serbach@new.rr.com> John, I haven't posted your question to the Paradox forum yet, but a possibility occured to me: can you install Access' support for Paradox imports? I forget what it's called, but, at least in Access 2000 and 97, I don't believe support for Paradox files is installed by default; it's a separate install option on the Office CDs. Might that help? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Don't light a match 'til ya know which end of the dog is barkin'." - Dave Barry From martyconnelly at shaw.ca Fri Feb 27 17:07:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Feb 2004 15:07:23 -0800 Subject: [AccessD] Paradox and Windows stupidity References: Message-ID: <403FCDAB.1090000@shaw.ca> Another way to change this, is go to RUN then CMD and then type in "assoc.db=" without quotes That sets the db file association to blank Then when you click on filename it will ask for a program to open the file with For a complete list of standard file associations with WinXP http://www.dougknox.com/xp/tips/xp_fileassoc.txt For bigger fixes on things like IE or MSI or ZIP via REG file see: http://www.dougknox.com/xp/file_assoc.htm To reset all WinXP file associations back to standard http://www.dougknox.com/xp/fileassoc/xp_fileassoc.zip Oh by the way unless you are using Jet 7.0 you will have trouble writing to paradox files and perhaps reading (can't remember have to read the update file manifests on MS site, It might have been fixed in Jet 6.0) This was due to Borland - MS court cases or just general ill will. They finally kissed and made up. John W. Colby wrote: >Folks, > >I made the mistake of telling a Paradox .Db file to "open with" Access. >Windows has now decided to place the Access symbol on that and try and open >it with Access all the time. .Db is NOT an extension listed in the "file >types" dialog box so I can't "undo" what I did. And I can't link to these >things (any more) because Access says "wrong file type". Where do I go to >tell Windows that a .Db file is not anything to do with Access? And please >don't say Explorer/Tools/FolderOptions/File Types because, as I said, DB is >not listed there. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Fri Feb 27 17:27:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 27 Feb 2004 18:27:04 -0500 Subject: [AccessD] Importing (or linking to) Paradox files Message-ID: My client sent me an email 3 weeks ago with three Paradox .db files attached. I was able to successfully link to 2 of those 3 files, but the third says "file not the expected format". The client just sent me 60 of these files which I need to import into Access. ALL of them now say "not the expected format", including the same file names of the two that previously imported. My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? The client says that he installed a SP for Paradox 11 in the last 3 weeks. Could that have screwed around with the files and made them into a format that Access no longer understands? To make things even Murkier, he claims that he can open them just fine there. Hmmmm. John W. Colby www.ColbyConsulting.com From clh at christopherhawkins.com Fri Feb 27 17:26:58 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 27 Feb 2004 16:26:58 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <95540-220042527232658264@christopherhawkins.com> I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- From davesharpe2 at cox.net Fri Feb 27 17:50:49 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 18:50:49 -0500 Subject: [AccessD] Getting the start and end dates of the current week References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <001001c3fd8c$87506eb0$dd2f0a44@bcsext6137> Christopher Look at using the WeekDay function. It returns 1 =Sunday 2 =Monday 3 =Tuesday 4 =Wednesday 5 =Thursday 6 =Friday 7 =Saturday Dave ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Friday, February 27, 2004 6:26 PM Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 18:04:40 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 19:04:40 -0500 Subject: [AccessD] Getting the start and end dates of the current week References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <001b01c3fd8e$76478d90$dd2f0a44@bcsext6137> Christopher- Possibly working with the following You may be able to get where You need to go. Dave Function DayOne() Dim DayNow As Integer Dim Day1 As Variant Dim Day7 As Variant DayNow = Weekday(Now()) Select Case DayNow Case Is = 1 Day1 = Now() Day7 = Now() + 6 Case Is = 2 Day1 = Now() - 1 Day7 = Now() + 5 Case Is = 3 Day1 = Now() - 2 Day7 = Now() + 4 Case Is = 4 Day1 = Now() - 3 Day7 = Now() + 3 Case Is = 5 Day1 = Now() - 4 Day7 = Now() + 2 Case Is = 6 Day1 = Now() - 5 Day7 = Now() + 1 Case Is = 7 Day1 = Now() - 6 Day7 = Now() End Select End Function ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Friday, February 27, 2004 6:26 PM Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 18:52:32 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Fri, 27 Feb 2004 19:52:32 -0500 Subject: [AccessD] Importing (or linking to) Paradox files References: Message-ID: <002301c3fd95$25f20bc0$dd2f0a44@bcsext6137> John I know nothing about Paradox but, I found the following VB6 code that might help. http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=47621&lngWId=1 Using ADO & ADOX, convert between various database formats like Text, Access, Excel, dBASE, Paradox & HTML. This is a NEW VERSION of Any-to-Any Database converter. Can You compile ? If not, and You're interested in trying; I can compile and send to you. Dave ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Friday, February 27, 2004 6:27 PM Subject: [AccessD] Importing (or linking to) Paradox files My client sent me an email 3 weeks ago with three Paradox .db files attached. I was able to successfully link to 2 of those 3 files, but the third says "file not the expected format". The client just sent me 60 of these files which I need to import into Access. ALL of them now say "not the expected format", including the same file names of the two that previously imported. My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? The client says that he installed a SP for Paradox 11 in the last 3 weeks. Could that have screwed around with the files and made them into a format that Access no longer understands? To make things even Murkier, he claims that he can open them just fine there. Hmmmm. 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 Fri Feb 27 19:01:50 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 27 Feb 2004 18:01:50 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: I wrote a few standard functions that give me fiscal year (Oct 31 year end, good old two digit format) and start and end dates of the current/next week that could serve as a starting point. These should be regionalized for different weekday start of week dates but works for Canada/US. Function fnFiscalYr() If DatePart("m", Date) > 10 Then fnFiscalYr = Format$(Format$(Date, "yy") + 1, "00") Else fnFiscalYr = Right$(Format$(Date, "yy"), 2) End If End Function Function fnLastOfThisWeek() As Date fnLastOfThisWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 7 - WeekDay(Date)) End Function Function fnLastOfNextWeek() As Date 'change to + 7 for current week fnLastOfNextWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 14 - WeekDay(Date)) End Function Function fnFirstOfNextWeek() As Date fnFirstOfNextWeek = DateSerial(Year(Date), Month(Date), Day(Date) + 8 - WeekDay(Date)) End Function Function fnLastOfMonth() As Date fnLastOfMonth = CDate(Format$(DateAdd("m", 1, Date), "m/1/yy")) - 1 End Function Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Christopher Hawkins" > >I need a function that will determine the start and end dates of the >current week. I'm hacking around with some code, but I'm not >producing enything useful. Surely I'm not the first to have this >problem? > >-Christopher- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From donald.a.Mcgillivray at mail.sprint.com Fri Feb 27 19:03:16 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 27 Feb 2004 19:03:16 -0600 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07298DBA@PKDWB01C.ad.sprint.com> Christopher, This ought to do it: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 27, 2004 3:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Fri Feb 27 19:13:23 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 27 Feb 2004 19:13:23 -0600 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07298DBE@PKDWB01C.ad.sprint.com> Well, my carriage returns didn't stay put. You probably got the drift, but trying again anyway: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Donald [ITS] Sent: Friday, February 27, 2004 5:03 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Getting the start and end dates of the current week Christopher, This ought to do it: Function EndsOfWeek(datInputDate As Date, strWhichEnd As String) As Date Dim datFirstOfWeek As Date, datLastOfWeek As Date datFirstOfWeek = datInputDate - (Weekday(datInputDate) - 1) datLastOfWeek = datInputDate + (7 - Weekday(datInputDate)) Select Case strWhichEnd Case "First" EndsOfWeek = datFirstOfWeek Case "Last" EndsOfWeek = datLastOfWeek End Select End Function Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, February 27, 2004 3:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Getting the start and end dates of the current week I need a function that will determine the start and end dates of the current week. I'm hacking around with some code, but I'm not producing enything useful. Surely I'm not the first to have this problem? -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Feb 27 21:09:06 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 27 Feb 2004 21:09:06 -0600 Subject: [AccessD] Importing (or linking to) Paradox files Message-ID: <20040227210906.257890905.serbach@new.rr.com> John, >> My question is are there versions of paradox files that Access can understand these but not those? ?Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed From stephen at bondsoftware.co.nz Fri Feb 27 22:13:39 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sat, 28 Feb 2004 17:13:39 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F29088670@server.bondsoftware.co.nz> I am sending one e-mail to each person on file. Each e-mail has that person's individual details. Here is the code snippet ... ======= If Not rs.BOF And Not rs.EOF Then rs.MoveFirst Do Until rs.EOF GoSub BuildBodyOfEmail ' build field 'eMailBody' MsgBox "email for " & rs!pId & " " & rs!pSurname DoCmd.SendObject acSendNoObject, , , _ "mytest at mydomain.co.nz", _ , , "Subject Test", _ eMailBody, True rs.MoveNext DoEvents Loop End If ======== The problem is the first record in the recordset pops up as a new mail message OK, but subsequent records don't. The debugging MsgBox comes up for each record so I know the loop is getting the right records. Changing the SendObject's 'editmessage' flag from True to False doesn't make any difference. Eventually I want to change the SendObject's 'editmessage' flag from True to False so the e-mails go straight out without visual verification. The False is for testing purposes meantime. Weird. Any thoughts ..... Stephen Bond From jwcolby at colbyconsulting.com Fri Feb 27 23:00:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 00:00:17 -0500 Subject: [AccessD] Importing (or linking to) Paradox files In-Reply-To: <20040227210906.257890905.serbach@new.rr.com> Message-ID: That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? ?Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davesharpe2 at cox.net Fri Feb 27 23:15:07 2004 From: davesharpe2 at cox.net (Dave Sharpe) Date: Sat, 28 Feb 2004 00:15:07 -0500 Subject: [AccessD] Importing (or linking to) Paradox files References: Message-ID: <007101c3fdb9$d5197ba0$dd2f0a44@bcsext6137> John Would it help if You had Paradox ? http://www.pricewatch.com/ shows a couple of vendors selling WordPerfect Office Pro verion 11 ( that seens to be the most recent ) for only $18.00 ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, February 28, 2004 12:00 AM Subject: RE: [AccessD] Importing (or linking to) Paradox files That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 03:21:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 10:21:40 +0100 Subject: [AccessD] burned by word In-Reply-To: References: Message-ID: <52429122.20040228102140@cactus.dk> Hi John Yes and no. The bad thing, of course, is that it could happen - that is, however, due to the general unawareness of the Word problem. As the article concludes, the good thing is that the happening puts focus on this exact problem. Once again it shows that people often have to be burned to learn ... We have for years warned our clients against distributing anything to anybody in Word format. It is by its nature an unsound and unsafe proprietary format. At least, send the document as rtf - that removes the macro risk and many incompatibility issues but not the privacy issue - preferably as pdf or plain text - some people send simple meeting confirmations, agendas etc. as Word documents even though they contain no more that ten lines of plain text. /gustav > Gustav: > Is this bad news? > http://catless.ncl.ac.uk/Risks/23.12.html#subj4 > John From gustav at cactus.dk Sat Feb 28 03:35:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 10:35:22 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <1253250433.20040228103522@cactus.dk> Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables for > changes. For example, if the Policy holder address changes, the claimant > address changes, the Payment location (address) changes etc. If ANY of > these change then I need to gather the information and at the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). From gustav at cactus.dk Sat Feb 28 04:05:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 11:05:40 +0100 Subject: [AccessD] Getting the start and end dates of the current week In-Reply-To: <95540-220042527232658264@christopherhawkins.com> References: <95540-220042527232658264@christopherhawkins.com> Message-ID: <15068818.20040228110540@cactus.dk> Hi Christopher > I need a function that will determine the start and end dates of the > current week. I'm hacking around with some code, but I'm not > producing enything useful. Surely I'm not the first to have this > problem? We are using these two functions for this purpose as the usual "hacks" won't do in an internationalized environment where the ISO standards rule - among other things, Monday is the first day of the week here. If you live in a pure US environment you may wish to strip each of them down the one final line of essential code using DateAdd() and Weekday(): Function DateWeekFirst( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the first date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function Function DateWeekLast( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the last date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekLast = DateAdd("d", vbSaturday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function Have fun! /gustav From becklesd at tiscali.co.uk Sat Feb 28 05:41:05 2004 From: becklesd at tiscali.co.uk (David Beckles) Date: Sat, 28 Feb 2004 11:41:05 +0000 Subject: [AccessD] Watching data In-Reply-To: <200402281009.i1SA9cM24948@databaseadvisors.com> Message-ID: <5.2.0.9.2.20040228113115.02127b08@127.0.0.1> An alternative approach, and the one that I use, is to audit all changes, along the lines given by Allen Browne in http://members.iinet.net.au/~allenbrowne/AppAudit.html. It is then a simple matter to produce reports on the changes to fields in the tables. Of course this assumes that all changes are made through the forms, or else that all code that updates the tables writes an audit trail. I use a class associated with the table to handle these. I think that this is a simpler approach than the one you have suggested (but that's just my opinion, probably because it is the one that I use.) I could give more details if you wanted. I hope that this helps, David >Date: Fri, 27 Feb 2004 17:03:24 -0500 >From: "John W. Colby" >Subject: [AccessD] Watching data >To: "AccessD" >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I need a system for watching specific data fields in specific tables for >changes. For example, if the Policy holder address changes, the claimant >address changes, the Payment location (address) changes etc. If ANY of >these change then I need to gather the information and at the end of the day >email a report to the client (the insurance company) spelling out the >changes, what object the fields belonged to (Claimant, Policy Holder etc.). > >Make sense? > >Of course I could launch into building code in every form I can find where >these objects are used and this info can be saved. However this seems like >a "framework" kind of task. I envision a class (let's call it >dclsMonitorCtlChg for now) in the framework that the form class loads if a >form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as >variant) ) is called with controls specified. > >The form class already has a collection of the classes for each control's >class. The form class MonitorCtlDataChg() could grab a pointer to each of >the controls that this method says needs to be monitored and pass them to >the dclsMonitorCtlChg which would place them in a collection. Then a form >event or events (Before update, After update) could call a method of >dclsMonitorCtlChg telling it to "look for changes in your control set". The >class could raise an event or simply return a value to the form caller if >any change was detected. > >Of course it would then be useful to know what controls (fields) were >changed, the old value and the new value. This would allow the application >to generate a report: > >Object Monitored (Claimant) >Field: Addr1: OldValue: NewValue > Zip: OldValue: NewValue > >IOW the claimant moved to a new location, but in the same city, just changed >the address1 and the zip. > >So.... is anyone doing anything like this? If so any words of advice, >things to look out for etc? > >John W. Colby >www.ColbyConsulting.com From becklesd at tiscali.co.uk Sat Feb 28 05:48:13 2004 From: becklesd at tiscali.co.uk (David Beckles) Date: Sat, 28 Feb 2004 11:48:13 +0000 Subject: [AccessD] Re: AccessD Digest, Vol 12, Issue 63 In-Reply-To: <200402281009.i1SA9cM24948@databaseadvisors.com> Message-ID: <5.2.0.9.2.20040228114547.00ba2c10@127.0.0.1> Christopher, You could try the following: StartOfCurrentWeek = dateadd("d", 1 - Weekday(Now()), Now()) EndOfCurrentWeek=dateadd("d", Weekday(Now())-7, Now()) I hope that this helps, David At 04:09 28/02/2004 -0600, accessd-request at databaseadvisors.com wrote: >Date: Fri, 27 Feb 2004 16:26:58 -0700 >From: "Christopher Hawkins" >Subject: [AccessD] Getting the start and end dates of the current week >To: accessd at databaseadvisors.com >Message-ID: <95540-220042527232658264 at christopherhawkins.com> >Content-Type: text/plain; charset=iso-8859-1 > >I need a function that will determine the start and end dates of the >current week. I'm hacking around with some code, but I'm not >producing enything useful. Surely I'm not the first to have this >problem? > >-Christopher- From jwcolby at colbyconsulting.com Sat Feb 28 06:00:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 07:00:54 -0500 Subject: [AccessD] Importing (or linking to) Paradox files In-Reply-To: <007101c3fdb9$d5197ba0$dd2f0a44@bcsext6137> Message-ID: Wow. I hadn't thought about going at it from that direction. I went looking for the BDE but the cheapest programming package is about $100. It seems that having the BDE installed on a machine may be useful to Jet's ability to do this stuff, i.e. maybe Jet uses the BDE. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dave Sharpe Sent: Saturday, February 28, 2004 12:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John Would it help if You had Paradox ? http://www.pricewatch.com/ shows a couple of vendors selling WordPerfect Office Pro verion 11 ( that seens to be the most recent ) for only $18.00 ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, February 28, 2004 12:00 AM Subject: RE: [AccessD] Importing (or linking to) Paradox files That may very well be it. I asked specifically only for the .db files because he sent me a hundred files for just 3 tables. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Friday, February 27, 2004 10:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Importing (or linking to) Paradox files John, >> My question is are there versions of paradox files that Access can understand these but not those? Are there various drivers that need to be downloaded or something? << Since Borland stopped development of the Borland Database Engine (BDE) some time ago I doubt that there would be new table drivers. The last version was 5.1, I believe, in 1999! Paradox table formats have changed over the years, but I don't think there were any changes after version 7. Are there supposed to be any Memo fields in the Paradox tables? Paradox is a file-based database and Memo fields are stored in an .MB file separate from the .DB file. However, if your customer only sent you the .DB files that may be the problem. Paradox spawns off a whole mess of associated files for each table depending on how many indexes you create: .DB, .MB, .PX (primary key), and "secondary" indexes take up pairs of files: .XG0 and .YG0 and a whole slew of .XGx and .YGx files, one pair for each index. Maybe your client didn't send you all the files that go with each table's "family". If you'd like I could take a stab at a couple of your problem .DB files. I have Paradox 9, 8, and 7 as well as Access 97, 2000, and XP. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Without men, civilization would last until the oil needed changing." - Fred Reed -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 28 06:04:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 07:04:03 -0500 Subject: [AccessD] Watching data In-Reply-To: <1253250433.20040228103522@cactus.dk> Message-ID: Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 4:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables for > changes. For example, if the Policy holder address changes, the claimant > address changes, the Payment location (address) changes etc. If ANY of > these change then I need to gather the information and at the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 06:13:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 13:13:38 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <17812746828.20040228131338@cactus.dk> Hi John I see. Then you could add a field with the original CRC value of the address. If the address is changed, a CRC check will fail. /gustav > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me that > the claimant table had changed, not that the address portion of the table > had changed. Maybe she got married and changed her name? The Date of Birth > was corrected? The name was mis-spelled and the mis-spelling was corrected? > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 4:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > Wouldn't it be much easier to add timestamps and track these? If the > timestamp of an address is newer than that recorded for the case, > "something else" has changed the address. > /gustav >> I need a system for watching specific data fields in specific tables for >> changes. For example, if the Policy holder address changes, the claimant >> address changes, the Payment location (address) changes etc. If ANY of >> these change then I need to gather the information and at the end of the day >> email a report to the client (the insurance company) spelling out the >> changes, what object the fields belonged to (Claimant, Policy Holder etc.). From jwcolby at colbyconsulting.com Sat Feb 28 07:18:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 08:18:29 -0500 Subject: [AccessD] Watching data In-Reply-To: <5.2.0.9.2.20040228113115.02127b08@127.0.0.1> Message-ID: David, Thanks, the article does discuss the pitfalls and the concepts of auditing changes, the fact that is just part of the table is irrelevant. I am a framework kinda guy so I always think at the "make it a part of the framework" so that it is available to the next form / project. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Beckles Sent: Saturday, February 28, 2004 6:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Watching data An alternative approach, and the one that I use, is to audit all changes, along the lines given by Allen Browne in http://members.iinet.net.au/~allenbrowne/AppAudit.html. It is then a simple matter to produce reports on the changes to fields in the tables. Of course this assumes that all changes are made through the forms, or else that all code that updates the tables writes an audit trail. I use a class associated with the table to handle these. I think that this is a simpler approach than the one you have suggested (but that's just my opinion, probably because it is the one that I use.) I could give more details if you wanted. I hope that this helps, David >Date: Fri, 27 Feb 2004 17:03:24 -0500 >From: "John W. Colby" >Subject: [AccessD] Watching data >To: "AccessD" >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I need a system for watching specific data fields in specific tables for >changes. For example, if the Policy holder address changes, the claimant >address changes, the Payment location (address) changes etc. If ANY of >these change then I need to gather the information and at the end of the day >email a report to the client (the insurance company) spelling out the >changes, what object the fields belonged to (Claimant, Policy Holder etc.). > >Make sense? > >Of course I could launch into building code in every form I can find where >these objects are used and this info can be saved. However this seems like >a "framework" kind of task. I envision a class (let's call it >dclsMonitorCtlChg for now) in the framework that the form class loads if a >form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as >variant) ) is called with controls specified. > >The form class already has a collection of the classes for each control's >class. The form class MonitorCtlDataChg() could grab a pointer to each of >the controls that this method says needs to be monitored and pass them to >the dclsMonitorCtlChg which would place them in a collection. Then a form >event or events (Before update, After update) could call a method of >dclsMonitorCtlChg telling it to "look for changes in your control set". The >class could raise an event or simply return a value to the form caller if >any change was detected. > >Of course it would then be useful to know what controls (fields) were >changed, the old value and the new value. This would allow the application >to generate a report: > >Object Monitored (Claimant) >Field: Addr1: OldValue: NewValue > Zip: OldValue: NewValue > >IOW the claimant moved to a new location, but in the same city, just changed >the address1 and the zip. > >So.... is anyone doing anything like this? If so any words of advice, >things to look out for etc? > >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 Feb 28 07:21:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 08:21:38 -0500 Subject: [AccessD] Watching data In-Reply-To: <17812746828.20040228131338@cactus.dk> Message-ID: Hmmm, I like that idea. I'll have to think about how to do that efficiently. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 7:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John I see. Then you could add a field with the original CRC value of the address. If the address is changed, a CRC check will fail. /gustav > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me that > the claimant table had changed, not that the address portion of the table > had changed. Maybe she got married and changed her name? The Date of Birth > was corrected? The name was mis-spelled and the mis-spelling was corrected? > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 4:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > Wouldn't it be much easier to add timestamps and track these? If the > timestamp of an address is newer than that recorded for the case, > "something else" has changed the address. > /gustav >> I need a system for watching specific data fields in specific tables for >> changes. For example, if the Policy holder address changes, the claimant >> address changes, the Payment location (address) changes etc. If ANY of >> these change then I need to gather the information and at the end of the day >> email a report to the client (the insurance company) spelling out the >> changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 28 09:31:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Feb 2004 16:31:14 +0100 Subject: [AccessD] Watching data In-Reply-To: References: Message-ID: <6424602706.20040228163114@cactus.dk> Hi John Well, one issue is speed. Here's a link to a German guy, Jost Schwider, claiming some pretty fast code: http://vb-tec.de/crc.htm What you'll need is the three top functions and this: http://vb-tec.de/bytelong.htm You'll also need some helper functions like these: Public Function Long2Chars( _ ByVal lngCRC As Long) _ As String ' Create four byte string from input value of type Long. Dim byt1 As Byte Dim byt2 As Byte Dim byt3 As Byte Dim byt4 As Byte Call Long2Bytes(lngCRC, byt1, byt2, byt3, byt4) Long2Chars = Chr(byt1) & Chr(byt2) & Chr(byt3) & Chr(byt4) End Function Public Function VerifyStringCRC32( _ ByVal strText As String, _ ByVal lngCRC As Long) _ As Boolean ' Verify if CRC32 value of strText matches CRC32 check value lngCRC. Const clngLenCRC As Long = 4 Dim strCheck As String Dim lngText As Long lngText = Len(strText) strCheck = Space(lngText + clngLenCRC) Mid(strCheck, 1) = strText Mid(strCheck, 1 + lngText) = Long2Chars(lngCRC) VerifyStringCRC32 = CRC32Unicode(strCheck, True) End Function /gustav > Hmmm, I like that idea. I'll have to think about how to do that > efficiently. > John W. Colby > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Saturday, February 28, 2004 7:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Watching data > Hi John > I see. Then you could add a field with the original CRC value of the > address. If the address is changed, a CRC check will fail. > /gustav >> Well... the data isn't normalized to that extent, i.e. I don't have an >> "Address table". A claimant has a single address, and that is embedded >> directly in the Claimant table. Thus a timestamp would only tell me that >> the claimant table had changed, not that the address portion of the table >> had changed. Maybe she got married and changed her name? The Date of Birth >> was corrected? The name was mis-spelled and the mis-spelling was corrected? >> John W. Colby >> www.ColbyConsulting.com >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >> Sent: Saturday, February 28, 2004 4:35 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Watching data >> Hi John >> Wouldn't it be much easier to add timestamps and track these? If the >> timestamp of an address is newer than that recorded for the case, >> "something else" has changed the address. >> /gustav >>> I need a system for watching specific data fields in specific tables for >>> changes. For example, if the Policy holder address changes, the claimant >>> address changes, the Payment location (address) changes etc. If ANY of >>> these change then I need to gather the information and at the end of the day >>> email a report to the client (the insurance company) spelling out the >>> changes, what object the fields belonged to (Claimant, Policy Holder etc.). From artful at rogers.com Sat Feb 28 16:05:12 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 28 Feb 2004 14:05:12 -0800 Subject: [AccessD] Watching data In-Reply-To: Message-ID: <000001c3fe46$f3e71780$6501a8c0@rock> How interesting and convenient that you should raise this issue, as I am facing a similar problem on an inherited app. While I am free to restructure it, I also don't want to destroy everything done by previous developers (not least for political reasons, but also because I want to deliver the solution as inexpensively as possible). So... The table of interest contains several fields which can be changed, and parallel fields recording the date they were last changed. Obviously I can add some code to each of the first set's AfterUpdate event and record the date. But I'm thinking that it would be way cooler to do it all in the form's AfterUpdate event instead. IIRC I don't think that I have ever used this event in all my years of Access programming. >From this event, can you determine which fields have changed? For example, the user changes five fields. Can I somehow obtain a list of the changed fields? Maybe I want the BeforeUpdate event instead? Ideally what I would like to do is let the user change anything, then write the changes to an AuditTrail table or somesuch, having a structure something like this: Table PK FieldName PreviousValue NewValue DateTime Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 4:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, February 28, 2004 4:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hi John Wouldn't it be much easier to add timestamps and track these? If the timestamp of an address is newer than that recorded for the case, "something else" has changed the address. /gustav > I need a system for watching specific data fields in specific tables > for changes. For example, if the Policy holder address changes, the > claimant address changes, the Payment location (address) changes etc. > If ANY of these change then I need to gather the information and at > the end of the day > email a report to the client (the insurance company) spelling out the > changes, what object the fields belonged to (Claimant, Policy Holder etc.). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 28 13:54:58 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 14:54:58 -0500 Subject: [AccessD] Watching data In-Reply-To: <000001c3fe46$f3e71780$6501a8c0@rock> Message-ID: Arthur, It's never easy and this is especially not easy. ;-) A user can start to edit a record and hit escape. A user can start to edit a record and have validation fail to allow the save, or the user can have a nice clean edit / save. Even in the case of a clean save, by the time AfterUpdate occurs the previous value isn't available. Thus you have to save the old value to a temp location in BeforeUpdate and then save the old and new value to the log table in AfterUpdate. Now, what about forms where the form has more than one editable table represented? I have very few of those but I have one in particular where the user wanted data from about 4 different (related) tables all available in one screen and all editable. So what is the PK? In fact, what is the table? What about controls bound to queries with aliased fields where the name was changed by the developer in the underlying query? I HATE "one of a kind, do it with code in this specific form, for this specific form" solutions. I prefer to take the time to figure out how to make it work across a broad spectrum of situations if possible. I asked awhile back if it was possible to "drill down" through a bound control to find the table / field name of the field that a control is bound to and was told it is indeed possible. It seems that to do it right, any changed CONTROLS would have to be "drilled down" to discover their source, then that info (table / field name) as well as old/new values recorded in the log file. It just so happens that I have a form class and a control class for every data aware control so I could have my form class' form events poll the control classes to see which controls have changed, do the "drill down" however that may occur, and record the results. Or, every control class could be taught how to record changes in the Change Log and then the form would poll all the control classes telling them to LogChanges (if any). I think it would be easier to teach the control classes to automatically record changes, then have the form just poll the control classes for old/new values if they have changed, and have the form class do the logging. In either case, if I could figure out the drill down thing and get this working, in essence I could turn on logging with a switch as the form loads. In it's Open even tell the form class to turn on logging for this specific form. If you don't have a framework such as mine how do you do this? For that matter, if you DO have a framework such as mine, how do you do this? ;-) Curious minds want to know. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Saturday, February 28, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Watching data How interesting and convenient that you should raise this issue, as I am facing a similar problem on an inherited app. While I am free to restructure it, I also don't want to destroy everything done by previous developers (not least for political reasons, but also because I want to deliver the solution as inexpensively as possible). So... The table of interest contains several fields which can be changed, and parallel fields recording the date they were last changed. Obviously I can add some code to each of the first set's AfterUpdate event and record the date. But I'm thinking that it would be way cooler to do it all in the form's AfterUpdate event instead. IIRC I don't think that I have ever used this event in all my years of Access programming. >From this event, can you determine which fields have changed? For example, the user changes five fields. Can I somehow obtain a list of the changed fields? Maybe I want the BeforeUpdate event instead? Ideally what I would like to do is let the user change anything, then write the changes to an AuditTrail table or somesuch, having a structure something like this: Table PK FieldName PreviousValue NewValue DateTime Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 4:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Well... the data isn't normalized to that extent, i.e. I don't have an "Address table". A claimant has a single address, and that is embedded directly in the Claimant table. Thus a timestamp would only tell me that the claimant table had changed, not that the address portion of the table had changed. Maybe she got married and changed her name? The Date of Birth was corrected? The name was mis-spelled and the mis-spelling was corrected? John W. Colby www.ColbyConsulting.com From jimdettman at earthlink.net Sat Feb 28 14:26:38 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 28 Feb 2004 15:26:38 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 tinanfields at torchlake.com Sat Feb 28 14:28:54 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 28 Feb 2004 15:28:54 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity Message-ID: <4040FA06.1030500@torchlake.com> A student of mine is trying to remodel a database for her employer. I think the database was converted from A97 to AXP (A2K format). She was reviewing the relationships and wanted to enforce referential integrity on one or more relationships. She reports that the checkbox for enforcing referential integrity was dimmed and unavailable. I don't know much more about this particular database. Any ideas as to why the enforce referential integrity choice would be made unavailable? Thanks, Tina From stuart at lexacorp.com.pg Sat Feb 28 17:13:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 29 Feb 2004 09:13:34 +1000 Subject: [AccessD] Cannot Enforce Referential Integrity In-Reply-To: <4040FA06.1030500@torchlake.com> Message-ID: <4041AD3E.8580.9188D@localhost> On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > A student of mine is trying to remodel a database for her employer. I > think the database was converted from A97 to AXP (A2K format). She was > reviewing the relationships and wanted to enforce referential integrity > on one or more relationships. She reports that the checkbox for > enforcing referential integrity was dimmed and unavailable. I don't > know much more about this particular database. Any ideas as to why the > enforce referential integrity choice would be made unavailable? > Thanks, > Tina > Usually this happens if there is no unique index on the joined fields in the parent table. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Sat Feb 28 18:51:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 19:51:45 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity In-Reply-To: <4041AD3E.8580.9188D@localhost> Message-ID: Actually if the field in the parent is not designated the PK and / or no index on the child FK. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, February 28, 2004 6:14 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Cannot Enforce Referential Integrity On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > A student of mine is trying to remodel a database for her employer. I > think the database was converted from A97 to AXP (A2K format). She was > reviewing the relationships and wanted to enforce referential integrity > on one or more relationships. She reports that the checkbox for > enforcing referential integrity was dimmed and unavailable. I don't > know much more about this particular database. Any ideas as to why the > enforce referential integrity choice would be made unavailable? > Thanks, > Tina > Usually this happens if there is no unique index on the joined fields in the parent table. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sat Feb 28 19:30:05 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 28 Feb 2004 18:30:05 -0700 Subject: [AccessD] Getting the start and end dates of the current week Message-ID: Given that there were a few methods for returning a fixed end of week date, I rewrote a few of the procedures to speed up the procedures. Mine was written several years ago during my first month of experimenting with VBA so that is my excuse for calling the Date function three times in a single line of code. I started with a timeGetTime declare and ran a million calls to each revised procedure: Public Declare Function timeGetTime Lib "Winmm" () As Long Function EndsOfWeek() As Date Dim datLastOfWeek As Date datLastOfWeek = Date EndsOfWeek = datLastOfWeek + (7 - WeekDay(datLastOfWeek)) End Function Function fnLastOfThisWeek() As Date Dim dt As Date dt = Date fnLastOfThisWeek = DateSerial(Year(dt), Month(dt), Day(dt) + 7 - WeekDay(dt)) End Function Function WeekEndDate() As Date Dim dt As Date dt = Date WeekEndDate = DateAdd("d", 1 + WeekDay(dt), dt) End Function The test driver procedure was run by commenting out two of the three calls. Each was run in sequence several times. The results are shown as a comment immediately after the call: Sub timetest() Dim dt As Date Dim lng As Long Dim lngt As Long lngt = timeGetTime For lng = 0 To 1000000 'dt = EndsOfWeek() '1.79 'dt = fnLastOfThisWeek '3.56 dt = WeekEndDate '4.37 Next MsgBox timeGetTime - lngt End Sub Looks like DateAdd is slower than the DateSerial, but both can be skipped as demonstrated by Don Mcgillivray. There is little to choose between the approaches on an occasional call, but used in a query with calculated field returning a few million records, I'd go with a variation on Don's method as it's nearly twice as fast as the next fastest. As always, kudos to Gustav for providing an appropriately globalized approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From jwcolby at colbyconsulting.com Sat Feb 28 22:29:10 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 28 Feb 2004 23:29:10 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 mastercafe at ctv.es Sun Feb 29 00:53:51 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sun, 29 Feb 2004 07:53:51 +0100 Subject: [AccessD] Office 2003 Developer? In-Reply-To: Message-ID: <002601c3fe90$d7f7c1b0$0200a8c0@mastercaserver> We are looking for Ms Office 2003 developer, or a similar version than Office XP Dev. Is there any version?? We ask to our distributor and they don't know this. Thanks Juan Menendez ======================================== MASTERCAFE S.L. B-82.617.614 info at mastercafe.com Pi?eres 4, 1?D (Candas-Asturias) Tel. 627.531.764 Fax 627.500.205 MASTERCAFE MADRID S.L. c/ Elfo 72 (Madrid) cecilia at mastercafe.com 627.474.285 ======================================== From stephen at bondsoftware.co.nz Sun Feb 29 01:21:34 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 29 Feb 2004 20:21:34 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F2908867A@server.bondsoftware.co.nz> Didn't see this come thru, so trying again ... I am sending one e-mail to each person on file. Each e-mail has that person's individual details. Here is the code snippet ... ======= If Not rs.BOF And Not rs.EOF Then rs.MoveFirst Do Until rs.EOF GoSub BuildBodyOfEmail ' build field 'eMailBody' MsgBox "email for " & rs!pId & " " & rs!pSurname DoCmd.SendObject acSendNoObject, , , _ "mytest at mydomain.co.nz", _ , , "Subject Test", _ eMailBody, True rs.MoveNext DoEvents Loop End If ======== The problem is the first record in the recordset pops up as a new mail message OK, but subsequent records don't. The debugging MsgBox comes up for each record so I know the loop is getting the right records. Changing the SendObject's 'editmessage' flag from True to False doesn't make any difference. Eventually I want to change the SendObject's 'editmessage' flag from True to False so the e-mails go straight out without visual verification. The False is for testing purposes meantime. Weird. Any thoughts ..... Stephen Bond From stuart at lexacorp.com.pg Sun Feb 29 01:57:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 29 Feb 2004 17:57:12 +1000 Subject: [AccessD] Sending multiple e-mails In-Reply-To: <70F3D727890C784291D8433E9C418F2908867A@server.bondsoftware.co.nz> Message-ID: <404227F8.25997.1E87D87@localhost> On 29 Feb 2004 at 20:21, Stephen Bond wrote: > The problem is the first record in the recordset pops up as a > new mail message OK, but subsequent records don't. The > debugging MsgBox comes up for each record so I know the loop > is getting the right records. Changing the SendObject's > 'editmessage' flag from True to False doesn't make any difference. > Eventually I want to change the SendObject's 'editmessage' > flag from True to False so the e-mails go straight out > without visual verification. The False is for testing > purposes meantime. > What's the mail client? I'd suspect a problem with the client accepting a second new message when the first one is open. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stephen at bondsoftware.co.nz Sun Feb 29 02:07:55 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Sun, 29 Feb 2004 21:07:55 +1300 Subject: [AccessD] Sending multiple e-mails Message-ID: <70F3D727890C784291D8433E9C418F298F68@server.bondsoftware.co.nz> Outlook 2000 on the development box, connecting to Windows2000 Server (Exchange Server) on the server box. All e-mail addresses at present are local, on the customer's computer they won't be. I hope this is what you're asking for, I'm no expert in this area :< Stephen Bond > -----Original Message----- > From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] > Sent: Sunday, 29 February 2004 8:57 p.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sending multiple e-mails > > > On 29 Feb 2004 at 20:21, Stephen Bond wrote: > > > The problem is the first record in the recordset pops up as a > > new mail message OK, but subsequent records don't. The > > debugging MsgBox comes up for each record so I know the loop > > is getting the right records. Changing the SendObject's > > 'editmessage' flag from True to False doesn't make any difference. > > Eventually I want to change the SendObject's 'editmessage' > > flag from True to False so the e-mails go straight out > > without visual verification. The False is for testing > > purposes meantime. > > > > What's the mail client? I'd suspect a problem with the client > accepting a second new message when the first one is open. > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Sun Feb 29 03:10:16 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 29 Feb 2004 04:10:16 -0500 Subject: [AccessD] Office 2003 Developer? References: <002601c3fe90$d7f7c1b0$0200a8c0@mastercaserver> Message-ID: <000501c3fea3$d8d97480$6101a8c0@dejpolsys> ...afaik "Microsoft Office Access 2003 Developer Extensions" is used to create Access 2003 runtime packages and is a component of "Microsoft Visual Studio? Tools for the Microsoft Office System" ...VS Tools supports C# and VB in addition to VBA ...I've not seen a distinct ODE as in XP. William Hindman "My idea of an agreeable person is a person who agrees with me." Disraeli ----- Original Message ----- From: "MastercafeCTV" To: "'Access Developers discussion and problem solving'" Sent: Sunday, February 29, 2004 1:53 AM Subject: [AccessD] Office 2003 Developer? > We are looking for Ms Office 2003 developer, or a similar version than Office XP > Dev. Is there any version?? We ask to our distributor and they don't know this. > > Thanks > > Juan Menendez > > ======================================== > MASTERCAFE S.L. > B-82.617.614 > info at mastercafe.com > Pi?eres 4, 1?D (Candas-Asturias) > Tel. 627.531.764 > Fax 627.500.205 > > MASTERCAFE MADRID S.L. > c/ Elfo 72 (Madrid) > cecilia at mastercafe.com > 627.474.285 > ======================================== > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Feb 29 03:49:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 29 Feb 2004 10:49:33 +0100 Subject: [AccessD] Getting the start and end dates of the current week In-Reply-To: References: Message-ID: <73645421.20040229104933@cactus.dk> Hi J?rgen Hey, nothing has changed - J?rgen is still haunting the last microsecond! But you are right, of course - every second counts when retrieving and manipulation a million records. However, in most cases functions like these are used for data entry validation, report grouping and the like where a microsecond or ten is as close to "nothing" as it doesn't matter - it is more important to have a selection of proved functions in your toolbox you can pick when needed knowing that they'll do the job without further testing. That's why I have made it a habit to use and recommend the built in date/time functions which actually are quite fast and won't let you down (except for an ISO week number bug I have documented previously). Also, it is often easier to document or comment what a function does when you use the date/time functions. Then you can concentrate on speed optimizing for large recordset using SQL-only code in the few cases where it is worth the trouble and testing. /gustav > Given that there were a few methods for returning a fixed end of week date, > I rewrote a few of the procedures to speed up the procedures. Mine was > written several years ago during my first month of experimenting with VBA so > that is my excuse for calling the Date function three times in a single line > of code. I started with a timeGetTime declare and ran a million calls to > each revised procedure: > Public Declare Function timeGetTime Lib "Winmm" () As Long > Function EndsOfWeek() As Date > Dim datLastOfWeek As Date > datLastOfWeek = Date > EndsOfWeek = datLastOfWeek + (7 - WeekDay(datLastOfWeek)) > End Function > Function fnLastOfThisWeek() As Date > Dim dt As Date > dt = Date > fnLastOfThisWeek = DateSerial(Year(dt), Month(dt), Day(dt) + 7 - > WeekDay(dt)) > End Function > Function WeekEndDate() As Date > Dim dt As Date > dt = Date > WeekEndDate = DateAdd("d", 1 + WeekDay(dt), dt) > End Function > The test driver procedure was run by commenting out two of the three calls. > Each was run in sequence several times. The results are shown as a comment > immediately after the call: > Sub timetest() > Dim dt As Date > Dim lng As Long > Dim lngt As Long > lngt = timeGetTime > For lng = 0 To 1000000 > 'dt = EndsOfWeek() '1.79 > 'dt = fnLastOfThisWeek '3.56 > dt = WeekEndDate '4.37 > Next > MsgBox timeGetTime - lngt > End Sub > Looks like DateAdd is slower than the DateSerial, but both can be skipped as > demonstrated by Don Mcgillivray. There is little to choose between the > approaches on an occasional call, but used in a query with calculated field > returning a few million records, I'd go with a variation on Don's method as > it's nearly twice as fast as the next fastest. > As always, kudos to Gustav for providing an appropriately globalized > approach. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From stuart at pacific.net.hk Sun Feb 29 04:29:18 2004 From: stuart at pacific.net.hk (Stuart Sanders) Date: Sun, 29 Feb 2004 18:29:18 +0800 Subject: [AccessD] Watching data In-Reply-To: Message-ID: <000701c3feae$e3d38280$0400a8c0@nbbits01> Having worked only recently with your classes, I don't see why it couldn't be done. In fact, if you use a separate table to name form and control/field name it should be possible to be dynamic such that the user can specify which fields they want logged. Much as you were doing with the security controls. On form load, it checks to see whether the form needs to be logged, and if so checks which fields. Use the before update event of the form to record before and after values but make sure it is after all validation has passed. Stuart -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, 29 February 2004 12:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? 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 barbara.march at surveyrisk.co.uk Sun Feb 29 06:30:42 2004 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Sun, 29 Feb 2004 12:30:42 -0000 Subject: [AccessD] activex control refire On Entry Message-ID: <000201c3febf$dc2ab1a0$0801a8c0@barbaranew> HYPERLINK "http://skins.hotbar.com/skins/mailskins/st/042102/042102email_2.gif" HYPERLINK "http://skins.hotbar.com/skins/mailskins/st/042102/042102email_2.gif"Hi There Is anyone available to give advice on a Sunday (well, it's Sunday where I am and cold and grey outside)? If so, I would appreciate some help please. I have an activex control on a form which I use, via the On Entry property, to open a message box where the user can either click OK or cancel. It all works fine except if you click cancel, the On Entry property does not seem to be ready to refire unless you have click on another control first. So you click cancel on the message box that it opens, the message box closes, then immediately click the activex control again and nothing happens. Is there code which will make the control ready to refire immediately? Thanks in advance for your help. Barbara (^-^)/ UK _____ HYPERLINK "http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=hotbar%5feleme nt%3bst%3b&SG=&RAND=80508&partner=hotbar"Upgrade Your Email - Click here! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003 From deanellis at iprimus.com.au Sun Feb 29 06:43:01 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Sun, 29 Feb 2004 23:13:01 +1030 (Cen. Australia Daylight Time) Subject: [AccessD] BEU Database Message-ID: <4041DE55.000003.97011@jedel> Hi guys, Thanks for your help with the BEU Database earlier. I do have one problem with it that I have noticed. I use Hyperlinks in my database and there is no Hyperlink property in the DataType when I create a field in a table. Any Reason for this? Is there any chance of getting it put in? Cheers Dean From carbonnb at sympatico.ca Sun Feb 29 07:30:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 29 Feb 2004 08:30:19 -0500 Subject: [AccessD] BEU Database In-Reply-To: <4041DE55.000003.97011@jedel> Message-ID: <4041A31B.983.3CBEE0@localhost> On 29 Feb 2004 at 23:13, Dean Ellis wrote: > Thanks for your help with the BEU Database earlier. I do have one > problem with it that I have noticed. I use Hyperlinks in my database > and there is no Hyperlink property in the DataType when I create a > field in a table. Any Reason for this? Is there any chance of getting > it put in? Oversight on our part I would think. We'll add it to the list. -- Bryan Carbonnell - carbonnb at sympatico.ca (SELECT * FROM users WHERE clue > 0) From ssharkins at bellsouth.net Sun Feb 29 08:14:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 29 Feb 2004 09:14:30 -0500 Subject: [AccessD] Office 2003 Developer? In-Reply-To: <000501c3fea3$d8d97480$6101a8c0@dejpolsys> Message-ID: <20040229141430.VELL1830.imf16aec.mail.bellsouth.net@SUSANONE> Developer was dropped for 2003. Susan H. ...afaik "Microsoft Office Access 2003 Developer Extensions" is used to create Access 2003 runtime packages and is a component of "Microsoft Visual StudioR Tools for the Microsoft Office System" ...VS Tools supports C# and VB in addition to VBA ...I've not seen a distinct ODE as in XP. From iggy at nanaimo.ark.com Sun Feb 29 09:18:26 2004 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 29 Feb 2004 07:18:26 -0800 Subject: [AccessD] Watching data References: Message-ID: <404202C0.EBF739BC@nanaimo.ark.com> Hey John I have just started to follow this thread. I don't know if this will help. " Even in the case of a clean save, by the time AfterUpdate occurs the previous value isn't available." I assign the current text box value to a variable in OnEnter. Then compare the variable to the contents in the text box in BeforeUpdate. That way you check to see if anything was truly changed. eg. The user edits the contents, but then changes their mind and retypes in the original entry - do a compare, no change even though it was edited. If it passes as a true edit, then do whatever checks/run a procedure to do something and reassign the new value to the variable. Even works with validation. "John W. Colby" wrote: > Arthur, > > It's never easy and this is especially not easy. ;-) A user can start to > edit a record and hit escape. A user can start to edit a record and have > validation fail to allow the save, or the user can have a nice clean edit / > save. Even in the case of a clean save, by the time AfterUpdate occurs the > previous value isn't available. Thus you have to save the old value to a > temp location in BeforeUpdate and then save the old and new value to the log > table in AfterUpdate. > > Now, what about forms where the form has more than one editable table > represented? I have very few of those but I have one in particular where > the user wanted data from about 4 different (related) tables all available > in one screen and all editable. So what is the PK? In fact, what is the > table? What about controls bound to queries with aliased fields where the > name was changed by the developer in the underlying query? I HATE "one of a > kind, do it with code in this specific form, for this specific form" > solutions. I prefer to take the time to figure out how to make it work > across a broad spectrum of situations if possible. > > I asked awhile back if it was possible to "drill down" through a bound > control to find the table / field name of the field that a control is bound > to and was told it is indeed possible. It seems that to do it right, any > changed CONTROLS would have to be "drilled down" to discover their source, > then that info (table / field name) as well as old/new values recorded in > the log file. > > It just so happens that I have a form class and a control class for every > data aware control so I could have my form class' form events poll the > control classes to see which controls have changed, do the "drill down" > however that may occur, and record the results. Or, every control class > could be taught how to record changes in the Change Log and then the form > would poll all the control classes telling them to LogChanges (if any). I > think it would be easier to teach the control classes to automatically > record changes, then have the form just poll the control classes for old/new > values if they have changed, and have the form class do the logging. In > either case, if I could figure out the drill down thing and get this > working, in essence I could turn on logging with a switch as the form loads. > In it's Open even tell the form class to turn on logging for this specific > form. > > If you don't have a framework such as mine how do you do this? For that > matter, if you DO have a framework such as mine, how do you do this? ;-) > Curious minds want to know. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller > Sent: Saturday, February 28, 2004 5:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Watching data > > How interesting and convenient that you should raise this issue, as I am > facing a similar problem on an inherited app. While I am free to > restructure it, I also don't want to destroy everything done by previous > developers (not least for political reasons, but also because I want to > deliver the solution as inexpensively as possible). So... > > The table of interest contains several fields which can be changed, and > parallel fields recording the date they were last changed. Obviously I > can add some code to each of the first set's AfterUpdate event and > record the date. But I'm thinking that it would be way cooler to do it > all in the form's AfterUpdate event instead. IIRC I don't think that I > have ever used this event in all my years of Access programming. > > >From this event, can you determine which fields have changed? For > example, the user changes five fields. Can I somehow obtain a list of > the changed fields? Maybe I want the BeforeUpdate event instead? Ideally > what I would like to do is let the user change anything, then write the > changes to an AuditTrail table or somesuch, having a structure something > like this: > > Table > PK > FieldName > PreviousValue > NewValue > DateTime > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Saturday, February 28, 2004 4:04 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > Well... the data isn't normalized to that extent, i.e. I don't have an > "Address table". A claimant has a single address, and that is embedded > directly in the Claimant table. Thus a timestamp would only tell me > that the claimant table had changed, not that the address portion of the > table had changed. Maybe she got married and changed her name? The > Date of Birth was corrected? The name was mis-spelled and the > mis-spelling was corrected? > > John W. Colby > www.ColbyConsulting.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Sun Feb 29 10:14:56 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 11:14:56 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 28, 2004 11:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data Jim, >With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. Understood. Fortunately "everything done in forms" describes the database. This thing is an insurance claim processing system. Users take calls, make calls, talk to doctors, investigators, claimants and so forth, and document everything using forms in the database. My client then advises the insurance company whether or not to pay the claim. As such I have "complete control". Users don't go in to tables to edit things. I use a handful of processes that automate receiving data from the Insurance company (payment records, new claim numbers etc.) where I take spreadsheets attached to daily emails from the insurance company and use them to update the database but nothing that I need to track here (I do track it in other ways of course). I have a very small number of forms that all personnel use to edit the database. As such I can "brute force it" if I wish. My first inclination was to do a class directly in the FE that I instantiated in each form that needs monitoring. The class is told the controls to watch and logs any changes to those controls. I may still do it that way, but as I have indicated I would prefer to embed this functionality in my framework so that I can offer this to any client using the framework, turn it on and off using SysVars at the FE or even the form level etc. We'll see. In order to do that I need to figure out the "drill down" thing - I believe that Drew was the one that assured me that it is possible. I just have to see if I can find the hints of how. It had to do with opening the query and inspecting the properties of the fields. If that is possible I may have a killer feature since my framework already supports form / control classes. It would be reasonably easy to add this functionality into those classes and go. I am thinking of adding a new DataLogging class to handle this stuff though. The reason is that it would be useful to be able to select groups of controls to monitor - as in this example "just the address portion". By designing a class, the form could load the DataLogger class and pass it controls (actually the controls' class) such that an instance of the class then performs the monitoring of a group of controls. In the event that several different groups of controls need monitoring, the form class just loads more instances of the class passing the specific controls for each group being monitored. If all I ever anticipated was a single group I could just do it in a single collection in the form class itself, but by building a class to do this, I can have more than one group of controls being monitored if necessary. The logger class knows how to poll its group of controls for changes and write the old/new/tbl/field info to the log table. I think that would be sweet, and would nicely encapsulate the process. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Saturday, February 28, 2004 3:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Totally. Unfortunately, it's pretty rough to do in Access because there are no engine level triggers in JET. With Access, everything needs to be done at form level and it will never be fool proof as anything done directly in a table will by pass your efforts. In products like SQL Server, this type of feature is generally built-in and it falls outside your app. In others, like VFP, you have to do the work, but it's quite easy to do. For example, right now in VFP, I can very easily define a trigger at engine level for adds, deletes, or updates. On an update, I can compare .Oldvalue and current value on every field in a record and write a log as a separate table/file. I could also modify my base classes at the intermediate class level (I have 4: VFP, Framework, Intermediate Class, and App specific classes). This would be the approach your talking about. Another alternative is that there is a commercial product I can buy that hooks into the framework I use (but it uses the engine level triggers). BTW lack of control at the engine level is one of the reasons I've moved away from Access. But if the JET team had added them, it would have stepped on too many SQL Server toes. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, February 27, 2004 5:03 PM To: AccessD Subject: [AccessD] Watching data I need a system for watching specific data fields in specific tables for changes. For example, if the Policy holder address changes, the claimant address changes, the Payment location (address) changes etc. If ANY of these change then I need to gather the information and at the end of the day email a report to the client (the insurance company) spelling out the changes, what object the fields belonged to (Claimant, Policy Holder etc.). Make sense? Of course I could launch into building code in every form I can find where these objects are used and this info can be saved. However this seems like a "framework" kind of task. I envision a class (let's call it dclsMonitorCtlChg for now) in the framework that the form class loads if a form class method (perhaps MonitorCtlDataChg(ParamArray varCtls as variant) ) is called with controls specified. The form class already has a collection of the classes for each control's class. The form class MonitorCtlDataChg() could grab a pointer to each of the controls that this method says needs to be monitored and pass them to the dclsMonitorCtlChg which would place them in a collection. Then a form event or events (Before update, After update) could call a method of dclsMonitorCtlChg telling it to "look for changes in your control set". The class could raise an event or simply return a value to the form caller if any change was detected. Of course it would then be useful to know what controls (fields) were changed, the old value and the new value. This would allow the application to generate a report: Object Monitored (Claimant) Field: Addr1: OldValue: NewValue Zip: OldValue: NewValue IOW the claimant moved to a new location, but in the same city, just changed the address1 and the zip. So.... is anyone doing anything like this? If so any words of advice, things to look out for etc? John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 11:37:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 12:37:56 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From jimdettman at earthlink.net Sun Feb 29 13:37:26 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 14:37:26 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 14:18:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 15:18:18 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: >I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. AFAIK this isn't possible in A2K. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 2:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sun Feb 29 14:19:21 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 29 Feb 2004 15:19:21 -0500 Subject: [AccessD] Cannot Enforce Referential Integrity References: Message-ID: <40424949.8030600@torchlake.com> Thanks John and Stuart. She indicated that the joined fields were PK in parent table and FK in child table - but, I will double check. Thanks for the thoughts. Tina John W. Colby wrote: >Actually if the field in the parent is not designated the PK and / or no >index on the child FK. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart >McLachlan >Sent: Saturday, February 28, 2004 6:14 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] Cannot Enforce Referential Integrity > > >On 28 Feb 2004 at 15:28, Tina Norris Fields wrote: > > > >>A student of mine is trying to remodel a database for her employer. I >>think the database was converted from A97 to AXP (A2K format). She was >>reviewing the relationships and wanted to enforce referential integrity >>on one or more relationships. She reports that the checkbox for >>enforcing referential integrity was dimmed and unavailable. I don't >>know much more about this particular database. Any ideas as to why the >>enforce referential integrity choice would be made unavailable? >>Thanks, >>Tina >> >> >> >Usually this happens if there is no unique index on the joined fields >in the parent table. > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > From iggy at nanaimo.ark.com Sun Feb 29 14:22:02 2004 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 29 Feb 2004 12:22:02 -0800 Subject: [AccessD] Watching data References: Message-ID: <404249E9.82F4661E@nanaimo.ark.com> Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record. "John W. Colby" wrote: > >I just thought of another one; what if you assign the forms recordsource to > a recordset variable in code so you can do transactions? I've never looked > at runtime to see what that looks like to a form object. > > AFAIK this isn't possible in A2K. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 2:37 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from.>> > > Thought I had missed the boat on that one. > > < new val" how do we discover the Tablename / Fieldname portion?>> > > I used the brute force approach in the past; I coded the table and field > name that I wanted logged in the tag property for each control. > > Without doing that, you'd need to grab the form's recordsource and figure > out what it is. It could be a table name, query def, or SQL statement. The > first would be easy, as from that point you'd only need the controls record > source. The second you can figure out easy enough, but parsing it would be > a problem, especially if it in itself is based on sub queries. That applies > to querydef's as well. > > I'm not sure what Drew was thinking of, but I don't see any easy answers > there. > > I just thought of another one; what if you assign the forms recordsource > to a recordset variable in code so you can do transactions? I've never > looked at runtime to see what that looks like to a form object. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 29, 2004 12:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > >but I'm assuming what you mean by "drilling down" is looping through all > the controls > > I do control collection iteration collection all the time, starting with my > form class which has a control scanner (as I call it) which iterates the > controls collection loading classes for each control found. > > No, by "drilling down" I mean discovering what the SOURCE of the data is by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from. > > When a form / field is bound to data, what the data is can be non-trivial to > discover. For example the form could be bound to a query. The developer > decides that rather than leaving the field names of that query alone, he is > going to rename CL_Addr1 to Address1 using field name aliases. Further the > query could be two or more tables linked together in the query (and still > editable) so that fields from the claimant and a specific claim are all > bound to controls on a form. Now when the data logger tries to log the > data, what table is the data coming from, the claimant or the claim? > Further is Address1 the actual field name in the table or is it an alias? > > Thus when it's time to log data and we want "table / field name / oldval / > new val" how do we discover the Tablename / Fieldname portion? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 11:15 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < believe > that Drew was the one that assured me that it is possible. I just have to > see if I can find the hints of how. It had to do with opening the query and > inspecting the properties of the fields.>> > > I missed earlier parts of this discussion, but I'm assuming what you mean > by "drilling down" is looping through all the controls, then yes it > certainly can be done. Any of the code floating out there to resize forms > contains the logic required. If you don't have access to something like > that, it's a pretty straight forward matter. > > Starting at the form level, you'd use the controls collection to iterate > through all the controls for an object. Just be aware that you'll need to > handle container controls (i.e. page frames and subforms), so it will be a > series of nested loops. You might want to try and make it a recursive > procedure. Performance wise, you also might want to restrict which controls > are looked at. For example, if you don't place controls in anything other > then the detail section of forms, then no need to check the header and > footer. > > Once you locate a control, you use the TypeOf function to figure out what > it is and if you need to deal with it. I would not bother checking the > .enabled or .locked properties, but simply check .oldvalue vs .value, as it > should be faster that way. > > This would all be done in the BeforeUpdate event after your sure your not > going to cancel for any reason. > > As far as the change log, I've always used the approach of one record per > field change: > > tblLogID - Autonumber -PK > LogDateTime - D/T > LogType - String - "A"dd, "D"elete, "U"pdate > TableName - String > RecordPK - String > FieldName - String > TypeOf - Numeric - Indicates where "NewValue" is stored > NewValue1 - String > NewValue2 - Integer > NewValue3 - Long > NewValue4 - Single > etc.... > > I don't bother to hold the .oldvalue because you'd be duplicating it in > the table. You can also see that I don't bother to try and convert the > .oldvalue into a common type (i.e. a string), but rather store the actual > value. If I had access to the raw binary data, then I'd do so, but without > that, this seemed to be the cleanest way. > > I've used two different types of logic in working with the log file: > > Roll forward - used to recreate a database at a specific point in time. > 1. Check point (backup) > 2. Apply log changes in a "roll forward" to a specific date and time. > > Auditing: > 1. Log file records are maintained as long as possible. > > I've primarily used this in HR type apps or others where it was required > to recreate the data at a specific point in time. I haven't had to use > logging/auditing in quite some time, but it was workable. I went with > strings for the table name and field names, but I suppose you could come up > with some type of internal tracking system to use a numeric ID of some type, > but that is probably overkill. The only gotcha there is if you rename a > table or field. Generally, that doesn't happen too often for me. > > HTH, > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Sun Feb 29 15:12:11 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sun, 29 Feb 2004 16:12:11 -0500 Subject: [AccessD] Watching data In-Reply-To: Message-ID: John, << AFAIK this isn't possible in A2K. >> It sure is. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. AFAIK this isn't possible in A2K. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 2:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> Thought I had missed the boat on that one. <> I used the brute force approach in the past; I coded the table and field name that I wanted logged in the tag property for each control. Without doing that, you'd need to grab the form's recordsource and figure out what it is. It could be a table name, query def, or SQL statement. The first would be easy, as from that point you'd only need the controls record source. The second you can figure out easy enough, but parsing it would be a problem, especially if it in itself is based on sub queries. That applies to querydef's as well. I'm not sure what Drew was thinking of, but I don't see any easy answers there. I just thought of another one; what if you assign the forms recordsource to a recordset variable in code so you can do transactions? I've never looked at runtime to see what that looks like to a form object. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, February 29, 2004 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data >but I'm assuming what you mean by "drilling down" is looping through all the controls I do control collection iteration collection all the time, starting with my form class which has a control scanner (as I call it) which iterates the controls collection loading classes for each control found. No, by "drilling down" I mean discovering what the SOURCE of the data is by (I think) opening the query that the form is bound to, looking up the field that the control is bound to, and looking at the properties of that field in the query to discover what table / field the data comes from. When a form / field is bound to data, what the data is can be non-trivial to discover. For example the form could be bound to a query. The developer decides that rather than leaving the field names of that query alone, he is going to rename CL_Addr1 to Address1 using field name aliases. Further the query could be two or more tables linked together in the query (and still editable) so that fields from the claimant and a specific claim are all bound to controls on a form. Now when the data logger tries to log the data, what table is the data coming from, the claimant or the claim? Further is Address1 the actual field name in the table or is it an alias? Thus when it's time to log data and we want "table / field name / oldval / new val" how do we discover the Tablename / Fieldname portion? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Sunday, February 29, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Watching data John, <> I missed earlier parts of this discussion, but I'm assuming what you mean by "drilling down" is looping through all the controls, then yes it certainly can be done. Any of the code floating out there to resize forms contains the logic required. If you don't have access to something like that, it's a pretty straight forward matter. Starting at the form level, you'd use the controls collection to iterate through all the controls for an object. Just be aware that you'll need to handle container controls (i.e. page frames and subforms), so it will be a series of nested loops. You might want to try and make it a recursive procedure. Performance wise, you also might want to restrict which controls are looked at. For example, if you don't place controls in anything other then the detail section of forms, then no need to check the header and footer. Once you locate a control, you use the TypeOf function to figure out what it is and if you need to deal with it. I would not bother checking the .enabled or .locked properties, but simply check .oldvalue vs .value, as it should be faster that way. This would all be done in the BeforeUpdate event after your sure your not going to cancel for any reason. As far as the change log, I've always used the approach of one record per field change: tblLogID - Autonumber -PK LogDateTime - D/T LogType - String - "A"dd, "D"elete, "U"pdate TableName - String RecordPK - String FieldName - String TypeOf - Numeric - Indicates where "NewValue" is stored NewValue1 - String NewValue2 - Integer NewValue3 - Long NewValue4 - Single etc.... I don't bother to hold the .oldvalue because you'd be duplicating it in the table. You can also see that I don't bother to try and convert the .oldvalue into a common type (i.e. a string), but rather store the actual value. If I had access to the raw binary data, then I'd do so, but without that, this seemed to be the cleanest way. I've used two different types of logic in working with the log file: Roll forward - used to recreate a database at a specific point in time. 1. Check point (backup) 2. Apply log changes in a "roll forward" to a specific date and time. Auditing: 1. Log file records are maintained as long as possible. I've primarily used this in HR type apps or others where it was required to recreate the data at a specific point in time. I haven't had to use logging/auditing in quite some time, but it was workable. I went with strings for the table name and field names, but I suppose you could come up with some type of internal tracking system to use a numeric ID of some type, but that is probably overkill. The only gotcha there is if you rename a table or field. Generally, that doesn't happen too often for me. HTH, Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 18:50:00 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 19:50:00 -0500 Subject: [AccessD] Watching data In-Reply-To: <404249E9.82F4661E@nanaimo.ark.com> Message-ID: Tony, > Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField That is awesome and exactly what I need to do. I have to wonder though whether the form's RecordsetClone couldn't be assigned to the rst and do exactly the same thing. I just tested and: Dim rst As DAO.Recordset Set rst = Me.RecordsetClone Debug.Print rst(txtCat.ControlSource).SourceTable Debug.Print rst(txtCat.ControlSource).SourceField (actual controls on a form) produces: tblCatWrk CW_Cat My form class has a function that iterates the form's control collection instantiating a control class for each control found. In the form class (in this FindControls function) I can do this process, then as each control is found, have the form class look up the tablename / fieldname and pass that in to the control class as it instantiates the control's class. Thus each control "knows" what table / field it is bound to and can report that back later. This is starting to look easy! I'll keep you informed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tony Septav Sent: Sunday, February 29, 2004 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record. "John W. Colby" wrote: > >I just thought of another one; what if you assign the forms recordsource to > a recordset variable in code so you can do transactions? I've never looked > at runtime to see what that looks like to a form object. > > AFAIK this isn't possible in A2K. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 2:37 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from.>> > > Thought I had missed the boat on that one. > > < new val" how do we discover the Tablename / Fieldname portion?>> > > I used the brute force approach in the past; I coded the table and field > name that I wanted logged in the tag property for each control. > > Without doing that, you'd need to grab the form's recordsource and figure > out what it is. It could be a table name, query def, or SQL statement. The > first would be easy, as from that point you'd only need the controls record > source. The second you can figure out easy enough, but parsing it would be > a problem, especially if it in itself is based on sub queries. That applies > to querydef's as well. > > I'm not sure what Drew was thinking of, but I don't see any easy answers > there. > > I just thought of another one; what if you assign the forms recordsource > to a recordset variable in code so you can do transactions? I've never > looked at runtime to see what that looks like to a form object. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, February 29, 2004 12:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > >but I'm assuming what you mean by "drilling down" is looping through all > the controls > > I do control collection iteration collection all the time, starting with my > form class which has a control scanner (as I call it) which iterates the > controls collection loading classes for each control found. > > No, by "drilling down" I mean discovering what the SOURCE of the data is by > (I think) opening the query that the form is bound to, looking up the field > that the control is bound to, and looking at the properties of that field in > the query to discover what table / field the data comes from. > > When a form / field is bound to data, what the data is can be non-trivial to > discover. For example the form could be bound to a query. The developer > decides that rather than leaving the field names of that query alone, he is > going to rename CL_Addr1 to Address1 using field name aliases. Further the > query could be two or more tables linked together in the query (and still > editable) so that fields from the claimant and a specific claim are all > bound to controls on a form. Now when the data logger tries to log the > data, what table is the data coming from, the claimant or the claim? > Further is Address1 the actual field name in the table or is it an alias? > > Thus when it's time to log data and we want "table / field name / oldval / > new val" how do we discover the Tablename / Fieldname portion? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Sunday, February 29, 2004 11:15 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Watching data > > John, > > < believe > that Drew was the one that assured me that it is possible. I just have to > see if I can find the hints of how. It had to do with opening the query and > inspecting the properties of the fields.>> > > I missed earlier parts of this discussion, but I'm assuming what you mean > by "drilling down" is looping through all the controls, then yes it > certainly can be done. Any of the code floating out there to resize forms > contains the logic required. If you don't have access to something like > that, it's a pretty straight forward matter. > > Starting at the form level, you'd use the controls collection to iterate > through all the controls for an object. Just be aware that you'll need to > handle container controls (i.e. page frames and subforms), so it will be a > series of nested loops. You might want to try and make it a recursive > procedure. Performance wise, you also might want to restrict which controls > are looked at. For example, if you don't place controls in anything other > then the detail section of forms, then no need to check the header and > footer. > > Once you locate a control, you use the TypeOf function to figure out what > it is and if you need to deal with it. I would not bother checking the > .enabled or .locked properties, but simply check .oldvalue vs .value, as it > should be faster that way. > > This would all be done in the BeforeUpdate event after your sure your not > going to cancel for any reason. > > As far as the change log, I've always used the approach of one record per > field change: > > tblLogID - Autonumber -PK > LogDateTime - D/T > LogType - String - "A"dd, "D"elete, "U"pdate > TableName - String > RecordPK - String > FieldName - String > TypeOf - Numeric - Indicates where "NewValue" is stored > NewValue1 - String > NewValue2 - Integer > NewValue3 - Long > NewValue4 - Single > etc.... > > I don't bother to hold the .oldvalue because you'd be duplicating it in > the table. You can also see that I don't bother to try and convert the > .oldvalue into a common type (i.e. a string), but rather store the actual > value. If I had access to the raw binary data, then I'd do so, but without > that, this seemed to be the cleanest way. > > I've used two different types of logic in working with the log file: > > Roll forward - used to recreate a database at a specific point in time. > 1. Check point (backup) > 2. Apply log changes in a "roll forward" to a specific date and time. > > Auditing: > 1. Log file records are maintained as long as possible. > > I've primarily used this in HR type apps or others where it was required > to recreate the data at a specific point in time. I haven't had to use > logging/auditing in quite some time, but it was workable. I went with > strings for the table name and field names, but I suppose you could come up > with some type of internal tracking system to use a numeric ID of some type, > but that is probably overkill. The only gotcha there is if you rename a > table or field. Generally, that doesn't happen too often for me. > > HTH, > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 29 19:58:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 29 Feb 2004 20:58:51 -0500 Subject: [AccessD] Watching data In-Reply-To: <404249E9.82F4661E@nanaimo.ark.com> Message-ID: Tony, The following is what I ended up with: ' 'This function iterates the mfrm's control collection looking up the control's table and field names ' 'Since I sometimes open the form unbound, I need to do all this in a separate function after binding the form 'to a table. ' Public Function CtlDataSrc() On Error GoTo Err_CtlDataSrc Dim rst As DAO.Recordset Dim ctl As Control Dim strSrcTbl As String Dim strSrcFld As String 'Get a copy of the form's Recordset Set rst = mfrm.RecordsetClone 'Iterate the controls collection for the form For Each ctl In mfrm.Controls Debug.Print ctl.Name 'attempt tp get the source table name for the field the control is bound to. err.Clear On Error Resume Next strSrcTbl = rst(ctl.ControlSource).SourceTable If err = 0 Then 'If there is no error (the field is bound to a field and the source table is found) mobjChildren(ctl.Name).BoundTbl = strSrcTbl 'look up the class in mobjChildren collection and pass the class the table name End If 'Do the same stuff for the source field name strSrcFld = rst(ctl.ControlSource).SourceField If err = 0 Then mobjChildren(ctl.Name).BoundFld = strSrcFld End If Next ctl Exit_CtlDataSrc: On Error Resume Next If Not (rst Is Nothing) Then rst.Close: Set rst = Nothing Exit Function Err_CtlDataSrc: MsgBox err.Description, , "Error in Function dclsFrm.CtlDataSrc" Resume Exit_CtlDataSrc Resume 0 '.FOR TROUBLESHOOTING End Function This assumes a pair of private string variables in each data aware class: ' 'Used for change logging ' Private mstrBoundTbl As String 'The Table that this control is bound to Private mstrBoundFld As String 'The field in the table that this control is bound to and corresponding property get/let statements to access the variables: ' 'Properties for the bound field / table (properties of the control class) ' Public Property Get BoundTbl() As String BoundTbl = mstrBoundTbl End Property Public Property Let BoundTbl(strTblName As String) mstrBoundTbl = strTblName End Property Public Property Get BoundFld() As String BoundFld = mstrBoundFld End Property Public Property Let BoundFld(strFldName As String) mstrBoundFld = strFldName End Property So far it all appears to be working flawlessly. I added the variables and properties to all of my control classes that are for bound controls and I'm off and running. That takes care of each control knowing it's table / field. Next I have to do the code to tell each such control to store the old value and return the various old / new values. I do think I'll write a DataLogger class to handle the issue of storing sets of controls to log data for as well as the logic of when to save the old values, when to return the various pieces for logging, handling the log table etc. I think this is going to work nicely though. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tony Septav Sent: Sunday, February 29, 2004 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Watching data Hey John Tried a quick test with a bound form to a query. Query contained 2 tables. My test field in the query had an alias eg. Tblname Account_Number, Qryname AcctNum For the sake of the test the text box on the form was named with an alias ActNo, control source from query Acctnum In Before Update Dim Db As Database, Rst As Recordset Dim Rst2 As Recordset Dim MyCtl As String Dim STable As String, SField As String Dim Ctl As Control Set Ctl = Me.ActiveControl MyCtl = Ctl.Name 'check to see if value has changed (variable HasChng assigned OnEnter) 'if changed Set Db = CurrentDb() Set Rst = Db.OpenRecordset(Me.RecordSource, dbOpenDynaset) STable = Rst(Me(MyCtl).ControlSource).SourceTable SField = Rst(Me(MyCtl).ControlSource).SourceField 'Assumes all tables have a Logger field ' Find the record and tag it Set Rst2 = Db.OpenRecordset("select Logger from " & STable & " where " & SField & " = " & HasChng & ";", dbOpenDynaset) Rst2.Edit Rst2!Logger = "Yes" Rst2.Update rst2.close set Rst2=nothing Rst.Close set Rst=nothing 'endif As I say this was a quick test but "Yes" did appear in the appropriate table and record.